Lines Matching refs:depth
258 /* In-depth first */
293 int offset = 0, depth = 0, initial_depth = 0;
304 * possibly multiple nodes in the first level of depth. We need
305 * set @depth to 1 to make fdt_next_node() happy as it bails
306 * immediately when negative @depth is found. Otherwise, the device
310 depth = initial_depth = 1;
313 nps[depth] = dad;
316 offset >= 0 && depth >= initial_depth;
317 offset = fdt_next_node(blob, offset, &depth)) {
318 if (WARN_ON_ONCE(depth >= FDT_MAX_DEPTH - 1))
325 if (!populate_node(blob, offset, &mem, nps[depth],
326 &nps[depth+1], dryrun))
330 *nodepp = nps[depth+1];
332 root = nps[depth+1];
545 int depth, void *data)
550 if (!found && depth == 1 && strcmp(uname, "reserved-memory") == 0) {
562 } else if (found && depth < 2) {
629 const char *uname, int depth,
635 int offset, rc = 0, depth = -1;
640 for (offset = fdt_next_node(blob, -1, &depth);
641 offset >= 0 && depth >= 0 && !rc;
642 offset = fdt_next_node(blob, offset, &depth)) {
645 rc = it(offset, pathp, depth, data);
784 int depth;
786 int (*iterator)(unsigned long node, const char *uname, int depth, void *data);
956 int depth, void *data)
960 if (depth != 0)
992 int depth, void *data)
1039 int depth, void *data)
1045 pr_debug("search \"chosen\", depth: %d, uname: %s\n", depth, uname);
1047 if (depth != 1 || !data ||