Lines Matching refs:depth
247 int fdt_next_node(const void *fdt, int offset, int *depth)
266 if (depth)
267 (*depth)++;
271 if (depth && ((--(*depth)) < 0))
277 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth))
289 int depth = 0;
291 offset = fdt_next_node(fdt, offset, &depth);
292 if (offset < 0 || depth != 1)
300 int depth = 1;
303 * With respect to the parent, the depth of the next subnode will be
307 offset = fdt_next_node(fdt, offset, &depth);
308 if (offset < 0 || depth < 1)
310 } while (depth > 1);