Searched refs:rdwr_arg (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/i2c/
H A Di2c-dev.c241 struct i2c_rdwr_ioctl_data rdwr_arg; i2cdev_ioctl_rdrw() local
246 if (copy_from_user(&rdwr_arg, i2cdev_ioctl_rdrw()
248 sizeof(rdwr_arg))) i2cdev_ioctl_rdrw()
253 if (rdwr_arg.nmsgs > I2C_RDRW_IOCTL_MAX_MSGS) i2cdev_ioctl_rdrw()
256 rdwr_pa = memdup_user(rdwr_arg.msgs, i2cdev_ioctl_rdrw()
257 rdwr_arg.nmsgs * sizeof(struct i2c_msg)); i2cdev_ioctl_rdrw()
261 data_ptrs = kmalloc(rdwr_arg.nmsgs * sizeof(u8 __user *), GFP_KERNEL); i2cdev_ioctl_rdrw()
268 for (i = 0; i < rdwr_arg.nmsgs; i++) { i2cdev_ioctl_rdrw()
314 res = i2c_transfer(client->adapter, rdwr_pa, rdwr_arg.nmsgs); i2cdev_ioctl_rdrw()

Completed in 27 milliseconds