Lines Matching refs:depth
215 int depth; in fdt_subnode_offset_namelen() local
219 for (depth = 0; in fdt_subnode_offset_namelen()
220 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
221 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
222 if ((depth == 1) in fdt_subnode_offset_namelen()
226 if (depth < 0) in fdt_subnode_offset_namelen()
525 int offset, depth, namelen; in fdt_get_path() local
533 for (offset = 0, depth = 0; in fdt_get_path()
535 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
536 while (pdepth > depth) { in fdt_get_path()
543 if (pdepth >= depth) { in fdt_get_path()
556 if (pdepth < (depth + 1)) in fdt_get_path()
577 int offset, depth; in fdt_supernode_atdepth_offset() local
585 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
587 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
588 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
593 *nodedepth = depth; in fdt_supernode_atdepth_offset()
595 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()
853 unsigned depth = 0; in fdt_check_full() local
881 if (depth != 0) in fdt_check_full()
886 depth++; in fdt_check_full()
887 if (depth > INT_MAX) in fdt_check_full()
892 if (depth == 0) in fdt_check_full()
894 depth--; in fdt_check_full()