Lines Matching refs:value
432 static int raw_ioctl_init(struct raw_dev *dev, unsigned long value) in raw_ioctl_init() argument
442 if (copy_from_user(&arg, (void __user *)value, sizeof(arg))) in raw_ioctl_init()
531 static int raw_ioctl_run(struct raw_dev *dev, unsigned long value) in raw_ioctl_run() argument
536 if (value) in raw_ioctl_run()
567 static int raw_ioctl_event_fetch(struct raw_dev *dev, unsigned long value) in raw_ioctl_event_fetch() argument
574 if (copy_from_user(&arg, (void __user *)value, sizeof(arg))) in raw_ioctl_event_fetch()
603 if (copy_to_user((void __user *)value, event, sizeof(*event) + length)) { in raw_ioctl_event_fetch()
711 static int raw_ioctl_ep0_write(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep0_write() argument
717 data = raw_alloc_io_data(&io, (void __user *)value, true); in raw_ioctl_ep0_write()
725 static int raw_ioctl_ep0_read(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep0_read() argument
732 data = raw_alloc_io_data(&io, (void __user *)value, false); in raw_ioctl_ep0_read()
740 if (copy_to_user((void __user *)(value + sizeof(io)), data, length)) in raw_ioctl_ep0_read()
749 static int raw_ioctl_ep0_stall(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep0_stall() argument
754 if (value) in raw_ioctl_ep0_stall()
793 static int raw_ioctl_ep_enable(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep_enable() argument
801 desc = memdup_user((void __user *)value, sizeof(*desc)); in raw_ioctl_ep_enable()
873 static int raw_ioctl_ep_disable(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep_disable() argument
875 int ret = 0, i = value; in raw_ioctl_ep_disable()
928 unsigned long value, bool set, bool halt) in raw_ioctl_ep_set_clear_halt_wedge() argument
930 int ret = 0, i = value; in raw_ioctl_ep_set_clear_halt_wedge()
1098 static int raw_ioctl_ep_write(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep_write() argument
1104 data = raw_alloc_io_data(&io, (void __user *)value, true); in raw_ioctl_ep_write()
1112 static int raw_ioctl_ep_read(struct raw_dev *dev, unsigned long value) in raw_ioctl_ep_read() argument
1119 data = raw_alloc_io_data(&io, (void __user *)value, false); in raw_ioctl_ep_read()
1127 if (copy_to_user((void __user *)(value + sizeof(io)), data, length)) in raw_ioctl_ep_read()
1136 static int raw_ioctl_configure(struct raw_dev *dev, unsigned long value) in raw_ioctl_configure() argument
1141 if (value) in raw_ioctl_configure()
1161 static int raw_ioctl_vbus_draw(struct raw_dev *dev, unsigned long value) in raw_ioctl_vbus_draw() argument
1177 usb_gadget_vbus_draw(dev->gadget, 2 * value); in raw_ioctl_vbus_draw()
1201 static int raw_ioctl_eps_info(struct raw_dev *dev, unsigned long value) in raw_ioctl_eps_info() argument
1239 if (copy_to_user((void __user *)value, info, sizeof(*info))) in raw_ioctl_eps_info()
1248 static long raw_ioctl(struct file *fd, unsigned int cmd, unsigned long value) in raw_ioctl() argument
1258 ret = raw_ioctl_init(dev, value); in raw_ioctl()
1261 ret = raw_ioctl_run(dev, value); in raw_ioctl()
1264 ret = raw_ioctl_event_fetch(dev, value); in raw_ioctl()
1267 ret = raw_ioctl_ep0_write(dev, value); in raw_ioctl()
1270 ret = raw_ioctl_ep0_read(dev, value); in raw_ioctl()
1273 ret = raw_ioctl_ep_enable(dev, value); in raw_ioctl()
1276 ret = raw_ioctl_ep_disable(dev, value); in raw_ioctl()
1279 ret = raw_ioctl_ep_write(dev, value); in raw_ioctl()
1282 ret = raw_ioctl_ep_read(dev, value); in raw_ioctl()
1285 ret = raw_ioctl_configure(dev, value); in raw_ioctl()
1288 ret = raw_ioctl_vbus_draw(dev, value); in raw_ioctl()
1291 ret = raw_ioctl_eps_info(dev, value); in raw_ioctl()
1294 ret = raw_ioctl_ep0_stall(dev, value); in raw_ioctl()
1298 dev, value, true, true); in raw_ioctl()
1302 dev, value, false, true); in raw_ioctl()
1306 dev, value, true, false); in raw_ioctl()