/Linux-v5.10/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-v5.10/drivers/media/pci/saa7164/ |
D | saa7164-cmd.c | 18 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-v5.10/drivers/infiniband/core/ |
D | roce_gid_mgmt.c | 69 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 647 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); in netdevice_queue_work() [all …]
|
/Linux-v5.10/tools/perf/util/ |
D | help-unknown-cmd.c | 32 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-v5.10/tools/usb/usbip/src/ |
D | usbip.c | 41 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-v5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_overlay.c | 111 } *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 = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmds)); in vmw_overlay_send_stop() [all …]
|
/Linux-v5.10/tools/bpf/bpftool/ |
D | main.c | 113 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 354 err = cmd_select(cmds, n_argc, n_argv, do_help); in do_batch() [all …]
|
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/fw/ |
D | notif-wait.c | 101 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() argument 150 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(u16)); in iwl_init_notification_wait()
|
D | notif-wait.h | 105 u16 cmds[MAX_NOTIF_CMDS]; member 135 const u16 *cmds, int n_cmds,
|
/Linux-v5.10/drivers/gpu/drm/i915/gt/ |
D | gen7_renderclear.c | 349 struct batch_chunk cmds, state; in emit_batch() local 353 batch_init(&cmds, vma, start, 0, bv->cmd_size); in emit_batch() 362 gen7_emit_pipeline_flush(&cmds); in emit_batch() 363 batch_add(&cmds, PIPELINE_SELECT | PIPELINE_SELECT_MEDIA); in emit_batch() 364 batch_add(&cmds, MI_NOOP); in emit_batch() 365 gen7_emit_state_base_address(&cmds, interface_descriptor); in emit_batch() 366 gen7_emit_pipeline_flush(&cmds); in emit_batch() 368 gen7_emit_vfe_state(&cmds, bv, urb_size - 1, 0, 0); in emit_batch() 370 gen7_emit_interface_descriptor_load(&cmds, in emit_batch() 375 gen7_emit_media_object(&cmds, i); in emit_batch() [all …]
|
/Linux-v5.10/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_ct.c | 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 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 = ctb->cmds; in ct_write() local 367 cmds[tail] = header; in ct_write() 370 cmds[tail] = fence; in ct_write() 374 cmds[tail] = action[i]; in ct_write() 595 u32 *cmds = ctb->cmds; in ct_read() local [all …]
|
/Linux-v5.10/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-v5.10/drivers/dma/ |
D | bcm-sba-raid.c | 123 struct brcm_sba_command cmds[]; member 564 struct brcm_sba_command *cmds, in sba_fillup_interrupt_msg() argument 570 struct brcm_sba_command *cmdsp = cmds; in sba_fillup_interrupt_msg() 616 msg->sba.cmds = cmds; in sba_fillup_interrupt_msg() 617 msg->sba.cmds_count = cmdsp - cmds; in sba_fillup_interrupt_msg() 640 sba_fillup_interrupt_msg(req, req->cmds, &req->msg); in sba_prep_dma_interrupt() 650 struct brcm_sba_command *cmds, in sba_fillup_memcpy_msg() argument 658 struct brcm_sba_command *cmdsp = cmds; in sba_fillup_memcpy_msg() 704 msg->sba.cmds = cmds; in sba_fillup_memcpy_msg() 705 msg->sba.cmds_count = cmdsp - cmds; in sba_fillup_memcpy_msg() [all …]
|
/Linux-v5.10/drivers/crypto/ccp/ |
D | ccp-crypto-main.c | 54 struct list_head cmds; member 110 list_for_each_entry_continue(tmp, &req_queue.cmds, entry) { in ccp_crypto_cmd_complete() 121 if (req_queue.backlog != &req_queue.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() 415 req_queue.backlog = &req_queue.cmds; in ccp_crypto_init()
|
/Linux-v5.10/drivers/interconnect/qcom/ |
D | bcm-voter.c | 257 struct tcs_cmd cmds[MAX_BCMS]; in qcom_icc_bcm_voter_commit() local 281 tcs_list_gen(voter, QCOM_ICC_BUCKET_AMC, cmds, commit_idx); in qcom_icc_bcm_voter_commit() 288 cmds, commit_idx); in qcom_icc_bcm_voter_commit() 317 tcs_list_gen(voter, QCOM_ICC_BUCKET_WAKE, cmds, commit_idx); in qcom_icc_bcm_voter_commit() 319 ret = rpmh_write_batch(voter->dev, RPMH_WAKE_ONLY_STATE, cmds, commit_idx); in qcom_icc_bcm_voter_commit() 325 tcs_list_gen(voter, QCOM_ICC_BUCKET_SLEEP, cmds, commit_idx); in qcom_icc_bcm_voter_commit() 327 ret = rpmh_write_batch(voter->dev, RPMH_SLEEP_STATE, cmds, commit_idx); in qcom_icc_bcm_voter_commit()
|
/Linux-v5.10/tools/perf/Documentation/ |
D | Makefile | 247 _cmds_txt = cmds-ancillaryinterrogators.txt \ 248 cmds-ancillarymanipulators.txt \ 249 cmds-mainporcelain.txt \ 250 cmds-plumbinginterrogators.txt \ 251 cmds-plumbingmanipulators.txt \ 252 cmds-synchingrepositories.txt \ 253 cmds-synchelpers.txt \ 254 cmds-purehelpers.txt \ 255 cmds-foreignscminterface.txt
|
/Linux-v5.10/drivers/iio/adc/ |
D | ti-adc108s102.c | 117 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-v5.10/drivers/media/platform/vsp1/ |
D | vsp1_dl.c | 160 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-v5.10/sound/ppc/ |
D | pmac.c | 60 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-v5.10/drivers/nvme/target/ |
D | rdma.c | 101 struct nvmet_rdma_cmd *cmds; member 126 struct nvmet_rdma_cmd *cmds; member 371 struct nvmet_rdma_cmd *cmds; in nvmet_rdma_alloc_cmds() local 374 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_rdma_cmd), GFP_KERNEL); in nvmet_rdma_alloc_cmds() 375 if (!cmds) in nvmet_rdma_alloc_cmds() 379 ret = nvmet_rdma_alloc_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds() 384 return cmds; in nvmet_rdma_alloc_cmds() 388 nvmet_rdma_free_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds() 389 kfree(cmds); in nvmet_rdma_alloc_cmds() 395 struct nvmet_rdma_cmd *cmds, int nr_cmds, bool admin) in nvmet_rdma_free_cmds() argument [all …]
|
/Linux-v5.10/sound/hda/ |
D | hdac_controller.c | 71 memset(bus->rirb.cmds, 0, sizeof(bus->rirb.cmds)); in snd_hdac_bus_init_cmd_io() 168 bus->rirb.cmds[addr]++; in snd_hdac_bus_send_cmd() 218 else if (bus->rirb.cmds[addr]) { in snd_hdac_bus_update_rirb() 220 bus->rirb.cmds[addr]--; in snd_hdac_bus_update_rirb() 221 if (!bus->rirb.cmds[addr] && in snd_hdac_bus_update_rirb() 259 if (!bus->rirb.cmds[addr]) { in snd_hdac_bus_get_response()
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 472 err = root->cmds->destroy_flow_table(root, ft); in del_hw_flow_table() 506 err = root->cmds->update_fte(root, ft, fg, fte->modify_mask, fte); in modify_fte() 570 err = root->cmds->delete_fte(root, ft, fte); in del_hw_fte() 610 if (fg->node.active && root->cmds->destroy_flow_group(root, ft, fg)) in del_hw_flow_group() 874 err = root->cmds->modify_flow_table(root, iter, ft); in connect_fts_in_prio() 921 err = root->cmds->update_root_ft(root, ft, qpn, false); in update_root_ft_create() 925 err = root->cmds->update_root_ft(root, ft, in update_root_ft_create() 961 err = root->cmds->update_fte(root, ft, fg, in _mlx5_modify_rule_destination() 1118 err = root->cmds->create_flow_table(root, ft, log_table_sz, next_ft); in __mlx5_create_flow_table() 1142 root->cmds->destroy_flow_table(root, ft); in __mlx5_create_flow_table() [all …]
|
/Linux-v5.10/include/net/sctp/ |
D | command.h | 190 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-v5.10/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()
|