Home
last modified time | relevance | path

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

12345678910>>...23

/kernel/linux/linux-5.10/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()
77 i2c_msg[1].len = packet_len; in cros_ec_pkt_xfer_i2c()
78 i2c_msg[1].buf = (char *) in_buf; in cros_ec_pkt_xfer_i2c()
83 i2c_msg[0].len = packet_len; in cros_ec_pkt_xfer_i2c()
84 i2c_msg[0].buf = (char *) out_buf; in cros_ec_pkt_xfer_i2c()
95 ret = i2c_transfer(client->adapter, i2c_msg, 2); in cros_ec_pkt_xfer_i2c()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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.c102 struct i2c_msg *msgs, in tegra_bpmp_serialize_i2c_msg()
110 struct i2c_msg *msg = &msgs[i]; in tegra_bpmp_serialize_i2c_msg()
151 struct i2c_msg *msgs, in tegra_bpmp_i2c_deserialize()
175 static int tegra_bpmp_i2c_msg_len_check(struct i2c_msg *msgs, unsigned int num) in tegra_bpmp_i2c_msg_len_check()
224 struct i2c_msg *msgs, int num, in tegra_bpmp_i2c_xfer_common()
263 struct i2c_msg *msgs, int num) in tegra_bpmp_i2c_xfer()
269 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-efm32.c122 struct i2c_msg *msgs;
141 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_send_next_msg()
149 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_send_next_byte()
170 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_recv_next_byte()
195 struct i2c_msg *cur_msg = &ddata->msgs[ddata->current_msg]; in efm32_i2c_irq()
255 struct i2c_msg *msgs, int num) in efm32_i2c_master_xfer()
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()
214 static int dc_i2c_xfer_msg(struct dc_i2c *i2c, struct i2c_msg *msg, int first, in dc_i2c_xfer_msg()
244 static int dc_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in dc_i2c_xfer()
/kernel/linux/linux-5.10/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()
174 memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg)); in rcar_gen2_regulator_quirk()
178 quirk->i2c_msg.addr = addr; in rcar_gen2_regulator_quirk()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/
Dddbridge-i2c.h36 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_io()
47 struct i2c_msg msg = { .addr = adr, .flags = 0, in i2c_write()
55 struct i2c_msg msgs[1] = { { .addr = adr, .flags = I2C_M_RD, in i2c_read()
64 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs()
76 struct i2c_msg msgs[2] = { { .addr = adr, .flags = 0, in i2c_read_regs16()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
Dnetup-eeprom.c24 struct i2c_msg msg[] = { in netup_eeprom_read()
58 struct i2c_msg msg[] = { in netup_eeprom_write()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Di2c.h101 struct i2c_msg msgs[] = { in nvkm_rdi2cr()
117 struct i2c_msg msgs[] = { in nv_rd16i2cr()
133 struct i2c_msg msgs[] = { in nvkm_wri2cr()
148 struct i2c_msg msgs[] = { in nv_wr16i2cr()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/linux/
Di2c.h30 struct i2c_msg;
126 int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
128 int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
529 int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs,
532 struct i2c_msg *msgs, int num);
907 static inline u8 i2c_8bit_addr_from_msg(const struct i2c_msg *msg) in i2c_8bit_addr_from_msg()
912 u8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold);
913 void i2c_put_dma_safe_msg_buf(u8 *buf, struct i2c_msg *msg, bool xferred);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Di2c.c142 struct i2c_msg read_sema[] = in mlxsw_i2c_wait_go_bit()
192 struct i2c_msg push_cmd = in mlxsw_i2c_write_cmd()
195 struct i2c_msg prep_cmd = in mlxsw_i2c_write_cmd()
238 struct i2c_msg push_cmd = in mlxsw_i2c_write_init_cmd()
241 struct i2c_msg prep_cmd = in mlxsw_i2c_write_init_cmd()
291 struct i2c_msg mbox_cmd[] = in mlxsw_i2c_get_mbox()
323 struct i2c_msg write_tran = in mlxsw_i2c_write()
402 struct i2c_msg read_tran[] = in mlxsw_i2c_cmd()
/kernel/linux/linux-5.10/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