| /linux/tools/lib/subcmd/ |
| H A D | help.c | 17 void add_cmdname(struct cmdnames *cmds, const char *name, size_t len) in add_cmdname() argument 27 ALLOC_GROW(cmds->names, cmds->cnt + 1, cmds->alloc); in add_cmdname() 28 cmds->names[cmds->cnt++] = ent; in add_cmdname() 31 void clean_cmdnames(struct cmdnames *cmds) in clean_cmdnames() argument 35 for (i = 0; i < cmds->cnt; ++i) in clean_cmdnames() 36 zfree(&cmds->names[i]); in clean_cmdnames() 37 zfree(&cmds->names); in clean_cmdnames() 38 cmds->cnt = 0; in clean_cmdnames() 39 cmds->alloc = 0; in clean_cmdnames() 49 void uniq(struct cmdnames *cmds) in uniq() argument [all …]
|
| H A 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/tools/perf/tests/ |
| H A D | subcmd-help.c | 9 struct cmdnames cmds = {}; in test__load_cmdnames() local 11 add_cmdname(&cmds, "aaa", 3); in test__load_cmdnames() 12 add_cmdname(&cmds, "foo", 3); in test__load_cmdnames() 13 add_cmdname(&cmds, "xyz", 3); in test__load_cmdnames() 15 TEST_ASSERT_VAL("cannot find cmd", is_in_cmdlist(&cmds, "aaa") == 1); in test__load_cmdnames() 16 TEST_ASSERT_VAL("wrong cmd", is_in_cmdlist(&cmds, "bar") == 0); in test__load_cmdnames() 17 TEST_ASSERT_VAL("case sensitive", is_in_cmdlist(&cmds, "XYZ") == 0); in test__load_cmdnames() 19 clean_cmdnames(&cmds); in test__load_cmdnames() 26 struct cmdnames cmds = {}; in test__uniq_cmdnames() local 29 add_cmdname(&cmds, "aaa", 3); in test__uniq_cmdnames() [all …]
|
| /linux/tools/perf/util/ |
| H A 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 in add_cmd_list() [all...] |
| /linux/tools/testing/selftests/tc-testing/plugin-lib/ |
| H A D | nsPlugin.py | 163 cmds = [] 167 cmds.append(self._replace_keywords('netns add {}'.format(ns))) 168 cmds.append(self._replace_keywords('link add $DEV1 type veth peer name $DEV0')) 169 cmds.append(self._replace_keywords('link set $DEV1 netns {}'.format(ns))) 170 cmds.append(self._replace_keywords('link add $DUMMY type dummy'.format(ns))) 171 cmds.append(self._replace_keywords('link set $DUMMY netns {}'.format(ns))) 172 cmds.append(self._replace_keywords('netns exec {} $IP link set $DEV1 up'.format(ns))) 173 cmds.append(self._replace_keywords('netns exec {} $IP link set $DUMMY up'.format(ns))) 174 cmds.append(self._replace_keywords('link set $DEV0 up'.format(ns))) 177 cmds.append(self._replace_keywords('link set $DEV2 netns {}'.format(ns))) [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_overlay.c | 105 } *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/tools/usb/usbip/src/ |
| H A 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/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | notif-wait.c | 47 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()
|
| H A D | notif-wait.h | 29 * @cmds: command IDs 53 u16 cmds[MAX_NOTIF_CMDS]; member 83 const u16 *cmds, int n_cmds,
|
| /linux/drivers/gpu/drm/i915/gt/uc/ |
| H A D | intel_guc_ct.c | 176 u32 *cmds, u32 size_in_bytes, u32 resv_space) in guc_ct_buffer_init() argument 181 ctb->cmds = cmds; in guc_ct_buffer_init() 266 u32 *cmds; in intel_guc_ct_init() local 285 /* store pointers to desc and cmds for send ctb */ in intel_guc_ct_init() 287 cmds = blob + 2 * CTB_DESC_SIZE; in intel_guc_ct_init() 290 CT_DEBUG(ct, "%s desc %#tx cmds %#tx size %u/%u\n", "send", in intel_guc_ct_init() 291 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init() 294 guc_ct_buffer_init(&ct->ctbs.send, desc, cmds, cmds_size, resv_space); in intel_guc_ct_init() 296 /* store pointers to desc and cmds for recv ctb */ in intel_guc_ct_init() 298 cmds = blob + 2 * CTB_DESC_SIZE + CTB_H2G_BUFFER_SIZE; in intel_guc_ct_init() [all …]
|
| /linux/drivers/gpu/host1x/ |
| H A D | job.c | 66 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/fs/smb/client/ |
| H A D | smb2inode.c | 175 int *cmds, int num_cmds, struct cifsFileInfo *cfile, in smb2_compound_op() argument 274 if (num_cmds > 0 && cmds[0] == SMB2_OP_OPEN_QUERY) in smb2_compound_op() 279 switch (cmds[i]) { in smb2_compound_op() 667 if (rc == 0 && num_cmds > 0 && cmds[0] == SMB2_OP_OPEN_QUERY) { in smb2_compound_op() 696 switch (cmds[i]) { in smb2_compound_op() 910 static bool ea_unsupported(int *cmds, int num_cmds, in ea_unsupported() argument 915 if (cmds[num_cmds - 1] != SMB2_OP_QUERY_WSL_EA) in ea_unsupported() 953 int cmds[3]; in smb2_query_path_info() local 987 cmds[num_cmds++] = SMB2_OP_QUERY_INFO; in smb2_query_path_info() 989 cmds[num_cmds++] = SMB2_OP_POSIX_QUERY_INFO; in smb2_query_path_info() [all …]
|
| /linux/drivers/interconnect/qcom/ |
| H A D | bcm-voter.c | 265 * qcom_icc_bcm_voter_commit - generates and commits tcs cmds based on bcms 281 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/tools/perf/ |
| H A D | perf-completion.sh | 131 cmds_=$($cmd $1 --list-cmds) 159 cmds=$($cmd --list-opts) 161 cmds=$($cmd --list-cmds) 163 __perfcomp "$cmds" "$cur" 220 subcmds=$($cmd $prev_skip_opts --list-cmds)
|
| /linux/drivers/vdpa/mlx5/core/ |
| H A D | resources.c | 332 struct mlx5_vdpa_async_cmd *cmds, in issue_async_cmd() argument 337 struct mlx5_vdpa_async_cmd *cmd = &cmds[issued]; in issue_async_cmd() 349 wait_for_completion(&cmds[*completed].cmd_done); in issue_async_cmd() 367 struct mlx5_vdpa_async_cmd *cmds, in mlx5_vdpa_exec_async_cmds() argument 375 init_completion(&cmds[i].cmd_done); in mlx5_vdpa_exec_async_cmds() 379 err = issue_async_cmd(mvdev, cmds, issued, &completed); in mlx5_vdpa_exec_async_cmds() 390 wait_for_completion(&cmds[completed++].cmd_done); in mlx5_vdpa_exec_async_cmds()
|
| /linux/tools/bpf/bpftool/ |
| H A D | main.c | 191 int cmd_select(const struct cmd *cmds, int argc, char **argv, in cmd_select() 200 if (argc < 1 && cmds[0].func) in cmd_select() 201 return cmds[0].func(argc, argv); in cmd_select() 203 for (i = 0; cmds[i].cmd; i++) { in cmd_select() 204 if (is_prefix(*argv, cmds[i].cmd)) { in cmd_select() 205 if (!cmds[i].func) { in cmd_select() 207 cmds[i].cmd); in cmd_select() 210 return cmds[i].func(argc - 1, argv + 1); in cmd_select() 187 cmd_select(const struct cmd * cmds,int argc,char ** argv,int (* help)(int argc,char ** argv)) cmd_select() argument
|
| /linux/drivers/media/platform/renesas/vsp1/ |
| H A D | vsp1_dl.h | 31 * @cmds: array of command bodies for this extended cmd 32 * @num_cmds: quantity of commands in @cmds array 44 struct vsp1_pre_ext_dl_body *cmds; member
|
| /linux/drivers/nvme/target/ |
| H A D | rdma.c | 104 struct nvmet_rdma_cmd *cmds; member 129 struct nvmet_rdma_cmd *cmds; member 367 struct nvmet_rdma_cmd *cmds; in nvmet_rdma_alloc_cmds() local 370 cmds = kcalloc(nr_cmds, sizeof(struct nvmet_rdma_cmd), GFP_KERNEL); in nvmet_rdma_alloc_cmds() 371 if (!cmds) in nvmet_rdma_alloc_cmds() 375 ret = nvmet_rdma_alloc_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds() 380 return cmds; in nvmet_rdma_alloc_cmds() 384 nvmet_rdma_free_cmd(ndev, cmds + i, admin); in nvmet_rdma_alloc_cmds() 385 kfree(cmds); in nvmet_rdma_alloc_cmds() 391 struct nvmet_rdma_cmd *cmds, int nr_cmds, bool admin) in nvmet_rdma_free_cmds() argument [all …]
|
| /linux/sound/ppc/ |
| H A 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() 273 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger() 297 volatile struct dbdma_cmd __iomem *cp = &rec->cmd.cmds[rec->cur_period]; in snd_pmac_pcm_pointer() 391 memcpy((void *)emergency_dbdma.cmds, (void *)cp, in snd_pmac_pcm_dead_xfer() 396 cp = emergency_dbdma.cmds; in snd_pmac_pcm_dead_xfer() 438 cp = emergency_dbdma.cmds; in snd_pmac_pcm_update() [all...] |
| /linux/Documentation/scsi/ |
| H A D | ChangeLog.megaraid_sas | 116 2. Increase default cmds per lun to 256. 209 b). during the reset, driver will store the pending cmds 211 will re-issue those pending cmds again to FW after the OCR 216 cmds until the OCR finished. 222 e). In driver's IOCTL routine, the application cmds will wait for the 223 OCR to finish, then issue the cmds to FW. 316 6. Reasign the Application cmds to SAS2 controller 384 driver schedules for cmd completion if there are pending cmds 497 from the time cmds were last sent to FW. 520 …(hw_crit_error=1). If hw_crit_error==1, now we do not accept any processing of pending cmds/accept… [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_core.c | 579 err = root->cmds->destroy_flow_table(root, ft); in del_hw_flow_table() 613 err = root->cmds->update_fte(root, ft, fg, fte->act_dests.modify_mask, fte); in modify_fte() 741 err = root->cmds->update_fte(root, ft, fg, in del_hw_fte() 749 err = root->cmds->delete_fte(root, ft, fte); in del_hw_fte() 791 if (fg->node.active && root->cmds->destroy_flow_group(root, ft, fg)) in del_hw_flow_group() 1082 err = root->cmds->modify_flow_table(root, iter, ft); in connect_fts_in_prio() 1163 err = root->cmds->update_root_ft(root, ft, qpn, false); in update_root_ft_create() 1167 err = root->cmds->update_root_ft(root, ft, in update_root_ft_create() 1231 err = root->cmds->update_fte(root, ft, fg, in _mlx5_modify_rule_destination() 1387 err = root->cmds->create_flow_table(root, ft, ft_attr, next_ft); in __mlx5_create_flow_table() [all …]
|
| /linux/fs/quota/ |
| H A D | quota.c | 920 uint cmds, type; in SYSCALL_DEFINE4() local 925 cmds = cmd >> SUBCMDSHIFT; in SYSCALL_DEFINE4() 937 if (cmds == Q_SYNC) in SYSCALL_DEFINE4() 947 if (cmds == Q_QUOTAON) { in SYSCALL_DEFINE4() 955 sb = quotactl_block(special, cmds); in SYSCALL_DEFINE4() 961 ret = do_quotactl(sb, type, cmds, id, addr, pathp); in SYSCALL_DEFINE4() 963 if (!quotactl_cmd_onoff(cmds)) in SYSCALL_DEFINE4() 977 unsigned int cmds = cmd >> SUBCMDSHIFT; in SYSCALL_DEFINE4() local 988 if (quotactl_cmd_write(cmds)) { in SYSCALL_DEFINE4() 995 if (quotactl_cmd_onoff(cmds)) in SYSCALL_DEFINE4() [all …]
|
| /linux/drivers/mailbox/ |
| H A D | bcm-flexrm-mailbox.c | 709 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 …]
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | submit.c | 397 struct drm_tegra_submit_cmd *cmds; in submit_create_job() local 405 cmds = alloc_copy_user_array(u64_to_user_ptr(args->cmds_ptr), args->num_cmds, in submit_create_job() 406 sizeof(*cmds)); in submit_create_job() 407 if (IS_ERR(cmds)) { in submit_create_job() 408 SUBMIT_ERR(context, "failed to copy cmds array from userspace"); in submit_create_job() 409 return ERR_CAST(cmds); in submit_create_job() 428 struct drm_tegra_submit_cmd *cmd = &cmds[i]; in submit_create_job() 485 kvfree(cmds); in submit_create_job()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_ct.c | 339 h2g->cmds = IOSYS_MAP_INIT_OFFSET(map, CTB_DESC_SIZE * 2); in guc_ct_ctb_h2g_init() 357 g2h->cmds = IOSYS_MAP_INIT_OFFSET(map, CTB_DESC_SIZE * 2 + in guc_ct_ctb_g2h_init() 756 struct iosys_map map = IOSYS_MAP_INIT_OFFSET(&h2g->cmds, in h2g_write() 1601 xe_map_memcpy_from(xe, msg, &g2h->cmds, sizeof(u32) * g2h->info.head, in g2h_read() 1618 &g2h->cmds, sizeof(u32) * head, in g2h_read() 1621 &g2h->cmds, 0, in g2h_read() 1625 &g2h->cmds, sizeof(u32) * head, in g2h_read() 1799 static void xe_fixup_u64_in_cmds(struct xe_device *xe, struct iosys_map *cmds, in xe_fixup_u64_in_cmds() argument 1805 lo = xe_map_rd_ring_u32(xe, cmds, idx, size); in xe_fixup_u64_in_cmds() 1806 hi = xe_map_rd_ring_u32(xe, cmds, idx + 1, size); in xe_fixup_u64_in_cmds() [all …]
|