Helper to read a big number; size is in cells (not bytes) */
| 308 | |
| 309 | /* Helper to read a big number; size is in cells (not bytes) */ |
| 310 | static inline uint64_t dtb_node_read_number(const uint32_t *cell, int size) |
| 311 | { |
| 312 | uint64_t r = 0; |
| 313 | while (size--) |
| 314 | r = (r << 32) | fdt32_to_cpu(*(cell++)); |
| 315 | return r; |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * ofnode_valid() - check if an ofnode is valid |
no test coverage detected