Home
last modified time | relevance | path

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

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
Dasdl_c.py28 def reflow_lines(s, depth): argument
38 size = MAX_COL - depth * TABSIZE
89 def emit(self, s, depth, reflow=True): argument
92 lines = reflow_lines(s, depth)
96 line = (" " * TABSIZE * depth) + line + "\n"
105 def visitType(self, type, depth=0): argument
106 self.visit(type.value, type.name, depth)
108 def visitSum(self, sum, name, depth): argument
110 self.simple_sum(sum, name, depth)
112 self.sum_with_constructors(sum, name, depth)
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/
Dfdt.c161 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
180 if (depth) in fdt_next_node()
181 (*depth)++; in fdt_next_node()
185 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
191 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
203 int depth = 0; in fdt_first_subnode() local
205 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
206 if (offset < 0 || depth != 1) in fdt_first_subnode()
214 int depth = 1; in fdt_next_subnode() local
221 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
[all …]
Dfdt_ro.c135 int depth; in fdt_subnode_offset_namelen() local
139 for (depth = 0; in fdt_subnode_offset_namelen()
140 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
141 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
142 if ((depth == 1) in fdt_subnode_offset_namelen()
146 if (depth < 0) in fdt_subnode_offset_namelen()
361 int offset, depth, namelen; in fdt_get_path() local
369 for (offset = 0, depth = 0; in fdt_get_path()
371 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
372 while (pdepth > depth) { in fdt_get_path()
[all …]
Dfdt_wip.c99 int depth = 0; in _fdt_node_end_offset() local
101 while ((offset >= 0) && (depth >= 0)) in _fdt_node_end_offset()
102 offset = fdt_next_node(fdt, offset, &depth); in _fdt_node_end_offset()
/device/linaro/bootloader/arm-trusted-firmware/lib/libfdt/
Dfdt.c162 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() argument
181 if (depth) in fdt_next_node()
182 (*depth)++; in fdt_next_node()
186 if (depth && ((--(*depth)) < 0)) in fdt_next_node()
192 || ((nextoffset == -FDT_ERR_TRUNCATED) && !depth)) in fdt_next_node()
204 int depth = 0; in fdt_first_subnode() local
206 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
207 if (offset < 0 || depth != 1) in fdt_first_subnode()
215 int depth = 1; in fdt_next_subnode() local
222 offset = fdt_next_node(fdt, offset, &depth); in fdt_next_subnode()
[all …]
Dfdt_ro.c161 int depth; in fdt_subnode_offset_namelen() local
165 for (depth = 0; in fdt_subnode_offset_namelen()
166 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
167 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
168 if ((depth == 1) in fdt_subnode_offset_namelen()
172 if (depth < 0) in fdt_subnode_offset_namelen()
392 int offset, depth, namelen; in fdt_get_path() local
400 for (offset = 0, depth = 0; in fdt_get_path()
402 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
403 while (pdepth > depth) { in fdt_get_path()
[all …]
Dfdt_wip.c120 int depth = 0; in _fdt_node_end_offset() local
122 while ((offset >= 0) && (depth >= 0)) in _fdt_node_end_offset()
123 offset = fdt_next_node(fdt, offset, &depth); in _fdt_node_end_offset()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_runpy.py116 def _make_pkg(self, source, depth, mod_base="runpy_test"): argument
123 for i in range(depth):
133 mod_name = (pkg_name+".")*depth + mod_base
136 def _del_pkg(self, top, depth, mod_name): argument
161 def _check_module(self, depth): argument
163 self._make_pkg("x=1\n", depth))
179 self._del_pkg(pkg_dir, depth, mod_name)
182 def _check_package(self, depth): argument
184 self._make_pkg("x=1\n", depth, "__main__"))
201 self._del_pkg(pkg_dir, depth, pkg_name)
[all …]
Dtest_pep352.py60 depth = exc_line.rindex('-')
61 exc_name = exc_line[depth+2:] # Slice past space
76 if last_depth < depth:
78 elif last_depth > depth:
79 while superclasses[-1][0] >= depth:
91 last_depth = depth
/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/EblCmdLib/
DEblCmdFdt.c115 UINTN depth; in DumpFdt() local
119 depth = 0; in DumpFdt()
139 Print(L"%*s%a {\n", depth * shift, L" ", s); in DumpFdt()
141 depth++; in DumpFdt()
146 depth--; in DumpFdt()
148 Print(L"%*s};\n", depth * shift, L" "); in DumpFdt()
153 Print(L"%*s// [NOP]\n", depth * shift, L" "); in DumpFdt()
158 Print(L"%*s ** Unknown tag 0x%08x\n", depth * shift, L" ", tag); in DumpFdt()
169 Print(L"%*s%a", depth * shift, L" ", s); in DumpFdt()
/device/google/bonito/json-c/
Djson_tokener.c107 struct json_tokener* json_tokener_new_ex(int depth) in json_tokener_new_ex() argument
113 tok->stack = (struct json_tokener_srec *)calloc(depth, sizeof(struct json_tokener_srec)); in json_tokener_new_ex()
119 tok->max_depth = depth; in json_tokener_new_ex()
137 static void json_tokener_reset_level(struct json_tokener *tok, int depth) in json_tokener_reset_level() argument
139 tok->stack[depth].state = json_tokener_state_eatws; in json_tokener_reset_level()
140 tok->stack[depth].saved_state = json_tokener_state_start; in json_tokener_reset_level()
141 json_object_put(tok->stack[depth].current); in json_tokener_reset_level()
142 tok->stack[depth].current = NULL; in json_tokener_reset_level()
143 free(tok->stack[depth].obj_field_name); in json_tokener_reset_level()
144 tok->stack[depth].obj_field_name = NULL; in json_tokener_reset_level()
[all …]
/device/google/crosshatch/json-c/
Djson_tokener.c107 struct json_tokener* json_tokener_new_ex(int depth) in json_tokener_new_ex() argument
113 tok->stack = (struct json_tokener_srec *)calloc(depth, sizeof(struct json_tokener_srec)); in json_tokener_new_ex()
119 tok->max_depth = depth; in json_tokener_new_ex()
137 static void json_tokener_reset_level(struct json_tokener *tok, int depth) in json_tokener_reset_level() argument
139 tok->stack[depth].state = json_tokener_state_eatws; in json_tokener_reset_level()
140 tok->stack[depth].saved_state = json_tokener_state_start; in json_tokener_reset_level()
141 json_object_put(tok->stack[depth].current); in json_tokener_reset_level()
142 tok->stack[depth].current = NULL; in json_tokener_reset_level()
143 free(tok->stack[depth].obj_field_name); in json_tokener_reset_level()
144 tok->stack[depth].obj_field_name = NULL; in json_tokener_reset_level()
[all …]
/device/linaro/bootloader/edk2/EmbeddedPkg/Drivers/FdtPlatformDxe/
DShellDumpFdt.c100 UINTN depth; in DumpFdt() local
121 depth = 0; in DumpFdt()
140 Print (L"%*s%a {\n", depth * shift, L" ", s); in DumpFdt()
142 depth++; in DumpFdt()
147 depth--; in DumpFdt()
149 Print (L"%*s};\n", depth * shift, L" "); in DumpFdt()
154 Print (L"%*s// [NOP]\n", depth * shift, L" "); in DumpFdt()
159 Print (L"%*s ** Unknown tag 0x%08x\n", depth * shift, L" ", tag); in DumpFdt()
170 Print (L"%*s%a", depth * shift, L" ", s); in DumpFdt()
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLESTextureUtils.h9 GLsizei width, GLsizei height, GLsizei depth,
21 GLsizei width, GLsizei height, GLsizei depth,
31 GLsizei width, GLsizei height, GLsizei depth,
DGLESTextureUtils.cpp214 GLsizei width, GLsizei height, GLsizei depth, in computeTextureStartEnd() argument
229 …ALOGV("%s: input idim %d %d %d w p h %d %d %d:", __FUNCTION__, width, height, depth, inputWidth, i… in computeTextureStartEnd()
232 int endVal = startVal + inputPitch * inputHeight * depth; in computeTextureStartEnd()
242 GLsizei width, GLsizei height, GLsizei depth, in computeTotalImageSize() argument
253 width, height, depth, in computeTotalImageSize()
267 GLsizei width, GLsizei height, GLsizei depth, in computeNeededBufferSize() argument
278 width, height, depth, in computeNeededBufferSize()
/device/generic/opengl-transport/host/libs/virglrenderer/OpenGLESDispatch/
Dgles2_extensions.entries8 …Lint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLe…
9 …set, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GL…
11 …Lint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLs…
12 …set, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GL…
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpprint.py52 def pprint(object, stream=None, indent=1, width=80, depth=None): argument
55 stream=stream, indent=indent, width=width, depth=depth)
58 def pformat(object, indent=1, width=80, depth=None): argument
60 return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
82 def __init__(self, indent=1, width=80, depth=None, stream=None): argument
103 assert depth is None or depth > 0, "depth must be > 0"
105 self._depth = depth
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
Dmrhoist.c188 void MR_xxxIndent(FILE *f,int depth) in MR_xxxIndent() argument
190 void MR_xxxIndent(f,depth) in MR_xxxIndent()
192 int depth;
197 for (i=0; i<depth ; i++) {
203 void MR_stderrIndent(int depth) in MR_stderrIndent() argument
205 void MR_stderrIndent(depth) in MR_stderrIndent()
206 int depth; in MR_stderrIndent()
209 MR_xxxIndent(stderr,depth);
213 void MR_outputIndent(int depth) in MR_outputIndent() argument
215 void MR_outputIndent(depth) in MR_outputIndent()
[all …]
Ddumpnode.c50 void dumppred1(int depth,Predicate *p) in dumppred1() argument
52 void dumppred1(depth,p) in dumppred1()
53 int depth; in dumppred1()
60 for (i=0; i<depth ; i++) {
91 for (i=0; i<depth ; i++) {
96 for (i=0; i<depth ; i++) {
105 dumppred1(depth+1,p->down);
108 dumppred1(depth,p->right);
/device/google/contexthub/util/common/
DJSONObject.cpp559 AString JSONValue::toString(size_t depth, bool indentFirstLine) const { in toString() argument
605 out.append(mValue.mObjectOrArray->internalToString(depth + 1)); in toString()
607 out.append(kIndent, 2 * depth); in toString()
617 out.insert(kIndent, 2 * depth, 0); in toString()
647 AString JSONCompound::toString(size_t depth, bool indentFirstLine) const { in toString() argument
655 return val.toString(depth, indentFirstLine); in toString()
682 AString JSONObject::internalToString(size_t depth) const { in internalToString()
691 out.append(kIndent, 2 * depth); in internalToString()
696 out.append(mValues.valueAt(i).toString(depth + 1, false)); in internalToString()
734 AString JSONArray::internalToString(size_t depth) const { in internalToString()
[all …]
DJSONObject.h69 AString toString(size_t depth = 0, bool indentFirstLine = true) const;
86 AString toString(size_t depth = 0, bool indentFirstLine = true) const;
93 virtual AString internalToString(size_t depth) const = 0;
206 virtual AString internalToString(size_t depth) const;
261 virtual AString internalToString(size_t depth) const;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dmarshal.c67 int depth; member
196 p->depth++; in w_object()
198 if (p->depth > MAX_MARSHAL_STACK_DEPTH) { in w_object()
323 p->depth--; in w_object()
336 p->depth--; in w_object()
348 p->depth--; in w_object()
355 p->depth--; in w_object()
401 p->depth--; in w_object()
408 p->depth--; in w_object()
418 p->depth--; in w_object()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
Dmarshal.c67 int depth; member
196 p->depth++; in w_object()
198 if (p->depth > MAX_MARSHAL_STACK_DEPTH) { in w_object()
323 p->depth--; in w_object()
336 p->depth--; in w_object()
348 p->depth--; in w_object()
355 p->depth--; in w_object()
401 p->depth--; in w_object()
408 p->depth--; in w_object()
418 p->depth--; in w_object()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Python/
Dmarshal.c66 int depth; member
145 (p)->depth--; \
196 p->depth--; in w_PyLong()
222 p->depth++; in w_object()
224 if (p->depth > MAX_MARSHAL_STACK_DEPTH) { in w_object()
349 p->depth--; in w_object()
366 p->depth--; in w_object()
412 p->depth--; in w_object()
419 p->depth--; in w_object()
429 p->depth--; in w_object()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dpyassem.py342 depth = {}
345 depth[b] = findDepth(b.getInstructions())
353 d = d + depth[b]
658 depth = 0
666 depth = depth + delta
672 depth = depth + delta
678 depth = depth + meth(i[1])
679 if depth > maxDepth:
680 maxDepth = depth
682 print depth, maxDepth

12345