Lines Matching refs:depth
228 int depth; in fdt_subnode_offset_namelen() local
232 for (depth = 0; in fdt_subnode_offset_namelen()
233 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
234 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
235 if ((depth == 1) in fdt_subnode_offset_namelen()
239 if (depth < 0) in fdt_subnode_offset_namelen()
574 int offset, depth, namelen; in fdt_get_path() local
582 for (offset = 0, depth = 0; in fdt_get_path()
584 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
585 while (pdepth > depth) { in fdt_get_path()
592 if (pdepth >= depth) { in fdt_get_path()
605 if (pdepth < (depth + 1)) in fdt_get_path()
626 int offset, depth; in fdt_supernode_atdepth_offset() local
634 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
636 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
637 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
642 *nodedepth = depth; in fdt_supernode_atdepth_offset()
644 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()