Lines Matching refs:depth
120 int depth; in fdt_subnode_offset_namelen() local
124 for (depth = 0; in fdt_subnode_offset_namelen()
125 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
126 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
127 if ((depth == 1) in fdt_subnode_offset_namelen()
131 if (depth < 0) in fdt_subnode_offset_namelen()
371 int offset, depth, namelen; in fdt_get_path() local
379 for (offset = 0, depth = 0; in fdt_get_path()
381 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
382 while (pdepth > depth) { in fdt_get_path()
389 if (pdepth >= depth) { in fdt_get_path()
402 if (pdepth < (depth + 1)) in fdt_get_path()
423 int offset, depth; in fdt_supernode_atdepth_offset() local
431 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
433 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
434 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
439 *nodedepth = depth; in fdt_supernode_atdepth_offset()
441 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()