Lines Matching refs:depth
161 int depth; in fdt_subnode_offset_namelen() local
165 for (depth = 0; in fdt_subnode_offset_namelen()
166 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
167 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
168 if ((depth == 1) in fdt_subnode_offset_namelen()
172 if (depth < 0) in fdt_subnode_offset_namelen()
392 int offset, depth, namelen; in fdt_get_path() local
400 for (offset = 0, depth = 0; in fdt_get_path()
402 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
403 while (pdepth > depth) { in fdt_get_path()
410 if (pdepth >= depth) { in fdt_get_path()
423 if (pdepth < (depth + 1)) in fdt_get_path()
444 int offset, depth; in fdt_supernode_atdepth_offset() local
452 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
454 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
455 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
460 *nodedepth = depth; in fdt_supernode_atdepth_offset()
462 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()