• Home
  • Raw
  • Download

Lines Matching refs:rv

211 	int rv = 0;  in wdm_int_callback()  local
268 rv = usb_submit_urb(desc->response, GFP_ATOMIC); in wdm_int_callback()
270 __func__, rv); in wdm_int_callback()
273 if (rv < 0) { in wdm_int_callback()
275 if (rv == -EPERM) in wdm_int_callback()
277 if (rv == -ENOMEM) { in wdm_int_callback()
279 rv = schedule_work(&desc->rxwork); in wdm_int_callback()
280 if (rv) in wdm_int_callback()
286 rv = usb_submit_urb(urb, GFP_ATOMIC); in wdm_int_callback()
287 if (rv) in wdm_int_callback()
290 __func__, rv); in wdm_int_callback()
324 int rv = -EMSGSIZE, r, we; in wdm_write() local
340 rv = -ENOMEM; in wdm_write()
347 rv = -EFAULT; in wdm_write()
353 rv = -ERESTARTSYS; in wdm_write()
361 rv = -ENODEV; in wdm_write()
368 rv = usb_translate_errors(r); in wdm_write()
384 rv = r; in wdm_write()
410 rv = usb_submit_urb(desc->command, GFP_KERNEL); in wdm_write()
411 if (rv < 0) { in wdm_write()
415 dev_err(&desc->intf->dev, "Tx URB error: %d\n", rv); in wdm_write()
416 rv = usb_translate_errors(rv); in wdm_write()
426 return rv < 0 ? rv : count; in wdm_write()
432 int rv, cntr; in wdm_read() local
437 rv = mutex_lock_interruptible(&desc->rlock); /*concurrent reads */ in wdm_read()
438 if (rv < 0) in wdm_read()
446 rv = -ENODEV; in wdm_read()
451 rv = -ENOBUFS; in wdm_read()
457 rv = cntr ? cntr : -EAGAIN; in wdm_read()
460 rv = 0; in wdm_read()
462 rv = wait_event_interruptible(desc->wait, in wdm_read()
468 rv = -ENODEV; in wdm_read()
472 rv = -EIO; in wdm_read()
476 if (rv < 0) { in wdm_read()
477 rv = -ERESTARTSYS; in wdm_read()
486 rv = -EIO; in wdm_read()
510 rv = copy_to_user(buffer, desc->ubuf, cntr); in wdm_read()
511 if (rv > 0) { in wdm_read()
512 rv = -EFAULT; in wdm_read()
528 rv = cntr; in wdm_read()
532 return rv; in wdm_read()
578 int rv = -ENODEV; in wdm_open() local
592 rv = usb_autopm_get_interface(desc->intf); in wdm_open()
593 if (rv < 0) { in wdm_open()
594 dev_err(&desc->intf->dev, "Error autopm - %d\n", rv); in wdm_open()
603 rv = usb_submit_urb(desc->validity, GFP_KERNEL); in wdm_open()
604 if (rv < 0) { in wdm_open()
607 "Error submitting int urb - %d\n", rv); in wdm_open()
608 rv = usb_translate_errors(rv); in wdm_open()
611 rv = 0; in wdm_open()
619 return rv; in wdm_open()
651 int rv = 0; in wdm_ioctl() local
656 rv = -EFAULT; in wdm_ioctl()
659 rv = -ENOTTY; in wdm_ioctl()
661 return rv; in wdm_ioctl()
688 int rv; in wdm_rxwork() local
695 rv = usb_submit_urb(desc->response, GFP_KERNEL); in wdm_rxwork()
696 if (rv < 0 && rv != -EPERM) { in wdm_rxwork()
710 int rv = -ENOMEM; in wdm_create() local
727 rv = -EINVAL; in wdm_create()
799 rv = usb_register_dev(intf, &wdm_class); in wdm_create()
800 if (rv < 0) in wdm_create()
805 return rv; in wdm_create()
811 return rv; in wdm_create()
817 int rv = usb_autopm_get_interface(intf); in wdm_manage_power() local
818 if (rv < 0) in wdm_manage_power()
824 return rv; in wdm_manage_power()
829 int rv = -EINVAL; in wdm_probe() local
870 rv = wdm_create(intf, ep, maxcom, &wdm_manage_power); in wdm_probe()
873 return rv; in wdm_probe()
900 int rv = -EINVAL; in usb_cdc_wdm_register() local
902 rv = wdm_create(intf, ep, bufsize, manage_power); in usb_cdc_wdm_register()
903 if (rv < 0) in usb_cdc_wdm_register()
908 return ERR_PTR(rv); in usb_cdc_wdm_register()
952 int rv = 0; in wdm_suspend() local
967 rv = -EBUSY; in wdm_suspend()
981 return rv; in wdm_suspend()
987 int rv = 0; in recover_from_urb_loss() local
990 rv = usb_submit_urb(desc->validity, GFP_NOIO); in recover_from_urb_loss()
991 if (rv < 0) in recover_from_urb_loss()
993 "Error resume submitting int urb - %d\n", rv); in recover_from_urb_loss()
995 return rv; in recover_from_urb_loss()
1002 int rv; in wdm_resume() local
1007 rv = recover_from_urb_loss(desc); in wdm_resume()
1009 return rv; in wdm_resume()
1040 int rv; in wdm_post_reset() local
1044 rv = recover_from_urb_loss(desc); in wdm_post_reset()