/linux/drivers/platform/chrome/ |
A D | cros_ec_i2c.c | 62 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 D | solo6x10-i2c.c | 27 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 D | i2c-cros-ec-tunnel.c | 46 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 D | i2c-tegra-bpmp.c | 84 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 D | i2c-axxia.c | 137 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 D | i2c-digicolor.c | 53 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 D | i2c-owl.c | 95 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 D | regulator-quirk-rcar-gen2.c | 45 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 D | dibx000_common.c | 34 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 D | tua6100.c | 44 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 D | ddbridge-i2c.h | 36 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 D | i2c.c | 68 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 D | ipmb_dev_int.c | 118 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 D | ipmi_ipmb.c | 279 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 D | rtc-isl12026.c | 49 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 D | mb862xx-i2c.c | 76 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 D | bit.c | 174 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 D | oaktrail_hdmi_i2c.c | 73 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 D | netup-init.c | 19 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 D | cx231xx-i2c.c | 53 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 D | cx25821-i2c.c | 67 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 D | i2c.h | 102 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 D | i2c.c | 142 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 D | i2c.h | 32 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 D | opera1.c | 131 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()
|