/linux-6.1.9/drivers/net/mdio/ |
D | mdio-i2c.c | 36 struct i2c_msg msgs[2]; in i2c_mii_read_default() local 51 msgs[0].addr = bus_addr; in i2c_mii_read_default() 52 msgs[0].flags = 0; in i2c_mii_read_default() 53 msgs[0].len = p - addr; in i2c_mii_read_default() 54 msgs[0].buf = addr; in i2c_mii_read_default() 55 msgs[1].addr = bus_addr; in i2c_mii_read_default() 56 msgs[1].flags = I2C_M_RD; in i2c_mii_read_default() 57 msgs[1].len = sizeof(data); in i2c_mii_read_default() 58 msgs[1].buf = data; in i2c_mii_read_default() 60 ret = i2c_transfer(i2c, msgs, ARRAY_SIZE(msgs)); in i2c_mii_read_default() [all …]
|
/linux-6.1.9/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 | 84 struct i2c_msg *msgs, in tegra_bpmp_serialize_i2c_msg() argument 91 struct i2c_msg *msg = &msgs[i]; in tegra_bpmp_serialize_i2c_msg() 128 struct i2c_msg *msgs, in tegra_bpmp_i2c_deserialize() argument 136 if (msgs[i].flags & I2C_M_RD) in tegra_bpmp_i2c_deserialize() 137 len += msgs[i].len; in tegra_bpmp_i2c_deserialize() 143 if (msgs[i].flags & I2C_M_RD) { in tegra_bpmp_i2c_deserialize() 144 memcpy(msgs[i].buf, buf + pos, msgs[i].len); in tegra_bpmp_i2c_deserialize() 145 pos += msgs[i].len; 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() argument 158 if (!(msgs[i].flags & I2C_M_RD)) in tegra_bpmp_i2c_msg_len_check() [all …]
|
D | i2c-designware-master.c | 212 struct i2c_msg *msgs = dev->msgs; in i2c_dw_xfer_init() local 220 if (msgs[dev->msg_write_idx].flags & I2C_M_TEN) { in i2c_dw_xfer_init() 239 msgs[dev->msg_write_idx].addr | ic_tar); in i2c_dw_xfer_init() 284 static int amd_i2c_dw_xfer_quirk(struct i2c_adapter *adap, struct i2c_msg *msgs, int num_msgs) in amd_i2c_dw_xfer_quirk() argument 299 dev->msgs = msgs; in amd_i2c_dw_xfer_quirk() 306 tx_buf = msgs[msg_wrt_idx].buf; in amd_i2c_dw_xfer_quirk() 307 buf_len = msgs[msg_wrt_idx].len; in amd_i2c_dw_xfer_quirk() 309 if (!(msgs[msg_wrt_idx].flags & I2C_M_RD)) in amd_i2c_dw_xfer_quirk() 320 if (msgs[msg_wrt_idx].flags & I2C_M_RD) { in amd_i2c_dw_xfer_quirk() 366 struct i2c_msg *msgs = dev->msgs; in i2c_dw_xfer_msg() local [all …]
|
D | i2c-mv64xxx.c | 121 struct i2c_msg *msgs; member 346 drv_data->msg = drv_data->msgs; in mv64xxx_i2c_send_start() 352 mv64xxx_i2c_prepare_for_io(drv_data, drv_data->msgs); in mv64xxx_i2c_send_start() 365 drv_data->msgs++; in mv64xxx_i2c_do_action() 481 if (drv_data->num_msgs == 1 && drv_data->msgs[0].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload() 482 mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs); in mv64xxx_i2c_intr_offload() 483 drv_data->msgs++; in mv64xxx_i2c_intr_offload() 491 !(drv_data->msgs[0].flags & I2C_M_RD) && in mv64xxx_i2c_intr_offload() 492 drv_data->msgs[1].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload() 493 mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs + 1); in mv64xxx_i2c_intr_offload() [all …]
|
D | i2c-virtio.c | 59 struct i2c_msg *msgs, int num) in virtio_i2c_prepare_reqs() argument 73 reqs[i].out_hdr.addr = cpu_to_le16(msgs[i].addr << 1); in virtio_i2c_prepare_reqs() 75 if (msgs[i].flags & I2C_M_RD) in virtio_i2c_prepare_reqs() 84 if (msgs[i].len) { in virtio_i2c_prepare_reqs() 85 reqs[i].buf = i2c_get_dma_safe_msg_buf(&msgs[i], 1); in virtio_i2c_prepare_reqs() 89 sg_init_one(&msg_buf, reqs[i].buf, msgs[i].len); in virtio_i2c_prepare_reqs() 91 if (msgs[i].flags & I2C_M_RD) in virtio_i2c_prepare_reqs() 101 i2c_put_dma_safe_msg_buf(reqs[i].buf, &msgs[i], false); in virtio_i2c_prepare_reqs() 111 struct i2c_msg *msgs, int num) in virtio_i2c_complete_reqs() argument 124 i2c_put_dma_safe_msg_buf(reqs[i].buf, &msgs[i], !failed); in virtio_i2c_complete_reqs() [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/staging/media/deprecated/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_eeprom.c | 94 struct i2c_msg msgs[] = { in __amdgpu_eeprom_xfer() local 112 msgs[0].addr = MAKE_I2C_ADDR(eeprom_addr); in __amdgpu_eeprom_xfer() 113 msgs[1].addr = msgs[0].addr; in __amdgpu_eeprom_xfer() 114 msgs[0].buf[0] = (eeprom_addr >> 8) & 0xff; in __amdgpu_eeprom_xfer() 115 msgs[0].buf[1] = eeprom_addr & 0xff; in __amdgpu_eeprom_xfer() 144 msgs[1].len = len; in __amdgpu_eeprom_xfer() 145 msgs[1].buf = eeprom_buf; in __amdgpu_eeprom_xfer() 149 r = i2c_transfer(i2c_adap, msgs, ARRAY_SIZE(msgs)); in __amdgpu_eeprom_xfer() 150 if (r != ARRAY_SIZE(msgs)) in __amdgpu_eeprom_xfer()
|
/linux-6.1.9/drivers/rtc/ |
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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/i2c/ |
D | i2c-dev.c | 236 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument 243 kfree(msgs); in i2cdev_ioctl_rdwr() 250 if (msgs[i].len > 8192) { in i2cdev_ioctl_rdwr() 255 data_ptrs[i] = (u8 __user *)msgs[i].buf; in i2cdev_ioctl_rdwr() 256 msgs[i].buf = memdup_user(data_ptrs[i], msgs[i].len); in i2cdev_ioctl_rdwr() 257 if (IS_ERR(msgs[i].buf)) { in i2cdev_ioctl_rdwr() 258 res = PTR_ERR(msgs[i].buf); in i2cdev_ioctl_rdwr() 262 msgs[i].flags |= I2C_M_DMA_SAFE; in i2cdev_ioctl_rdwr() 275 if (msgs[i].flags & I2C_M_RECV_LEN) { in i2cdev_ioctl_rdwr() 276 if (!(msgs[i].flags & I2C_M_RD) || in i2cdev_ioctl_rdwr() [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | i2c.h | 102 struct i2c_msg msgs[] = { in nvkm_rdi2cr() local 107 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nvkm_rdi2cr() 118 struct i2c_msg msgs[] = { in nv_rd16i2cr() local 123 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nv_rd16i2cr() 134 struct i2c_msg msgs[] = { in nvkm_wri2cr() local 138 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nvkm_wri2cr() 149 struct i2c_msg msgs[] = { in nv_wr16i2cr() local 153 int ret = i2c_transfer(adap, msgs, ARRAY_SIZE(msgs)); in nv_wr16i2cr()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | qsfp.c | 180 struct i2c_msg msgs[2]; in i2c_bus_write() local 185 msgs[0].addr = slave_addr; in i2c_bus_write() 186 msgs[0].flags = 0; in i2c_bus_write() 187 msgs[0].len = len; in i2c_bus_write() 188 msgs[0].buf = data; in i2c_bus_write() 197 msgs[0].addr = slave_addr; in i2c_bus_write() 198 msgs[0].flags = 0; in i2c_bus_write() 199 msgs[0].len = offset_size; in i2c_bus_write() 200 msgs[0].buf = offset_bytes; in i2c_bus_write() 202 msgs[1].addr = slave_addr; in i2c_bus_write() [all …]
|