Lines Matching full:depth
247 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
266 if (depth) in fdt_next_node()
267 (*depth)++; in fdt_next_node()
271 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
277 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
289 int depth = 0; in fdt_first_subnode() local
291 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
292 if (offset < 0 || depth != 1) in fdt_first_subnode()
300 int depth = 1; in fdt_next_subnode() local
303 * With respect to the parent, the depth of the next subnode will be in fdt_next_subnode()
307 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
308 if (offset < 0 || depth < 1) in fdt_next_subnode()
310 } while (depth > 1); in fdt_next_subnode()