Lines Matching refs:nmsgs
236 unsigned nmsgs, struct i2c_msg *msgs)
241 data_ptrs = kmalloc_array(nmsgs, sizeof(u8 __user *), GFP_KERNEL);
248 for (i = 0; i < nmsgs; i++) {
297 res = i2c_transfer(client->adapter, msgs, nmsgs);
443 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0)
450 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS)
454 rdwr_arg.nmsgs, sizeof(struct i2c_msg));
458 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa);
516 u32 nmsgs;
538 if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0)
541 if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS)
544 rdwr_pa = kmalloc_array(rdwr_arg.nmsgs, sizeof(struct i2c_msg),
550 for (i = 0; i < rdwr_arg.nmsgs; i++) {
564 return i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa);