Home
last modified time | relevance | path

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

12345678910>>...23

/Linux-v6.1/drivers/platform/chrome/
Dcros_ec_i2c.c62 struct i2c_msg i2c_msg[2]; in cros_ec_pkt_xfer_i2c() local
69 i2c_msg[0].addr = client->addr; in cros_ec_pkt_xfer_i2c()
70 i2c_msg[0].flags = 0; in cros_ec_pkt_xfer_i2c()
71 i2c_msg[1].addr = client->addr; in cros_ec_pkt_xfer_i2c()
72 i2c_msg[1].flags = I2C_M_RD; in cros_ec_pkt_xfer_i2c()
80 i2c_msg[1].len = packet_len; in cros_ec_pkt_xfer_i2c()
81 i2c_msg[1].buf = (char *) in_buf; in cros_ec_pkt_xfer_i2c()
89 i2c_msg[0].len = packet_len; in cros_ec_pkt_xfer_i2c()
90 i2c_msg[0].buf = (char *) out_buf; in cros_ec_pkt_xfer_i2c()
103 ret = i2c_transfer(client->adapter, i2c_msg, 2); in cros_ec_pkt_xfer_i2c()
[all …]
/Linux-v6.1/drivers/media/pci/solo6x10/
Dsolo6x10-i2c.c27 struct i2c_msg msgs[2]; in solo_i2c_readbyte()
48 struct i2c_msg msgs; in solo_i2c_writebyte()
74 if (!(solo_dev->i2c_msg->flags & I2C_M_NO_RD_ACK)) in solo_i2c_flush()
78 if (solo_dev->i2c_msg_ptr == solo_dev->i2c_msg->len) in solo_i2c_flush()
86 u32 addr = solo_dev->i2c_msg->addr << 1; in solo_i2c_start()
88 if (solo_dev->i2c_msg->flags & I2C_M_RD) in solo_i2c_start()
107 if (solo_dev->i2c_msg_ptr != solo_dev->i2c_msg->len) { in solo_i2c_handle_read()
113 solo_dev->i2c_msg++; in solo_i2c_handle_read()
121 if (!(solo_dev->i2c_msg->flags & I2C_M_NOSTART)) { in solo_i2c_handle_read()
124 if (solo_dev->i2c_msg->flags & I2C_M_RD) in solo_i2c_handle_read()
[all …]
/Linux-v6.1/drivers/i2c/busses/
Di2c-cros-ec-tunnel.c46 static int ec_i2c_count_message(const struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_message()
73 static int ec_i2c_construct_message(u8 *buf, const struct i2c_msg i2c_msgs[], in ec_i2c_construct_message()
87 const struct i2c_msg *i2c_msg = &i2c_msgs[i]; in ec_i2c_construct_message() local
90 msg->len = i2c_msg->len; in ec_i2c_construct_message()
91 msg->addr_flags = i2c_msg->addr; in ec_i2c_construct_message()
93 if (i2c_msg->flags & I2C_M_TEN) in ec_i2c_construct_message()
96 if (i2c_msg->flags & I2C_M_RD) { in ec_i2c_construct_message()
99 memcpy(out_data, i2c_msg->buf, msg->len); in ec_i2c_construct_message()
115 static int ec_i2c_count_response(struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_response()
140 static int ec_i2c_parse_response(const u8 *buf, struct i2c_msg i2c_msgs[], in ec_i2c_parse_response()
[all …]
Di2c-tegra-bpmp.c84 struct i2c_msg *msgs, in tegra_bpmp_serialize_i2c_msg()
91 struct i2c_msg *msg = &msgs[i]; in tegra_bpmp_serialize_i2c_msg()
128 struct i2c_msg *msgs, in tegra_bpmp_i2c_deserialize()
152 static int tegra_bpmp_i2c_msg_len_check(struct i2c_msg *msgs, unsigned int num) in tegra_bpmp_i2c_msg_len_check()
226 struct i2c_msg *msgs, int num, in tegra_bpmp_i2c_xfer_common()
260 struct i2c_msg *msgs, int num) in tegra_bpmp_i2c_xfer()
266 struct i2c_msg *msgs, int num) in tegra_bpmp_i2c_xfer_atomic()
Di2c-axxia.c137 struct i2c_msg *msg;
138 struct i2c_msg *msg_r;
251 static int i2c_m_rd(const struct i2c_msg *msg) in i2c_m_rd()
256 static int i2c_m_ten(const struct i2c_msg *msg) in i2c_m_ten()
261 static int i2c_m_recv_len(const struct i2c_msg *msg) in i2c_m_recv_len()
272 struct i2c_msg *msg = idev->msg_r; in axxia_i2c_empty_rx_fifo()
304 struct i2c_msg *msg = idev->msg; in axxia_i2c_fill_tx_fifo()
436 static void axxia_i2c_set_addr(struct axxia_i2c_dev *idev, struct i2c_msg *msg) in axxia_i2c_set_addr()
479 static int axxia_i2c_xfer_seq(struct axxia_i2c_dev *idev, struct i2c_msg msgs[]) in axxia_i2c_xfer_seq()
524 static int axxia_i2c_xfer_msg(struct axxia_i2c_dev *idev, struct i2c_msg *msg, in axxia_i2c_xfer_msg()
[all …]
Di2c-mv64xxx.c121 struct i2c_msg *msgs;
143 struct i2c_msg *msg;
178 struct i2c_msg *msg) in mv64xxx_i2c_prepare_for_io()
447 struct i2c_msg *msg) in mv64xxx_i2c_read_offload_rx_data()
596 mv64xxx_i2c_execute_msg(struct mv64xxx_i2c_data *drv_data, struct i2c_msg *msg, in mv64xxx_i2c_execute_msg()
621 struct i2c_msg *msg = drv_data->msgs; in mv64xxx_i2c_prepare_tx()
633 struct i2c_msg *msgs = drv_data->msgs; in mv64xxx_i2c_offload_xfer()
690 mv64xxx_i2c_valid_offload_sz(struct i2c_msg *msg) in mv64xxx_i2c_valid_offload_sz()
698 struct i2c_msg *msgs = drv_data->msgs; in mv64xxx_i2c_can_offload()
741 mv64xxx_i2c_xfer_core(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in mv64xxx_i2c_xfer_core()
[all …]
Di2c-digicolor.c53 struct i2c_msg *msg;
76 static u8 dc_i2c_addr_cmd(struct i2c_msg *msg) in dc_i2c_addr_cmd()
145 struct i2c_msg *msg = i2c->msg; in dc_i2c_start_msg()
213 static int dc_i2c_xfer_msg(struct dc_i2c *i2c, struct i2c_msg *msg, int first, in dc_i2c_xfer_msg()
243 static int dc_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in dc_i2c_xfer()
Di2c-qcom-geni.c87 struct i2c_msg *cur;
233 struct i2c_msg *cur; in geni_i2c_irq()
373 struct i2c_msg *cur) in geni_i2c_rx_msg_cleanup()
385 struct i2c_msg *cur) in geni_i2c_tx_msg_cleanup()
396 static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, in geni_i2c_rx_one_msg()
404 struct i2c_msg *cur; in geni_i2c_rx_one_msg()
435 static int geni_i2c_tx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, in geni_i2c_tx_one_msg()
443 struct i2c_msg *cur; in geni_i2c_tx_one_msg()
491 static void geni_i2c_gpi_unmap(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, in geni_i2c_gpi_unmap()
506 static int geni_i2c_gpi(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, in geni_i2c_gpi()
[all …]
/Linux-v6.1/arch/arm/mach-shmobile/
Dregulator-quirk-rcar-gen2.c45 struct i2c_msg i2c_msg; member
56 static struct i2c_msg da9063_msg = {
61 static struct i2c_msg da9210_msg = {
110 pos->id->compatible, pos->i2c_msg.addr); in regulator_quirk_notify()
112 ret = i2c_transfer(client->adapter, &pos->i2c_msg, 1); in regulator_quirk_notify()
175 memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg)); in rcar_gen2_regulator_quirk()
179 quirk->i2c_msg.addr = addr; in rcar_gen2_regulator_quirk()
/Linux-v6.1/drivers/media/dvb-frontends/
Ddibx000_common.c34 memset(mst->msg, 0, sizeof(struct i2c_msg)); in dibx000_write_word()
58 memset(mst->msg, 0, 2 * sizeof(struct i2c_msg)); in dibx000_read_word()
96 static int dibx000_master_i2c_write(struct dibx000_i2c_master *mst, struct i2c_msg *msg, u8 stop) in dibx000_master_i2c_write()
139 static int dibx000_master_i2c_read(struct dibx000_i2c_master *mst, struct i2c_msg *msg) in dibx000_master_i2c_read()
209 static int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int n… in dibx000_i2c_master_xfer_gpio12()
231 static int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int n… in dibx000_i2c_master_xfer_gpio34()
286 struct i2c_msg msg[], int num) in dibx000_i2c_gated_gpio67_xfer()
304 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_gpio67_xfer()
312 memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); in dibx000_i2c_gated_gpio67_xfer()
333 struct i2c_msg msg[], int num) in dibx000_i2c_gated_tuner_xfer()
[all …]
Dtua6100.c44 struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = reg0, .len = 2 }; in tua6100_sleep()
66 struct i2c_msg msg0 = { .addr = priv->i2c_address, .flags = 0, .buf = reg0, .len = 2 }; in tua6100_set_params()
67 struct i2c_msg msg1 = { .addr = priv->i2c_address, .flags = 0, .buf = reg1, .len = 4 }; in tua6100_set_params()
68 struct i2c_msg msg2 = { .addr = priv->i2c_address, .flags = 0, .buf = reg2, .len = 3 }; in tua6100_set_params()
165 struct i2c_msg msg [] = { { .addr = addr, .flags = 0, .buf = b1, .len = 1 }, in tua6100_attach()
/Linux-v6.1/drivers/net/mdio/
Dmdio-i2c.c36 struct i2c_msg msgs[2]; in i2c_mii_read_default()
71 struct i2c_msg msg; in i2c_mii_write_default()
121 static int __i2c_transfer_err(struct i2c_adapter *i2c, struct i2c_msg *msgs, in __i2c_transfer_err()
138 struct i2c_msg msgs[2]; in __i2c_rollball_get_page()
157 struct i2c_msg msg; in __i2c_rollball_set_page()
185 struct i2c_msg *msgs, int num) in i2c_transfer_rollball()
220 struct i2c_msg msgs[2]; in i2c_rollball_mii_poll()
263 struct i2c_msg msgs[2]; in i2c_rollball_mii_cmd()
350 struct i2c_msg msg; in i2c_mii_init_rollball()
/Linux-v6.1/drivers/media/pci/ddbridge/
Dddbridge-i2c.h27 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_io()
38 struct i2c_msg msg = { .addr = adr, .flags = 0, in i2c_write()
46 struct i2c_msg msgs[1] = { { .addr = adr, .flags = I2C_M_RD, in i2c_read()
55 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs()
67 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs16()
/Linux-v6.1/drivers/staging/greybus/
Di2c.c68 gb_i2c_fill_transfer_op(struct gb_i2c_transfer_op *op, struct i2c_msg *msg) in gb_i2c_fill_transfer_op()
79 struct i2c_msg *msgs, u32 msg_count) in gb_i2c_operation_create()
85 struct i2c_msg *msg; in gb_i2c_operation_create()
146 static void gb_i2c_decode_response(struct i2c_msg *msgs, u32 msg_count, in gb_i2c_decode_response()
149 struct i2c_msg *msg = msgs; in gb_i2c_decode_response()
174 struct i2c_msg *msgs, u32 msg_count) in gb_i2c_transfer_operation()
208 static int gb_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in gb_i2c_master_xfer()
/Linux-v6.1/drivers/char/ipmi/
Dipmb_dev_int.c118 struct i2c_msg i2c_msg; in ipmb_i2c_write() local
124 i2c_msg.len = msg[IPMB_MSG_LEN_IDX] - 1; in ipmb_i2c_write()
127 i2c_msg.buf = msg + 2; in ipmb_i2c_write()
129 i2c_msg.addr = addr; in ipmb_i2c_write()
130 i2c_msg.flags = client->flags & I2C_CLIENT_PEC; in ipmb_i2c_write()
132 return i2c_transfer(client->adapter, &i2c_msg, 1); in ipmb_i2c_write()
Dipmi_ipmb.c280 struct i2c_msg i2c_msg; in ipmi_ipmb_thread() local
304 i2c_msg.len = iidev->xmitlen - 1; in ipmi_ipmb_thread()
305 if (i2c_msg.len > 32) { in ipmi_ipmb_thread()
311 i2c_msg.addr = iidev->xmitmsg[0] >> 1; in ipmi_ipmb_thread()
312 i2c_msg.flags = 0; in ipmi_ipmb_thread()
313 i2c_msg.buf = iidev->xmitmsg + 1; in ipmi_ipmb_thread()
318 ret = i2c_transfer(iidev->client->adapter, &i2c_msg, 1); in ipmi_ipmb_thread()
/Linux-v6.1/drivers/rtc/
Drtc-isl12026.c49 struct i2c_msg msgs[] = { in isl12026_read_reg()
78 struct i2c_msg msg = { in isl12026_arm_write()
117 struct i2c_msg msg = { in isl12026_disarm_write()
140 struct i2c_msg msg = { in isl12026_write_reg()
170 struct i2c_msg msg = { in isl12026_rtc_set_time()
211 struct i2c_msg msgs[] = { in isl12026_rtc_read_time()
284 struct i2c_msg msgs[] = { in isl12026_nvm_read()
330 struct i2c_msg msgs[] = { in isl12026_nvm_write()
/Linux-v6.1/drivers/media/pci/cx23885/
Dnetup-init.c19 struct i2c_msg msg = { in i2c_av_write()
40 struct i2c_msg msg = { in i2c_av_write4()
64 struct i2c_msg msg = { in i2c_av_read()
/Linux-v6.1/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()
/Linux-v6.1/drivers/video/fbdev/mb862xx/
Dmb862xx-i2c.c76 static int mb862xx_i2c_read(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_read()
90 static int mb862xx_i2c_write(struct i2c_adapter *adap, struct i2c_msg *m) in mb862xx_i2c_write()
103 static int mb862xx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in mb862xx_xfer()
107 struct i2c_msg *m; in mb862xx_xfer()
/Linux-v6.1/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()
/Linux-v6.1/drivers/media/usb/cx231xx/
Dcx231xx-i2c.c53 const struct i2c_msg *msg, int tuner_type) in is_tuner()
73 const struct i2c_msg *msg) in cx231xx_i2c_send_bytes()
184 const struct i2c_msg *msg) in cx231xx_i2c_recv_bytes()
270 const struct i2c_msg *msg1, in cx231xx_i2c_recv_bytes_with_saddr()
271 const struct i2c_msg *msg2) in cx231xx_i2c_recv_bytes_with_saddr()
334 const struct i2c_msg *msg) in cx231xx_i2c_check_for_device()
361 struct i2c_msg msgs[], int num) in cx231xx_i2c_xfer()
481 struct i2c_msg msg = { in cx231xx_do_i2c_scan()
/Linux-v6.1/drivers/media/pci/cx25821/
Dcx25821-i2c.c67 const struct i2c_msg *msg, int joined_rlen) in i2c_sendbytes()
161 const struct i2c_msg *msg, int joined) in i2c_readbytes()
224 static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) in i2c_xfer()
324 struct i2c_msg msg;
351 struct i2c_msg msgs[2] = { in cx25821_i2c_read()
384 struct i2c_msg msgs[1] = { in cx25821_i2c_write()
/Linux-v6.1/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Di2c.h102 struct i2c_msg msgs[] = { in nvkm_rdi2cr()
118 struct i2c_msg msgs[] = { in nv_rd16i2cr()
134 struct i2c_msg msgs[] = { in nvkm_wri2cr()
149 struct i2c_msg msgs[] = { in nv_wr16i2cr()
/Linux-v6.1/include/trace/events/
Di2c.h26 TP_PROTO(const struct i2c_adapter *adap, const struct i2c_msg *msg,
59 TP_PROTO(const struct i2c_adapter *adap, const struct i2c_msg *msg,
90 TP_PROTO(const struct i2c_adapter *adap, const struct i2c_msg *msg,

12345678910>>...23