Searched refs:nmsgs (Results 1 – 6 of 6) sorted by relevance
| /Linux-v5.4/drivers/i2c/busses/ |
| D | i2c-xiic.c | 69 unsigned int nmsgs; member 333 if ((xiic_tx_space(i2c) == 0) && (i2c->nmsgs == 1)) { in xiic_fill_tx_fifo() 346 i2c->nmsgs = 0; in xiic_wakeup() 371 i2c->tx_msg, i2c->nmsgs); in xiic_process() 418 __func__, i2c->nmsgs); in xiic_process() 424 if (i2c->nmsgs > 1) { in xiic_process() 425 i2c->nmsgs--; in xiic_process() 444 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process() 468 __func__, i2c->nmsgs); in xiic_process() 469 if (i2c->nmsgs > 1) { in xiic_process() [all …]
|
| D | i2c-kempld.c | 61 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()
|
| D | i2c-ocores.c | 43 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.4/drivers/i2c/ |
| D | i2c-dev.c | 234 unsigned nmsgs, struct i2c_msg *msgs) in i2cdev_ioctl_rdwr() argument 239 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL); in i2cdev_ioctl_rdwr() 246 for (i = 0; i < nmsgs; i++) { in i2cdev_ioctl_rdwr() 295 res = i2c_transfer(client->adapter, msgs, nmsgs); in i2cdev_ioctl_rdwr() 443 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in i2cdev_ioctl() 447 rdwr_arg.nmsgs * sizeof(struct i2c_msg)); in i2cdev_ioctl() 451 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl() 509 u32 nmsgs; member 531 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS) in compat_i2cdev_ioctl() 534 rdwr_pa = kmalloc_array(rdwr_arg.nmsgs, sizeof(struct i2c_msg), in compat_i2cdev_ioctl() [all …]
|
| /Linux-v5.4/include/uapi/linux/ |
| D | i2c-dev.h | 67 __u32 nmsgs; /* number of i2c_msgs */ member
|
| /Linux-v5.4/Documentation/i2c/ |
| D | dev-interface.rst | 134 int nmsgs; /* number of messages to exchange */
|