• Home
  • Raw
  • Download

Lines Matching refs:rv

147 	int rv;  in usbtmc_ioctl_abort_bulk_in()  local
158 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in()
165 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in()
166 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in()
173 rv = 0; in usbtmc_ioctl_abort_bulk_in()
180 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
193 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
204 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in()
212 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in()
213 dev_err(dev, "usb_bulk_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in()
222 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
229 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in()
236 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in()
237 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in()
244 rv = 0; in usbtmc_ioctl_abort_bulk_in()
250 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
258 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_in()
266 if (rv < 0) { in usbtmc_ioctl_abort_bulk_in()
267 dev_err(dev, "usb_bulk_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_in()
276 rv = -EPERM; in usbtmc_ioctl_abort_bulk_in()
284 return rv; in usbtmc_ioctl_abort_bulk_in()
292 int rv; in usbtmc_ioctl_abort_bulk_out() local
301 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_out()
308 if (rv < 0) { in usbtmc_ioctl_abort_bulk_out()
309 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_out()
318 rv = -EPERM; in usbtmc_ioctl_abort_bulk_out()
325 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_abort_bulk_out()
332 if (rv < 0) { in usbtmc_ioctl_abort_bulk_out()
333 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_out()
346 rv = -EPERM; in usbtmc_ioctl_abort_bulk_out()
350 rv = usb_clear_halt(data->usb_dev, in usbtmc_ioctl_abort_bulk_out()
353 if (rv < 0) { in usbtmc_ioctl_abort_bulk_out()
354 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_abort_bulk_out()
357 rv = 0; in usbtmc_ioctl_abort_bulk_out()
361 return rv; in usbtmc_ioctl_abort_bulk_out()
602 int rv; in usbtmc_ioctl_clear() local
615 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_clear()
620 if (rv < 0) { in usbtmc_ioctl_clear()
621 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_clear()
629 rv = -EPERM; in usbtmc_ioctl_clear()
643 rv = -EPERM; in usbtmc_ioctl_clear()
655 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_clear()
660 if (rv < 0) { in usbtmc_ioctl_clear()
661 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_clear()
672 rv = -EPERM; in usbtmc_ioctl_clear()
680 rv = usb_bulk_msg(data->usb_dev, in usbtmc_ioctl_clear()
687 if (rv < 0) { in usbtmc_ioctl_clear()
689 rv); in usbtmc_ioctl_clear()
698 rv = -EPERM; in usbtmc_ioctl_clear()
706 rv = usb_clear_halt(data->usb_dev, in usbtmc_ioctl_clear()
708 if (rv < 0) { in usbtmc_ioctl_clear()
709 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_clear()
712 rv = 0; in usbtmc_ioctl_clear()
716 return rv; in usbtmc_ioctl_clear()
721 int rv; in usbtmc_ioctl_clear_out_halt() local
723 rv = usb_clear_halt(data->usb_dev, in usbtmc_ioctl_clear_out_halt()
726 if (rv < 0) { in usbtmc_ioctl_clear_out_halt()
728 rv); in usbtmc_ioctl_clear_out_halt()
729 return rv; in usbtmc_ioctl_clear_out_halt()
736 int rv; in usbtmc_ioctl_clear_in_halt() local
738 rv = usb_clear_halt(data->usb_dev, in usbtmc_ioctl_clear_in_halt()
741 if (rv < 0) { in usbtmc_ioctl_clear_in_halt()
743 rv); in usbtmc_ioctl_clear_in_halt()
744 return rv; in usbtmc_ioctl_clear_in_halt()
753 int rv = 0; in get_capabilities() local
759 rv = usb_control_msg(data->usb_dev, usb_rcvctrlpipe(data->usb_dev, 0), in get_capabilities()
763 if (rv < 0) { in get_capabilities()
764 dev_err(dev, "usb_control_msg returned %d\n", rv); in get_capabilities()
771 rv = -EPERM; in get_capabilities()
783 rv = 0; in get_capabilities()
787 return rv; in get_capabilities()
888 int rv; in usbtmc_ioctl_indicator_pulse() local
896 rv = usb_control_msg(data->usb_dev, in usbtmc_ioctl_indicator_pulse()
902 if (rv < 0) { in usbtmc_ioctl_indicator_pulse()
903 dev_err(dev, "usb_control_msg returned %d\n", rv); in usbtmc_ioctl_indicator_pulse()
911 rv = -EPERM; in usbtmc_ioctl_indicator_pulse()
914 rv = 0; in usbtmc_ioctl_indicator_pulse()
918 return rv; in usbtmc_ioctl_indicator_pulse()