| 102 | |
| 103 | |
| 104 | static int fdt_skip_nops(const void *blob, uint32_t offset) |
| 105 | { |
| 106 | uint32_t *ptr = (uint32_t *)(((uint8_t *)blob) + offset); |
| 107 | |
| 108 | int index = 0; |
| 109 | while (be32toh(ptr[index]) == FDT_TOKEN_NOP) |
| 110 | index++; |
| 111 | |
| 112 | return index * sizeof(uint32_t); |
| 113 | } |
| 114 | |
| 115 | int fdt_next_property(const void *blob, uint32_t offset, |
| 116 | struct fdt_property *prop) |
no outgoing calls
no test coverage detected