Home
last modified time | relevance | path

Searched refs:i2c_msg (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/drivers/mfd/
Dcros_ec_i2c.c69 struct i2c_msg i2c_msg[2]; in cros_ec_pkt_xfer_i2c() local
76 i2c_msg[0].addr = client->addr; in cros_ec_pkt_xfer_i2c()
77 i2c_msg[0].flags = 0; in cros_ec_pkt_xfer_i2c()
78 i2c_msg[1].addr = client->addr; in cros_ec_pkt_xfer_i2c()
79 i2c_msg[1].flags = I2C_M_RD; in cros_ec_pkt_xfer_i2c()
84 i2c_msg[1].len = packet_len; in cros_ec_pkt_xfer_i2c()
85 i2c_msg[1].buf = (char *) in_buf; in cros_ec_pkt_xfer_i2c()
90 i2c_msg[0].len = packet_len; in cros_ec_pkt_xfer_i2c()
91 i2c_msg[0].buf = (char *) out_buf; in cros_ec_pkt_xfer_i2c()
102 ret = i2c_transfer(client->adapter, i2c_msg, 2); in cros_ec_pkt_xfer_i2c()
[all …]
/drivers/media/pci/solo6x10/
Dsolo6x10-i2c.c35 struct i2c_msg msgs[2]; in solo_i2c_readbyte()
56 struct i2c_msg msgs; in solo_i2c_writebyte()
82 if (!(solo_dev->i2c_msg->flags & I2C_M_NO_RD_ACK)) in solo_i2c_flush()
86 if (solo_dev->i2c_msg_ptr == solo_dev->i2c_msg->len) in solo_i2c_flush()
94 u32 addr = solo_dev->i2c_msg->addr << 1; in solo_i2c_start()
96 if (solo_dev->i2c_msg->flags & I2C_M_RD) in solo_i2c_start()
115 if (solo_dev->i2c_msg_ptr != solo_dev->i2c_msg->len) { in solo_i2c_handle_read()
121 solo_dev->i2c_msg++; in solo_i2c_handle_read()
129 if (!(solo_dev->i2c_msg->flags & I2C_M_NOSTART)) { in solo_i2c_handle_read()
132 if (solo_dev->i2c_msg->flags & I2C_M_RD) in solo_i2c_handle_read()
[all …]
/drivers/i2c/busses/
Di2c-cros-ec-tunnel.c51 static int ec_i2c_count_message(const struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_message()
78 static int ec_i2c_construct_message(u8 *buf, const struct i2c_msg i2c_msgs[], in ec_i2c_construct_message()
92 const struct i2c_msg *i2c_msg = &i2c_msgs[i]; in ec_i2c_construct_message() local
95 msg->len = i2c_msg->len; in ec_i2c_construct_message()
96 msg->addr_flags = i2c_msg->addr; in ec_i2c_construct_message()
98 if (i2c_msg->flags & I2C_M_TEN) in ec_i2c_construct_message()
101 if (i2c_msg->flags & I2C_M_RD) { in ec_i2c_construct_message()
104 memcpy(out_data, i2c_msg->buf, msg->len); in ec_i2c_construct_message()
120 static int ec_i2c_count_response(struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_response()
145 static int ec_i2c_parse_response(const u8 *buf, struct i2c_msg i2c_msgs[], in ec_i2c_parse_response()
[all …]
Di2c-qup.c172 struct i2c_msg *msg;
352 struct i2c_msg *msg) in qup_i2c_set_write_mode_v2()
371 static void qup_i2c_set_write_mode(struct qup_i2c_dev *qup, struct i2c_msg *msg) in qup_i2c_set_write_mode()
420 static int qup_i2c_issue_write(struct qup_i2c_dev *qup, struct i2c_msg *msg) in qup_i2c_issue_write()
466 struct i2c_msg *msg) in qup_i2c_set_blk_data()
529 struct i2c_msg *msg, int is_dma) in qup_i2c_set_tags()
574 static int qup_i2c_issue_xfer_v2(struct qup_i2c_dev *qup, struct i2c_msg *msg) in qup_i2c_issue_xfer_v2()
651 static int qup_i2c_bam_do_xfer(struct qup_i2c_dev *qup, struct i2c_msg *msg, in qup_i2c_bam_do_xfer()
843 static int qup_i2c_bam_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, in qup_i2c_bam_xfer()
881 struct i2c_msg *msg) in qup_i2c_wait_for_complete()
[all …]
Di2c-axxia.c101 struct i2c_msg *msg;
210 static int i2c_m_rd(const struct i2c_msg *msg) in i2c_m_rd()
215 static int i2c_m_ten(const struct i2c_msg *msg) in i2c_m_ten()
220 static int i2c_m_recv_len(const struct i2c_msg *msg) in i2c_m_recv_len()
231 struct i2c_msg *msg = idev->msg; in axxia_i2c_empty_rx_fifo()
263 struct i2c_msg *msg = idev->msg; in axxia_i2c_fill_tx_fifo()
336 static int axxia_i2c_xfer_msg(struct axxia_i2c_dev *idev, struct i2c_msg *msg) in axxia_i2c_xfer_msg()
433 axxia_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in axxia_i2c_xfer()
Di2c-efm32.c125 struct i2c_msg *msgs;
144 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_send_next_msg()
153 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_send_next_byte()
174 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_recv_next_byte()
199 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_irq()
259 struct i2c_msg *msgs, int num) in efm32_i2c_master_xfer()
Di2c-xlr.c87 struct i2c_msg *msg;
120 struct i2c_msg *msg = priv->msg; in xlr_i2c_tx_irq()
129 struct i2c_msg *msg = priv->msg; in xlr_i2c_rx_irq()
139 struct i2c_msg *msg = priv->msg; in xlr_i2c_irq()
297 struct i2c_msg *msgs, int num) in xlr_i2c_xfer()
299 struct i2c_msg *msg; in xlr_i2c_xfer()
Di2c-mv64xxx.c119 struct i2c_msg *msgs;
140 struct i2c_msg *msg;
173 struct i2c_msg *msg) in mv64xxx_i2c_prepare_for_io()
433 struct i2c_msg *msg) in mv64xxx_i2c_read_offload_rx_data()
571 mv64xxx_i2c_execute_msg(struct mv64xxx_i2c_data *drv_data, struct i2c_msg *msg, in mv64xxx_i2c_execute_msg()
592 struct i2c_msg *msg = drv_data->msgs; in mv64xxx_i2c_prepare_tx()
604 struct i2c_msg *msgs = drv_data->msgs; in mv64xxx_i2c_offload_xfer()
661 mv64xxx_i2c_valid_offload_sz(struct i2c_msg *msg) in mv64xxx_i2c_valid_offload_sz()
669 struct i2c_msg *msgs = drv_data->msgs; in mv64xxx_i2c_can_offload()
712 mv64xxx_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in mv64xxx_i2c_xfer()
Di2c-digicolor.c57 struct i2c_msg *msg;
80 static u8 dc_i2c_addr_cmd(struct i2c_msg *msg) in dc_i2c_addr_cmd()
149 struct i2c_msg *msg = i2c->msg; in dc_i2c_start_msg()
218 static int dc_i2c_xfer_msg(struct dc_i2c *i2c, struct i2c_msg *msg, int first, in dc_i2c_xfer_msg()
248 static int dc_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in dc_i2c_xfer()
/drivers/media/dvb-frontends/
Ddibx000_common.c27 memset(mst->msg, 0, sizeof(struct i2c_msg)); in dibx000_write_word()
51 memset(mst->msg, 0, 2 * sizeof(struct i2c_msg)); in dibx000_read_word()
89 static int dibx000_master_i2c_write(struct dibx000_i2c_master *mst, struct i2c_msg *msg, u8 stop) in dibx000_master_i2c_write()
132 static int dibx000_master_i2c_read(struct dibx000_i2c_master *mst, struct i2c_msg *msg) in dibx000_master_i2c_read()
202 static int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int n… in dibx000_i2c_master_xfer_gpio12()
224 static int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int n… in dibx000_i2c_master_xfer_gpio34()
279 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer()
297 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer()
305 memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); in dibx000_i2c_gated_gpio67_xfer()
326 struct i2c_msg msg[], int num) in dibx000_i2c_gated_tuner_xfer()
[all …]
Dtua6100.c57 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = reg0, .len = 2 }; in tua6100_sleep()
79 struct i2c_msg msg0 = { .addr = priv->i2c_address, .flags = 0, .buf = reg0, .len = 2 }; in tua6100_set_params()
80 struct i2c_msg msg1 = { .addr = priv->i2c_address, .flags = 0, .buf = reg1, .len = 4 }; in tua6100_set_params()
81 struct i2c_msg msg2 = { .addr = priv->i2c_address, .flags = 0, .buf = reg2, .len = 3 }; in tua6100_set_params()
178 struct i2c_msg msg [] = { { .addr = addr, .flags = 0, .buf = b1, .len = 1 }, in tua6100_attach()
Disl6421.c50 struct i2c_msg msg = { .addr = isl6421->i2c_addr, .flags = 0, in isl6421_set_voltage()
78 struct i2c_msg msg = { .addr = isl6421->i2c_addr, .flags = 0, in isl6421_enable_high_lnb_voltage()
97 struct i2c_msg msg = { .addr = isl6421->i2c_addr, .flags = 0, in isl6421_set_tone()
/drivers/media/pci/pt1/
Dva1j5jf8007s.c57 struct i2c_msg msgs[2]; in va1j5jf8007s_read_snr()
179 struct i2c_msg msg; in va1j5jf8007s_set_frequency_1()
208 struct i2c_msg msg; in va1j5jf8007s_set_frequency_2()
229 struct i2c_msg msg; in va1j5jf8007s_set_frequency_3()
254 struct i2c_msg msgs[2]; in va1j5jf8007s_check_frequency()
281 struct i2c_msg msg; in va1j5jf8007s_set_modulation()
302 struct i2c_msg msgs[2]; in va1j5jf8007s_check_modulation()
330 struct i2c_msg msg; in va1j5jf8007s_set_ts_id()
356 struct i2c_msg msgs[2]; in va1j5jf8007s_check_ts_id()
513 struct i2c_msg msg; in va1j5jf8007s_init_frequency()
[all …]
Dva1j5jf8007t.c55 struct i2c_msg msgs[2]; in va1j5jf8007t_read_snr()
165 struct i2c_msg msg; in va1j5jf8007t_set_frequency()
193 struct i2c_msg msgs[2]; in va1j5jf8007t_check_frequency()
220 struct i2c_msg msg; in va1j5jf8007t_set_modulation()
241 struct i2c_msg msgs[2]; in va1j5jf8007t_check_modulation()
359 struct i2c_msg msg; in va1j5jf8007t_init_frequency()
383 struct i2c_msg msg; in va1j5jf8007t_set_sleep()
470 struct i2c_msg msg; in va1j5jf8007t_prepare()
509 struct i2c_msg msg; in va1j5jf8007t_attach()
/drivers/staging/greybus/
Di2c.c62 gb_i2c_fill_transfer_op(struct gb_i2c_transfer_op *op, struct i2c_msg *msg) in gb_i2c_fill_transfer_op()
73 struct i2c_msg *msgs, u32 msg_count) in gb_i2c_operation_create()
79 struct i2c_msg *msg; in gb_i2c_operation_create()
140 static void gb_i2c_decode_response(struct i2c_msg *msgs, u32 msg_count, in gb_i2c_decode_response()
143 struct i2c_msg *msg = msgs; in gb_i2c_decode_response()
168 struct i2c_msg *msgs, u32 msg_count) in gb_i2c_transfer_operation()
202 static int gb_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in gb_i2c_master_xfer()
/drivers/video/fbdev/mb862xx/
Dmb862xx-i2c.c80 static int mb862xx_i2c_read(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_read()
94 static int mb862xx_i2c_write(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_write()
107 static int mb862xx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in mb862xx_xfer()
111 struct i2c_msg *m; in mb862xx_xfer()
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbit.c174 i2c_addr(struct nvkm_i2c_bus *bus, struct i2c_msg *msg) in i2c_addr()
183 nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num) in nvkm_i2c_bit_xfer()
185 struct i2c_msg *msg = msgs; in nvkm_i2c_bit_xfer()
212 nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num) in nvkm_i2c_bit_xfer()
/drivers/gpu/drm/gma500/
Doaktrail_hdmi_i2c.c73 struct i2c_msg *msg;
93 static int xfer_read(struct i2c_adapter *adap, struct i2c_msg *pmsg) in xfer_read()
116 static int xfer_write(struct i2c_adapter *adap, struct i2c_msg *pmsg) in xfer_write()
125 struct i2c_msg *pmsg, in oaktrail_hdmi_i2c_access()
178 struct i2c_msg *msg = i2c_dev->msg; in hdmi_i2c_read()
/drivers/media/pci/cx23885/
Dnetup-init.c29 struct i2c_msg msg = { in i2c_av_write()
50 struct i2c_msg msg = { in i2c_av_write4()
74 struct i2c_msg msg = { in i2c_av_read()
/drivers/media/pci/cx25821/
Dcx25821-i2c.c81 const struct i2c_msg *msg, int joined_rlen) in i2c_sendbytes()
175 const struct i2c_msg *msg, int joined) in i2c_readbytes()
238 static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) in i2c_xfer()
338 struct i2c_msg msg;
365 struct i2c_msg msgs[2] = { in cx25821_i2c_read()
398 struct i2c_msg msgs[1] = { in cx25821_i2c_write()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Di2c.h98 struct i2c_msg msgs[] = { in nvkm_rdi2cr()
114 struct i2c_msg msgs[] = { in nv_rd16i2cr()
130 struct i2c_msg msgs[] = { in nvkm_wri2cr()
145 struct i2c_msg msgs[] = { in nv_wr16i2cr()
/drivers/media/pci/ngene/
Dngene-cards.c182 struct i2c_msg msgs[1] = {{.addr = adr, .flags = I2C_M_RD, in i2c_read()
191 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_read_reg16()
241 struct i2c_msg i2c_msg = { .flags = 0, .buf = buf }; in cineS2_probe() local
259 i2c_msg.addr = fe_conf->address; in cineS2_probe()
260 i2c_msg.len = 3; in cineS2_probe()
274 rc = i2c_transfer(i2c, &i2c_msg, 1); in cineS2_probe()
379 struct i2c_msg msg = {.addr = adr, .flags = 0, .buf = m, in i2c_write_eeprom()
393 struct i2c_msg msgs[2] = {{.addr = adr, .flags = 0, in i2c_read_eeprom()
/drivers/media/usb/cx231xx/
Dcx231xx-i2c.c65 const struct i2c_msg *msg, int tuner_type) in is_tuner()
85 const struct i2c_msg *msg) in cx231xx_i2c_send_bytes()
196 const struct i2c_msg *msg) in cx231xx_i2c_recv_bytes()
282 const struct i2c_msg *msg1, in cx231xx_i2c_recv_bytes_with_saddr()
283 const struct i2c_msg *msg2) in cx231xx_i2c_recv_bytes_with_saddr()
346 const struct i2c_msg *msg) in cx231xx_i2c_check_for_device()
373 struct i2c_msg msgs[], int num) in cx231xx_i2c_xfer()
/drivers/rtc/
Drtc-x1205.c98 struct i2c_msg msgs[] = { in x1205_get_datetime()
152 struct i2c_msg msgs[] = { in x1205_get_status()
301 struct i2c_msg msgs[] = { in x1205_get_dtrim()
342 struct i2c_msg msgs[] = { in x1205_get_atrim()
419 struct i2c_msg msgs[2] = { in x1205_validate_client()
457 struct i2c_msg msgs[2] = { in x1205_validate_client()
502 struct i2c_msg msgs[] = { in x1205_rtc_read_alarm()
/drivers/media/usb/dvb-usb/
Dopera1.c134 static int opera1_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in opera1_i2c_xfer()
175 struct i2c_msg msg[] = { in opera1_set_voltage()
300 struct i2c_msg start_tuner[] = { in opera1_streaming_ctrl()
313 struct i2c_msg msg[] = { in opera1_pid_filter()
330 struct i2c_msg msg[] = { in opera1_pid_filter_control()
379 struct i2c_msg read_remote[] = { in opera1_rc_query()

12345678910>>...18