Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/i2c/busses/
Di2c-xiic.c72 unsigned int nmsgs; member
355 if ((xiic_tx_space(i2c) == 0) && (i2c->nmsgs == 1)) { in xiic_fill_tx_fifo()
368 i2c->nmsgs = 0; in xiic_wakeup()
393 i2c->tx_msg, i2c->nmsgs); in xiic_process()
440 __func__, i2c->nmsgs); in xiic_process()
446 if (i2c->nmsgs > 1) { in xiic_process()
447 i2c->nmsgs--; in xiic_process()
466 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process()
490 __func__, i2c->nmsgs); in xiic_process()
491 if (i2c->nmsgs > 1) { 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.c43 int nmsgs; member
200 i2c->nmsgs--; in ocores_process()
205 if (i2c->nmsgs) { /* end? */ in ocores_process()
385 i2c->nmsgs = num; in ocores_xfer_core()
/Linux-v5.10/drivers/i2c/
Di2c-dev.c236 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument
241 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr()
248 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr()
297 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr()
445 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl()
449 rdwr_arg.nmsgs * sizeof(struct i2c_msg)); in i2cdev_ioctl()
453 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl()
511 u32 nmsgs; member
533 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in compat_i2cdev_ioctl()
536 rdwr_pa = kmalloc_array(rdwr_arg.nmsgs, sizeof(struct i2c_msg), in compat_i2cdev_ioctl()
[all …]
/Linux-v5.10/include/uapi/linux/
Di2c-dev.h67 __u32 nmsgs; /* number of i2c_msgs */ member
/Linux-v5.10/Documentation/i2c/
Ddev-interface.rst134 int nmsgs; /* number of messages to exchange */