Home
last modified time | relevance | path

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

12345

/Linux-v5.4/tools/lib/subcmd/
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->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 …]
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-v5.4/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-v5.4/drivers/infiniband/core/
Droce_gid_mgmt.c69 struct netdev_event_work_cmd cmds[ROCE_NETDEV_CALLBACK_SZ]; member
622 for (i = 0; i < ARRAY_SIZE(work->cmds) && work->cmds[i].cb; i++) { in netdevice_event_work_handler()
623 ib_enum_all_roce_netdevs(work->cmds[i].filter, in netdevice_event_work_handler()
624 work->cmds[i].filter_ndev, in netdevice_event_work_handler()
625 work->cmds[i].cb, in netdevice_event_work_handler()
626 work->cmds[i].ndev); in netdevice_event_work_handler()
627 dev_put(work->cmds[i].ndev); in netdevice_event_work_handler()
628 dev_put(work->cmds[i].filter_ndev); in netdevice_event_work_handler()
634 static int netdevice_queue_work(struct netdev_event_work_cmd *cmds, in netdevice_queue_work() argument
644 memcpy(ndev_work->cmds, cmds, sizeof(ndev_work->cmds)); in netdevice_queue_work()
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/drivers/gpu/drm/vmwgfx/
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 = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmds)); in vmw_overlay_send_stop()
[all …]
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/fw/
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() argument
150 memcpy(wait_entry->cmds, cmds, n_cmds * sizeof(u16)); in iwl_init_notification_wait()
Dnotif-wait.h105 u16 cmds[MAX_NOTIF_CMDS]; member
135 const u16 *cmds, int n_cmds,
/Linux-v5.4/tools/bpf/bpftool/
Dmain.c89 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() argument
98 if (argc < 1 && cmds[0].func) in cmd_select()
99 return cmds[0].func(argc, argv); in cmd_select()
101 for (i = 0; cmds[i].func; i++) in cmd_select()
102 if (is_prefix(*argv, cmds[i].cmd)) in cmd_select()
103 return cmds[i].func(argc - 1, argv + 1); in cmd_select()
220 static const struct cmd cmds[] = { variable
319 err = cmd_select(cmds, n_argc, n_argv, do_help); in do_batch()
422 ret = cmd_select(cmds, argc, argv, do_help); in main()
/Linux-v5.4/tools/perf/
Dperf-completion.sh129 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.4/drivers/dma/
Dbcm-sba-raid.c123 struct brcm_sba_command cmds[0]; 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.4/drivers/crypto/ccp/
Dccp-crypto-main.c54 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.4/tools/perf/Documentation/
DMakefile247 _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.4/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ct.c178 ctch->ctbs[i].cmds = blob + PAGE_SIZE/4 * i + PAGE_SIZE/2; in ctch_init()
303 u32 *cmds = ctb->cmds; in ctb_write() local
339 cmds[tail] = header; in ctb_write()
342 cmds[tail] = fence; in ctb_write()
346 cmds[tail] = action[i]; in ctb_write()
559 u32 *cmds = ctb->cmds; in ctb_read() local
581 data[0] = cmds[head]; in ctb_read()
590 size - head : available - 1), &cmds[head], in ctb_read()
592 available - 1 - size + head : 0), &cmds[0]); in ctb_read()
597 data[i] = cmds[head]; in ctb_read()
/Linux-v5.4/drivers/iio/adc/
Dti-adc108s102.c116 unsigned int bit, cmds; in adc108s102_update_scan_mode() local
122 cmds = 0; in adc108s102_update_scan_mode()
124 st->tx_buf[cmds++] = cpu_to_be16(ADC108S102_CMD(bit)); in adc108s102_update_scan_mode()
127 st->tx_buf[cmds++] = 0x00; in adc108s102_update_scan_mode()
132 st->ring_xfer.len = cmds * sizeof(st->tx_buf[0]); in adc108s102_update_scan_mode()
/Linux-v5.4/drivers/media/platform/vsp1/
Dvsp1_dl.c160 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()
743 cmd->cmds[0].opcode = cmd->opcode; in vsp1_dl_ext_cmd_fill_header()
744 cmd->cmds[0].flags = cmd->flags; in vsp1_dl_ext_cmd_fill_header()
745 cmd->cmds[0].address_set = cmd->data_dma; in vsp1_dl_ext_cmd_fill_header()
[all …]
/Linux-v5.4/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()
229 chip->extra_dma.cmds->command = cpu_to_le16(DBDMA_STOP); in snd_pmac_pcm_prepare()
239 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { in snd_pmac_pcm_prepare()
277 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
292 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
316 volatile struct dbdma_cmd __iomem *cp = &rec->cmd.cmds[rec->cur_period]; in snd_pmac_pcm_pointer()
413 memcpy((void *)emergency_dbdma.cmds, (void *)cp, in snd_pmac_pcm_dead_xfer()
418 cp = emergency_dbdma.cmds; in snd_pmac_pcm_dead_xfer()
460 cp = emergency_dbdma.cmds; in snd_pmac_pcm_update()
[all …]
/Linux-v5.4/fs/quota/
Dcompat.c48 unsigned int cmds; in COMPAT_SYSCALL_DEFINE4() local
57 cmds = cmd >> SUBCMDSHIFT; in COMPAT_SYSCALL_DEFINE4()
59 switch (cmds) { in COMPAT_SYSCALL_DEFINE4()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.c436 err = root->cmds->destroy_flow_table(root, ft); in del_hw_flow_table()
468 err = root->cmds->update_fte(root, ft, fg, fte->modify_mask, fte); in modify_fte()
525 err = root->cmds->delete_fte(root, ft, fte); in del_hw_fte()
565 if (fg->node.active && root->cmds->destroy_flow_group(root, ft, fg)) in del_hw_flow_group()
817 err = root->cmds->modify_flow_table(root, iter, ft); in connect_fts_in_prio()
865 err = root->cmds->update_root_ft(root, ft, qpn, false); in update_root_ft_create()
869 err = root->cmds->update_root_ft(root, ft, in update_root_ft_create()
905 err = root->cmds->update_fte(root, ft, fg, in _mlx5_modify_rule_destination()
1048 err = root->cmds->create_flow_table(root, ft, log_table_sz, next_ft); in __mlx5_create_flow_table()
1065 root->cmds->destroy_flow_table(root, ft); in __mlx5_create_flow_table()
[all …]
/Linux-v5.4/drivers/soc/qcom/
Drpmh-rsc.c228 cmd = &req->cmds[j]; in tcs_tx_done()
271 cmd = &msg->cmds[i]; in __tcs_buffer_write()
327 if (addr == msg->cmds[k].addr) in check_for_req_inflight()
404 if (!msg || !msg->cmds || !msg->num_cmds || in rpmh_rsc_send_data()
414 msg->cmds[0].addr); in rpmh_rsc_send_data()
454 slot = find_match(tcs, msg->cmds, msg->num_cmds); in find_slots()
471 tcs->cmd_cache[slot + i] = msg->cmds[i].addr; in find_slots()
511 if (!msg || !msg->cmds || !msg->num_cmds || in rpmh_rsc_write_ctrl_data()
/Linux-v5.4/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-v5.4/arch/mips/include/asm/octeon/
Dcvmx-cmd-queue.h330 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-v5.4/drivers/mailbox/
Dbcm-flexrm-mailbox.c719 if (!msg->sba.cmds || !msg->sba.cmds_count) in flexrm_sba_sanity_check()
723 if (((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) || in flexrm_sba_sanity_check()
724 (msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C)) && in flexrm_sba_sanity_check()
725 (msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_OUTPUT)) in flexrm_sba_sanity_check()
727 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) && in flexrm_sba_sanity_check()
728 (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) in flexrm_sba_sanity_check()
730 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C) && in flexrm_sba_sanity_check()
731 (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) in flexrm_sba_sanity_check()
733 if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_RESP) && in flexrm_sba_sanity_check()
734 (msg->sba.cmds[i].resp_len > DSTT_LENGTH_MASK)) in flexrm_sba_sanity_check()
[all …]
/Linux-v5.4/include/linux/platform_data/
Dvideo-pxafb.h157 extern int pxafb_smart_queue(struct fb_info *info, uint16_t *cmds, int);
161 uint16_t *cmds, int n) in pxafb_smart_queue() argument

12345