Lines Matching refs:depth
213 int depth; in fdt_subnode_offset_namelen() local
217 for (depth = 0; in fdt_subnode_offset_namelen()
218 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
219 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
220 if ((depth == 1) in fdt_subnode_offset_namelen()
224 if (depth < 0) in fdt_subnode_offset_namelen()
523 int offset, depth, namelen; in fdt_get_path() local
531 for (offset = 0, depth = 0; in fdt_get_path()
533 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
534 while (pdepth > depth) { in fdt_get_path()
541 if (pdepth >= depth) { in fdt_get_path()
554 if (pdepth < (depth + 1)) in fdt_get_path()
575 int offset, depth; in fdt_supernode_atdepth_offset() local
583 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
585 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
586 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
591 *nodedepth = depth; in fdt_supernode_atdepth_offset()
593 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()
842 unsigned depth = 0; in fdt_check_full() local
870 if (depth != 0) in fdt_check_full()
875 depth++; in fdt_check_full()
876 if (depth > INT_MAX) in fdt_check_full()
881 if (depth == 0) in fdt_check_full()
883 depth--; in fdt_check_full()