Home
last modified time | relevance | path

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

12345678910>>...23

/linux/drivers/platform/chrome/
A 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()
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()
83 i2c_msg[0].len = packet_len; in cros_ec_pkt_xfer_i2c()
191 struct i2c_msg i2c_msg[2]; in cros_ec_cmd_xfer_i2c() local
194 i2c_msg[0].flags = 0; in cros_ec_cmd_xfer_i2c()
196 i2c_msg[1].flags = I2C_M_RD; in cros_ec_cmd_xfer_i2c()
206 i2c_msg[1].len = packet_len; in cros_ec_cmd_xfer_i2c()
[all …]
/linux/drivers/media/pci/solo6x10/
A Dsolo6x10-i2c.c27 struct i2c_msg msgs[2]; in solo_i2c_readbyte()
48 struct i2c_msg msgs; in solo_i2c_writebyte()
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()
113 solo_dev->i2c_msg++; in solo_i2c_handle_read()
124 if (solo_dev->i2c_msg->flags & I2C_M_RD) in solo_i2c_handle_read()
145 solo_dev->i2c_msg++; in solo_i2c_handle_write()
156 if (solo_dev->i2c_msg->flags & I2C_M_RD) in solo_i2c_handle_write()
179 if (solo_dev->i2c_msg->flags & I2C_M_RD) { in solo_i2c_isr()
207 struct i2c_msg msgs[], int num) in solo_i2c_master_xfer()
[all …]
/linux/drivers/i2c/busses/
A Di2c-cros-ec-tunnel.c46 static int ec_i2c_count_message(const struct i2c_msg i2c_msgs[], int num) in ec_i2c_count_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()
163 struct i2c_msg *i2c_msg = &i2c_msgs[i]; in ec_i2c_parse_response() local
166 memcpy(i2c_msg->buf, in_data, i2c_msg->len); in ec_i2c_parse_response()
[all …]
A 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()
A 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()
524 static int axxia_i2c_xfer_msg(struct axxia_i2c_dev *idev, struct i2c_msg *msg, in axxia_i2c_xfer_msg()
605 static bool axxia_i2c_sequence_ok(struct i2c_msg msgs[], int num) in axxia_i2c_sequence_ok()
[all …]
A 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()
A Di2c-owl.c95 struct i2c_msg *msg;
169 struct i2c_msg *msg = i2c_dev->msg; in owl_i2c_xfer_data()
251 static int owl_i2c_xfer_common(struct i2c_adapter *adap, struct i2c_msg *msgs, in owl_i2c_xfer_common()
255 struct i2c_msg *msg; in owl_i2c_xfer_common()
409 static int owl_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, in owl_i2c_xfer()
416 struct i2c_msg *msgs, int num) in owl_i2c_xfer_atomic()
/linux/arch/arm/mach-shmobile/
A 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()
171 memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg)); in rcar_gen2_regulator_quirk()
175 quirk->i2c_msg.addr = addr; in rcar_gen2_regulator_quirk()
/linux/drivers/media/dvb-frontends/
A 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()
139 static int dibx000_master_i2c_read(struct dibx000_i2c_master *mst, struct i2c_msg *msg) in dibx000_master_i2c_read()
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()
350 memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); in dibx000_i2c_gated_tuner_xfer()
358 memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); in dibx000_i2c_gated_tuner_xfer()
414 struct i2c_msg m = {.addr = mst->i2c_addr,.buf = tx,.len = 4 }; in dibx000_reset_i2c_master()
[all …]
A 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/drivers/media/pci/ddbridge/
A 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()
/linux/drivers/staging/greybus/
A 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/drivers/char/ipmi/
A 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()
A Dipmi_ipmb.c279 struct i2c_msg i2c_msg; in ipmi_ipmb_thread() local
303 i2c_msg.len = iidev->xmitlen - 1; in ipmi_ipmb_thread()
304 if (i2c_msg.len > 32) { in ipmi_ipmb_thread()
310 i2c_msg.addr = iidev->xmitmsg[0] >> 1; in ipmi_ipmb_thread()
311 i2c_msg.flags = 0; in ipmi_ipmb_thread()
312 i2c_msg.buf = iidev->xmitmsg + 1; in ipmi_ipmb_thread()
317 ret = i2c_transfer(iidev->client->adapter, &i2c_msg, 1); in ipmi_ipmb_thread()
/linux/drivers/rtc/
A 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/drivers/video/fbdev/mb862xx/
A 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/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
A 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/drivers/gpu/drm/gma500/
A 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/drivers/media/pci/cx23885/
A 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/drivers/media/usb/cx231xx/
A 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/drivers/media/pci/cx25821/
A 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/drivers/gpu/drm/nouveau/include/nvkm/subdev/
A 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/drivers/net/ethernet/mellanox/mlxsw/
A 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()
/linux/include/linux/
A Di2c.h32 struct i2c_msg;
131 int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
133 int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
556 int (*master_xfer)(struct i2c_adapter *adap, struct i2c_msg *msgs,
559 struct i2c_msg *msgs, int num);
936 static inline u8 i2c_8bit_addr_from_msg(const struct i2c_msg *msg) in i2c_8bit_addr_from_msg()
941 u8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold);
942 void i2c_put_dma_safe_msg_buf(u8 *buf, struct i2c_msg *msg, bool xferred);
/linux/drivers/media/usb/dvb-usb/
A Dopera1.c131 static int opera1_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in opera1_i2c_xfer()
172 struct i2c_msg msg[] = { in opera1_set_voltage()
297 struct i2c_msg start_tuner[] = { in opera1_streaming_ctrl()
310 struct i2c_msg msg[] = { in opera1_pid_filter()
327 struct i2c_msg msg[] = { in opera1_pid_filter_control()
376 struct i2c_msg read_remote[] = { in opera1_rc_query()

Completed in 63 milliseconds

12345678910>>...23