Lines Matching refs:depth
226 int depth; in fdt_subnode_offset_namelen() local
230 for (depth = 0; in fdt_subnode_offset_namelen()
231 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
232 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
233 if ((depth == 1) in fdt_subnode_offset_namelen()
237 if (depth < 0) in fdt_subnode_offset_namelen()
543 int offset, depth, namelen; in fdt_get_path() local
551 for (offset = 0, depth = 0; in fdt_get_path()
553 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
554 while (pdepth > depth) { in fdt_get_path()
561 if (pdepth >= depth) { in fdt_get_path()
574 if (pdepth < (depth + 1)) in fdt_get_path()
595 int offset, depth; in fdt_supernode_atdepth_offset() local
603 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
605 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
606 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
611 *nodedepth = depth; in fdt_supernode_atdepth_offset()
613 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()