Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcodeop.py68 def _maybe_compile(compiler, source, filename, symbol): argument
70 for line in source.split("\n"):
76 source = "pass" # Replace it with a 'pass' statement
82 code = compiler(source, filename, symbol)
87 code1 = compiler(source + "\n", filename, symbol)
92 code2 = compiler(source + "\n\n", filename, symbol)
101 def _compile(source, filename, symbol): argument
102 return compile(source, filename, symbol, PyCF_DONT_IMPLY_DEDENT)
104 def compile_command(source, filename="<input>", symbol="single"): argument
122 return _maybe_compile(_compile, source, filename, symbol)
[all …]
Dsre_parse.py225 def _class_escape(source, escape): argument
237 while source.next in HEXDIGITS and len(escape) < 4:
238 escape = escape + source.get()
245 while source.next in OCTDIGITS and len(escape) < 4:
246 escape = escape + source.get()
257 def _escape(source, escape, state): argument
269 while source.next in HEXDIGITS and len(escape) < 4:
270 escape = escape + source.get()
276 while source.next in OCTDIGITS and len(escape) < 4:
277 escape = escape + source.get()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey960/drivers/ipc/
Dhisi_ipc.c78 hisi_ipc_clear_ack(enum src_id source, enum lpm3_mbox_id mbox) in hisi_ipc_clear_ack() argument
88 mmio_write_32(IPC_MBX_ICLR_REG(mbox), source); in hisi_ipc_clear_ack()
92 hisi_ipc_send_cmd_with_ack(enum src_id source, enum lpm3_mbox_id mbox, in hisi_ipc_send_cmd_with_ack() argument
104 mmio_write_32(IPC_MBX_SOURCE_REG(mbox), source); in hisi_ipc_send_cmd_with_ack()
106 if (regval == source) in hisi_ipc_send_cmd_with_ack()
116 mask = (~((int)source | SRC_LPM3) & 0x3F); in hisi_ipc_send_cmd_with_ack()
123 mmio_write_32(IPC_MBX_SEND_REG(mbox), source); in hisi_ipc_send_cmd_with_ack()
125 hisi_ipc_clear_ack(source, mbox); in hisi_ipc_send_cmd_with_ack()
128 mmio_write_32(IPC_MBX_SOURCE_REG(mbox), source); in hisi_ipc_send_cmd_with_ack()
136 enum src_id source = SRC_IDLE; in hisi_ipc_pm_on_off() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Ddep_util.py12 def newer(source, target): argument
24 if not os.path.exists(source):
26 os.path.abspath(source))
30 return os.stat(source).st_mtime > os.stat(target).st_mtime
44 for source, target in zip(sources, targets):
45 if newer(source, target):
46 n_sources.append(source)
76 for source in sources:
77 if not os.path.exists(source):
85 if os.stat(source).st_mtime > target_mtime:
/device/linaro/bootloader/edk2/BaseTools/Scripts/
DConvertUni.py37 def __init__(self, utf8, source): argument
39 self.source = source
43 if not os.path.exists(source):
45 elif os.path.isdir(source):
46 for (root, dirs, files) in os.walk(source):
57 self.ok &= self.convert_one_file(source)
59 def convert_one_file(self, source): argument
67 f = open(source, mode='rb')
77 print("%s: already %s" % (source, new_enc))
93 f = open(source, mode='wb')
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/iobench/
Diobench.py137 def write_bytewise(f, source): argument
139 for i in xrange(0, len(source)):
140 f.write(source[i:i+1])
144 def write_small_chunks(f, source): argument
146 for i in xrange(0, len(source), 20):
147 f.write(source[i:i+20])
151 def write_medium_chunks(f, source): argument
153 for i in xrange(0, len(source), 4096):
154 f.write(source[i:i+4096])
158 def write_large_chunks(f, source): argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dsre_parse.py236 def _class_escape(source, escape): argument
248 while source.next in HEXDIGITS and len(escape) < 4:
249 escape = escape + source.get()
256 while source.next in OCTDIGITS and len(escape) < 4:
257 escape = escape + source.get()
268 def _escape(source, escape, state): argument
280 while source.next in HEXDIGITS and len(escape) < 4:
281 escape = escape + source.get()
287 while source.next in OCTDIGITS and len(escape) < 4:
288 escape = escape + source.get()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/
Dsaxutils.py250 def parse(self, source): argument
255 self._parent.parse(source)
282 def prepare_input_source(source, base = ""): argument
286 if type(source) in _StringTypes:
287 source = xmlreader.InputSource(source)
288 elif hasattr(source, "read"):
289 f = source
290 source = xmlreader.InputSource()
291 source.setByteStream(f)
293 source.setSystemId(f.name)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_file_util.py25 self.source = os.path.join(tmp_dir, 'f1')
34 f = open(self.source, 'w')
40 move_file(self.source, self.target, verbose=0)
45 move_file(self.target, self.source, verbose=0)
47 move_file(self.source, self.target, verbose=1)
48 wanted = ['moving %s -> %s' % (self.source, self.target)]
52 move_file(self.target, self.source, verbose=0)
57 move_file(self.source, self.target_dir, verbose=1)
58 wanted = ['moving %s -> %s' % (self.source, self.target_dir)]
Dtest_build_scripts.py29 source = self.mkdtemp()
31 expected = self.write_sample_scripts(source)
34 [os.path.join(source, fn)
81 source = self.mkdtemp()
83 expected = self.write_sample_scripts(source)
87 [os.path.join(source, fn)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
25 const Bytef *source;
32 stream.next_in = (Bytef*)source;
62 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
65 const Bytef *source;
68 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dcompress.c22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument
25 const Bytef *source;
32 stream.next_in = (z_const Bytef *)source;
62 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument
65 const Bytef *source;
68 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/sax/
Dsaxutils.py278 def parse(self, source): argument
283 self._parent.parse(source)
310 def prepare_input_source(source, base = ""): argument
314 if type(source) in _StringTypes:
315 source = xmlreader.InputSource(source)
316 elif hasattr(source, "read"):
317 f = source
318 source = xmlreader.InputSource()
319 source.setByteStream(f)
321 source.setSystemId(f.name)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_pstats.py15 source = {"a": (1, 2, 3, 4), "b": (5, 6, 7, 8)}
16 new_callers = pstats.add_callers(target, source)
20 source = {"a": 1, "b": 5}
21 new_callers = pstats.add_callers(target, source)
Dtest_linecache.py99 with open(source_name, 'w') as source:
100 source.write(SOURCE_1)
105 with open(source_name) as source:
106 for index, line in enumerate(source):
110 with open(source_name, 'w') as source:
111 source.write(SOURCE_2)
122 with open(source_name) as source:
123 for index, line in enumerate(source):
Dtest_syntax.py525 source = re.sub('(?m)^ *:', '', """\
533 self._check_error(source, "global")
540 source = re.sub('(?m)^ *:', '', """\
546 self._check_error(source, "nested scope")
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
DREADME13 docstring.py -- sample source file containing only a module docstring.
16 information from the parse tree of Python source
19 simple.py -- sample source containing a "short form" definition.
21 source.py -- sample source code used to demonstrate ability to
29 unparse.py AST (2.7) based example to recreate source code
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlobject.c252 void luaO_chunkid (char *out, const char *source, size_t bufflen) { in luaO_chunkid() argument
253 size_t l = strlen(source); in luaO_chunkid()
254 if (*source == '=') { /* 'literal' source */ in luaO_chunkid()
256 memcpy(out, source + 1, l * sizeof(char)); in luaO_chunkid()
258 addstr(out, source + 1, bufflen - 1); in luaO_chunkid()
262 else if (*source == '@') { /* file name */ in luaO_chunkid()
264 memcpy(out, source + 1, l * sizeof(char)); in luaO_chunkid()
268 memcpy(out, source + 1 + l - bufflen, bufflen * sizeof(char)); in luaO_chunkid()
272 const char *nl = strchr(source, '\n'); /* find first new line (if any) */ in luaO_chunkid()
276 addstr(out, source, l); /* keep it */ in luaO_chunkid()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/
Dxmlbuilder.py217 source = DOMInputSource()
218 source.publicId = publicId
219 source.systemId = systemId
220 source.byteStream = self._get_opener().open(systemId)
223 source.encoding = self._guess_media_encoding(source)
233 source.baseURI = urlparse.urlunparse(parts)
235 return source
248 def _guess_media_encoding(self, source): argument
249 info = source.byteStream.info()
355 def loadXML(self, source): argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/
Dxmlbuilder.py217 source = DOMInputSource()
218 source.publicId = publicId
219 source.systemId = systemId
220 source.byteStream = self._get_opener().open(systemId)
223 source.encoding = self._guess_media_encoding(source)
233 source.baseURI = urlparse.urlunparse(parts)
235 return source
248 def _guess_media_encoding(self, source): argument
249 info = source.byteStream.info()
355 def loadXML(self, source): argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/compiler/
Dregrtest.py37 source = os.path.join(dir, file)
41 line_len = len(source) + 9
44 compileFile(source)
49 os.chmod(source + "c", 444)
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/
DPeCoffExtraActionLib.uni2 // PeCoffExtraAction Library to support source level debug.
4 // PeCoffExtraAction Library to support source level debug.
18 …DULE_ABSTRACT #language en-US "PeCoffExtraAction Library to support source level debug"
20 …ULE_DESCRIPTION #language en-US "PeCoffExtraAction Library to support source level debug."
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dfact.py37 source = sys.argv[1:]
39 source = iter(raw_input, '')
40 for arg in source:
/device/google/marlin/camera/usbcamcore/src/
DQCameraMjpegDecode.cpp232 jpegd_src_t source; in decoder_test() local
276 source.p_input_req_handler = &decoder_input_req_handler; in decoder_test()
277 source.total_length = p_args->inputMjpegBufferSize & 0xffffffff; in decoder_test()
279 rc = jpeg_buffer_init(&source.buffers[0]); in decoder_test()
282 rc = jpeg_buffer_init(&source.buffers[1]); in decoder_test()
286 rc = jpeg_buffer_allocate(source.buffers[0], 0xA000, use_pmem); in decoder_test()
288 rc = jpeg_buffer_use_external_buffer(source.buffers[0], in decoder_test()
294 source.buffers[0], p_args->inputMjpegBuffer); in decoder_test()
298 rc = jpeg_buffer_allocate(source.buffers[1], 0xA000, use_pmem); in decoder_test()
300 rc = jpeg_buffer_use_external_buffer(source.buffers[1], in decoder_test()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dpindent.py399 def complete_string(source, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): argument
400 input = StringReader(source)
407 def delete_string(source, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): argument
408 input = StringReader(source)
415 def reformat_string(source, stepsize = STEPSIZE, tabsize = TABSIZE, expandtabs = EXPANDTABS): argument
416 input = StringReader(source)
424 source = open(filename, 'r').read()
425 result = complete_string(source, stepsize, tabsize, expandtabs)
426 if source == result: return 0
439 source = open(filename, 'r').read()
[all …]

12345678910>>...22