MCPcopy Create free account
hub / github.com/coreboot/coreboot / fdt_skip_nops

Function fdt_skip_nops

src/commonlib/device_tree.c:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103
104static 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
115int fdt_next_property(const void *blob, uint32_t offset,
116 struct fdt_property *prop)

Callers 3

fdt_next_propertyFunction · 0.85
fdt_next_node_nameFunction · 0.85
fdt_skip_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected