Home
last modified time | relevance | path

Searched refs:cmds (Results 1 – 25 of 200) sorted by relevance

12345678

/external/clang/bindings/python/tests/cindex/
Dtest_cdb.py32 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
33 assert len(cmds) != 0
38 cmds = cdb.getAllCompileCommands()
39 assert len(cmds) == 3
55 for i in range(len(cmds)):
56 assert cmds[i].directory == expected[i]['wd']
57 assert cmds[i].filename == expected[i]['file']
58 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
65 cmds = cdb.getCompileCommands(file)
66 assert len(cmds) == 1
[all …]
/external/scapy/scapy/
Dautorun.py41 def autorun_commands(cmds, my_globals=None, ignore_globals=None, verb=0): argument
53 cmds = cmds.splitlines()
54 cmds.append("") # ensure we finish multi-line commands
55 cmds.reverse()
63 l = cmds.pop()
71 if len(cmds) <= 1:
79 def autorun_get_interactive_session(cmds, **kargs): argument
93 res = autorun_commands(cmds, **kargs)
101 def autorun_get_text_interactive_session(cmds, **kargs): argument
105 s,res = autorun_get_interactive_session(cmds, **kargs)
[all …]
/external/vboot_reference/cgpt/
Dcgpt.c30 } cmds[] = { variable
49 for (i = 0; i < sizeof(cmds)/sizeof(cmds[0]); ++i) { in Usage()
50 printf(" %-15s %s\n", cmds[i].name, cmds[i].comment); in Usage()
76 for (i = 0; command && i < sizeof(cmds)/sizeof(cmds[0]); ++i) { in main()
78 if (0 == strcmp(cmds[i].name, command)) { in main()
84 else if (0 == strncmp(cmds[i].name, command, strlen(command))) { in main()
91 return cmds[match_index].fp(argc, argv); in main()
/external/wayland-protocols/
Dwayland_protocol_codegen_test.go99 cmds []string
110 cmds: []string{
125 cmds: []string{
141 cmds: []string{
156 cmds: []string{
172 cmds: []string{
187 cmds: []string{
203 cmds: []string{
218 cmds: []string{
234 cmds: []string{
[all …]
/external/cronet/third_party/brotli/enc/
Dblock_splitter.c41 static size_t CountLiterals(const Command* cmds, const size_t num_commands) { in CountLiterals() argument
46 total_length += cmds[i].insert_len_; in CountLiterals()
51 static void CopyLiteralsToByteArray(const Command* cmds, in CopyLiteralsToByteArray() argument
61 size_t insert_len = cmds[i].insert_len_; in CopyLiteralsToByteArray()
73 from_pos = (from_pos + insert_len + CommandCopyLen(&cmds[i])) & mask; in CopyLiteralsToByteArray()
126 const Command* cmds, in BrotliSplitBlock() argument
136 size_t literals_count = CountLiterals(cmds, num_commands); in BrotliSplitBlock()
140 CopyLiteralsToByteArray(cmds, num_commands, data, pos, mask, literals); in BrotliSplitBlock()
164 insert_and_copy_codes[i] = cmds[i].cmd_prefix_; in BrotliSplitBlock()
184 const Command* cmd = &cmds[i]; in BrotliSplitBlock()
[all …]
/external/mesa3d/src/freedreno/drm/
Dmsm_ringbuffer.c116 DECLARE_ARRAY(struct msm_cmd *, cmds);
312 struct drm_msm_gem_submit_cmd cmds[nr_cmds]; in msm_submit_flush() local
329 cmds[i].type = MSM_SUBMIT_CMD_IB_TARGET_BUF; in msm_submit_flush()
330 cmds[i].submit_idx = in msm_submit_flush()
332 cmds[i].submit_offset = msm_ring->offset; in msm_submit_flush()
333 cmds[i].size = offset_bytes(ring->cur, ring->start); in msm_submit_flush()
334 cmds[i].pad = 0; in msm_submit_flush()
335 cmds[i].nr_relocs = msm_ring->cmd->nr_relocs; in msm_submit_flush()
336 cmds[i].relocs = VOID2U64(relocs); in msm_submit_flush()
342 cmds[i].type = MSM_SUBMIT_CMD_BUF; in msm_submit_flush()
[all …]
Dmsm_ringbuffer_sp.c94 DECLARE_ARRAY(struct msm_cmd_sp, cmds);
241 struct drm_msm_gem_submit_cmd cmds[primary->u.nr_cmds]; in msm_submit_sp_flush() local
244 cmds[i].type = MSM_SUBMIT_CMD_BUF; in msm_submit_sp_flush()
245 cmds[i].submit_idx = msm_submit_append_bo(msm_submit, in msm_submit_sp_flush()
246 primary->u.cmds[i].ring_bo); in msm_submit_sp_flush()
247 cmds[i].submit_offset = primary->offset; in msm_submit_sp_flush()
248 cmds[i].size = primary->u.cmds[i].size; in msm_submit_sp_flush()
249 cmds[i].pad = 0; in msm_submit_sp_flush()
250 cmds[i].nr_relocs = 0; in msm_submit_sp_flush()
265 req.cmds = VOID2U64(cmds), in msm_submit_sp_flush()
[all …]
/external/igt-gpu-tools/tools/null_state_gen/
Dintel_batchbuffer.c104 batch->cmds = calloc(1, sizeof(struct bb_area)); in intel_batchbuffer_create()
105 if (batch->cmds == NULL) { in intel_batchbuffer_create()
112 free(batch->cmds); in intel_batchbuffer_create()
138 for (i = 0; i < batch->cmds->num_items; i++) in reloc_exists()
139 if ((batch->cmds->item[i].type == RELOC || in reloc_exists()
140 batch->cmds->item[i].type == RELOC_STATE) && in reloc_exists()
154 bb_area_align(batch->cmds, align); in intel_batch_cmd_align()
164 return bb_area_items(batch->cmds); in intel_batch_num_cmds()
174 return bb_area_get(batch->cmds, i); in intel_batch_cmd_get()
236 batch->cmds_end_offset = bb_area_used(batch->cmds) - 4; in intel_batch_relocate_state()
[all …]
Dintel_null_state_gen.c51 unsigned long cmds; in print_state() local
63 for (i = 0; i < batch->cmds->num_items; i++) { in print_state()
83 cmds = i + 1; in print_state()
101 fprintf(stderr, "Commands %lu (%lu bytes)\n", cmds, cmds * 4); in print_state()
103 fprintf(stderr, "Total %lu (%lu bytes)\n", batch->cmds->num_items, batch->cmds->num_items * 4); in print_state()
Dintel_batchbuffer.h64 struct bb_area *cmds; member
75 #define OUT_BATCH(d) bb_area_emit(batch->cmds, d, CMD, #d)
76 #define OUT_BATCH_STATE_OFFSET(d) bb_area_emit(batch->cmds, d, STATE_OFFSET, #d)
77 #define OUT_RELOC(batch, read_domain, write_domain, d) bb_area_emit(batch->cmds, d, RELOC, #d)
78 #define OUT_RELOC_STATE(batch, read_domain, write_domain, d) bb_area_emit(batch->cmds, d, RELOC_STA…
/external/skia/modules/pathkit/tests/
Dsvg.spec.js8 let cmds = path.toCmds();
9 expect(cmds).toBeTruthy();
12 expect(cmds.length).toBe(6);
13 expect(cmds).toEqual([[PathKit.MOVE_VERB, 205, 5],
26 let cmds = [[PathKit.MOVE_VERB, 205, 5],
32 let path = PathKit.FromCmds(cmds);
44 let cmds = [[PathKit.MOVE_VERB, "0x15e80300", "0x400004dc"], // 9.37088e-26f, 2.0003f
50 let path = PathKit.FromCmds(cmds);
/external/deqp-deps/amber/src/vkscript/
Dcommand_parser_test.cc40 auto& cmds = cp.Commands(); in TEST_F() local
41 ASSERT_EQ(3U, cmds.size()); in TEST_F()
42 ASSERT_TRUE(cmds[0]->IsDrawRect()); in TEST_F()
44 auto* draw_cmd = cmds[0]->AsDrawRect(); in TEST_F()
52 ASSERT_TRUE(cmds[1]->IsClearColor()); in TEST_F()
54 auto* clear_cmd = cmds[1]->AsClearColor(); in TEST_F()
60 ASSERT_TRUE(cmds[2]->IsClear()); in TEST_F()
78 auto& cmds = cp.Commands(); in TEST_F() local
79 ASSERT_EQ(1U, cmds.size()); in TEST_F()
80 ASSERT_TRUE(cmds[0]->IsDrawRect()); in TEST_F()
[all …]
/external/brotli/c/enc/
Dblock_splitter.c40 static size_t CountLiterals(const Command* cmds, const size_t num_commands) { in CountLiterals() argument
45 total_length += cmds[i].insert_len_; in CountLiterals()
50 static void CopyLiteralsToByteArray(const Command* cmds, in CopyLiteralsToByteArray() argument
60 size_t insert_len = cmds[i].insert_len_; in CopyLiteralsToByteArray()
72 from_pos = (from_pos + insert_len + CommandCopyLen(&cmds[i])) & mask; in CopyLiteralsToByteArray()
123 const Command* cmds, in BrotliSplitBlock() argument
133 size_t literals_count = CountLiterals(cmds, num_commands); in BrotliSplitBlock()
137 CopyLiteralsToByteArray(cmds, num_commands, data, pos, mask, literals); in BrotliSplitBlock()
155 insert_and_copy_codes[i] = cmds[i].cmd_prefix_; in BrotliSplitBlock()
175 const Command* cmd = &cmds[i]; in BrotliSplitBlock()
/external/skia/modules/pathkit/
Dpathkit_wasm_bindings.cpp53 JSArray cmds = emscripten::val::array(); in ToCmds() local
81 cmds.call<void>("push", cmd); in ToCmds()
83 return cmds; in ToCmds()
97 const auto* cmds = reinterpret_cast<const float*>(cptr); in FromCmds() local
109 switch (sk_float_floor2int(cmds[i++])) { in FromCmds()
112 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
117 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
122 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
123 x2 = cmds[i++], y2 = cmds[i++]; in FromCmds()
128 x1 = cmds[i++], y1 = cmds[i++]; in FromCmds()
[all …]
/external/trace-cmd/tracecmd/
Dtrace-cmd.bash51 local cmds=$(trace-cmd $type -h 2>/dev/null|grep "^ *-" | \
53 COMPREPLY=( $(compgen -W "${cmds}" -- "${cur}") )
83 local cmds=$(trace-cmd list -h |egrep "^ {10}-" | \
85 COMPREPLY=( $(compgen -W "${cmds}" -- "${cur}") )
97 local cmds=$(trace-cmd list -h |egrep "^ {12}-" | \
99 COMPREPLY=( $(compgen -W "${cmds}" -- "${cur}") )
263 local cmds=( $(trace-cmd --help 2>/dev/null | \
266 for cmd in ${cmds[@]}; do
303 local cmds=$(trace-cmd --help 2>/dev/null | \
305 COMPREPLY=( $(compgen -W "${cmds}" -- "${cur}") )
/external/skia/modules/canvaskit/tests/
Dpath_test.js70 const cmds = path.toCmds(); constant
71 expect(cmds).toBeTruthy();
74 expect(cmds).toEqual(Float32Array.of(
93 const cmds = path.toCmds(); constant
94 expect(cmds).toBeTruthy();
95 expect(cmds).toEqual(Float32Array.of(
107 const cmds = [CanvasKit.MOVE_VERB, 205, 5, variable
113 const path = CanvasKit.Path.MakeFromCmds(cmds);
141 let cmds = path.toCmds();
142 expect(cmds).toEqual(Float32Array.of(
[all …]
/external/libdrm/freedreno/msm/
Dmsm_ringbuffer.c67 DECLARE_ARRAY(struct drm_msm_gem_submit_cmd, cmds);
75 DECLARE_ARRAY(struct msm_cmd *, cmds);
280 cmd = &msm_ring->submit.cmds[i]; in get_cmd()
292 i = APPEND(&msm_ring->submit, cmds); in get_cmd()
293 APPEND(msm_ring, cmds); in get_cmd()
294 msm_ring->cmds[i] = target_cmd; in get_cmd()
295 cmd = &msm_ring->submit.cmds[i]; in get_cmd()
344 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in flush_reset()
404 struct drm_msm_gem_submit_cmd *cmd = &msm_ring->submit.cmds[i]; in dump_submit()
444 struct msm_cmd *msm_cmd = msm_ring->cmds[i]; in handle_stateobj_relocs()
[all …]
/external/bpftool/src/
Dmain.c121 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
130 if (argc < 1 && cmds[0].func) in cmd_select()
131 return cmds[0].func(argc, argv); in cmd_select()
133 for (i = 0; cmds[i].cmd; i++) { in cmd_select()
134 if (is_prefix(*argv, cmds[i].cmd)) { in cmd_select()
135 if (!cmds[i].func) { in cmd_select()
137 cmds[i].cmd); in cmd_select()
140 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
259 static const struct cmd cmds[] = { variable
364 err = cmd_select(cmds, n_argc, n_argv, do_help); in do_batch()
[all …]
/external/cronet/third_party/icu/source/python/icutools/databuilder/renderers/
Dmakefile.py63 if len(rule.cmds) == 0:
69 RULE_LINES = "\n".join("\t%s" % cmd for cmd in rule.cmds)
100 cmds = [
118 cmds = ["cp %s %s" % (
163 cmds = [
178 cmds = []
196 cmds = [cmd]
207 cmds = [cmd]
240 cmds = [cmd]
/external/icu/icu4c/source/python/icutools/databuilder/renderers/
Dmakefile.py63 if len(rule.cmds) == 0:
69 RULE_LINES = "\n".join("\t%s" % cmd for cmd in rule.cmds)
100 cmds = [
118 cmds = ["cp %s %s" % (
163 cmds = [
178 cmds = []
196 cmds = [cmd]
207 cmds = [cmd]
240 cmds = [cmd]
/external/selinux/sandbox/
Dsandbox384 self.__options, cmds = parser.parse_args()
405 if len(cmds) > 0:
417 if len(cmds) == 0:
419 cmds[0] = fullpath(cmds[0])
420 if not os.access(cmds[0], os.X_OK):
421 self.usage(_("%s is not an executable") % cmds[0])
423 self.__cmds = cmds
425 for f in cmds:
465 cmds = [SEUNSHARE, "-Z", self.__execcon]
467 cmds.append('-C')
[all …]
/external/iproute2/tipc/
Dpeer.c67 const struct cmd cmds[] = { in cmd_peer_rm() local
72 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer_rm()
87 const struct cmd cmds[] = { in cmd_peer() local
92 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_peer()
Dmedia.c146 const struct cmd cmds[] = { in cmd_media_get() local
153 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_get()
227 const struct cmd cmds[] = { in cmd_media_set() local
234 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media_set()
252 const struct cmd cmds[] = { in cmd_media() local
259 return run_cmd(nlh, cmd, cmds, cmdl, NULL); in cmd_media()
/external/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_allocator_module/
Dtest_per_cpu_allocator_module.c34 static const struct alloc_cmd cmds[] = { variable
84 #define NR_CMDS ARRAY_SIZE(cmds)
140 verify_area(ptrs[cmdno], cmds[cmdno].size, cmdno); in free_cmd()
150 const struct alloc_cmd *cmd = &cmds[i]; in run_test()
169 if (cmds[j].marker == cmd->marker) in run_test()
/external/igt-gpu-tools/tests/i915/
Dgem_exec_parse.c75 static uint64_t __exec_batch_patched(int fd, uint32_t cmd_bo, uint32_t *cmds, in __exec_batch_patched() argument
85 gem_write(fd, cmd_bo, 0, cmds, size); in __exec_batch_patched()
116 static void exec_batch_patched(int fd, uint32_t cmd_bo, uint32_t *cmds, in exec_batch_patched() argument
120 igt_assert_eq(__exec_batch_patched(fd, cmd_bo, cmds, in exec_batch_patched()
125 static int __exec_batch(int fd, uint32_t cmd_bo, uint32_t *cmds, in __exec_batch() argument
131 gem_write(fd, cmd_bo, 0, cmds, size); in __exec_batch()
144 #define exec_batch(fd, bo, cmds, sz, ring, expected) \ argument
145 igt_assert_eq(__exec_batch(fd, bo, cmds, sz, ring), expected)
147 static void exec_split_batch(int fd, uint32_t *cmds, in exec_split_batch() argument
166 gem_write(fd, cmd_bo, actual_start_offset, cmds, size); in exec_split_batch()
[all …]

12345678