/Linux-v4.19/tools/lib/subcmd/ |
D | help.c | 16 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->names); in clean_cmdnames() 35 cmds->cnt = 0; in clean_cmdnames() 36 cmds->alloc = 0; in clean_cmdnames() 46 void uniq(struct cmdnames *cmds) in uniq() argument [all …]
|
D | help.h | 26 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-v4.19/drivers/media/pci/saa7164/ |
D | saa7164-cmd.c | 28 if (dev->cmds[i].inuse == 0) { in saa7164_cmd_alloc_seqno() 29 dev->cmds[i].inuse = 1; in saa7164_cmd_alloc_seqno() 30 dev->cmds[i].signalled = 0; in saa7164_cmd_alloc_seqno() 31 dev->cmds[i].timeout = 0; in saa7164_cmd_alloc_seqno() 32 ret = dev->cmds[i].seqno; in saa7164_cmd_alloc_seqno() 44 if ((dev->cmds[seqno].inuse == 1) && in saa7164_cmd_free_seqno() 45 (dev->cmds[seqno].seqno == seqno)) { in saa7164_cmd_free_seqno() 46 dev->cmds[seqno].inuse = 0; in saa7164_cmd_free_seqno() 47 dev->cmds[seqno].signalled = 0; in saa7164_cmd_free_seqno() 48 dev->cmds[seqno].timeout = 0; in saa7164_cmd_free_seqno() [all …]
|
/Linux-v4.19/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 69 struct netdev_event_work_cmd cmds[ROCE_NETDEV_CALLBACK_SZ]; member 618 for (i = 0; i < ARRAY_SIZE(work->cmds) && work->cmds[i].cb; i++) { in netdevice_event_work_handler() 619 ib_enum_all_roce_netdevs(work->cmds[i].filter, in netdevice_event_work_handler() 620 work->cmds[i].filter_ndev, in netdevice_event_work_handler() 621 work->cmds[i].cb, in netdevice_event_work_handler() 622 work->cmds[i].ndev); in netdevice_event_work_handler() 623 dev_put(work->cmds[i].ndev); in netdevice_event_work_handler() 624 dev_put(work->cmds[i].filter_ndev); in netdevice_event_work_handler() 630 static int netdevice_queue_work(struct netdev_event_work_cmd *cmds, in netdevice_queue_work() argument 640 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); in netdevice_queue_work() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | help-unknown-cmd.c | 30 static int add_cmd_list(struct cmdnames *cmds, struct cmdnames *old) in add_cmd_list() argument 32 unsigned int i, nr = cmds->cnt + old->cnt; in add_cmd_list() 35 if (nr > cmds->alloc) { in add_cmd_list() 37 if (alloc_nr(cmds->alloc) < nr) in add_cmd_list() 38 cmds->alloc = nr; in add_cmd_list() 40 cmds->alloc = alloc_nr(cmds->alloc); in add_cmd_list() 41 tmp = realloc(cmds->names, cmds->alloc * sizeof(*cmds->names)); in add_cmd_list() 44 cmds->names = tmp; in add_cmd_list() 47 cmds->names[cmds->cnt++] = old->names[i]; in add_cmd_list()
|
/Linux-v4.19/tools/usb/usbip/src/ |
D | usbip.c | 53 static const struct command cmds[] = { variable 112 for (i = 0; cmds[i].name != NULL; i++) in usbip_help() 113 if (!strcmp(cmds[i].name, argv[0]) && cmds[i].usage) { in usbip_help() 114 cmds[i].usage(); in usbip_help() 122 for (cmd = cmds; cmd->name != NULL; cmd++) in usbip_help() 189 for (i = 0; cmds[i].name != NULL; i++) in main() 190 if (!strcmp(cmds[i].name, cmd)) { in main() 194 rc = run_command(&cmds[i], argc, argv); in main()
|
/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_overlay.c | 113 } *cmds; in vmw_overlay_send_put() local 125 fifo_size = sizeof(*cmds) + sizeof(*flush) + sizeof(*items) * num_items; in vmw_overlay_send_put() 127 cmds = vmw_fifo_reserve(dev_priv, fifo_size); in vmw_overlay_send_put() 129 if (!cmds) in vmw_overlay_send_put() 132 items = (typeof(items))&cmds[1]; in vmw_overlay_send_put() 136 fill_escape(&cmds->escape, sizeof(*items) * (num_items + 1)); in vmw_overlay_send_put() 138 cmds->header.cmdType = SVGA_ESCAPE_VMWARE_VIDEO_SET_REGS; in vmw_overlay_send_put() 139 cmds->header.streamId = arg->stream_id; in vmw_overlay_send_put() 193 } *cmds; in vmw_overlay_send_stop() local 197 cmds = vmw_fifo_reserve(dev_priv, sizeof(*cmds)); in vmw_overlay_send_stop() [all …]
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/fw/ |
D | notif-wait.c | 106 if (w->cmds[i] == rec_id || in iwl_notification_wait() 107 (!iwl_cmd_groupid(w->cmds[i]) && in iwl_notification_wait() 108 DEF_ID(w->cmds[i]) == rec_id)) { in iwl_notification_wait() 144 const u16 *cmds, int n_cmds, in iwl_init_notification_wait() argument 155 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(u16)); in iwl_init_notification_wait()
|
D | notif-wait.h | 110 u16 cmds[MAX_NOTIF_CMDS]; member 140 const u16 *cmds, int n_cmds,
|
/Linux-v4.19/tools/bpf/bpftool/ |
D | main.c | 109 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument 118 if (argc < 1 && cmds[0].func) in cmd_select() 119 return cmds[0].func(argc, argv); in cmd_select() 121 for (i = 0; cmds[i].func; i++) in cmd_select() 122 if (is_prefix(*argv, cmds[i].cmd)) in cmd_select() 123 return cmds[i].func(argc - 1, argv + 1); in cmd_select() 211 static const struct cmd cmds[] = { variable 307 err = cmd_select(cmds, n_argc, n_argv, do_help); in do_batch() 397 ret = cmd_select(cmds, argc, argv, do_help); in main()
|
/Linux-v4.19/tools/perf/ |
D | perf-completion.sh | 129 cmds_=$($cmd $1 --list-cmds) 157 cmds=$($cmd --list-opts) 159 cmds=$($cmd --list-cmds) 161 __perfcomp "$cmds" "$cur" 200 subcmds=$($cmd $prev_skip_opts --list-cmds)
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-crypto-main.c | 57 struct list_head cmds; member 113 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete() 124 if (req_queue.backlog != &req_queue.cmds) { in ccp_crypto_cmd_complete() 235 list_for_each_entry(tmp, &req_queue.cmds, entry) { in ccp_crypto_enqueue_cmd() 251 if (req_queue.backlog == &req_queue.cmds) in ccp_crypto_enqueue_cmd() 257 list_add_tail(&crypto_cmd->entry, &req_queue.cmds); in ccp_crypto_enqueue_cmd() 415 INIT_LIST_HEAD(&req_queue.cmds); in ccp_crypto_init() 416 req_queue.backlog = &req_queue.cmds; in ccp_crypto_init()
|
/Linux-v4.19/drivers/dma/ |
D | bcm-sba-raid.c | 123 struct brcm_sba_command cmds[0]; member 565 struct brcm_sba_command *cmds, in sba_fillup_interrupt_msg() argument 571 struct brcm_sba_command *cmdsp = cmds; in sba_fillup_interrupt_msg() 617 msg->sba.cmds = cmds; in sba_fillup_interrupt_msg() 618 msg->sba.cmds_count = cmdsp - cmds; in sba_fillup_interrupt_msg() 641 sba_fillup_interrupt_msg(req, req->cmds, &req->msg); in sba_prep_dma_interrupt() 651 struct brcm_sba_command *cmds, in sba_fillup_memcpy_msg() argument 659 struct brcm_sba_command *cmdsp = cmds; in sba_fillup_memcpy_msg() 705 msg->sba.cmds = cmds; in sba_fillup_memcpy_msg() 706 msg->sba.cmds_count = cmdsp - cmds; in sba_fillup_memcpy_msg() [all …]
|
/Linux-v4.19/tools/perf/Documentation/ |
D | Makefile | 246 _cmds_txt = cmds-ancillaryinterrogators.txt \ 247 cmds-ancillarymanipulators.txt \ 248 cmds-mainporcelain.txt \ 249 cmds-plumbinginterrogators.txt \ 250 cmds-plumbingmanipulators.txt \ 251 cmds-synchingrepositories.txt \ 252 cmds-synchelpers.txt \ 253 cmds-purehelpers.txt \ 254 cmds-foreignscminterface.txt
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_guc_ct.c | 201 ctch->ctbs[i].cmds = blob + PAGE_SIZE/4 * i + PAGE_SIZE/2; in ctch_init() 332 u32 *cmds = ctb->cmds; in ctb_write() local 368 cmds[tail] = header; in ctb_write() 371 cmds[tail] = fence; in ctb_write() 375 cmds[tail] = action[i]; in ctb_write() 588 u32 *cmds = ctb->cmds; in ctb_read() local 610 data[0] = cmds[head]; in ctb_read() 619 size - head : available - 1), &cmds[head], in ctb_read() 621 available - 1 - size + head : 0), &cmds[0]); in ctb_read() 626 data[i] = cmds[head]; in ctb_read()
|
/Linux-v4.19/drivers/iio/adc/ |
D | ti-adc108s102.c | 124 unsigned int bit, cmds; in adc108s102_update_scan_mode() local 130 cmds = 0; in adc108s102_update_scan_mode() 132 st->tx_buf[cmds++] = cpu_to_be16(ADC108S102_CMD(bit)); in adc108s102_update_scan_mode() 135 st->tx_buf[cmds++] = 0x00; in adc108s102_update_scan_mode() 140 st->ring_xfer.len = cmds * sizeof(st->tx_buf[0]); in adc108s102_update_scan_mode()
|
/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_dl.c | 160 struct vsp1_dl_ext_cmd *cmds; member 437 pool->cmds = kcalloc(num_cmds, sizeof(*pool->cmds), GFP_KERNEL); in vsp1_dl_cmd_pool_create() 438 if (!pool->cmds) { in vsp1_dl_cmd_pool_create() 451 kfree(pool->cmds); in vsp1_dl_cmd_pool_create() 457 struct vsp1_dl_ext_cmd *cmd = &pool->cmds[i]; in vsp1_dl_cmd_pool_create() 471 cmd->cmds = pool->mem + cmd_offset; in vsp1_dl_cmd_pool_create() 526 kfree(pool->cmds); in vsp1_dl_ext_cmd_pool_destroy() 741 cmd->cmds[0].opcode = cmd->opcode; in vsp1_dl_ext_cmd_fill_header() 742 cmd->cmds[0].flags = cmd->flags; in vsp1_dl_ext_cmd_fill_header() 743 cmd->cmds[0].address_set = cmd->data_dma; in vsp1_dl_ext_cmd_fill_header() [all …]
|
/Linux-v4.19/sound/ppc/ |
D | pmac.c | 73 rec->cmds = (void __iomem *)DBDMA_ALIGN(rec->space); in snd_pmac_dbdma_alloc() 74 rec->addr = rec->dma_base + (unsigned long)((char *)rec->cmds - (char *)rec->space); in snd_pmac_dbdma_alloc() 242 chip->extra_dma.cmds->command = cpu_to_le16(DBDMA_STOP); in snd_pmac_pcm_prepare() 252 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { in snd_pmac_pcm_prepare() 290 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger() 305 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger() 329 volatile struct dbdma_cmd __iomem *cp = &rec->cmd.cmds[rec->cur_period]; in snd_pmac_pcm_pointer() 426 memcpy((void *)emergency_dbdma.cmds, (void *)cp, in snd_pmac_pcm_dead_xfer() 431 cp = emergency_dbdma.cmds; in snd_pmac_pcm_dead_xfer() 473 cp = emergency_dbdma.cmds; in snd_pmac_pcm_update() [all …]
|
/Linux-v4.19/fs/quota/ |
D | compat.c | 48 unsigned int cmds; in COMPAT_SYSCALL_DEFINE4() local 57 cmds = cmd >> SUBCMDSHIFT; in COMPAT_SYSCALL_DEFINE4() 59 switch (cmds) { in COMPAT_SYSCALL_DEFINE4()
|
/Linux-v4.19/drivers/soc/qcom/ |
D | rpmh-rsc.c | 227 cmd = &req->cmds[j]; in tcs_tx_done() 269 cmd = &msg->cmds[i]; in __tcs_buffer_write() 325 if (addr == msg->cmds[k].addr) in check_for_req_inflight() 402 if (!msg || !msg->cmds || !msg->num_cmds || in rpmh_rsc_send_data() 412 msg->cmds[0].addr); in rpmh_rsc_send_data() 452 slot = find_match(tcs, msg->cmds, msg->num_cmds); in find_slots() 469 tcs->cmd_cache[slot + i] = msg->cmds[i].addr; in find_slots() 509 if (!msg || !msg->cmds || !msg->num_cmds || in rpmh_rsc_write_ctrl_data()
|
/Linux-v4.19/include/net/sctp/ |
D | command.h | 206 struct sctp_cmd cmds[SCTP_MAX_NUM_COMMANDS]; member 218 seq->last_used_slot = seq->cmds + SCTP_MAX_NUM_COMMANDS; in sctp_init_cmd_seq() 234 BUG_ON(cmd < seq->cmds); in sctp_add_cmd_sf()
|
/Linux-v4.19/tools/testing/nvdimm/test/ |
D | nfit.c | 2371 } cmds; in nfit_ctl_test() local 2431 cmd_size = sizeof(cmds.cfg_size); in nfit_ctl_test() 2432 cmds.cfg_size = (struct nd_cmd_get_config_size) { in nfit_ctl_test() 2437 rc = setup_result(cmds.buf, cmd_size); in nfit_ctl_test() 2441 cmds.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 2443 if (rc < 0 || cmd_rc || cmds.cfg_size.status != 0 in nfit_ctl_test() 2444 || cmds.cfg_size.config_size != SZ_128K in nfit_ctl_test() 2445 || cmds.cfg_size.max_xfer != SZ_4K) { in nfit_ctl_test() 2454 cmds.ars_stat = (struct nd_cmd_ars_status) { in nfit_ctl_test() 2457 rc = setup_result(cmds.buf, cmd_size); in nfit_ctl_test() [all …]
|
/Linux-v4.19/arch/mips/include/asm/octeon/ |
D | cvmx-cmd-queue.h | 330 uint64_t *cmds) in cvmx_cmd_queue_write() argument 363 *ptr++ = *cmds++; in cvmx_cmd_queue_write() 390 *ptr++ = *cmds++; in cvmx_cmd_queue_write() 401 *ptr++ = *cmds++; in cvmx_cmd_queue_write()
|
/Linux-v4.19/drivers/nvme/target/ |
D | rdma.c | 98 struct nvmet_rdma_cmd *cmds; member 325 struct nvmet_rdma_cmd *cmds; in nvmet_rdma_alloc_cmds() local 328 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_rdma_cmd), GFP_KERNEL); in nvmet_rdma_alloc_cmds() 329 if (!cmds) in nvmet_rdma_alloc_cmds() 333 ret = nvmet_rdma_alloc_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds() 338 return cmds; in nvmet_rdma_alloc_cmds() 342 nvmet_rdma_free_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds() 343 kfree(cmds); in nvmet_rdma_alloc_cmds() 349 struct nvmet_rdma_cmd *cmds, int nr_cmds, bool admin) in nvmet_rdma_free_cmds() argument 354 nvmet_rdma_free_cmd(ndev, cmds + i, admin); in nvmet_rdma_free_cmds() [all …]
|
/Linux-v4.19/drivers/mailbox/ |
D | bcm-flexrm-mailbox.c | 721 if (!msg->sba.cmds || !msg->sba.cmds_count) in flexrm_sba_sanity_check() 725 if (((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) || in flexrm_sba_sanity_check() 726 (msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C)) && in flexrm_sba_sanity_check() 727 (msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_OUTPUT)) in flexrm_sba_sanity_check() 729 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) && in flexrm_sba_sanity_check() 730 (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) in flexrm_sba_sanity_check() 732 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C) && in flexrm_sba_sanity_check() 733 (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) in flexrm_sba_sanity_check() 735 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_RESP) && in flexrm_sba_sanity_check() 736 (msg->sba.cmds[i].resp_len > DSTT_LENGTH_MASK)) in flexrm_sba_sanity_check() [all …]
|