Home
last modified time | relevance | path

Searched full:cmd (Results 1 – 25 of 4816) sorted by relevance

12345678910>>...193

/linux-6.12.1/drivers/md/
Ddm-cache-metadata.c239 static int superblock_read_lock(struct dm_cache_metadata *cmd, in superblock_read_lock() argument
242 return dm_bm_read_lock(cmd->bm, CACHE_SUPERBLOCK_LOCATION, in superblock_read_lock()
246 static int superblock_lock_zero(struct dm_cache_metadata *cmd, in superblock_lock_zero() argument
249 return dm_bm_write_lock_zero(cmd->bm, CACHE_SUPERBLOCK_LOCATION, in superblock_lock_zero()
253 static int superblock_lock(struct dm_cache_metadata *cmd, in superblock_lock() argument
256 return dm_bm_write_lock(cmd->bm, CACHE_SUPERBLOCK_LOCATION, in superblock_lock()
291 static void __setup_mapping_info(struct dm_cache_metadata *cmd) in __setup_mapping_info() argument
300 dm_array_info_init(&cmd->info, cmd->tm, &vt); in __setup_mapping_info()
302 if (cmd->policy_hint_size) { in __setup_mapping_info()
304 dm_array_info_init(&cmd->hint_info, cmd->tm, &vt); in __setup_mapping_info()
[all …]
Ddm-clone-metadata.c273 static inline int superblock_read_lock(struct dm_clone_metadata *cmd, in superblock_read_lock() argument
276 return dm_bm_read_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); in superblock_read_lock()
279 static inline int superblock_write_lock_zero(struct dm_clone_metadata *cmd, in superblock_write_lock_zero() argument
282 return dm_bm_write_lock_zero(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock); in superblock_write_lock_zero()
285 static int __copy_sm_root(struct dm_clone_metadata *cmd) in __copy_sm_root() argument
290 r = dm_sm_root_size(cmd->sm, &root_size); in __copy_sm_root()
294 return dm_sm_copy_root(cmd->sm, &cmd->metadata_space_map_root, root_size); in __copy_sm_root()
298 static void __prepare_superblock(struct dm_clone_metadata *cmd, in __prepare_superblock() argument
310 memcpy(&sb->metadata_space_map_root, &cmd->metadata_space_map_root, in __prepare_superblock()
311 sizeof(cmd->metadata_space_map_root)); in __prepare_superblock()
[all …]
/linux-6.12.1/drivers/net/wireless/ti/wl18xx/
Dcmd.c8 #include "../wlcore/cmd.h"
12 #include "cmd.h"
18 struct wl18xx_cmd_channel_switch *cmd; in wl18xx_cmd_channel_switch() local
22 wl1271_debug(DEBUG_ACX, "cmd channel switch (count=%d)", in wl18xx_cmd_channel_switch()
25 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_channel_switch()
26 if (!cmd) { in wl18xx_cmd_channel_switch()
31 cmd->role_id = wlvif->role_id; in wl18xx_cmd_channel_switch()
32 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch()
33 cmd->switch_time = ch_switch->count; in wl18xx_cmd_channel_switch()
34 cmd->stop_tx = ch_switch->block_tx; in wl18xx_cmd_channel_switch()
[all …]
Dscan.c12 static void wl18xx_adjust_channels(struct wl18xx_cmd_scan_params *cmd, in wl18xx_adjust_channels() argument
15 memcpy(cmd->passive, cmd_channels->passive, sizeof(cmd->passive)); in wl18xx_adjust_channels()
16 memcpy(cmd->active, cmd_channels->active, sizeof(cmd->active)); in wl18xx_adjust_channels()
17 cmd->dfs = cmd_channels->dfs; in wl18xx_adjust_channels()
18 cmd->passive_active = cmd_channels->passive_active; in wl18xx_adjust_channels()
20 memcpy(cmd->channels_2, cmd_channels->channels_2, in wl18xx_adjust_channels()
21 sizeof(cmd->channels_2)); in wl18xx_adjust_channels()
22 memcpy(cmd->channels_5, cmd_channels->channels_5, in wl18xx_adjust_channels()
23 sizeof(cmd->channels_5)); in wl18xx_adjust_channels()
30 struct wl18xx_cmd_scan_params *cmd; in wl18xx_scan_send() local
[all …]
/linux-6.12.1/tools/lib/subcmd/
Drun-command.c12 #include "exec-cmd.h"
29 int start_command(struct child_process *cmd) in start_command() argument
40 need_in = !cmd->no_stdin && cmd->in < 0; in start_command()
43 if (cmd->out > 0) in start_command()
44 close(cmd->out); in start_command()
47 cmd->in = fdin[1]; in start_command()
50 need_out = !cmd->no_stdout in start_command()
51 && !cmd->stdout_to_stderr in start_command()
52 && cmd->out < 0; in start_command()
57 else if (cmd->in) in start_command()
[all …]
/linux-6.12.1/drivers/net/wireless/microchip/wilc1000/
Dsdio.c66 static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd) in wilc_sdio_cmd52() argument
74 func->num = cmd->function; in wilc_sdio_cmd52()
75 if (cmd->read_write) { /* write */ in wilc_sdio_cmd52()
76 if (cmd->raw) { in wilc_sdio_cmd52()
77 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
78 data = sdio_readb(func, cmd->address, &ret); in wilc_sdio_cmd52()
79 cmd->data = data; in wilc_sdio_cmd52()
81 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
84 data = sdio_readb(func, cmd->address, &ret); in wilc_sdio_cmd52()
85 cmd->data = data; in wilc_sdio_cmd52()
[all …]
/linux-6.12.1/drivers/net/wireless/ti/wlcore/
Dcmd.c23 #include "cmd.h"
38 * return the cmd status code on success.
43 struct wl1271_cmd_header *cmd; in __wlcore_cmd_send() local
54 if (WARN_ON_ONCE(len < sizeof(*cmd))) in __wlcore_cmd_send()
57 cmd = buf; in __wlcore_cmd_send()
58 cmd->id = cpu_to_le16(id); in __wlcore_cmd_send()
59 cmd->status = 0; in __wlcore_cmd_send()
103 ret = wlcore_read(wl, wl->cmd_box_addr, cmd, res_len, false); in __wlcore_cmd_send()
107 status = le16_to_cpu(cmd->status); in __wlcore_cmd_send()
118 * send command to fw and return cmd status on success
[all …]
/linux-6.12.1/drivers/target/iscsi/
Discsi_target_erl1.c90 struct iscsit_cmd *cmd, in iscsit_send_recovery_r2t_for_snack() argument
98 spin_lock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack()
100 spin_unlock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack()
104 spin_unlock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack()
106 iscsit_add_cmd_to_immediate_queue(cmd, cmd->conn, ISTATE_SEND_R2T); in iscsit_send_recovery_r2t_for_snack()
112 struct iscsit_cmd *cmd, in iscsit_handle_r2t_snack() argument
124 if ((cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_handle_r2t_snack()
125 (begrun <= cmd->acked_data_sn)) { in iscsit_handle_r2t_snack()
129 " protocol error.\n", cmd->init_task_tag, begrun, in iscsit_handle_r2t_snack()
130 (begrun + runlength), cmd->acked_data_sn); in iscsit_handle_r2t_snack()
[all …]
Discsi_target_tmr.c31 struct iscsit_cmd *cmd, in iscsit_tmr_abort_task() argument
35 struct iscsit_conn *conn = cmd->conn; in iscsit_tmr_abort_task()
36 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_abort_task()
37 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_abort_task()
106 struct iscsit_cmd *cmd, in iscsit_tmr_task_reassign() argument
110 struct iscsit_conn *conn = cmd->conn; in iscsit_tmr_task_reassign()
112 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_task_reassign()
113 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_task_reassign()
178 struct iscsit_cmd *cmd, in iscsit_task_reassign_remove_cmd() argument
185 ret = iscsit_remove_cmd_from_connection_recovery(cmd, sess); in iscsit_task_reassign_remove_cmd()
[all …]
Discsi_target.c476 int iscsit_queue_rsp(struct iscsit_conn *conn, struct iscsit_cmd *cmd) in iscsit_queue_rsp() argument
478 return iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); in iscsit_queue_rsp()
482 void iscsit_aborted_task(struct iscsit_conn *conn, struct iscsit_cmd *cmd) in iscsit_aborted_task() argument
485 if (!list_empty(&cmd->i_conn_node)) in iscsit_aborted_task()
486 list_del_init(&cmd->i_conn_node); in iscsit_aborted_task()
489 __iscsit_free_cmd(cmd, true); in iscsit_aborted_task()
498 iscsit_xmit_nondatain_pdu(struct iscsit_conn *conn, struct iscsit_cmd *cmd, in iscsit_xmit_nondatain_pdu() argument
501 struct iscsi_hdr *hdr = (struct iscsi_hdr *)cmd->pdu; in iscsit_xmit_nondatain_pdu()
506 iov = &cmd->iov_misc[0]; in iscsit_xmit_nondatain_pdu()
507 iov[niov].iov_base = cmd->pdu; in iscsit_xmit_nondatain_pdu()
[all …]
Discsi_target_seq_pdu_list.c21 static void iscsit_dump_seq_list(struct iscsit_cmd *cmd) in iscsit_dump_seq_list() argument
27 cmd->init_task_tag); in iscsit_dump_seq_list()
29 for (i = 0; i < cmd->seq_count; i++) { in iscsit_dump_seq_list()
30 seq = &cmd->seq_list[i]; in iscsit_dump_seq_list()
39 static void iscsit_dump_pdu_list(struct iscsit_cmd *cmd) in iscsit_dump_pdu_list() argument
45 cmd->init_task_tag); in iscsit_dump_pdu_list()
47 for (i = 0; i < cmd->pdu_count; i++) { in iscsit_dump_pdu_list()
48 pdu = &cmd->pdu_list[i]; in iscsit_dump_pdu_list()
55 static void iscsit_dump_seq_list(struct iscsit_cmd *cmd) {} in iscsit_dump_seq_list() argument
56 static void iscsit_dump_pdu_list(struct iscsit_cmd *cmd) {} in iscsit_dump_pdu_list() argument
[all …]
/linux-6.12.1/drivers/target/
Dtarget_core_transport.c54 static void transport_complete_task_attr(struct se_cmd *cmd);
55 static void translate_sense_reason(struct se_cmd *cmd, sense_reason_t reason);
56 static void transport_handle_queue_full(struct se_cmd *cmd,
696 static void target_remove_from_state_list(struct se_cmd *cmd) in target_remove_from_state_list() argument
698 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list()
704 spin_lock_irqsave(&dev->queues[cmd->cpuid].lock, flags); in target_remove_from_state_list()
705 if (cmd->state_active) { in target_remove_from_state_list()
706 list_del(&cmd->state_list); in target_remove_from_state_list()
707 cmd->state_active = false; in target_remove_from_state_list()
709 spin_unlock_irqrestore(&dev->queues[cmd->cpuid].lock, flags); in target_remove_from_state_list()
[all …]
Dtarget_core_sbc.c29 static sense_reason_t sbc_execute_unmap(struct se_cmd *cmd);
32 sbc_emulate_readcapacity(struct se_cmd *cmd) in sbc_emulate_readcapacity() argument
34 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
35 unsigned char *cdb = cmd->t_task_cdb; in sbc_emulate_readcapacity()
64 rbuf = transport_kmap_data_sg(cmd); in sbc_emulate_readcapacity()
66 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity()
67 transport_kunmap_data_sg(cmd); in sbc_emulate_readcapacity()
70 target_complete_cmd_with_length(cmd, SAM_STAT_GOOD, 8); in sbc_emulate_readcapacity()
75 sbc_emulate_readcapacity_16(struct se_cmd *cmd) in sbc_emulate_readcapacity_16() argument
77 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
[all …]
/linux-6.12.1/drivers/net/wireless/ti/wl1251/
Dcmd.c2 #include "cmd.h"
24 struct wl1251_cmd_header *cmd; in wl1251_cmd_send() local
29 cmd = buf; in wl1251_cmd_send()
30 cmd->id = id; in wl1251_cmd_send()
31 cmd->status = 0; in wl1251_cmd_send()
73 wl1251_debug(DEBUG_CMD, "cmd test"); in wl1251_cmd_test()
115 wl1251_debug(DEBUG_CMD, "cmd interrogate"); in wl1251_cmd_interrogate()
132 if (acx->cmd.status != CMD_STATUS_SUCCESS) in wl1251_cmd_interrogate()
134 acx->cmd.status); in wl1251_cmd_interrogate()
153 wl1251_debug(DEBUG_CMD, "cmd configure"); in wl1251_cmd_configure()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/
Dcam.h15 static inline void FWCMD_SET_ADDR_IDX(void *cmd, u32 value) in FWCMD_SET_ADDR_IDX() argument
17 le32p_replace_bits((__le32 *)(cmd) + 1, value, GENMASK(7, 0)); in FWCMD_SET_ADDR_IDX()
20 static inline void FWCMD_SET_ADDR_OFFSET(void *cmd, u32 value) in FWCMD_SET_ADDR_OFFSET() argument
22 le32p_replace_bits((__le32 *)(cmd) + 1, value, GENMASK(15, 8)); in FWCMD_SET_ADDR_OFFSET()
25 static inline void FWCMD_SET_ADDR_LEN(void *cmd, u32 value) in FWCMD_SET_ADDR_LEN() argument
27 le32p_replace_bits((__le32 *)(cmd) + 1, value, GENMASK(23, 16)); in FWCMD_SET_ADDR_LEN()
30 static inline void FWCMD_SET_ADDR_VALID(void *cmd, u32 value) in FWCMD_SET_ADDR_VALID() argument
32 le32p_replace_bits((__le32 *)(cmd) + 2, value, BIT(0)); in FWCMD_SET_ADDR_VALID()
35 static inline void FWCMD_SET_ADDR_NET_TYPE(void *cmd, u32 value) in FWCMD_SET_ADDR_NET_TYPE() argument
37 le32p_replace_bits((__le32 *)(cmd) + 2, value, GENMASK(2, 1)); in FWCMD_SET_ADDR_NET_TYPE()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/
Ddmub_abm_lcd.c58 union dmub_rb_cmd cmd; in dmub_abm_enable_fractional_pwm() local
67 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_enable_fractional_pwm()
68 cmd.abm_set_pwm_frac.header.type = DMUB_CMD__ABM; in dmub_abm_enable_fractional_pwm()
69 cmd.abm_set_pwm_frac.header.sub_type = DMUB_CMD__ABM_SET_PWM_FRAC; in dmub_abm_enable_fractional_pwm()
70 cmd.abm_set_pwm_frac.abm_set_pwm_frac_data.fractional_pwm = fractional_pwm; in dmub_abm_enable_fractional_pwm()
71 cmd.abm_set_pwm_frac.abm_set_pwm_frac_data.version = DMUB_CMD_ABM_CONTROL_VERSION_1; in dmub_abm_enable_fractional_pwm()
72 cmd.abm_set_pwm_frac.abm_set_pwm_frac_data.panel_mask = panel_mask; in dmub_abm_enable_fractional_pwm()
73 cmd.abm_set_pwm_frac.header.payload_bytes = sizeof(struct dmub_cmd_abm_set_pwm_frac_data); in dmub_abm_enable_fractional_pwm()
75 dc_wake_and_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_enable_fractional_pwm()
143 union dmub_rb_cmd cmd; in dmub_abm_set_level() local
[all …]
/linux-6.12.1/drivers/iommu/iommufd/
Dioas.c39 struct iommu_ioas_alloc *cmd = ucmd->cmd; in iommufd_ioas_alloc_ioctl() local
43 if (cmd->flags) in iommufd_ioas_alloc_ioctl()
50 cmd->out_ioas_id = ioas->obj.id; in iommufd_ioas_alloc_ioctl()
51 rc = iommufd_ucmd_respond(ucmd, sizeof(*cmd)); in iommufd_ioas_alloc_ioctl()
65 struct iommu_ioas_iova_ranges *cmd = ucmd->cmd; in iommufd_ioas_iova_ranges() local
71 if (cmd->__reserved) in iommufd_ioas_iova_ranges()
74 ioas = iommufd_get_ioas(ucmd->ictx, cmd->ioas_id); in iommufd_ioas_iova_ranges()
79 max_iovas = cmd->num_iovas; in iommufd_ioas_iova_ranges()
80 ranges = u64_to_user_ptr(cmd->allowed_iovas); in iommufd_ioas_iova_ranges()
81 cmd->num_iovas = 0; in iommufd_ioas_iova_ranges()
[all …]
/linux-6.12.1/net/ncsi/
Dncsi-cmd.c66 struct ncsi_cmd_pkt *cmd; in ncsi_cmd_handler_default() local
68 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_default()
69 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_default()
77 struct ncsi_cmd_sp_pkt *cmd; in ncsi_cmd_handler_sp() local
79 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_sp()
80 cmd->hw_arbitration = nca->bytes[0]; in ncsi_cmd_handler_sp()
81 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_sp()
89 struct ncsi_cmd_dc_pkt *cmd; in ncsi_cmd_handler_dc() local
91 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_dc()
92 cmd->ald = nca->bytes[0]; in ncsi_cmd_handler_dc()
[all …]
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/
Dpower.c23 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_send_cmd() argument
28 le32_to_cpu(cmd->ba_enable_beacon_abort)); in iwl_mvm_beacon_filter_send_cmd()
30 le32_to_cpu(cmd->ba_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
32 le32_to_cpu(cmd->bf_debug_flag)); in iwl_mvm_beacon_filter_send_cmd()
34 le32_to_cpu(cmd->bf_enable_beacon_filter)); in iwl_mvm_beacon_filter_send_cmd()
36 le32_to_cpu(cmd->bf_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
38 le32_to_cpu(cmd->bf_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
40 le32_to_cpu(cmd->bf_roaming_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
42 le32_to_cpu(cmd->bf_roaming_state)); in iwl_mvm_beacon_filter_send_cmd()
44 le32_to_cpu(cmd->bf_temp_threshold)); in iwl_mvm_beacon_filter_send_cmd()
[all …]
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dgic_v3_its.c105 static inline void its_fixup_cmd(struct its_cmd_block *cmd) in its_fixup_cmd() argument
108 cmd->raw_cmd_le[0] = cpu_to_le64(cmd->raw_cmd[0]); in its_fixup_cmd()
109 cmd->raw_cmd_le[1] = cpu_to_le64(cmd->raw_cmd[1]); in its_fixup_cmd()
110 cmd->raw_cmd_le[2] = cpu_to_le64(cmd->raw_cmd[2]); in its_fixup_cmd()
111 cmd->raw_cmd_le[3] = cpu_to_le64(cmd->raw_cmd[3]); in its_fixup_cmd()
121 static void its_encode_cmd(struct its_cmd_block *cmd, u8 cmd_nr) in its_encode_cmd() argument
123 its_mask_encode(&cmd->raw_cmd[0], cmd_nr, 7, 0); in its_encode_cmd()
126 static void its_encode_devid(struct its_cmd_block *cmd, u32 devid) in its_encode_devid() argument
128 its_mask_encode(&cmd->raw_cmd[0], devid, 63, 32); in its_encode_devid()
131 static void its_encode_event_id(struct its_cmd_block *cmd, u32 id) in its_encode_event_id() argument
[all …]
/linux-6.12.1/arch/powerpc/platforms/powermac/
Dpfunc_core.c96 static u32 pmf_next32(struct pmf_cmd *cmd) in pmf_next32() argument
99 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32()
100 cmd->error = 1; in pmf_next32()
103 value = *((u32 *)cmd->cmdptr); in pmf_next32()
104 cmd->cmdptr += 4; in pmf_next32()
108 static const void* pmf_next_blob(struct pmf_cmd *cmd, int count) in pmf_next_blob() argument
111 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob()
112 cmd->error = 1; in pmf_next_blob()
115 value = cmd->cmdptr; in pmf_next_blob()
116 cmd->cmdptr += count; in pmf_next_blob()
[all …]
/linux-6.12.1/drivers/net/wireless/marvell/libertas/
Dcmd.c16 #include "cmd.h"
64 * @cmd: the command ID
68 static u8 is_command_allowed_in_ps(u16 cmd) in is_command_allowed_in_ps() argument
70 switch (cmd) { in is_command_allowed_in_ps()
91 struct cmd_ds_get_hw_spec cmd; in lbs_update_hw_spec() local
95 memset(&cmd, 0, sizeof(cmd)); in lbs_update_hw_spec()
96 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_update_hw_spec()
97 memcpy(cmd.permanentaddr, priv->current_addr, ETH_ALEN); in lbs_update_hw_spec()
98 ret = lbs_cmd_with_response(priv, CMD_GET_HW_SPEC, &cmd); in lbs_update_hw_spec()
102 priv->fwcapinfo = le32_to_cpu(cmd.fwcapinfo); in lbs_update_hw_spec()
[all …]
/linux-6.12.1/drivers/macintosh/
Dsmu.c15 * - maybe avoid some data copies with i2c by directly using the smu cmd
69 u8 cmd; member
114 struct smu_cmd *cmd; in smu_start_cmd() local
120 cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link); in smu_start_cmd()
121 smu->cmd_cur = cmd; in smu_start_cmd()
122 list_del(&cmd->link); in smu_start_cmd()
124 DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, in smu_start_cmd()
125 cmd->data_len); in smu_start_cmd()
126 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf); in smu_start_cmd()
129 smu->cmd_buf->cmd = cmd->cmd; in smu_start_cmd()
[all …]
/linux-6.12.1/drivers/media/dvb-frontends/
Dsi2168.c14 static void cmd_init(struct si2168_cmd *cmd, const u8 *buf, int wlen, int rlen) in cmd_init() argument
16 memcpy(cmd->args, buf, wlen); in cmd_init()
17 cmd->wlen = wlen; in cmd_init()
18 cmd->rlen = rlen; in cmd_init()
22 static int si2168_cmd_execute(struct i2c_client *client, struct si2168_cmd *cmd) in si2168_cmd_execute() argument
30 if (cmd->wlen) { in si2168_cmd_execute()
31 /* write cmd and args for firmware */ in si2168_cmd_execute()
32 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2168_cmd_execute()
35 } else if (ret != cmd->wlen) { in si2168_cmd_execute()
41 if (cmd->rlen) { in si2168_cmd_execute()
[all …]
/linux-6.12.1/drivers/mmc/core/
Dsd_ops.c33 struct mmc_command *cmd; member
39 struct mmc_command cmd = {}; in mmc_app_cmd() local
44 cmd.opcode = MMC_APP_CMD; in mmc_app_cmd()
47 cmd.arg = card->rca << 16; in mmc_app_cmd()
48 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; in mmc_app_cmd()
50 cmd.arg = 0; in mmc_app_cmd()
51 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_BCR; in mmc_app_cmd()
54 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_app_cmd()
59 if (!mmc_host_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmc_app_cmd()
67 struct mmc_command *cmd) in mmc_wait_for_app_cmd() argument
[all …]

12345678910>>...193