Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 859) sorted by relevance

12345678910>>...35

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dpuremodule.c63 call_voidarg_function(VoidArgFunc func, PyObject *self, PyObject *args) in call_voidarg_function() argument
67 if (!PyArg_ParseTuple(args, "")) in call_voidarg_function()
75 call_stringarg_function(StringArgFunc func, PyObject *self, PyObject *args) in call_stringarg_function() argument
80 if (!PyArg_ParseTuple(args, "s", &stringarg)) in call_stringarg_function()
88 call_stringorint_function(StringArgFunc func, PyObject *self, PyObject *args) in call_stringorint_function() argument
99 if (PyArg_ParseTuple(args, "i", &intarg)) in call_stringorint_function()
107 if (!PyArg_ParseTuple(args, "s", &stringarg)) in call_stringorint_function()
116 call_printfish_function(PrintfishFunc func, PyObject *self, PyObject *args) in call_printfish_function() argument
125 if (!PyArg_ParseTuple(args, "s", &argstring)) in call_printfish_function()
133 call_intasaddr_function(StringArgFunc func, PyObject *self, PyObject *args) in call_intasaddr_function() argument
[all …]
Dflmodule.c149 generic_set_call_back(genericobject *g, PyObject *args) in generic_set_call_back() argument
151 if (PyTuple_GET_SIZE(args) == 0) { in generic_set_call_back()
159 if (!PyArg_UnpackTuple(args, "set_call_back", 2, 2, &a, &b)) in generic_set_call_back()
241 generic_set_object_shortcut(genericobject *g, PyObject *args) in generic_set_object_shortcut() argument
244 if (!PyArg_ParseTuple(args, "s:set_object_shortcut", &str)) in generic_set_object_shortcut()
410 call_forms_INf (void (*func)(FL_OBJECT *, float), FL_OBJECT *obj, PyObject *args) in call_forms_INf() argument
414 if (!PyArg_Parse(args, "f", &parameter)) return NULL; in call_forms_INf()
424 call_forms_INfINf (void (*func)(FL_OBJECT *, float, float), FL_OBJECT *obj, PyObject *args) in call_forms_INfINf() argument
428 if (!PyArg_Parse(args, "(ff)", &par1, &par2)) return NULL; in call_forms_INfINf()
438 call_forms_INi (void (*func)(FL_OBJECT *, int), FL_OBJECT *obj, PyObject *args) in call_forms_INi() argument
[all …]
D_functoolsmodule.c15 functools_reduce(PyObject *self, PyObject *args) in functools_reduce() argument
19 if (!PyArg_UnpackTuple(args, "reduce", 2, 3, &func, &seq, &result)) in functools_reduce()
32 if ((args = PyTuple_New(2)) == NULL) in functools_reduce()
38 if (args->ob_refcnt > 1) { in functools_reduce()
39 Py_DECREF(args); in functools_reduce()
40 if ((args = PyTuple_New(2)) == NULL) in functools_reduce()
54 PyTuple_SetItem(args, 0, result); in functools_reduce()
55 PyTuple_SetItem(args, 1, op2); in functools_reduce()
56 if ((result = PyEval_CallObject(func, args)) == NULL) in functools_reduce()
61 Py_DECREF(args); in functools_reduce()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Pkcs7Sign/
DPkcs7Sign.py96 args = parser.parse_args() variable
126 args.InputFileName = args.InputFile.name
127 args.InputFileBuffer = args.InputFile.read()
128 args.InputFile.close()
133 OutputDir = os.path.dirname(args.OutputFile)
137 args.OutputFileName = args.OutputFile
140 if args.MonotonicCountStr.upper().startswith('0X'):
141 args.MonotonicCountValue = (long)(args.MonotonicCountStr, 16)
143 args.MonotonicCountValue = (long)(args.MonotonicCountStr)
145 args.MonotonicCountValue = (long)(0)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dgetopt.py51 def getopt(args, shortopts, longopts = []): argument
83 while args and args[0].startswith('-') and args[0] != '-':
84 if args[0] == '--':
85 args = args[1:]
87 if args[0].startswith('--'):
88 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
90 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
92 return opts, args
94 def gnu_getopt(args, shortopts, longopts = []): argument
125 while args:
[all …]
Dstring.py148 def substitute(*args, **kws): argument
149 if not args:
152 self, args = args[0], args[1:] # allow the "self" keyword be passed
153 if len(args) > 1:
155 if not args:
158 mapping = _multimap(kws, args[0])
160 mapping = args[0]
178 def safe_substitute(*args, **kws): argument
179 if not args:
182 self, args = args[0], args[1:] # allow the "self" keyword be passed
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dgetopt.py51 def getopt(args, shortopts, longopts = []): argument
83 while args and args[0].startswith('-') and args[0] != '-':
84 if args[0] == '--':
85 args = args[1:]
87 if args[0].startswith('--'):
88 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
90 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
92 return opts, args
94 def gnu_getopt(args, shortopts, longopts = []): argument
125 while args:
[all …]
Dstring.py148 def substitute(self, *args, **kws): argument
149 if len(args) > 1:
151 if not args:
154 mapping = _multimap(kws, args[0])
156 mapping = args[0]
174 def safe_substitute(self, *args, **kws): argument
175 if len(args) > 1:
177 if not args:
180 mapping = _multimap(kws, args[0])
182 mapping = args[0]
[all …]
/device/google/contexthub/firmware/os/core/
DosApi.c36 static void osExpApiEvtqSubscribe(uintptr_t *retValP, va_list args) in osExpApiEvtqSubscribe() argument
38 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqSubscribe()
39 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqSubscribe()
44 static void osExpApiEvtqUnsubscribe(uintptr_t *retValP, va_list args) in osExpApiEvtqUnsubscribe() argument
46 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqUnsubscribe()
47 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqUnsubscribe()
52 static void osExpApiEvtqEnqueue(uintptr_t *retValP, va_list args) in osExpApiEvtqEnqueue() argument
54 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueue()
55 void *evtData = va_arg(args, void*); in osExpApiEvtqEnqueue()
56 uint32_t tid = va_arg(args, uint32_t); in osExpApiEvtqEnqueue()
[all …]
Dnanohub_chre.c62 static void osChreApiGetAppId(uintptr_t *retValP, va_list args) in osChreApiGetAppId() argument
64 uint64_t *appId = va_arg(args, uint64_t *); in osChreApiGetAppId()
69 static void osChreApiGetInstanceId(uintptr_t *retValP, va_list args) in osChreApiGetInstanceId() argument
74 static void osChreApiLogLogv(uintptr_t *retValP, va_list args) in osChreApiLogLogv() argument
77 enum chreLogLevel level = va_arg(args, int /* enums promoted to ints in va_args in C */); in osChreApiLogLogv()
80 const char *str = va_arg(args, const char*); in osChreApiLogLogv()
81 uintptr_t inner = va_arg(args, uintptr_t); in osChreApiLogLogv()
88 static void osChreApiLogLogvOld(uintptr_t *retValP, va_list args) in osChreApiLogLogvOld() argument
91 enum chreLogLevel level = va_arg(args, int /* enums promoted to ints in va_args in C */); in osChreApiLogLogvOld()
94 const char *str = va_arg(args, const char*); in osChreApiLogLogvOld()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Rsa2048Sha256Sign/
DRsa2048Sha256Sign.py79 args = parser.parse_args() variable
109 args.InputFileName = args.InputFile.name
110 args.InputFileBuffer = args.InputFile.read()
111 args.InputFile.close()
116 OutputDir = os.path.dirname(args.OutputFile)
120 args.OutputFileName = args.OutputFile
126 args.PrivateKeyFileName = args.PrivateKeyFile.name
127 args.PrivateKeyFile.close()
141args.PrivateKeyFileName = os.path.join(os.path.dirname(os.path.realpath(RsaToolPath)), TEST_SIGNIN…
142 args.PrivateKeyFile = open(args.PrivateKeyFileName, 'rb')
[all …]
/device/linaro/bootloader/edk2/BaseTools/Scripts/
DBinToPcd.py92 args = parser.parse_args() variable
98 Buffer = args.InputFile.read()
99 args.InputFile.close()
107 if args.PcdName is None:
111 if args.Verbose:
113 elif args.PcdType is None:
119 if args.MaxSize is None:
124 Pcd = ' %s|%s' % (args.PcdName, ByteArray (Buffer))
125 elif args.MaxSize < len(Buffer):
129 Pcd = ' %s|%s|VOID*|%d' % (args.PcdName, ByteArray (Buffer), args.MaxSize)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/framer/framer/
Dfunction.py47 def __init__(self, args): argument
48 self.args = map(Argument, args)
51 return len(self.args)
54 return self.args[i]
61 def __init__(self, args): argument
62 assert len(args) == 0
63 super(NoArgs, self).__init__(args)
71 def __init__(self, args): argument
72 assert len(args) == 1
73 super(OneArg, self).__init__(args)
[all …]
/device/google/cuttlefish/tools/
Dupload_to_gce_and_run.py11 def gcloud_ssh(args): argument
12 command = 'gcloud compute ssh %s@%s ' % (args.user, args.instance)
13 if args.zone:
14 command += '--zone=%s ' % args.zone
18 def upload_artifacts(args): argument
21 os.chdir(args.image_dir)
24 raise OSError('No images found in: %s' + args.image_dir)
28 gcloud_ssh(args) + '-- tar -x -f - --lzop -S',
33 host_package = os.path.join(args.host_dir, 'cvd-host_package.tar.gz')
35 gcloud_ssh(args) + '-- tar -x -z -f - < %s' % host_package,
[all …]
Dupload_via_ssh.py11 def upload_artifacts(args): argument
14 os.chdir(args.image_dir)
17 raise OSError('File not found: ' + args.image_dir + '/*.img')
21 args.user,
22 args.ip),
27 host_package = os.path.join(args.host_dir, 'cvd-host_package.tar.gz')
31 args.user,
32 args.ip,
37 def launch_cvd(args): argument
40 args.user,
[all …]
/device/google/contexthub/util/nanotool/
Dnanotool.cpp162 static bool ValidateArgs(std::unique_ptr<ParsedArgs>& args, const char *name) { in ValidateArgs() argument
163 if (!args->sensors.size() in ValidateArgs()
164 && (args->command == NanotoolCommand::Disable in ValidateArgs()
165 || args->command == NanotoolCommand::Calibrate in ValidateArgs()
166 || args->command == NanotoolCommand::Test in ValidateArgs()
167 || args->command == NanotoolCommand::Poll)) { in ValidateArgs()
174 if (args->command == NanotoolCommand::Flash in ValidateArgs()
175 && args->filename.empty()) { in ValidateArgs()
182 if (args->command == NanotoolCommand::Poll) { in ValidateArgs()
183 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_getopt.py21 def assertError(self, *args, **kwargs): argument
22 self.assertRaises(getopt.GetoptError, *args, **kwargs)
47 opts, args = getopt.do_shorts([], 'a', 'a', [])
49 self.assertEqual(args, [])
51 opts, args = getopt.do_shorts([], 'a1', 'a:', [])
53 self.assertEqual(args, [])
59 opts, args = getopt.do_shorts([], 'a', 'a:', ['1'])
61 self.assertEqual(args, [])
63 opts, args = getopt.do_shorts([], 'a', 'a:', ['1', '2'])
65 self.assertEqual(args, ['2'])
[all …]
/device/generic/goldfish-opengl/android-emu/android/utils/
Ddebug.c29 va_list args; in dprint() local
30 va_start( args, format ); in dprint()
32 vfprintf( stdout, format, args ); in dprint()
34 va_end( args ); in dprint()
41 va_list args; in dprintn() local
42 va_start( args, format ); in dprintn()
43 vfprintf( stdout, format, args ); in dprintn()
44 va_end( args ); in dprintn()
48 dprintnv( const char* format, va_list args ) in dprintnv() argument
50 vfprintf( stdout, format, args ); in dprintnv()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dtexi2html.py337 def write(self, *args): argument
339 text = ''.join(args)
341 print args
552 def do_include(self, args): argument
553 file = args
701 args = [s.strip() for s in text.split(',')]
702 while len(args) < 3: args.append('')
703 node = args[0]
704 file = args[2]
709 args = [s.strip() for s in text.split(',')]
[all …]
/device/linaro/bootloader/arm-trusted-firmware/common/
Dtf_printf.c18 #define get_num_va_args(args, lcount) \ argument
19 (((lcount) > 1) ? va_arg(args, long long int) : \
20 ((lcount) ? va_arg(args, long int) : va_arg(args, int)))
22 #define get_unum_va_args(args, lcount) \ argument
23 (((lcount) > 1) ? va_arg(args, unsigned long long int) : \
24 ((lcount) ? va_arg(args, unsigned long int) : va_arg(args, unsigned int)))
69 void tf_vprintf(const char *fmt, va_list args) in tf_vprintf() argument
86 num = get_num_va_args(args, l_count); in tf_vprintf()
96 str = va_arg(args, char *); in tf_vprintf()
100 unum = (uintptr_t)va_arg(args, void *); in tf_vprintf()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dlog.py19 def _log(self, level, msg, args): argument
24 if args:
25 msg = msg % args
33 def log(self, level, msg, *args): argument
34 self._log(level, msg, args)
36 def debug(self, msg, *args): argument
37 self._log(DEBUG, msg, args)
39 def info(self, msg, *args): argument
40 self._log(INFO, msg, args)
42 def warn(self, msg, *args): argument
[all …]
/device/linaro/hikey/uefi-tools/
Dparse-platforms.py14 if args.platform:
16 value = config.get(args.platform, "EXTRA_FILES")
21 value = config.get(args.platform, "BUILD_ATF")
27 value = config.get(args.platform, "UEFI_BIN")
38 if args.platform:
39 if args.option:
41 value = config.get(args.platform, args.option)
59 args = parser.parse_args() variable
60 if args.config_file:
61 config_filename = args.config_file
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
DStringFormat.cpp23 va_list args; in StringFormatRaw() local
24 va_start(args, format); in StringFormatRaw()
25 auto result = StringFormatWithArgs(format, args); in StringFormatRaw()
26 va_end(args); in StringFormatRaw()
30 std::string StringFormatWithArgs(const char* format, va_list args) { in StringFormatWithArgs() argument
32 StringAppendFormatWithArgs(&result, format, args); in StringFormatWithArgs()
37 va_list args; in StringAppendFormatRaw() local
38 va_start(args, format); in StringAppendFormatRaw()
39 StringAppendFormatWithArgs(string, format, args); in StringAppendFormatRaw()
40 va_end(args); in StringAppendFormatRaw()
[all …]
/device/linaro/hikey/installer/hikey960/
Dmkdtimg85 def write_head_info(head_info, args): argument
86 args.output.write(pack(dt_head_info_fmt,
91 def write_dtb_entry_t(dt_entry, args): argument
92 args.output.write(pack(dt_entry_fmt,
101 def write_padding(args, padding): argument
103 args.output.write('\x00')
105 def write_dtb(args): argument
106 dtb_file = args.dtb
108 if args.compress == True:
114 padding = align_page_size(dtb_offset, args.pagesize)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_print.py48 args = node.children[1:]
49 if len(args) == 1 and parend_expr.match(args[0]):
55 if args and args[-1] == Comma():
56 args = args[:-1]
58 if args and args[0] == pytree.Leaf(token.RIGHTSHIFT, u">>"):
59 assert len(args) >= 2
60 file = args[1].clone()
61 args = args[3:] # Strip a possible comma after the file expression
63 l_args = [arg.clone() for arg in args]

12345678910>>...35