Lines Matching full:depth
235 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
254 if (depth) in fdt_next_node()
255 (*depth)++; in fdt_next_node()
259 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
265 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
277 int depth = 0; in fdt_first_subnode() local
279 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
280 if (offset < 0 || depth != 1) in fdt_first_subnode()
288 int depth = 1; in fdt_next_subnode() local
291 * With respect to the parent, the depth of the next subnode will be in fdt_next_subnode()
295 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
296 if (offset < 0 || depth < 1) in fdt_next_subnode()
298 } while (depth > 1); in fdt_next_subnode()