/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-octeon-core.c | 403 static int octeon_i2c_hlc_read(struct octeon_i2c *i2c, struct i2c_msg *msgs) in octeon_i2c_hlc_read() argument 413 cmd |= (u64)(msgs[0].len - 1) << SW_TWSI_SIZE_SHIFT; in octeon_i2c_hlc_read() 415 cmd |= (u64)(msgs[0].addr & 0x7full) << SW_TWSI_ADDR_SHIFT; in octeon_i2c_hlc_read() 417 if (msgs[0].flags & I2C_M_TEN) in octeon_i2c_hlc_read() 431 for (i = 0, j = msgs[0].len - 1; i < msgs[0].len && i < 4; i++, j--) in octeon_i2c_hlc_read() 432 msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; in octeon_i2c_hlc_read() 434 if (msgs[0].len > 4) { in octeon_i2c_hlc_read() 436 for (i = 0; i < msgs[0].len - 4 && i < 4; i++, j--) in octeon_i2c_hlc_read() 437 msgs[0].buf[j] = (cmd >> (8 * i)) & 0xff; in octeon_i2c_hlc_read() 445 static int octeon_i2c_hlc_write(struct octeon_i2c *i2c, struct i2c_msg *msgs) in octeon_i2c_hlc_write() argument [all …]
|
D | i2c-tegra-bpmp.c | 102 struct i2c_msg *msgs, in tegra_bpmp_serialize_i2c_msg() argument 110 struct i2c_msg *msg = &msgs[i]; in tegra_bpmp_serialize_i2c_msg() 151 struct i2c_msg *msgs, in tegra_bpmp_i2c_deserialize() argument 159 if (msgs[i].flags & I2C_M_RD) in tegra_bpmp_i2c_deserialize() 160 len += msgs[i].len; in tegra_bpmp_i2c_deserialize() 166 if (msgs[i].flags & I2C_M_RD) { in tegra_bpmp_i2c_deserialize() 167 memcpy(msgs[i].buf, buf + pos, msgs[i].len); in tegra_bpmp_i2c_deserialize() 168 pos += msgs[i].len; 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() argument 181 if (!(msgs[i].flags & I2C_M_RD)) in tegra_bpmp_i2c_msg_len_check() [all …]
|
D | i2c-mt65xx.c | 843 static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs, in mtk_i2c_do_transfer() argument 875 addr_reg = i2c_8bit_addr_from_msg(msgs); in mtk_i2c_do_transfer() 891 mtk_i2c_writew(i2c, msgs->len, OFFSET_TRANSFER_LEN); in mtk_i2c_do_transfer() 892 mtk_i2c_writew(i2c, (msgs + 1)->len, in mtk_i2c_do_transfer() 895 mtk_i2c_writew(i2c, msgs->len | ((msgs + 1)->len) << 8, in mtk_i2c_do_transfer() 900 mtk_i2c_writew(i2c, msgs->len, OFFSET_TRANSFER_LEN); in mtk_i2c_do_transfer() 915 dma_rd_buf = i2c_get_dma_safe_msg_buf(msgs, 1); in mtk_i2c_do_transfer() 920 msgs->len, DMA_FROM_DEVICE); in mtk_i2c_do_transfer() 922 i2c_put_dma_safe_msg_buf(dma_rd_buf, msgs, false); in mtk_i2c_do_transfer() 933 writel(msgs->len, i2c->pdmabase + OFFSET_RX_LEN); in mtk_i2c_do_transfer() [all …]
|
D | i2c-mv64xxx.c | 119 struct i2c_msg *msgs; member 334 drv_data->msg = drv_data->msgs; in mv64xxx_i2c_send_start() 340 mv64xxx_i2c_prepare_for_io(drv_data, drv_data->msgs); in mv64xxx_i2c_send_start() 353 drv_data->msgs++; in mv64xxx_i2c_do_action() 467 if (drv_data->num_msgs == 1 && drv_data->msgs[0].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload() 468 mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs); in mv64xxx_i2c_intr_offload() 469 drv_data->msgs++; in mv64xxx_i2c_intr_offload() 477 !(drv_data->msgs[0].flags & I2C_M_RD) && in mv64xxx_i2c_intr_offload() 478 drv_data->msgs[1].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload() 479 mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs + 1); in mv64xxx_i2c_intr_offload() [all …]
|
D | i2c-designware-master.c | 220 struct i2c_msg *msgs = dev->msgs; in i2c_dw_xfer_init() local 228 if (msgs[dev->msg_write_idx].flags & I2C_M_TEN) { in i2c_dw_xfer_init() 247 msgs[dev->msg_write_idx].addr | ic_tar); in i2c_dw_xfer_init() 272 struct i2c_msg *msgs = dev->msgs; in i2c_dw_xfer_msg() local 275 u32 addr = msgs[dev->msg_write_idx].addr; in i2c_dw_xfer_msg() 284 u32 flags = msgs[dev->msg_write_idx].flags; in i2c_dw_xfer_msg() 291 if (msgs[dev->msg_write_idx].addr != addr) { in i2c_dw_xfer_msg() 300 buf = msgs[dev->msg_write_idx].buf; in i2c_dw_xfer_msg() 301 buf_len = msgs[dev->msg_write_idx].len; in i2c_dw_xfer_msg() 343 if (msgs[dev->msg_write_idx].flags & I2C_M_RD) { in i2c_dw_xfer_msg() [all …]
|
D | i2c-imx.c | 357 struct i2c_msg *msgs) in i2c_imx_dma_xfer() argument 364 dma->dma_buf = dma_map_single(chan_dev, msgs->buf, in i2c_imx_dma_xfer() 659 struct i2c_msg *msgs) in i2c_imx_dma_write() argument 671 dma->dma_len = msgs->len - 1; in i2c_imx_dma_write() 672 result = i2c_imx_dma_xfer(i2c_imx, msgs); in i2c_imx_dma_write() 684 imx_i2c_write_reg(i2c_8bit_addr_from_msg(msgs), i2c_imx, IMX_I2C_I2DR); in i2c_imx_dma_write() 711 imx_i2c_write_reg(msgs->buf[msgs->len-1], in i2c_imx_dma_write() 721 struct i2c_msg *msgs, bool is_lastmsg) in i2c_imx_dma_read() argument 735 dma->dma_len = msgs->len - 2; in i2c_imx_dma_read() 736 result = i2c_imx_dma_xfer(i2c_imx, msgs); in i2c_imx_dma_read() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/ |
D | saa7164-i2c.c | 16 static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) in i2c_xfer() argument 26 __func__, num, msgs[i].addr, msgs[i].len); in i2c_xfer() 27 if (msgs[i].flags & I2C_M_RD) { in i2c_xfer() 29 msgs[i].addr, in i2c_xfer() 31 NULL /* reg */, msgs[i].len, msgs[i].buf); in i2c_xfer() 32 } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && in i2c_xfer() 33 msgs[i].addr == msgs[i + 1].addr) { in i2c_xfer() 36 retval = saa7164_api_i2c_read(bus, msgs[i].addr, in i2c_xfer() 37 msgs[i].len, msgs[i].buf, in i2c_xfer() 38 msgs[i+1].len, msgs[i+1].buf in i2c_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/video/fbdev/via/ |
D | via_i2c.c | 111 struct i2c_msg msgs[2]; in viafb_i2c_readbyte() local 116 msgs[0].flags = 0; in viafb_i2c_readbyte() 117 msgs[1].flags = I2C_M_RD; in viafb_i2c_readbyte() 118 msgs[0].addr = msgs[1].addr = slave_addr / 2; in viafb_i2c_readbyte() 120 msgs[0].len = 1; msgs[1].len = 1; in viafb_i2c_readbyte() 121 msgs[0].buf = mm1; msgs[1].buf = pdata; in viafb_i2c_readbyte() 122 ret = i2c_transfer(&via_i2c_par[adap].adapter, msgs, 2); in viafb_i2c_readbyte() 135 struct i2c_msg msgs; in viafb_i2c_writebyte() local 139 msgs.flags = 0; in viafb_i2c_writebyte() 140 msgs.addr = slave_addr / 2; in viafb_i2c_writebyte() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/tm6000/ |
D | tm6000-i2c.c | 143 struct i2c_msg msgs[], int num) in tm6000_i2c_xfer() argument 149 addr = (msgs[i].addr << 1) & 0xff; in tm6000_i2c_xfer() 151 (msgs[i].flags & I2C_M_RD) ? "read" : "write", in tm6000_i2c_xfer() 152 i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); in tm6000_i2c_xfer() 153 if (msgs[i].flags & I2C_M_RD) { in tm6000_i2c_xfer() 163 } else if (i + 1 < num && msgs[i].len <= 2 && in tm6000_i2c_xfer() 164 (msgs[i + 1].flags & I2C_M_RD) && in tm6000_i2c_xfer() 165 msgs[i].addr == msgs[i + 1].addr) { in tm6000_i2c_xfer() 168 for (byte = 0; byte < msgs[i].len; byte++) in tm6000_i2c_xfer() 169 printk(KERN_CONT " %02x", msgs[i].buf[byte]); in tm6000_i2c_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/go7007/ |
D | go7007-i2c.c | 146 struct i2c_msg msgs[], int num) in go7007_i2c_master_xfer() argument 154 if (msgs[i].len == 2) { in go7007_i2c_master_xfer() 155 if (i + 1 == num || msgs[i].addr != msgs[i + 1].addr || in go7007_i2c_master_xfer() 156 (msgs[i].flags & I2C_M_RD) || in go7007_i2c_master_xfer() 157 !(msgs[i + 1].flags & I2C_M_RD) || in go7007_i2c_master_xfer() 158 msgs[i + 1].len != 1) in go7007_i2c_master_xfer() 160 if (go7007_i2c_xfer(go, msgs[i].addr, 1, in go7007_i2c_master_xfer() 161 (msgs[i].buf[0] << 8) | msgs[i].buf[1], in go7007_i2c_master_xfer() 162 0x01, &msgs[i + 1].buf[0]) < 0) in go7007_i2c_master_xfer() 165 } else if (msgs[i].len == 3) { in go7007_i2c_master_xfer() [all …]
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | sigmadsp-i2c.c | 43 struct i2c_msg msgs[2]; in sigmadsp_read_i2c() local 49 msgs[0].addr = client->addr; in sigmadsp_read_i2c() 50 msgs[0].len = sizeof(buf); in sigmadsp_read_i2c() 51 msgs[0].buf = buf; in sigmadsp_read_i2c() 52 msgs[0].flags = 0; in sigmadsp_read_i2c() 54 msgs[1].addr = client->addr; in sigmadsp_read_i2c() 55 msgs[1].len = len; in sigmadsp_read_i2c() 56 msgs[1].buf = data; in sigmadsp_read_i2c() 57 msgs[1].flags = I2C_M_RD; in sigmadsp_read_i2c() 59 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in sigmadsp_read_i2c() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/ |
D | stk1160-i2c.c | 152 struct i2c_msg msgs[], int num) in stk1160_i2c_xfer() argument 158 addr = msgs[i].addr << 1; in stk1160_i2c_xfer() 161 if (!msgs[i].len) { in stk1160_i2c_xfer() 169 } else if (msgs[i].flags & I2C_M_RD) { in stk1160_i2c_xfer() 175 } else if (i + 1 < num && msgs[i].len <= 2 && in stk1160_i2c_xfer() 176 (msgs[i + 1].flags & I2C_M_RD) && in stk1160_i2c_xfer() 177 msgs[i].addr == msgs[i + 1].addr) { in stk1160_i2c_xfer() 179 if (msgs[i].len != 1 || msgs[i + 1].len != 1) { in stk1160_i2c_xfer() 185 dprintk_i2c(" subaddr=%x", msgs[i].buf[0]); in stk1160_i2c_xfer() 187 rc = stk1160_i2c_read_reg(dev, addr, msgs[i].buf[0], in stk1160_i2c_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/hdpvr/ |
D | hdpvr-i2c.c | 110 static int hdpvr_transfer(struct i2c_adapter *i2c_adapter, struct i2c_msg *msgs, in hdpvr_transfer() argument 118 addr = msgs[0].addr << 1; in hdpvr_transfer() 121 if (msgs[0].flags & I2C_M_RD) in hdpvr_transfer() 123 msgs[0].buf, msgs[0].len); in hdpvr_transfer() 125 retval = hdpvr_i2c_write(dev, 1, addr, msgs[0].buf, in hdpvr_transfer() 126 msgs[0].len); in hdpvr_transfer() 128 if (msgs[0].addr != msgs[1].addr) { in hdpvr_transfer() 134 if ((msgs[0].flags & I2C_M_RD) || !(msgs[1].flags & I2C_M_RD)) { in hdpvr_transfer() 136 msgs[0].flags & I2C_M_RD, in hdpvr_transfer() 137 msgs[1].flags & I2C_M_RD); in hdpvr_transfer() [all …]
|
/kernel/linux/linux-5.10/drivers/net/mdio/ |
D | mdio-i2c.c | 34 struct i2c_msg msgs[2]; in i2c_mii_read() local 49 msgs[0].addr = bus_addr; in i2c_mii_read() 50 msgs[0].flags = 0; in i2c_mii_read() 51 msgs[0].len = p - addr; in i2c_mii_read() 52 msgs[0].buf = addr; in i2c_mii_read() 53 msgs[1].addr = bus_addr; in i2c_mii_read() 54 msgs[1].flags = I2C_M_RD; in i2c_mii_read() 55 msgs[1].len = sizeof(data); in i2c_mii_read() 56 msgs[1].buf = data; in i2c_mii_read() 58 ret = i2c_transfer(i2c, msgs, ARRAY_SIZE(msgs)); in i2c_mii_read() [all …]
|
/kernel/linux/linux-5.10/drivers/rtc/ |
D | rtc-pcf8523.c | 40 struct i2c_msg msgs[2]; in pcf8523_read() local 44 msgs[0].addr = client->addr; in pcf8523_read() 45 msgs[0].flags = 0; in pcf8523_read() 46 msgs[0].len = sizeof(reg); in pcf8523_read() 47 msgs[0].buf = ® in pcf8523_read() 49 msgs[1].addr = client->addr; in pcf8523_read() 50 msgs[1].flags = I2C_M_RD; in pcf8523_read() 51 msgs[1].len = sizeof(value); in pcf8523_read() 52 msgs[1].buf = &value; in pcf8523_read() 54 err = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in pcf8523_read() [all …]
|
D | rtc-isl12026.c | 49 struct i2c_msg msgs[] = { in isl12026_read_reg() local 63 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_read_reg() 64 if (ret != ARRAY_SIZE(msgs)) { in isl12026_read_reg() 211 struct i2c_msg msgs[] = { in isl12026_rtc_read_time() local 226 msgs[1].len = 1; in isl12026_rtc_read_time() 227 msgs[1].buf = &sr; in isl12026_rtc_read_time() 229 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_rtc_read_time() 230 if (ret != ARRAY_SIZE(msgs)) { in isl12026_rtc_read_time() 244 msgs[1].len = sizeof(ccr); in isl12026_rtc_read_time() 245 msgs[1].buf = ccr; in isl12026_rtc_read_time() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/ |
D | solo6x10-i2c.c | 27 struct i2c_msg msgs[2]; in solo_i2c_readbyte() local 30 msgs[0].flags = 0; in solo_i2c_readbyte() 31 msgs[0].addr = addr; in solo_i2c_readbyte() 32 msgs[0].len = 1; in solo_i2c_readbyte() 33 msgs[0].buf = &off; in solo_i2c_readbyte() 35 msgs[1].flags = I2C_M_RD; in solo_i2c_readbyte() 36 msgs[1].addr = addr; in solo_i2c_readbyte() 37 msgs[1].len = 1; in solo_i2c_readbyte() 38 msgs[1].buf = &data; in solo_i2c_readbyte() 40 i2c_transfer(&solo_dev->i2c_adap[id], msgs, 2); in solo_i2c_readbyte() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 363 struct i2c_msg msgs[], in pvr2_i2c_xfer() argument 374 if (msgs[0].addr < PVR2_I2C_FUNC_CNT) { in pvr2_i2c_xfer() 375 funcp = hdw->i2c_func[msgs[0].addr]; in pvr2_i2c_xfer() 383 if (msgs[0].flags & I2C_M_RD) { in pvr2_i2c_xfer() 386 if (!msgs[0].len) { in pvr2_i2c_xfer() 388 if (funcp(hdw,msgs[0].addr,NULL,0,NULL,0)) { in pvr2_i2c_xfer() 398 tcnt = msgs[0].len; in pvr2_i2c_xfer() 405 if (funcp(hdw,msgs[0].addr,NULL,0, in pvr2_i2c_xfer() 406 msgs[0].buf+offs,bcnt)) { in pvr2_i2c_xfer() 418 if (funcp(hdw,msgs[0].addr, in pvr2_i2c_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | cyttsp_i2c_common.c | 32 struct i2c_msg msgs[] = { in cyttsp_i2c_read_block_data() local 48 retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in cyttsp_i2c_read_block_data() 52 return retval != ARRAY_SIZE(msgs) ? -EIO : 0; in cyttsp_i2c_read_block_data() 62 struct i2c_msg msgs[] = { in cyttsp_i2c_write_block_data() local 75 retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in cyttsp_i2c_write_block_data() 79 return retval != ARRAY_SIZE(msgs) ? -EIO : 0; in cyttsp_i2c_write_block_data()
|
/kernel/linux/linux-5.10/drivers/media/pci/pt3/ |
D | pt3_i2c.c | 104 static void translate(struct pt3_i2cbuf *cbuf, struct i2c_msg *msgs, int num) in translate() argument 111 rd = !!(msgs[i].flags & I2C_M_RD); in translate() 113 put_byte_write(cbuf, msgs[i].addr << 1 | rd); in translate() 115 put_byte_read(cbuf, msgs[i].len); in translate() 117 for (j = 0; j < msgs[i].len; j++) in translate() 118 put_byte_write(cbuf, msgs[i].buf[j]); in translate() 192 pt3_i2c_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) in pt3_i2c_master_xfer() argument 203 if (msgs[i].flags & I2C_M_RECV_LEN) { in pt3_i2c_master_xfer() 210 translate(cbuf, msgs, num); in pt3_i2c_master_xfer() 219 if ((msgs[i].flags & I2C_M_RD) && msgs[i].len > 0) { in pt3_i2c_master_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/w1/slaves/ |
D | w1_ds28e17.c | 347 struct i2c_msg *msgs, int num) in w1_f19_i2c_master_transfer() argument 369 && msgs[i].addr == msgs[i+1].addr in w1_f19_i2c_master_transfer() 370 && !(msgs[i].flags & I2C_M_RD) in w1_f19_i2c_master_transfer() 371 && (msgs[i+1].flags & I2C_M_RD) in w1_f19_i2c_master_transfer() 372 && (msgs[i].len <= W1_F19_WRITE_DATA_LIMIT)) { in w1_f19_i2c_master_transfer() 377 result = w1_f19_i2c_write_read(sl, msgs[i].addr, in w1_f19_i2c_master_transfer() 378 msgs[i].buf, msgs[i].len, in w1_f19_i2c_master_transfer() 379 msgs[i+1].buf, msgs[i+1].len); in w1_f19_i2c_master_transfer() 391 if (msgs[i+1].flags & I2C_M_RECV_LEN) { in w1_f19_i2c_master_transfer() 392 result = w1_f19_i2c_read(sl, msgs[i+1].addr, in w1_f19_i2c_master_transfer() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/ |
D | i2c-dev.c | 237 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument 244 kfree(msgs); in i2cdev_ioctl_rdwr() 251 if (msgs[i].len > 8192) { in i2cdev_ioctl_rdwr() 256 data_ptrs[i] = (u8 __user *)msgs[i].buf; in i2cdev_ioctl_rdwr() 257 msgs[i].buf = memdup_user(data_ptrs[i], msgs[i].len); in i2cdev_ioctl_rdwr() 258 if (IS_ERR(msgs[i].buf)) { in i2cdev_ioctl_rdwr() 259 res = PTR_ERR(msgs[i].buf); in i2cdev_ioctl_rdwr() 263 msgs[i].flags |= I2C_M_DMA_SAFE; in i2cdev_ioctl_rdwr() 276 if (msgs[i].flags & I2C_M_RECV_LEN) { in i2cdev_ioctl_rdwr() 277 if (!(msgs[i].flags & I2C_M_RD) || in i2cdev_ioctl_rdwr() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/ |
D | cx231xx-i2c.c | 361 struct i2c_msg msgs[], int num) in cx231xx_i2c_xfer() argument 370 addr = msgs[i].addr; in cx231xx_i2c_xfer() 373 (msgs[i].flags & I2C_M_RD) ? "read" : "write", in cx231xx_i2c_xfer() 374 i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); in cx231xx_i2c_xfer() 375 if (!msgs[i].len) { in cx231xx_i2c_xfer() 377 rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer() 384 } else if (msgs[i].flags & I2C_M_RD) { in cx231xx_i2c_xfer() 386 rc = cx231xx_i2c_recv_bytes(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer() 388 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer() 389 printk(KERN_CONT " %02x", msgs[i].buf[byte]); in cx231xx_i2c_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/cx25821/ |
D | cx25821-i2c.c | 224 static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) in i2c_xfer() argument 234 __func__, num, msgs[i].addr, msgs[i].len); in i2c_xfer() 236 if (msgs[i].flags & I2C_M_RD) { in i2c_xfer() 238 retval = i2c_readbytes(i2c_adap, &msgs[i], 0); in i2c_xfer() 239 } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && in i2c_xfer() 240 msgs[i].addr == msgs[i + 1].addr) { in i2c_xfer() 242 retval = i2c_sendbytes(i2c_adap, &msgs[i], in i2c_xfer() 243 msgs[i + 1].len); in i2c_xfer() 248 retval = i2c_readbytes(i2c_adap, &msgs[i], 1); in i2c_xfer() 251 retval = i2c_sendbytes(i2c_adap, &msgs[i], 0); in i2c_xfer() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | i2c.h | 101 struct i2c_msg msgs[] = { in nvkm_rdi2cr() local 106 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nvkm_rdi2cr() 117 struct i2c_msg msgs[] = { in nv_rd16i2cr() local 122 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nv_rd16i2cr() 133 struct i2c_msg msgs[] = { in nvkm_wri2cr() local 137 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nvkm_wri2cr() 148 struct i2c_msg msgs[] = { in nv_wr16i2cr() local 152 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nv_wr16i2cr()
|