Home
last modified time | relevance | path

Searched refs:cmds (Results 1 - 25 of 261) sorted by relevance

1234567891011

/kernel/linux/linux-6.6/tools/lib/subcmd/
H A Dhelp.c16 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len) in add_cmdname() argument
26 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
27 cmds->names[cmds->cnt++] = ent; in add_cmdname()
30 void clean_cmdnames(struct cmdnames *cmds) in clean_cmdnames() argument
34 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames()
35 zfree(&cmds->names[i]); in clean_cmdnames()
36 zfree(&cmds in clean_cmdnames()
48 uniq(struct cmdnames *cmds) uniq() argument
72 exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) exclude_cmds() argument
128 pretty_print_string_list(struct cmdnames *cmds, int longest) pretty_print_string_list() argument
179 list_commands_in_dir(struct cmdnames *cmds, const char *path, const char *prefix) list_commands_in_dir() argument
[all...]
H A Dhelp.h26 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len);
27 void clean_cmdnames(struct cmdnames *cmds);
29 void uniq(struct cmdnames *cmds);
31 void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
/kernel/linux/linux-5.10/tools/lib/subcmd/
H A Dhelp.c16 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len) in add_cmdname() argument
24 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname()
25 cmds->names[cmds->cnt++] = ent; in add_cmdname()
28 void clean_cmdnames(struct cmdnames *cmds) in clean_cmdnames() argument
32 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames()
33 zfree(&cmds->names[i]); in clean_cmdnames()
34 zfree(&cmds in clean_cmdnames()
46 uniq(struct cmdnames *cmds) uniq() argument
70 exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) exclude_cmds() argument
116 pretty_print_string_list(struct cmdnames *cmds, int longest) pretty_print_string_list() argument
167 list_commands_in_dir(struct cmdnames *cmds, const char *path, const char *prefix) list_commands_in_dir() argument
[all...]
H A Dhelp.h26 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len);
27 void clean_cmdnames(struct cmdnames *cmds);
29 void uniq(struct cmdnames *cmds);
31 void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes);
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/
H A Dsaa7164-cmd.c18 if (dev->cmds[i].inuse == 0) { in saa7164_cmd_alloc_seqno()
19 dev->cmds[i].inuse = 1; in saa7164_cmd_alloc_seqno()
20 dev->cmds[i].signalled = 0; in saa7164_cmd_alloc_seqno()
21 dev->cmds[i].timeout = 0; in saa7164_cmd_alloc_seqno()
22 ret = dev->cmds[i].seqno; in saa7164_cmd_alloc_seqno()
34 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_free_seqno()
35 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_free_seqno()
36 dev->cmds[seqno].inuse = 0; in saa7164_cmd_free_seqno()
37 dev->cmds[seqno].signalled = 0; in saa7164_cmd_free_seqno()
38 dev->cmds[seqn in saa7164_cmd_free_seqno()
178 u32 cmds; saa7164_cmd_set() local
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/saa7164/
H A Dsaa7164-cmd.c18 if (dev->cmds[i].inuse == 0) { in saa7164_cmd_alloc_seqno()
19 dev->cmds[i].inuse = 1; in saa7164_cmd_alloc_seqno()
20 dev->cmds[i].signalled = 0; in saa7164_cmd_alloc_seqno()
21 dev->cmds[i].timeout = 0; in saa7164_cmd_alloc_seqno()
22 ret = dev->cmds[i].seqno; in saa7164_cmd_alloc_seqno()
34 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_free_seqno()
35 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_free_seqno()
36 dev->cmds[seqno].inuse = 0; in saa7164_cmd_free_seqno()
37 dev->cmds[seqno].signalled = 0; in saa7164_cmd_free_seqno()
38 dev->cmds[seqn in saa7164_cmd_free_seqno()
178 u32 cmds; saa7164_cmd_set() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Droce_gid_mgmt.c69 struct netdev_event_work_cmd cmds[ROCE_NETDEV_CALLBACK_SZ]; member
625 for (i = 0; i < ARRAY_SIZE(work->cmds) && work->cmds[i].cb; i++) { in netdevice_event_work_handler()
626 ib_enum_all_roce_netdevs(work->cmds[i].filter, in netdevice_event_work_handler()
627 work->cmds[i].filter_ndev, in netdevice_event_work_handler()
628 work->cmds[i].cb, in netdevice_event_work_handler()
629 work->cmds[i].ndev); in netdevice_event_work_handler()
630 dev_put(work->cmds[i].ndev); in netdevice_event_work_handler()
631 dev_put(work->cmds[i].filter_ndev); in netdevice_event_work_handler()
637 static int netdevice_queue_work(struct netdev_event_work_cmd *cmds, in netdevice_queue_work() argument
674 ndev_event_unlink(struct netdev_notifier_changeupper_info *changeupper_info, struct netdev_event_work_cmd *cmds) ndev_event_unlink() argument
694 ndev_event_link(struct net_device *event_ndev, struct netdev_notifier_changeupper_info *changeupper_info, struct netdev_event_work_cmd *cmds) ndev_event_link() argument
722 netdevice_event_changeupper(struct net_device *event_ndev, struct netdev_notifier_changeupper_info *changeupper_info, struct netdev_event_work_cmd *cmds) netdevice_event_changeupper() argument
755 struct netdev_event_work_cmd cmds[ROCE_NETDEV_CALLBACK_SZ] = { {NULL} }; netdevice_event() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Droce_gid_mgmt.c69 struct netdev_event_work_cmd cmds[ROCE_NETDEV_CALLBACK_SZ]; member
626 for (i = 0; i < ARRAY_SIZE(work->cmds) && work->cmds[i].cb; i++) { in netdevice_event_work_handler()
627 ib_enum_all_roce_netdevs(work->cmds[i].filter, in netdevice_event_work_handler()
628 work->cmds[i].filter_ndev, in netdevice_event_work_handler()
629 work->cmds[i].cb, in netdevice_event_work_handler()
630 work->cmds[i].ndev); in netdevice_event_work_handler()
631 dev_put(work->cmds[i].ndev); in netdevice_event_work_handler()
632 dev_put(work->cmds[i].filter_ndev); in netdevice_event_work_handler()
638 static int netdevice_queue_work(struct netdev_event_work_cmd *cmds, in netdevice_queue_work() argument
675 ndev_event_unlink(struct netdev_notifier_changeupper_info *changeupper_info, struct netdev_event_work_cmd *cmds) ndev_event_unlink() argument
695 ndev_event_link(struct net_device *event_ndev, struct netdev_notifier_changeupper_info *changeupper_info, struct netdev_event_work_cmd *cmds) ndev_event_link() argument
723 netdevice_event_changeupper(struct net_device *event_ndev, struct netdev_notifier_changeupper_info *changeupper_info, struct netdev_event_work_cmd *cmds) netdevice_event_changeupper() argument
756 struct netdev_event_work_cmd cmds[ROCE_NETDEV_CALLBACK_SZ] = { {NULL} }; netdevice_event() local
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Dhelp-unknown-cmd.c32 static int add_cmd_list(struct cmdnames *cmds, struct cmdnames *old) in add_cmd_list() argument
34 unsigned int i, nr = cmds->cnt + old->cnt; in add_cmd_list()
37 if (nr > cmds->alloc) { in add_cmd_list()
39 if (alloc_nr(cmds->alloc) < nr) in add_cmd_list()
40 cmds->alloc = nr; in add_cmd_list()
42 cmds->alloc = alloc_nr(cmds->alloc); in add_cmd_list()
43 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds in add_cmd_list()
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dhelp-unknown-cmd.c32 static int add_cmd_list(struct cmdnames *cmds, struct cmdnames *old) in add_cmd_list() argument
34 unsigned int i, nr = cmds->cnt + old->cnt; in add_cmd_list()
37 if (nr > cmds->alloc) { in add_cmd_list()
39 if (alloc_nr(cmds->alloc) < nr) in add_cmd_list()
40 cmds->alloc = nr; in add_cmd_list()
42 cmds->alloc = alloc_nr(cmds->alloc); in add_cmd_list()
43 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds in add_cmd_list()
[all...]
/kernel/linux/linux-5.10/tools/usb/usbip/src/
H A Dusbip.c41 static const struct command cmds[] = { variable
100 for (i = 0; cmds[i].name != NULL; i++) in usbip_help()
101 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help()
102 cmds[i].usage(); in usbip_help()
110 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help()
177 for (i = 0; cmds[i].name != NULL; i++) in main()
178 if (!strcmp(cmds[i].name, cmd)) { in main()
182 rc = run_command(&cmds[i], argc, argv); in main()
/kernel/linux/linux-6.6/tools/usb/usbip/src/
H A Dusbip.c41 static const struct command cmds[] = { variable
100 for (i = 0; cmds[i].name != NULL; i++) in usbip_help()
101 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help()
102 cmds[i].usage(); in usbip_help()
110 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help()
177 for (i = 0; cmds[i].name != NULL; i++) in main()
178 if (!strcmp(cmds[i].name, cmd)) { in main()
182 rc = run_command(&cmds[i], argc, argv); in main()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dgen7_renderclear.c382 struct batch_chunk cmds, state; in emit_batch() local
386 batch_init(&cmds, vma, start, 0, bv->state_start); in emit_batch()
396 gen7_emit_pipeline_flush(&cmds); in emit_batch()
397 gen7_emit_pipeline_invalidate(&cmds); in emit_batch()
398 batch_add(&cmds, MI_LOAD_REGISTER_IMM(2)); in emit_batch()
399 batch_add(&cmds, i915_mmio_reg_offset(CACHE_MODE_0_GEN7)); in emit_batch()
400 batch_add(&cmds, 0xffff0000 | in emit_batch()
404 batch_add(&cmds, i915_mmio_reg_offset(CACHE_MODE_1)); in emit_batch()
405 batch_add(&cmds, 0xffff0000 | PIXEL_SUBSPAN_COLLECT_OPT_DISABLE); in emit_batch()
406 gen7_emit_pipeline_invalidate(&cmds); in emit_batch()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dgen7_renderclear.c383 struct batch_chunk cmds, state; in emit_batch() local
387 batch_init(&cmds, vma, start, 0, bv->state_start); in emit_batch()
397 gen7_emit_pipeline_flush(&cmds); in emit_batch()
398 gen7_emit_pipeline_invalidate(&cmds); in emit_batch()
399 batch_add(&cmds, MI_LOAD_REGISTER_IMM(2)); in emit_batch()
400 batch_add(&cmds, i915_mmio_reg_offset(CACHE_MODE_0_GEN7)); in emit_batch()
401 batch_add(&cmds, 0xffff0000 | in emit_batch()
405 batch_add(&cmds, i915_mmio_reg_offset(CACHE_MODE_1)); in emit_batch()
406 batch_add(&cmds, 0xffff0000 | PIXEL_SUBSPAN_COLLECT_OPT_DISABLE); in emit_batch()
407 gen7_emit_pipeline_invalidate(&cmds); in emit_batch()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_overlay.c111 } *cmds; in vmw_overlay_send_put() local
123 fifo_size = sizeof(*cmds) + sizeof(*flush) + sizeof(*items) * num_items; in vmw_overlay_send_put()
125 cmds = VMW_FIFO_RESERVE(dev_priv, fifo_size); in vmw_overlay_send_put()
127 if (!cmds) in vmw_overlay_send_put()
130 items = (typeof(items))&cmds[1]; in vmw_overlay_send_put()
134 fill_escape(&cmds->escape, sizeof(*items) * (num_items + 1)); in vmw_overlay_send_put()
136 cmds->header.cmdType = SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS; in vmw_overlay_send_put()
137 cmds->header.streamId = arg->stream_id; in vmw_overlay_send_put()
191 } *cmds; in vmw_overlay_send_stop() local
195 cmds in vmw_overlay_send_stop()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_overlay.c105 } *cmds; in vmw_overlay_send_put() local
117 fifo_size = sizeof(*cmds) + sizeof(*flush) + sizeof(*items) * num_items; in vmw_overlay_send_put()
119 cmds = VMW_CMD_RESERVE(dev_priv, fifo_size); in vmw_overlay_send_put()
121 if (!cmds) in vmw_overlay_send_put()
124 items = (typeof(items))&cmds[1]; in vmw_overlay_send_put()
128 fill_escape(&cmds->escape, sizeof(*items) * (num_items + 1)); in vmw_overlay_send_put()
130 cmds->header.cmdType = SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS; in vmw_overlay_send_put()
131 cmds->header.streamId = arg->stream_id; in vmw_overlay_send_put()
185 } *cmds; in vmw_overlay_send_stop() local
189 cmds in vmw_overlay_send_stop()
[all...]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
H A Dmain.c113 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
122 if (argc < 1 && cmds[0].func) in cmd_select()
123 return cmds[0].func(argc, argv); in cmd_select()
125 for (i = 0; cmds[i].cmd; i++) { in cmd_select()
126 if (is_prefix(*argv, cmds[i].cmd)) { in cmd_select()
127 if (!cmds[i].func) { in cmd_select()
129 cmds[i].cmd); in cmd_select()
132 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
251 static const struct cmd cmds[] = { variable
356 err = cmd_select(cmds, n_arg in do_batch()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/
H A Dnotif-wait.c101 if (w->cmds[i] == rec_id || in iwl_notification_wait()
102 (!iwl_cmd_groupid(w->cmds[i]) && in iwl_notification_wait()
103 DEF_ID(w->cmds[i]) == rec_id)) { in iwl_notification_wait()
139 const u16 *cmds, int n_cmds, in iwl_init_notification_wait()
150 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(u16)); in iwl_init_notification_wait()
137 iwl_init_notification_wait(struct iwl_notif_wait_data *notif_wait, struct iwl_notification_wait *wait_entry, const u16 *cmds, int n_cmds, bool (*fn)(struct iwl_notif_wait_data *notif_wait, struct iwl_rx_packet *pkt, void *data), void *fn_data) iwl_init_notification_wait() argument
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/
H A Dnotif-wait.c47 if (w->cmds[i] == rec_id || in iwl_notification_wait()
48 (!iwl_cmd_groupid(w->cmds[i]) && in iwl_notification_wait()
49 DEF_ID(w->cmds[i]) == rec_id)) { in iwl_notification_wait()
85 const u16 *cmds, int n_cmds, in iwl_init_notification_wait()
96 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(u16)); in iwl_init_notification_wait()
83 iwl_init_notification_wait(struct iwl_notif_wait_data *notif_wait, struct iwl_notification_wait *wait_entry, const u16 *cmds, int n_cmds, bool (*fn)(struct iwl_notif_wait_data *notif_wait, struct iwl_rx_packet *pkt, void *data), void *fn_data) iwl_init_notification_wait() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ct.c148 u32 *cmds, u32 size_in_bytes, u32 resv_space) in guc_ct_buffer_init()
153 ctb->cmds = cmds; in guc_ct_buffer_init()
238 u32 *cmds; in intel_guc_ct_init() local
257 /* store pointers to desc and cmds for send ctb */ in intel_guc_ct_init()
259 cmds = blob + 2 * CTB_DESC_SIZE; in intel_guc_ct_init()
262 CT_DEBUG(ct, "%s desc %#tx cmds %#tx size %u/%u\n", "send", in intel_guc_ct_init()
263 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init()
266 guc_ct_buffer_init(&ct->ctbs.send, desc, cmds, cmds_size, resv_space); in intel_guc_ct_init()
268 /* store pointers to desc and cmds fo in intel_guc_ct_init()
146 guc_ct_buffer_init(struct intel_guc_ct_buffer *ctb, struct guc_ct_buffer_desc *desc, u32 *cmds, u32 size_in_bytes, u32 resv_space) guc_ct_buffer_init() argument
306 u32 base, desc, cmds, size; intel_guc_ct_enable() local
415 u32 *cmds = ctb->cmds; ct_write() local
866 u32 *cmds = ctb->cmds; ct_read() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ct.c170 * |cmds (SEND) | in intel_guc_ct_init()
173 * |cmds (RECV) | in intel_guc_ct_init()
192 /* store pointers to desc and cmds */ in intel_guc_ct_init()
196 ct->ctbs[i].cmds = blob + PAGE_SIZE/4 * i + PAGE_SIZE/2; in intel_guc_ct_init()
224 u32 base, cmds, size; in intel_guc_ct_enable() local
235 * cmds buffers are in the second half of the blob page in intel_guc_ct_enable()
239 cmds = base + PAGE_SIZE / 4 * i + PAGE_SIZE / 2; in intel_guc_ct_enable()
241 CT_DEBUG(ct, "%d: addr=%#x size=%u\n", i, cmds, size); in intel_guc_ct_enable()
242 guc_ct_buffer_desc_init(ct->ctbs[i].desc, cmds, size); in intel_guc_ct_enable()
325 u32 *cmds in ct_write() local
595 u32 *cmds = ctb->cmds; ct_read() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Djob.c66 job->cmds = num_cmdbufs ? mem : NULL; in host1x_job_alloc()
116 struct host1x_job_gather *gather = &job->cmds[job->num_cmds].gather; in host1x_job_add_gather()
129 struct host1x_job_cmd *cmd = &job->cmds[job->num_cmds]; in host1x_job_add_wait()
220 if (job->cmds[i].is_wait) in pin_job()
223 g = &job->cmds[i].gather; in pin_job()
541 if (job->cmds[i].is_wait) in copy_gathers()
544 g = &job->cmds[i].gather; in copy_gathers()
570 if (job->cmds[i].is_wait) in copy_gathers()
572 g = &job->cmds[i].gather; in copy_gathers()
619 if (job->cmds[ in host1x_job_pin()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
H A Dccp-crypto-main.c54 struct list_head cmds; member
106 /* Held cmds will be after the current cmd in the queue so start in ccp_crypto_cmd_complete()
110 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete()
118 * Because cmds can be executed from any point in the cmd list in ccp_crypto_cmd_complete()
121 if (req_queue.backlog != &req_queue.cmds) { in ccp_crypto_cmd_complete()
135 /* Remove the cmd entry from the list of cmds */ in ccp_crypto_cmd_complete()
232 list_for_each_entry(tmp, &req_queue.cmds, entry) { in ccp_crypto_enqueue_cmd()
248 if (req_queue.backlog == &req_queue.cmds) in ccp_crypto_enqueue_cmd()
254 list_add_tail(&crypto_cmd->entry, &req_queue.cmds); in ccp_crypto_enqueue_cmd()
414 INIT_LIST_HEAD(&req_queue.cmds); in ccp_crypto_init()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/ccp/
H A Dccp-crypto-main.c54 struct list_head cmds; member
99 /* Held cmds will be after the current cmd in the queue so start in ccp_crypto_cmd_complete()
103 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete()
111 * Because cmds can be executed from any point in the cmd list in ccp_crypto_cmd_complete()
114 if (req_queue.backlog != &req_queue.cmds) { in ccp_crypto_cmd_complete()
128 /* Remove the cmd entry from the list of cmds */ in ccp_crypto_cmd_complete()
225 list_for_each_entry(tmp, &req_queue.cmds, entry) { in ccp_crypto_enqueue_cmd()
241 if (req_queue.backlog == &req_queue.cmds) in ccp_crypto_enqueue_cmd()
247 list_add_tail(&crypto_cmd->entry, &req_queue.cmds); in ccp_crypto_enqueue_cmd()
406 INIT_LIST_HEAD(&req_queue.cmds); in ccp_crypto_init()
[all...]
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dmain.c187 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
196 if (argc < 1 && cmds[0].func) in cmd_select()
197 return cmds[0].func(argc, argv); in cmd_select()
199 for (i = 0; cmds[i].cmd; i++) { in cmd_select()
200 if (is_prefix(*argv, cmds[i].cmd)) { in cmd_select()
201 if (!cmds[i].func) { in cmd_select()
203 cmds[i].cmd); in cmd_select()
206 return cmds[i].func(argc - 1, argv + 1); in cmd_select()

Completed in 14 milliseconds

1234567891011