Lines Matching refs:depth
293 int offset = 0, depth = 0, initial_depth = 0; in unflatten_dt_nodes() local
310 depth = initial_depth = 1; in unflatten_dt_nodes()
313 nps[depth] = dad; in unflatten_dt_nodes()
316 offset >= 0 && depth >= initial_depth; in unflatten_dt_nodes()
317 offset = fdt_next_node(blob, offset, &depth)) { in unflatten_dt_nodes()
318 if (WARN_ON_ONCE(depth >= FDT_MAX_DEPTH)) in unflatten_dt_nodes()
325 if (!populate_node(blob, offset, &mem, nps[depth], in unflatten_dt_nodes()
326 &nps[depth+1], dryrun)) in unflatten_dt_nodes()
330 *nodepp = nps[depth+1]; in unflatten_dt_nodes()
332 root = nps[depth+1]; in unflatten_dt_nodes()
546 int depth, void *data) in __fdt_scan_reserved_mem() argument
551 if (!found && depth == 1 && strcmp(uname, "reserved-memory") == 0) { in __fdt_scan_reserved_mem()
563 } else if (found && depth < 2) { in __fdt_scan_reserved_mem()
630 const char *uname, int depth, in of_scan_flat_dt() argument
636 int offset, rc = 0, depth = -1; in of_scan_flat_dt() local
641 for (offset = fdt_next_node(blob, -1, &depth); in of_scan_flat_dt()
642 offset >= 0 && depth >= 0 && !rc; in of_scan_flat_dt()
643 offset = fdt_next_node(blob, offset, &depth)) { in of_scan_flat_dt()
648 rc = it(offset, pathp, depth, data); in of_scan_flat_dt()
789 int depth; member
791 int (*iterator)(unsigned long node, const char *uname, int depth, void *data);
961 int depth, void *data) in early_init_dt_scan_root() argument
965 if (depth != 0) in early_init_dt_scan_root()
997 int depth, void *data) in early_init_dt_scan_memory() argument
1044 int depth, void *data) in early_init_dt_scan_chosen() argument
1050 pr_debug("search \"chosen\", depth: %d, uname: %s\n", depth, uname); in early_init_dt_scan_chosen()
1052 if (depth != 1 || !data || in early_init_dt_scan_chosen()