Lines Matching refs:rdwr_pa
444 struct i2c_msg *rdwr_pa; in i2cdev_ioctl() local
462 rdwr_pa = memdup_array_user(rdwr_arg.msgs, in i2cdev_ioctl()
464 if (IS_ERR(rdwr_pa)) in i2cdev_ioctl()
465 return PTR_ERR(rdwr_pa); in i2cdev_ioctl()
467 res = i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in i2cdev_ioctl()
468 kfree(rdwr_pa); in i2cdev_ioctl()
541 struct i2c_msg *rdwr_pa; in compat_i2cdev_ioctl() local
555 rdwr_pa = kmalloc_array(rdwr_arg.nmsgs, sizeof(struct i2c_msg), in compat_i2cdev_ioctl()
557 if (!rdwr_pa) in compat_i2cdev_ioctl()
564 kfree(rdwr_pa); in compat_i2cdev_ioctl()
567 rdwr_pa[i] = (struct i2c_msg) { in compat_i2cdev_ioctl()
575 res = i2cdev_ioctl_rdwr(client, rdwr_arg.nmsgs, rdwr_pa); in compat_i2cdev_ioctl()
576 kfree(rdwr_pa); in compat_i2cdev_ioctl()