Lines Matching refs:depth
235 int fdt_next_node(const void *fdt, int offset, int *depth)
254 if (depth)
255 (*depth)++;
259 if (depth && ((--(*depth)) < 0))
265 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth))
277 int depth = 0;
279 offset = fdt_next_node(fdt, offset, &depth);
280 if (offset < 0 || depth != 1)
288 int depth = 1;
291 * With respect to the parent, the depth of the next subnode will be
295 offset = fdt_next_node(fdt, offset, &depth);
296 if (offset < 0 || depth < 1)
298 } while (depth > 1);