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()
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()
865 unsigned depth = 0; in fdt_check_full() local
898 if (depth != 0) in fdt_check_full()
903 depth++; in fdt_check_full()
904 if (depth > INT_MAX) in fdt_check_full()
908 if (depth == 1) { in fdt_check_full()
919 if (depth == 0) in fdt_check_full()
921 depth--; in fdt_check_full()
922 if (depth == 0) in fdt_check_full()