Lines Matching refs:nmsgs
237 unsigned nmsgs, struct i2c_msg *msgs)
242 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL);
249 for (i = 0; i < nmsgs; i++) {
298 res = i2c_transfer(client->adapter, msgs, nmsgs);
444 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0)
451 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS)
455 rdwr_arg.nmsgs * sizeof(struct i2c_msg));
459 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa);
517 u32 nmsgs;
539 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0)
542 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS)
545 rdwr_pa = kmalloc_array(rdwr_arg.nmsgs, sizeof(struct i2c_msg),
551 for (i = 0; i < rdwr_arg.nmsgs; i++) {
565 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa);