Lines Matching refs:depth
197 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
216 if (depth) in fdt_next_node()
217 (*depth)++; in fdt_next_node()
221 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
227 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
239 int depth = 0; in fdt_first_subnode() local
241 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
242 if (offset < 0 || depth != 1) in fdt_first_subnode()
250 int depth = 1; in fdt_next_subnode() local
257 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
258 if (offset < 0 || depth < 1) in fdt_next_subnode()
260 } while (depth > 1); in fdt_next_subnode()