Home
last modified time | relevance | path

Searched refs:nmsgs (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/i2c/
Di2c-dev.c244 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument
253 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr()
260 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr()
309 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr()
455 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in i2cdev_ioctl()
462 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl()
466 rdwr_arg.nmsgs, sizeof(struct i2c_msg)); in i2cdev_ioctl()
470 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl()
528 u32 nmsgs; member
550 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0) in compat_i2cdev_ioctl()
[all …]
Di2c-core-smbus.c335 int nmsgs = read_write == I2C_SMBUS_READ ? 2 : 1; in i2c_smbus_xfer_emulated() local
361 nmsgs = 1; in i2c_smbus_xfer_emulated()
367 nmsgs = 1; in i2c_smbus_xfer_emulated()
388 nmsgs = 2; /* Special case */ in i2c_smbus_xfer_emulated()
415 nmsgs = 2; /* Another special case */ in i2c_smbus_xfer_emulated()
459 if (nmsgs == 1) /* Write only */ in i2c_smbus_xfer_emulated()
465 if (msg[nmsgs - 1].flags & I2C_M_RD) in i2c_smbus_xfer_emulated()
466 msg[nmsgs - 1].len++; in i2c_smbus_xfer_emulated()
469 status = __i2c_transfer(adapter, msg, nmsgs); in i2c_smbus_xfer_emulated()
472 if (status != nmsgs) { in i2c_smbus_xfer_emulated()
[all …]
/linux-6.12.1/drivers/i2c/busses/
Di2c-xiic.c86 unsigned int nmsgs; member
586 if (i2c->nmsgs == 1) { in xiic_read_rx()
634 if (!xiic_tx_space(i2c) && i2c->nmsgs == 1) { in xiic_fill_tx_fifo()
662 i2c->nmsgs = 0; in xiic_wakeup()
691 i2c->tx_msg, i2c->nmsgs); in xiic_process()
748 __func__, i2c->nmsgs); in xiic_process()
754 if (i2c->nmsgs > 1) { in xiic_process()
755 i2c->nmsgs--; in xiic_process()
781 __func__, i2c->nmsgs); in xiic_process()
785 if (i2c->nmsgs > 1 && (pend & XIIC_INTR_TX_EMPTY_MASK)) { in xiic_process()
[all …]
Di2c-kempld.c61 int nmsgs; member
155 i2c->nmsgs--; in kempld_i2c_process()
160 if (i2c->nmsgs) { in kempld_i2c_process()
196 i2c->nmsgs = num; in kempld_i2c_xfer()
Di2c-ocores.c42 int nmsgs; member
188 i2c->nmsgs--; in ocores_process()
193 if (i2c->nmsgs) { /* end? */ in ocores_process()
375 i2c->nmsgs = num; in ocores_xfer_core()
/linux-6.12.1/sound/virtio/
Dvirtio_pcm_msg.c142 vss->nmsgs = periods; in virtsnd_pcm_msg_alloc()
177 for (i = 0; vss->msgs && i < vss->nmsgs; ++i) in virtsnd_pcm_msg_free()
182 vss->nmsgs = 0; in virtsnd_pcm_msg_free()
Dvirtio_pcm.h62 unsigned int nmsgs; member
/linux-6.12.1/include/uapi/linux/
Di2c-dev.h52 __u32 nmsgs; /* number of i2c_msgs */ member
/linux-6.12.1/Documentation/i2c/
Ddev-interface.rst134 int nmsgs; /* number of messages to exchange */