Home
last modified time | relevance | path

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

12345678910>>...426

/external/ltp/testcases/kernel/io/disktest/
Dparse.c47 int fill_cld_args(int argc, char **argv, child_args_t * args) in fill_cld_args() argument
62 pMsg(WARN, args, "Missing argument for perameter.\n"); in fill_cld_args()
68 pMsg(WARN, args, in fill_cld_args()
73 pMsg(WARN, args, in fill_cld_args()
79 pMsg(ERR, args, in fill_cld_args()
87 args->flags |= CLD_FLG_DUMP; in fill_cld_args()
91 pMsg(WARN, args, in fill_cld_args()
96 pMsg(WARN, args, in fill_cld_args()
100 args->seed = (unsigned int)strtol(optarg, NULL, 0); in fill_cld_args()
104 pMsg(WARN, args, in fill_cld_args()
[all …]
Dchildmain.c99 void add_action(test_env_t * env, const child_args_t * args, in add_action() argument
103 if (env->action_list_entry == args->t_kids) { /* we should never get here */ in add_action()
141 void decrement_io_count(const child_args_t * args, test_env_t * env, in decrement_io_count() argument
144 if (args->flags & CLD_FLG_LBA_SYNC) { in decrement_io_count()
179 void update_test_state(child_args_t * args, test_env_t * env, in update_test_state() argument
185 if (args->flags & CLD_FLG_ALLDIE) { in update_test_state()
187 PDBG4(DBUG, args, in update_test_state()
191 args->test_state = SET_STS_FAIL(args->test_state); in update_test_state()
196 PDBG4(DBUG, args, in update_test_state()
200 args->test_state = SET_STS_FAIL(args->test_state); in update_test_state()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_shader_args.c43 set_loc_shader(struct radv_shader_args *args, int idx, uint8_t *sgpr_idx, in set_loc_shader() argument
47 &args->shader_info->user_sgprs_locs.shader_data[idx]; in set_loc_shader()
54 set_loc_shader_ptr(struct radv_shader_args *args, int idx, uint8_t *sgpr_idx) in set_loc_shader_ptr() argument
58 set_loc_shader(args, idx, sgpr_idx, use_32bit_pointers ? 1 : 2); in set_loc_shader_ptr()
62 set_loc_desc(struct radv_shader_args *args, int idx, uint8_t *sgpr_idx) in set_loc_desc() argument
65 &args->shader_info->user_sgprs_locs; in set_loc_desc()
79 static bool needs_view_index_sgpr(struct radv_shader_args *args, in needs_view_index_sgpr() argument
84 if (args->shader_info->needs_multiview_view_index || in needs_view_index_sgpr()
85 …(!args->options->key.vs_common_out.as_es && !args->options->key.vs_common_out.as_ls && args->optio… in needs_view_index_sgpr()
89 …if (args->shader_info->needs_multiview_view_index || (!args->options->key.vs_common_out.as_es && a… in needs_view_index_sgpr()
[all …]
/external/fonttools/Lib/fontTools/cffLib/
Dspecializer.py124 def _flattenBlendArgs(args): argument
126 for arg in args:
138 for op,args in commands:
139 if any(isinstance(arg, list) for arg in args):
140 args = _flattenBlendArgs(args)
141 program.extend(args)
157 def rmoveto(args): argument
158 if len(args) != 2: raise ValueError(args)
159 yield ('rmoveto', args)
161 def hmoveto(args): argument
[all …]
/external/python/cpython2/Lib/bsddb/
Ddbobj.py39 def __init__(self, *args, **kwargs): argument
40 self._cobj = db.DBEnv(*args, **kwargs)
42 def close(self, *args, **kwargs): argument
43 return self._cobj.close(*args, **kwargs)
44 def open(self, *args, **kwargs): argument
45 return self._cobj.open(*args, **kwargs)
46 def remove(self, *args, **kwargs): argument
47 return self._cobj.remove(*args, **kwargs)
48 def set_shm_key(self, *args, **kwargs): argument
49 return self._cobj.set_shm_key(*args, **kwargs)
[all …]
/external/llvm-project/lldb/unittests/Utility/
DArgsTest.cpp21 Args args; in TEST() local
22 args.SetCommandString("arg"); in TEST()
23 EXPECT_EQ(1u, args.GetArgumentCount()); in TEST()
24 EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg"); in TEST()
28 Args args; in TEST() local
29 args.SetCommandString("\"arg with space\""); in TEST()
30 EXPECT_EQ(1u, args.GetArgumentCount()); in TEST()
31 EXPECT_STREQ(args.GetArgumentAtIndex(0), "arg with space"); in TEST()
35 Args args; in TEST() local
36 args.SetCommandString("arg\\ with\\ space"); in TEST()
[all …]
DOptionsWithRawTest.cpp18 OptionsWithRaw args(""); in TEST() local
19 ASSERT_FALSE(args.HasArgs()); in TEST()
20 ASSERT_STREQ(args.GetRawPart().c_str(), ""); in TEST()
25 OptionsWithRaw args(" "); in TEST() local
26 ASSERT_FALSE(args.HasArgs()); in TEST()
27 ASSERT_STREQ(args.GetRawPart().c_str(), " "); in TEST()
32 OptionsWithRaw args(" "); in TEST() local
33 ASSERT_FALSE(args.HasArgs()); in TEST()
34 ASSERT_STREQ(args.GetRawPart().c_str(), " "); in TEST()
39 OptionsWithRaw args("-foo bar"); in TEST() local
[all …]
/external/zstd/contrib/pzstd/test/
DOptionsTest.cpp84 std::array<const char *, sizeof...(Args) + 1> makeArray(Args... args) { in makeArray() argument
85 return {{nullptr, args...}}; in makeArray()
91 auto args = makeArray("--processes", "5", "-o", "x", "y", "-f"); in TEST() local
92 EXPECT_SUCCESS(options.parse(args.size(), args.data())); in TEST()
99 auto args = makeArray("-p", "1", "input", "-19"); in TEST() local
100 EXPECT_SUCCESS(options.parse(args.size(), args.data())); in TEST()
107 auto args = in TEST() local
109 EXPECT_SUCCESS(options.parse(args.size(), args.data())); in TEST()
116 auto args = makeArray("--processes", "100", "hello.zst", "--decompress", in TEST() local
118 EXPECT_SUCCESS(options.parse(args.size(), args.data())); in TEST()
[all …]
/external/virglrenderer/tests/
Dtest_fuzzer_formats.c104 struct virgl_renderer_resource_create_args args; in test_format_wrong_size() local
105 args.handle = 10; in test_format_wrong_size()
106 args.target = 3; in test_format_wrong_size()
107 args.format = 10; in test_format_wrong_size()
108 args.bind = 10; in test_format_wrong_size()
109 args.width = 2; in test_format_wrong_size()
110 args.height = 0; in test_format_wrong_size()
111 args.depth = 0; in test_format_wrong_size()
112 args.array_size = 0; in test_format_wrong_size()
113 args.last_level = 0; in test_format_wrong_size()
[all …]
/external/grpc-grpc/test/core/iomgr/
Dresolve_address_test.cc50 void args_init(args_struct* args) { in args_init() argument
51 gpr_event_init(&args->ev); in args_init()
52 args->pollset = static_cast<grpc_pollset*>(gpr_zalloc(grpc_pollset_size())); in args_init()
53 grpc_pollset_init(args->pollset, &args->mu); in args_init()
54 args->pollset_set = grpc_pollset_set_create(); in args_init()
55 grpc_pollset_set_add_pollset(args->pollset_set, args->pollset); in args_init()
56 args->addrs = nullptr; in args_init()
57 gpr_atm_rel_store(&args->done_atm, 0); in args_init()
60 void args_finish(args_struct* args) { in args_finish() argument
61 GPR_ASSERT(gpr_event_wait(&args->ev, test_deadline())); in args_finish()
[all …]
/external/python/cpython2/Modules/_ctypes/libffi/
Dmsvcc.sh46 args="-nologo -W3"
72 args="$args -Od"
82 args="$args"
91 args="$args -O2"
94 args="$args $1"
104 args="$args -Zi"
109 args="$args -RTC1"
115 args="$args -c"
116 args="$(echo $args | sed 's%/Fe%/Fo%g')"
123 args="$args -D${name}='$value'"
[all …]
/external/perfetto/ui/src/common/
Dactions.ts124 navigate(state: StateDraft, args: {route: string}): void {
125 state.route = args.route;
128 openTraceFromFile(state: StateDraft, args: {file: File}): void {
134 source: {type: 'FILE', file: args.file},
139 openTraceFromBuffer(state: StateDraft, args: PostedTrace): void {
145 source: {type: 'ARRAY_BUFFER', ...args},
150 openTraceFromUrl(state: StateDraft, args: {url: string}): void {
156 source: {type: 'URL', url: args.url},
172 openVideoFromFile(state: StateDraft, args: {file: File}): void {
173 state.video = URL.createObjectURL(args.file);
[all …]
/external/skia/tools/calmbench/
Dcalmbench.py118 args = parser.parse_args()
119 if not args.basearg:
120 args.basearg = args.extraarg
122 return args
125 def nano_path(args, branch): argument
126 return args.writedir + '/nanobench_' + branch
129 def compile_branch(args, branch): argument
130 print("Compiling branch %s" % args.branch)
134 ['ninja', '-C', args.ninjadir, 'nanobench'],
135 ['cp', args.ninjadir + '/nanobench', nano_path(args, branch)]
[all …]
/external/skqp/tools/calmbench/
Dcalmbench.py116 args = parser.parse_args()
117 if not args.basearg:
118 args.basearg = args.extraarg
120 return args
123 def nano_path(args, branch): argument
124 return args.writedir + '/nanobench_' + branch
127 def compile_branch(args, branch): argument
128 print "Compiling branch %s" % args.branch
132 ['ninja', '-C', args.ninjadir, 'nanobench'],
133 ['cp', args.ninjadir + '/nanobench', nano_path(args, branch)]
[all …]
/external/zstd/tests/gzip/
Dhelp-version.sh87 args=
93 eval "env \$i $args --help > h-\$i " || fail=1
94 eval "env \$i $args --version >/dev/null" || fail=1
102 eval "env \$i $args --help >/dev/full 2>/dev/null" && fail=1
103 eval "env \$i $args --version >/dev/full 2>/dev/null" && fail=1
131 comm_setup () { args="$tmp_in $tmp_in"; }
132 csplit_setup () { args="$tmp_in //"; }
133 cut_setup () { args='-f 1'; }
134 join_setup () { args="$tmp_in $tmp_in"; }
135 tr_setup () { args='a a'; }
[all …]
/external/libffi/
Dmsvcc.sh46 args="-nologo -W3"
67 args="-help"
98 args="$args -Od"
108 args="$args"
117 args="$args -O2"
120 args="$args $1"
130 args="$args -Zi"
135 args="$args -RTC1"
150 args="$args -c"
151 args="$(echo $args | sed 's%/Fe%/Fo%g')"
[all …]
/external/python/cpython2/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 …]
Dglmodule.c63 gl_qread(PyObject *self, PyObject *args) in gl_qread() argument
92 gl_varray(PyObject *self, PyObject *args) in gl_varray() argument
99 if (!PyArg_GetObject(args, 1, 0, &v)) in gl_varray()
171 gl_nvarray(PyObject *self, PyObject *args) in gl_nvarray() argument
173 return gen_nvarray(args, 0); in gl_nvarray()
178 gl_vnarray(PyObject *self, PyObject *args) in gl_vnarray() argument
180 return gen_nvarray(args, 1); in gl_vnarray()
187 gen_nvarray(PyObject *args, int inorm) in gen_nvarray() argument
194 if (!PyArg_GetObject(args, 1, 0, &v)) in gen_nvarray()
236 gl_nurbssurface(PyObject *self, PyObject *args) in gl_nurbssurface() argument
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dir_builder_mixin.h38 llvm::Value* Add(Args&&... args) { in Add() argument
39 return mixin_builder()->CreateAdd(std::forward<Args>(args)...); in Add()
43 llvm::LoadInst* AlignedLoad(Args&&... args) { in AlignedLoad() argument
44 return mixin_builder()->CreateAlignedLoad(std::forward<Args>(args)...); in AlignedLoad()
48 llvm::StoreInst* AlignedStore(Args&&... args) { in AlignedStore() argument
49 return mixin_builder()->CreateAlignedStore(std::forward<Args>(args)...); in AlignedStore()
53 llvm::AllocaInst* Alloca(Args&&... args) { in Alloca() argument
54 return mixin_builder()->CreateAlloca(std::forward<Args>(args)...); in Alloca()
58 llvm::Value* And(Args&&... args) { in And() argument
59 return mixin_builder()->CreateAnd(std::forward<Args>(args)...); in And()
[all …]
/external/selinux/python/semanage/
Dsemanage159 def handle_opts(args, dict, target_key):
164 for k in args.__dict__.keys():
166 if k in dict[target_key][0] and args.__dict__[k]:
172 for k in args.__dict__.keys():
174 if k in dict[target_key][1] and not args.__dict__[k]:
181 def handleLogin(args):
185 handle_opts(args, login_args, args.action)
187 OBJECT = object_dict['login'](args)
189 if args.action == "add":
190 OBJECT.add(args.login, args.seuser, args.range)
[all …]
/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h30 code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in code_replace() argument
54 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 0, 0, argsbuf); in code_replace()
55 if (!args) { in code_replace()
61 if (args[0]) { in code_replace()
62 if (PyFloat_Check(args[0])) { in code_replace()
67 co_argcount = _PyLong_AsInt(args[0]); in code_replace()
75 if (args[1]) { in code_replace()
76 if (PyFloat_Check(args[1])) { in code_replace()
81 co_posonlyargcount = _PyLong_AsInt(args[1]); in code_replace()
89 if (args[2]) { in code_replace()
[all …]
/external/ltp/testcases/kernel/hotplug/memory_hotplug/
Dcommands.c141 static size_t get_scaled_value(char *args, char *what) in get_scaled_value() argument
144 size_t size = size_kmgp(args); in get_scaled_value()
155 static int get_range(char *args, range_t * range, char **nextarg) in get_range() argument
158 if (isdigit(*args)) { in get_range()
161 args = strtok_r(args, whitespace, &nextarg); in get_range()
162 range->offset = get_scaled_value(args, "offset"); in get_range()
165 args = nextarg + strspn(nextarg, whitespace); in get_range()
170 if (*args != '\0') { in get_range()
171 args = strtok_r(args, whitespace, &nextarg); in get_range()
172 if (*args != '*') { in get_range()
[all …]
/external/python/cpython2/Lib/plat-mac/
Dfindertools.py139 args = {}
143 args['----'] = aeobj_01
144 args["data"] = comment
145 _reply, args, attrs = finder.send("core", "setd", args, attrs)
146 if 'errn' in args:
147 raise Error, aetools.decodeerror(args)
148 if '----' in args:
149 return args['----']
153 args = {}
157 args['----'] = aeobj_01
[all …]
/external/zstd/tests/fuzz/
Dfuzz.py130 def targets_parser(args, description): argument
131 parser = argparse.ArgumentParser(prog=args.pop(0), description=description)
137 args, extra = parser.parse_known_args(args)
138 args.extra = extra
140 args.TARGET = parse_targets(args.TARGET)
142 return args
145 def parse_env_flags(args, flags): argument
165 args.asan = set_sanitizer('address', args.asan, san, nosan)
166 args.msan = set_sanitizer('memory', args.msan, san, nosan)
167 args.ubsan = set_sanitizer('undefined', args.ubsan, san, nosan)
[all …]
/external/pigweed/pw_arduino_build/py/pw_arduino_build/
D__main__.py60 def list_menu_options_command(args, builder): argument
62 builder.select_board(args.board)
80 def show_command_print_string_list(args, string_list: List[str]): argument
82 join_token = "\n" if args.delimit_with_newlines else " "
86 def show_command_print_flag_string(args, flag_string): argument
87 if args.delimit_with_newlines:
103 def run_command_lines(args, command_lines: List[str]): argument
105 if not args.quiet:
125 def run_command(args, builder): argument
131 if args.run_prebuilds:
[all …]

12345678910>>...426