Lines Matching refs:depth
135 int depth; in fdt_subnode_offset_namelen() local
139 for (depth = 0; in fdt_subnode_offset_namelen()
140 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
141 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
142 if ((depth == 1) in fdt_subnode_offset_namelen()
146 if (depth < 0) in fdt_subnode_offset_namelen()
366 int offset, depth, namelen; in fdt_get_path() local
374 for (offset = 0, depth = 0; in fdt_get_path()
376 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
377 while (pdepth > depth) { in fdt_get_path()
384 if (pdepth >= depth) { in fdt_get_path()
397 if (pdepth < (depth + 1)) in fdt_get_path()
418 int offset, depth; in fdt_supernode_atdepth_offset() local
426 for (offset = 0, depth = 0; in fdt_supernode_atdepth_offset()
428 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
429 if (depth == supernodedepth) in fdt_supernode_atdepth_offset()
434 *nodedepth = depth; in fdt_supernode_atdepth_offset()
436 if (supernodedepth > depth) in fdt_supernode_atdepth_offset()