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()
545 int offset, depth, namelen; in fdt_get_path() local
553 for (offset = 0, depth = 0; in fdt_get_path()
555 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
556 while (pdepth > depth) { in fdt_get_path()
563 if (pdepth >= depth) { in fdt_get_path()
576 if (pdepth < (depth + 1)) in fdt_get_path()
597 int offset, depth; in fdt_supernode_atdepth_offset() local
605 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
607 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
608 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
613 *nodedepth = depth; in fdt_supernode_atdepth_offset()
615 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()
867 unsigned depth = 0; in fdt_check_full() local
900 if (depth != 0) in fdt_check_full()
905 depth++; in fdt_check_full()
906 if (depth > INT_MAX) in fdt_check_full()
910 if (depth == 1) { in fdt_check_full()
921 if (depth == 0) in fdt_check_full()
923 depth--; in fdt_check_full()
924 if (depth == 0) in fdt_check_full()