Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 3589) sorted by relevance

12345678910>>...144

/Linux-v4.19/drivers/md/
Ddm-cache-metadata.c237 static int superblock_read_lock(struct dm_cache_metadata *cmd, in superblock_read_lock() argument
240 return dm_bm_read_lock(cmd->bm, CACHE_SUPERBLOCK_LOCATION, in superblock_read_lock()
244 static int superblock_lock_zero(struct dm_cache_metadata *cmd, in superblock_lock_zero() argument
247 return dm_bm_write_lock_zero(cmd->bm, CACHE_SUPERBLOCK_LOCATION, in superblock_lock_zero()
251 static int superblock_lock(struct dm_cache_metadata *cmd, in superblock_lock() argument
254 return dm_bm_write_lock(cmd->bm, CACHE_SUPERBLOCK_LOCATION, in superblock_lock()
289 static void __setup_mapping_info(struct dm_cache_metadata *cmd) in __setup_mapping_info() argument
298 dm_array_info_init(&cmd->info, cmd->tm, &vt); in __setup_mapping_info()
300 if (cmd->policy_hint_size) { in __setup_mapping_info()
302 dm_array_info_init(&cmd->hint_info, cmd->tm, &vt); in __setup_mapping_info()
[all …]
/Linux-v4.19/drivers/target/
Dtarget_core_transport.c66 static void transport_complete_task_attr(struct se_cmd *cmd);
67 static void translate_sense_reason(struct se_cmd *cmd, sense_reason_t reason);
68 static void transport_handle_queue_full(struct se_cmd *cmd,
626 static void target_remove_from_state_list(struct se_cmd *cmd) in target_remove_from_state_list() argument
628 struct se_device *dev = cmd->se_dev; in target_remove_from_state_list()
635 if (cmd->state_active) { in target_remove_from_state_list()
636 list_del(&cmd->state_list); in target_remove_from_state_list()
637 cmd->state_active = false; in target_remove_from_state_list()
649 static int transport_cmd_check_stop_to_fabric(struct se_cmd *cmd) in transport_cmd_check_stop_to_fabric() argument
653 target_remove_from_state_list(cmd); in transport_cmd_check_stop_to_fabric()
[all …]
Dtarget_core_sbc.c42 static sense_reason_t sbc_execute_unmap(struct se_cmd *cmd);
45 sbc_emulate_readcapacity(struct se_cmd *cmd) in sbc_emulate_readcapacity() argument
47 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity()
48 unsigned char *cdb = cmd->t_task_cdb; in sbc_emulate_readcapacity()
77 rbuf = transport_kmap_data_sg(cmd); in sbc_emulate_readcapacity()
79 memcpy(rbuf, buf, min_t(u32, sizeof(buf), cmd->data_length)); in sbc_emulate_readcapacity()
80 transport_kunmap_data_sg(cmd); in sbc_emulate_readcapacity()
83 target_complete_cmd_with_length(cmd, GOOD, 8); in sbc_emulate_readcapacity()
88 sbc_emulate_readcapacity_16(struct se_cmd *cmd) in sbc_emulate_readcapacity_16() argument
90 struct se_device *dev = cmd->se_dev; in sbc_emulate_readcapacity_16()
[all …]
/Linux-v4.19/tools/lib/subcmd/
Drun-command.c29 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()
58 close(cmd->in); in start_command()
[all …]
/Linux-v4.19/drivers/target/iscsi/
Discsi_target_erl1.c121 struct iscsi_cmd *cmd, in iscsit_send_recovery_r2t_for_snack() argument
129 spin_lock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack()
131 spin_unlock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack()
135 spin_unlock_bh(&cmd->r2t_lock); in iscsit_send_recovery_r2t_for_snack()
137 iscsit_add_cmd_to_immediate_queue(cmd, cmd->conn, ISTATE_SEND_R2T); in iscsit_send_recovery_r2t_for_snack()
143 struct iscsi_cmd *cmd, in iscsit_handle_r2t_snack() argument
155 if ((cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_handle_r2t_snack()
156 (begrun <= cmd->acked_data_sn)) { in iscsit_handle_r2t_snack()
160 " protocol error.\n", cmd->init_task_tag, begrun, in iscsit_handle_r2t_snack()
161 (begrun + runlength), cmd->acked_data_sn); in iscsit_handle_r2t_snack()
[all …]
Discsi_target_tmr.c39 struct iscsi_cmd *cmd, in iscsit_tmr_abort_task() argument
43 struct iscsi_conn *conn = cmd->conn; in iscsit_tmr_abort_task()
44 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_abort_task()
45 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_abort_task()
114 struct iscsi_cmd *cmd, in iscsit_tmr_task_reassign() argument
118 struct iscsi_conn *conn = cmd->conn; in iscsit_tmr_task_reassign()
120 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_task_reassign()
121 struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; in iscsit_tmr_task_reassign()
186 struct iscsi_cmd *cmd, in iscsit_task_reassign_remove_cmd() argument
193 ret = iscsit_remove_cmd_from_connection_recovery(cmd, sess); in iscsit_task_reassign_remove_cmd()
[all …]
Discsi_target.c486 int iscsit_queue_rsp(struct iscsi_conn *conn, struct iscsi_cmd *cmd) in iscsit_queue_rsp() argument
488 return iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); in iscsit_queue_rsp()
492 void iscsit_aborted_task(struct iscsi_conn *conn, struct iscsi_cmd *cmd) in iscsit_aborted_task() argument
495 if (!list_empty(&cmd->i_conn_node) && in iscsit_aborted_task()
496 !(cmd->se_cmd.transport_state & CMD_T_FABRIC_STOP)) in iscsit_aborted_task()
497 list_del_init(&cmd->i_conn_node); in iscsit_aborted_task()
500 __iscsit_free_cmd(cmd, true); in iscsit_aborted_task()
509 iscsit_xmit_nondatain_pdu(struct iscsi_conn *conn, struct iscsi_cmd *cmd, in iscsit_xmit_nondatain_pdu() argument
512 struct iscsi_hdr *hdr = (struct iscsi_hdr *)cmd->pdu; in iscsit_xmit_nondatain_pdu()
517 iov = &cmd->iov_misc[0]; in iscsit_xmit_nondatain_pdu()
[all …]
Discsi_target_erl2.c37 struct iscsi_cmd *cmd, in iscsit_create_conn_recovery_datain_values() argument
41 struct iscsi_conn *conn = cmd->conn; in iscsit_create_conn_recovery_datain_values()
43 cmd->next_burst_len = 0; in iscsit_create_conn_recovery_datain_values()
44 cmd->read_data_done = 0; in iscsit_create_conn_recovery_datain_values()
47 if ((cmd->next_burst_len + in iscsit_create_conn_recovery_datain_values()
50 cmd->read_data_done += in iscsit_create_conn_recovery_datain_values()
52 cmd->next_burst_len += in iscsit_create_conn_recovery_datain_values()
55 cmd->read_data_done += in iscsit_create_conn_recovery_datain_values()
57 cmd->next_burst_len); in iscsit_create_conn_recovery_datain_values()
58 cmd->next_burst_len = 0; in iscsit_create_conn_recovery_datain_values()
[all …]
Discsi_target_erl0.c40 struct iscsi_cmd *cmd) in iscsit_set_dataout_sequence_values() argument
42 struct iscsi_conn *conn = cmd->conn; in iscsit_set_dataout_sequence_values()
47 if (cmd->unsolicited_data) { in iscsit_set_dataout_sequence_values()
48 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values()
49 cmd->seq_end_offset = min(cmd->se_cmd.data_length, in iscsit_set_dataout_sequence_values()
57 if (!cmd->seq_start_offset && !cmd->seq_end_offset) { in iscsit_set_dataout_sequence_values()
58 cmd->seq_start_offset = cmd->write_data_done; in iscsit_set_dataout_sequence_values()
59 cmd->seq_end_offset = (cmd->se_cmd.data_length > in iscsit_set_dataout_sequence_values()
61 (cmd->write_data_done + in iscsit_set_dataout_sequence_values()
62 conn->sess->sess_ops->MaxBurstLength) : cmd->se_cmd.data_length; in iscsit_set_dataout_sequence_values()
[all …]
/Linux-v4.19/drivers/staging/wilc1000/
Dwilc_sdio.c47 static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd) in wilc_sdio_cmd52() argument
55 func->num = cmd->function; in wilc_sdio_cmd52()
56 if (cmd->read_write) { /* write */ in wilc_sdio_cmd52()
57 if (cmd->raw) { in wilc_sdio_cmd52()
58 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
59 data = sdio_readb(func, cmd->address, &ret); in wilc_sdio_cmd52()
60 cmd->data = data; in wilc_sdio_cmd52()
62 sdio_writeb(func, cmd->data, cmd->address, &ret); in wilc_sdio_cmd52()
65 data = sdio_readb(func, cmd->address, &ret); in wilc_sdio_cmd52()
66 cmd->data = data; in wilc_sdio_cmd52()
[all …]
/Linux-v4.19/drivers/net/wireless/ti/wl18xx/
Dcmd.c32 struct wl18xx_cmd_channel_switch *cmd; in wl18xx_cmd_channel_switch() local
39 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_channel_switch()
40 if (!cmd) { in wl18xx_cmd_channel_switch()
45 cmd->role_id = wlvif->role_id; in wl18xx_cmd_channel_switch()
46 cmd->channel = ch_switch->chandef.chan->hw_value; in wl18xx_cmd_channel_switch()
47 cmd->switch_time = ch_switch->count; in wl18xx_cmd_channel_switch()
48 cmd->stop_tx = ch_switch->block_tx; in wl18xx_cmd_channel_switch()
52 cmd->band = WLCORE_BAND_2_4GHZ; in wl18xx_cmd_channel_switch()
55 cmd->band = WLCORE_BAND_5GHZ; in wl18xx_cmd_channel_switch()
72 cmd->local_supported_rates = cpu_to_le32(supported_rates); in wl18xx_cmd_channel_switch()
[all …]
Dscan.c26 static void wl18xx_adjust_channels(struct wl18xx_cmd_scan_params *cmd, in wl18xx_adjust_channels() argument
29 memcpy(cmd->passive, cmd_channels->passive, sizeof(cmd->passive)); in wl18xx_adjust_channels()
30 memcpy(cmd->active, cmd_channels->active, sizeof(cmd->active)); in wl18xx_adjust_channels()
31 cmd->dfs = cmd_channels->dfs; in wl18xx_adjust_channels()
32 cmd->passive_active = cmd_channels->passive_active; in wl18xx_adjust_channels()
34 memcpy(cmd->channels_2, cmd_channels->channels_2, in wl18xx_adjust_channels()
35 sizeof(cmd->channels_2)); in wl18xx_adjust_channels()
36 memcpy(cmd->channels_5, cmd_channels->channels_5, in wl18xx_adjust_channels()
37 sizeof(cmd->channels_5)); in wl18xx_adjust_channels()
44 struct wl18xx_cmd_scan_params *cmd; in wl18xx_scan_send() local
[all …]
/Linux-v4.19/drivers/media/usb/cpia2/
Dcpia2_core.c141 struct cpia2_command cmd; in cpia2_do_command() local
144 cmd.command = command; in cpia2_do_command()
145 cmd.reg_count = 2; /* default */ in cpia2_do_command()
146 cmd.direction = direction; in cpia2_do_command()
153 cmd.req_mode = in cpia2_do_command()
155 cmd.start = CPIA2_SYSTEM_DEVICE_HI; in cpia2_do_command()
158 cmd.req_mode = in cpia2_do_command()
160 cmd.reg_count = 8; in cpia2_do_command()
161 cmd.start = CPIA2_SYSTEM_DESCRIP_VID_HI; in cpia2_do_command()
164 cmd.req_mode = CAMERAACCESS_TYPE_BLOCK | CAMERAACCESS_VC; in cpia2_do_command()
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/
Dsi2168.c24 static int si2168_cmd_execute(struct i2c_client *client, struct si2168_cmd *cmd) in si2168_cmd_execute() argument
32 if (cmd->wlen) { in si2168_cmd_execute()
34 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2168_cmd_execute()
37 } else if (ret != cmd->wlen) { in si2168_cmd_execute()
43 if (cmd->rlen) { in si2168_cmd_execute()
48 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2168_cmd_execute()
51 } else if (ret != cmd->rlen) { in si2168_cmd_execute()
57 if ((cmd->args[0] >> 7) & 0x01) in si2168_cmd_execute()
66 if ((cmd->args[0] >> 6) & 0x01) { in si2168_cmd_execute()
71 if (!((cmd->args[0] >> 7) & 0x01)) { in si2168_cmd_execute()
[all …]
/Linux-v4.19/drivers/staging/mt7621-mmc/
Ddbg.c106 struct cmd_profile *cmd; in msdc_sdio_profile() local
115 cmd = &result->cmd52_rx; in msdc_sdio_profile()
116 …pr_debug("sdio === CMD52 Rx <%d>times tick<%d> Max<%d> Min<%d> Aver<%d>\n", cmd->count, cmd->tot_t… in msdc_sdio_profile()
117 cmd->max_tc, cmd->min_tc, cmd->tot_tc / cmd->count); in msdc_sdio_profile()
118 cmd = &result->cmd52_tx; in msdc_sdio_profile()
119 …pr_debug("sdio === CMD52 Tx <%d>times tick<%d> Max<%d> Min<%d> Aver<%d>\n", cmd->count, cmd->tot_t… in msdc_sdio_profile()
120 cmd->max_tc, cmd->min_tc, cmd->tot_tc / cmd->count); in msdc_sdio_profile()
124 cmd = &result->cmd53_rx_byte[i]; in msdc_sdio_profile()
125 if (cmd->count) { in msdc_sdio_profile()
126 pr_debug("sdio<%6d><%3dB>_Rx_<%9d><%9d><%6d><%6d>_<%9dB><%2dM>\n", cmd->count, i, cmd->tot_tc, in msdc_sdio_profile()
[all …]
/Linux-v4.19/drivers/ide/
Dide-taskfile.c28 void ide_tf_readback(ide_drive_t *drive, struct ide_cmd *cmd) in ide_tf_readback() argument
36 tp_ops->tf_read(drive, &cmd->tf, cmd->valid.in.tf); in ide_tf_readback()
38 if (cmd->tf_flags & IDE_TFLAG_LBA48) { in ide_tf_readback()
41 tp_ops->tf_read(drive, &cmd->hob, cmd->valid.in.hob); in ide_tf_readback()
45 void ide_tf_dump(const char *s, struct ide_cmd *cmd) in ide_tf_dump() argument
50 s, cmd->tf.feature, cmd->tf.nsect, in ide_tf_dump()
51 cmd->tf.lbal, cmd->tf.lbam, cmd->tf.lbah, in ide_tf_dump()
52 cmd->tf.device, cmd->tf.command); in ide_tf_dump()
54 s, cmd->hob.nsect, cmd->hob.lbal, cmd->hob.lbam, cmd->hob.lbah); in ide_tf_dump()
60 struct ide_cmd cmd; in taskfile_lib_get_identify() local
[all …]
/Linux-v4.19/net/ncsi/
Dncsi-cmd.c67 struct ncsi_cmd_pkt *cmd; in ncsi_cmd_handler_default() local
69 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_default()
70 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_default()
78 struct ncsi_cmd_sp_pkt *cmd; in ncsi_cmd_handler_sp() local
80 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_sp()
81 cmd->hw_arbitration = nca->bytes[0]; in ncsi_cmd_handler_sp()
82 ncsi_cmd_build_header(&cmd->cmd.common, nca); in ncsi_cmd_handler_sp()
90 struct ncsi_cmd_dc_pkt *cmd; in ncsi_cmd_handler_dc() local
92 cmd = skb_put_zero(skb, sizeof(*cmd)); in ncsi_cmd_handler_dc()
93 cmd->ald = nca->bytes[0]; in ncsi_cmd_handler_dc()
[all …]
/Linux-v4.19/drivers/mmc/core/
Dsd_ops.c28 struct mmc_command cmd = {}; in mmc_app_cmd() local
33 cmd.opcode = MMC_APP_CMD; in mmc_app_cmd()
36 cmd.arg = card->rca << 16; in mmc_app_cmd()
37 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_AC; in mmc_app_cmd()
39 cmd.arg = 0; in mmc_app_cmd()
40 cmd.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_BCR; in mmc_app_cmd()
43 err = mmc_wait_for_cmd(host, &cmd, 0); in mmc_app_cmd()
48 if (!mmc_host_is_spi(host) && !(cmd.resp[0] & R1_APP_CMD)) in mmc_app_cmd()
69 struct mmc_command *cmd, int retries) in mmc_wait_for_app_cmd() argument
89 if (cmd->resp[0] & R1_SPI_ILLEGAL_COMMAND) in mmc_wait_for_app_cmd()
[all …]
/Linux-v4.19/drivers/net/wireless/marvell/libertas/
Dcmd.c67 static u8 is_command_allowed_in_ps(u16 cmd) in is_command_allowed_in_ps() argument
69 switch (cmd) { in is_command_allowed_in_ps()
90 struct cmd_ds_get_hw_spec cmd; in lbs_update_hw_spec() local
94 memset(&cmd, 0, sizeof(cmd)); in lbs_update_hw_spec()
95 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_update_hw_spec()
96 memcpy(cmd.permanentaddr, priv->current_addr, ETH_ALEN); in lbs_update_hw_spec()
97 ret = lbs_cmd_with_response(priv, CMD_GET_HW_SPEC, &cmd); in lbs_update_hw_spec()
101 priv->fwcapinfo = le32_to_cpu(cmd.fwcapinfo); in lbs_update_hw_spec()
105 priv->fwrelease = le32_to_cpu(cmd.fwrelease); in lbs_update_hw_spec()
114 cmd.permanentaddr, in lbs_update_hw_spec()
[all …]
/Linux-v4.19/include/scsi/
Dscsi_cmnd.h156 static inline void *scsi_cmd_priv(struct scsi_cmnd *cmd) in scsi_cmd_priv() argument
158 return cmd + 1; in scsi_cmd_priv()
162 static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd) in scsi_cmd_to_driver() argument
164 return *(struct scsi_driver **)cmd->request->rq_disk->private_data; in scsi_cmd_to_driver()
168 extern void scsi_finish_command(struct scsi_cmnd *cmd);
174 extern int scsi_init_io(struct scsi_cmnd *cmd);
177 extern int scsi_dma_map(struct scsi_cmnd *cmd);
178 extern void scsi_dma_unmap(struct scsi_cmnd *cmd);
180 static inline int scsi_dma_map(struct scsi_cmnd *cmd) { return -ENOSYS; } in scsi_dma_map() argument
181 static inline void scsi_dma_unmap(struct scsi_cmnd *cmd) { } in scsi_dma_unmap() argument
[all …]
/Linux-v4.19/drivers/staging/fsl-dpaa2/rtc/
Ddprtc.c35 struct fsl_mc_command cmd = { 0 }; in dprtc_open() local
38 cmd.header = mc_encode_cmd_header(DPRTC_CMDID_OPEN, in dprtc_open()
41 cmd_params = (struct dprtc_cmd_open *)cmd.params; in dprtc_open()
44 err = mc_send_command(mc_io, &cmd); in dprtc_open()
48 *token = mc_cmd_hdr_read_token(&cmd); in dprtc_open()
68 struct fsl_mc_command cmd = { 0 }; in dprtc_close() local
70 cmd.header = mc_encode_cmd_header(DPRTC_CMDID_CLOSE, cmd_flags, in dprtc_close()
73 return mc_send_command(mc_io, &cmd); in dprtc_close()
101 struct fsl_mc_command cmd = { 0 }; in dprtc_create() local
104 cmd.header = mc_encode_cmd_header(DPRTC_CMDID_CREATE, in dprtc_create()
[all …]
/Linux-v4.19/include/linux/
Dfcntl.h19 #define IS_GETLK32(cmd) ((cmd) == F_GETLK) argument
20 #define IS_SETLK32(cmd) ((cmd) == F_SETLK) argument
21 #define IS_SETLKW32(cmd) ((cmd) == F_SETLKW) argument
22 #define IS_GETLK64(cmd) ((cmd) == F_GETLK64) argument
23 #define IS_SETLK64(cmd) ((cmd) == F_SETLK64) argument
24 #define IS_SETLKW64(cmd) ((cmd) == F_SETLKW64) argument
26 #define IS_GETLK32(cmd) (0) argument
27 #define IS_SETLK32(cmd) (0) argument
28 #define IS_SETLKW32(cmd) (0) argument
29 #define IS_GETLK64(cmd) ((cmd) == F_GETLK) argument
[all …]
/Linux-v4.19/drivers/macintosh/
Dsmu.c70 u8 cmd; member
115 struct smu_cmd *cmd; in smu_start_cmd() local
121 cmd = list_entry(smu->cmd_list.next, struct smu_cmd, link); in smu_start_cmd()
122 smu->cmd_cur = cmd; in smu_start_cmd()
123 list_del(&cmd->link); in smu_start_cmd()
125 DPRINTK("SMU: starting cmd %x, %d bytes data\n", cmd->cmd, in smu_start_cmd()
126 cmd->data_len); in smu_start_cmd()
127 DPRINTK("SMU: data buffer: %8ph\n", cmd->data_buf); in smu_start_cmd()
130 smu->cmd_buf->cmd = cmd->cmd; in smu_start_cmd()
131 smu->cmd_buf->length = cmd->data_len; in smu_start_cmd()
[all …]
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dcmd.c57 struct wl1271_cmd_header *cmd; in __wlcore_cmd_send() local
68 if (WARN_ON_ONCE(len < sizeof(*cmd))) in __wlcore_cmd_send()
71 cmd = buf; in __wlcore_cmd_send()
72 cmd->id = cpu_to_le16(id); in __wlcore_cmd_send()
73 cmd->status = 0; in __wlcore_cmd_send()
117 ret = wlcore_read(wl, wl->cmd_box_addr, cmd, res_len, false); in __wlcore_cmd_send()
121 status = le16_to_cpu(cmd->status); in __wlcore_cmd_send()
243 struct wl12xx_cmd_role_enable *cmd; in wl12xx_cmd_role_enable() local
251 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_enable()
252 if (!cmd) { in wl12xx_cmd_role_enable()
[all …]
/Linux-v4.19/drivers/media/tuners/
Dsi2157.c22 static int si2157_cmd_execute(struct i2c_client *client, struct si2157_cmd *cmd) in si2157_cmd_execute() argument
30 if (cmd->wlen) { in si2157_cmd_execute()
32 ret = i2c_master_send(client, cmd->args, cmd->wlen); in si2157_cmd_execute()
35 } else if (ret != cmd->wlen) { in si2157_cmd_execute()
41 if (cmd->rlen) { in si2157_cmd_execute()
46 ret = i2c_master_recv(client, cmd->args, cmd->rlen); in si2157_cmd_execute()
49 } else if (ret != cmd->rlen) { in si2157_cmd_execute()
55 if ((cmd->args[0] >> 7) & 0x01) in si2157_cmd_execute()
63 if (!((cmd->args[0] >> 7) & 0x01)) { in si2157_cmd_execute()
84 struct si2157_cmd cmd; in si2157_init() local
[all …]

12345678910>>...144