Home
last modified time | relevance | path

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

123456

/linux-6.6.21/tools/lib/subcmd/
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->names); in clean_cmdnames()
37 cmds->cnt = 0; in clean_cmdnames()
38 cmds->alloc = 0; in clean_cmdnames()
48 void uniq(struct cmdnames *cmds) in uniq() argument
[all …]
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);
/linux-6.6.21/drivers/media/pci/saa7164/
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[seqno].timeout = 0; in saa7164_cmd_free_seqno()
[all …]
/linux-6.6.21/drivers/infiniband/core/
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
648 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); in netdevice_queue_work()
[all …]
/linux-6.6.21/tools/perf/util/
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->names)); in add_cmd_list()
46 cmds->names = tmp; in add_cmd_list()
49 cmds->names[cmds->cnt++] = old->names[i]; in add_cmd_list()
/linux-6.6.21/drivers/gpu/drm/i915/gt/
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 …]
/linux-6.6.21/tools/usb/usbip/src/
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()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
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 = VMW_CMD_RESERVE(dev_priv, sizeof(*cmds)); in vmw_overlay_send_stop()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/
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() argument
96 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(u16)); in iwl_init_notification_wait()
Dnotif-wait.h52 u16 cmds[MAX_NOTIF_CMDS]; member
82 const u16 *cmds, int n_cmds,
/linux-6.6.21/drivers/gpu/host1x/
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[i].is_wait) in host1x_job_pin()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ct.c148 u32 *cmds, u32 size_in_bytes, u32 resv_space) in guc_ct_buffer_init() argument
153 ctb->cmds = cmds; in guc_ct_buffer_init()
238 u32 *cmds; in intel_guc_ct_init() local
259 cmds = blob + 2 * CTB_DESC_SIZE; 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()
270 cmds = blob + 2 * CTB_DESC_SIZE + CTB_H2G_BUFFER_SIZE; in intel_guc_ct_init()
274 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init()
277 guc_ct_buffer_init(&ct->ctbs.recv, desc, cmds, cmds_size, resv_space); in intel_guc_ct_init()
306 u32 base, desc, cmds, size; in intel_guc_ct_enable() local
[all …]
/linux-6.6.21/tools/perf/
Dperf-completion.sh129 cmds_=$($cmd $1 --list-cmds)
157 cmds=$($cmd --list-opts)
159 cmds=$($cmd --list-cmds)
161 __perfcomp "$cmds" "$cur"
205 subcmds=$($cmd $prev_skip_opts --list-cmds)
/linux-6.6.21/drivers/dma/
Dbcm-sba-raid.c115 struct brcm_sba_command cmds[]; member
556 struct brcm_sba_command *cmds, in sba_fillup_interrupt_msg() argument
562 struct brcm_sba_command *cmdsp = cmds; in sba_fillup_interrupt_msg()
608 msg->sba.cmds = cmds; in sba_fillup_interrupt_msg()
609 msg->sba.cmds_count = cmdsp - cmds; in sba_fillup_interrupt_msg()
632 sba_fillup_interrupt_msg(req, req->cmds, &req->msg); in sba_prep_dma_interrupt()
642 struct brcm_sba_command *cmds, in sba_fillup_memcpy_msg() argument
650 struct brcm_sba_command *cmdsp = cmds; in sba_fillup_memcpy_msg()
696 msg->sba.cmds = cmds; in sba_fillup_memcpy_msg()
697 msg->sba.cmds_count = cmdsp - cmds; in sba_fillup_memcpy_msg()
[all …]
/linux-6.6.21/drivers/crypto/ccp/
Dccp-crypto-main.c54 struct list_head cmds; member
103 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete()
114 if (req_queue.backlog != &req_queue.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()
407 req_queue.backlog = &req_queue.cmds; in ccp_crypto_init()
/linux-6.6.21/tools/bpf/bpftool/
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()
/linux-6.6.21/drivers/interconnect/qcom/
Dbcm-voter.c281 struct tcs_cmd cmds[MAX_BCMS]; in qcom_icc_bcm_voter_commit() local
309 tcs_list_gen(voter, QCOM_ICC_BUCKET_AMC, cmds, commit_idx); in qcom_icc_bcm_voter_commit()
316 cmds, commit_idx); in qcom_icc_bcm_voter_commit()
345 tcs_list_gen(voter, QCOM_ICC_BUCKET_WAKE, cmds, commit_idx); in qcom_icc_bcm_voter_commit()
347 ret = rpmh_write_batch(voter->dev, RPMH_WAKE_ONLY_STATE, cmds, commit_idx); in qcom_icc_bcm_voter_commit()
353 tcs_list_gen(voter, QCOM_ICC_BUCKET_SLEEP, cmds, commit_idx); in qcom_icc_bcm_voter_commit()
355 ret = rpmh_write_batch(voter->dev, RPMH_SLEEP_STATE, cmds, commit_idx); in qcom_icc_bcm_voter_commit()
/linux-6.6.21/drivers/iio/adc/
Dti-adc108s102.c117 unsigned int bit, cmds; in adc108s102_update_scan_mode() local
123 cmds = 0; in adc108s102_update_scan_mode()
125 st->tx_buf[cmds++] = cpu_to_be16(ADC108S102_CMD(bit)); in adc108s102_update_scan_mode()
128 st->tx_buf[cmds++] = 0x00; in adc108s102_update_scan_mode()
133 st->ring_xfer.len = cmds * sizeof(st->tx_buf[0]); in adc108s102_update_scan_mode()
/linux-6.6.21/drivers/media/platform/renesas/vsp1/
Dvsp1_dl.c160 struct vsp1_dl_ext_cmd *cmds; member
439 pool->cmds = kcalloc(num_cmds, sizeof(*pool->cmds), GFP_KERNEL); in vsp1_dl_cmd_pool_create()
440 if (!pool->cmds) { in vsp1_dl_cmd_pool_create()
453 kfree(pool->cmds); in vsp1_dl_cmd_pool_create()
459 struct vsp1_dl_ext_cmd *cmd = &pool->cmds[i]; in vsp1_dl_cmd_pool_create()
473 cmd->cmds = pool->mem + cmd_offset; in vsp1_dl_cmd_pool_create()
528 kfree(pool->cmds); in vsp1_dl_ext_cmd_pool_destroy()
745 cmd->cmds[0].opcode = cmd->opcode; in vsp1_dl_ext_cmd_fill_header()
746 cmd->cmds[0].flags = cmd->flags; in vsp1_dl_ext_cmd_fill_header()
747 cmd->cmds[0].address_set = cmd->data_dma; in vsp1_dl_ext_cmd_fill_header()
[all …]
/linux-6.6.21/sound/ppc/
Dpmac.c60 rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); in snd_pmac_dbdma_alloc()
61 rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); in snd_pmac_dbdma_alloc()
211 chip->extra_dma.cmds->command = cpu_to_le16(DBDMA_STOP); in snd_pmac_pcm_prepare()
221 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { in snd_pmac_pcm_prepare()
259 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
274 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
298 volatile struct dbdma_cmd __iomem *cp = &rec->cmd.cmds[rec->cur_period]; in snd_pmac_pcm_pointer()
395 memcpy((void *)emergency_dbdma.cmds, (void *)cp, in snd_pmac_pcm_dead_xfer()
400 cp = emergency_dbdma.cmds; in snd_pmac_pcm_dead_xfer()
442 cp = emergency_dbdma.cmds; in snd_pmac_pcm_update()
[all …]
/linux-6.6.21/drivers/nvme/target/
Drdma.c102 struct nvmet_rdma_cmd *cmds; member
127 struct nvmet_rdma_cmd *cmds; member
372 struct nvmet_rdma_cmd *cmds; in nvmet_rdma_alloc_cmds() local
375 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_rdma_cmd), GFP_KERNEL); in nvmet_rdma_alloc_cmds()
376 if (!cmds) in nvmet_rdma_alloc_cmds()
380 ret = nvmet_rdma_alloc_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds()
385 return cmds; in nvmet_rdma_alloc_cmds()
389 nvmet_rdma_free_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds()
390 kfree(cmds); in nvmet_rdma_alloc_cmds()
396 struct nvmet_rdma_cmd *cmds, int nr_cmds, bool admin) in nvmet_rdma_free_cmds() argument
[all …]
/linux-6.6.21/include/net/sctp/
Dcommand.h190 struct sctp_cmd cmds[SCTP_MAX_NUM_COMMANDS]; member
202 seq->last_used_slot = seq->cmds + SCTP_MAX_NUM_COMMANDS; in sctp_init_cmd_seq()
218 BUG_ON(cmd < seq->cmds); in sctp_add_cmd_sf()
/linux-6.6.21/sound/hda/
Dhdac_controller.c71 memset(bus->rirb.cmds, 0, sizeof(bus->rirb.cmds)); in snd_hdac_bus_init_cmd_io()
171 bus->rirb.cmds[addr]++; in snd_hdac_bus_send_cmd()
221 else if (bus->rirb.cmds[addr]) { in snd_hdac_bus_update_rirb()
223 bus->rirb.cmds[addr]--; in snd_hdac_bus_update_rirb()
224 if (!bus->rirb.cmds[addr] && in snd_hdac_bus_update_rirb()
262 if (!bus->rirb.cmds[addr]) { in snd_hdac_bus_get_response()
/linux-6.6.21/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c711 static void arm_smmu_cmdq_write_entries(struct arm_smmu_cmdq *cmdq, u64 *cmds, in arm_smmu_cmdq_write_entries() argument
721 u64 *cmd = &cmds[i * CMDQ_ENT_DWORDS]; in arm_smmu_cmdq_write_entries()
745 u64 *cmds, int n, bool sync) in arm_smmu_cmdq_issue_cmdlist() argument
788 arm_smmu_cmdq_write_entries(cmdq, cmds, llq.prod, n); in arm_smmu_cmdq_issue_cmdlist()
892 struct arm_smmu_cmdq_batch *cmds, in arm_smmu_cmdq_batch_add() argument
897 if (cmds->num == CMDQ_BATCH_ENTRIES - 1 && in arm_smmu_cmdq_batch_add()
899 arm_smmu_cmdq_issue_cmdlist(smmu, cmds->cmds, cmds->num, true); in arm_smmu_cmdq_batch_add()
900 cmds->num = 0; in arm_smmu_cmdq_batch_add()
903 if (cmds->num == CMDQ_BATCH_ENTRIES) { in arm_smmu_cmdq_batch_add()
904 arm_smmu_cmdq_issue_cmdlist(smmu, cmds->cmds, cmds->num, false); in arm_smmu_cmdq_batch_add()
[all …]
/linux-6.6.21/drivers/mailbox/
Dbcm-flexrm-mailbox.c709 if (!msg->sba.cmds || !msg->sba.cmds_count) in flexrm_sba_sanity_check()
713 if (((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) || in flexrm_sba_sanity_check()
714 (msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C)) && in flexrm_sba_sanity_check()
715 (msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_OUTPUT)) in flexrm_sba_sanity_check()
717 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) && in flexrm_sba_sanity_check()
718 (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) in flexrm_sba_sanity_check()
720 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C) && in flexrm_sba_sanity_check()
721 (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) in flexrm_sba_sanity_check()
723 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_RESP) && in flexrm_sba_sanity_check()
724 (msg->sba.cmds[i].resp_len > DSTT_LENGTH_MASK)) in flexrm_sba_sanity_check()
[all …]

123456