Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 9 of 9) sorted by relevance

/scripts/dtc/libfdt/
Dfdt.c197 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()
[all …]
Dfdt_ro.c213 int depth; in fdt_subnode_offset_namelen() local
217 for (depth = 0; in fdt_subnode_offset_namelen()
218 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
219 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
220 if ((depth == 1) in fdt_subnode_offset_namelen()
224 if (depth < 0) in fdt_subnode_offset_namelen()
523 int offset, depth, namelen; in fdt_get_path() local
531 for (offset = 0, depth = 0; in fdt_get_path()
533 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
534 while (pdepth > depth) { in fdt_get_path()
[all …]
Dfdt_wip.c75 int depth = 0; in fdt_node_end_offset_() local
77 while ((offset >= 0) && (depth >= 0)) in fdt_node_end_offset_()
78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_()
Dlibfdt.h179 int fdt_next_node(const void *fdt, int offset, int *depth);
/scripts/dtc/
Dfdtdump.c60 int depth, sz, shift; in dump_blob() local
64 depth = 0; in dump_blob()
110 printf("%*s%s {\n", depth * shift, "", s); in dump_blob()
112 depth++; in dump_blob()
117 depth--; in dump_blob()
119 printf("%*s};\n", depth * shift, ""); in dump_blob()
124 printf("%*s// [NOP]\n", depth * shift, ""); in dump_blob()
129 fprintf(stderr, "%*s ** Unknown tag 0x%08x\n", depth * shift, "", tag); in dump_blob()
140 printf("%*s%s", depth * shift, "", s); in dump_blob()
Dfdtget.c142 int depth = 1; /* the assumed depth of this node */ in list_subnodes() local
149 if (level <= depth) { in list_subnodes()
173 if (level <= depth) in list_subnodes()
Dlivetree.c960 int i, depth; in add_local_fixup_entry() local
963 depth = 0; in add_local_fixup_entry()
965 depth++; in add_local_fixup_entry()
968 compp = xmalloc(sizeof(*compp) * depth); in add_local_fixup_entry()
971 for (wn = node, i = depth - 1; wn; wn = wn->parent, i--) in add_local_fixup_entry()
975 for (wn = lfn, i = 1; i < depth; i++, wn = nwn) { in add_local_fixup_entry()
/scripts/
Dunifdef.c202 static int depth; /* current #if nesting */ variable
510 if (depth == 0) in ignoreoff()
512 ignoring[depth] = ignoring[depth-1]; in ignoreoff()
517 ignoring[depth] = true; in ignoreon()
529 if (depth > MAXDEPTH-1) in nest()
531 if (depth == MAXDEPTH-1) in nest()
533 depth += 1; in nest()
534 stifline[depth] = linenum; in nest()
539 if (depth == 0) in unnest()
541 depth -= 1; in unnest()
[all …]
/scripts/gdb/linux/
Dproc.py55 def get_resources(resource, depth): argument
57 yield resource, depth
61 for res, deep in get_resources(child, depth + 1):
71 for res, depth in get_resources(resource['child'], 0):
74 gdb.write(" " * depth * 2 +