Lines Matching refs:retval
130 int retval = 0; in usbtmc_open() local
144 return retval; in usbtmc_open()
386 int retval; in send_request_dev_dep_msg_in() local
411 retval = usb_bulk_msg(data->usb_dev, in send_request_dev_dep_msg_in()
425 if (retval < 0) { in send_request_dev_dep_msg_in()
426 dev_err(&data->intf->dev, "usb_bulk_msg in send_request_dev_dep_msg_in() returned %d\n", retval); in send_request_dev_dep_msg_in()
427 return retval; in send_request_dev_dep_msg_in()
443 int retval; in usbtmc_read() local
456 retval = -ENODEV; in usbtmc_read()
463 retval = send_request_dev_dep_msg_in(data, count); in usbtmc_read()
465 if (retval < 0) { in usbtmc_read()
486 retval = send_request_dev_dep_msg_in(data, this_part); in usbtmc_read()
487 if (retval < 0) { in usbtmc_read()
488 dev_err(dev, "usb_bulk_msg returned %d\n", retval); in usbtmc_read()
496 retval = usb_bulk_msg(data->usb_dev, in usbtmc_read()
502 …dev_dbg(dev, "usb_bulk_msg: retval(%u), done(%zu), remaining(%zu), actual(%d)\n", retval, done, re… in usbtmc_read()
507 if (retval < 0) { in usbtmc_read()
508 dev_dbg(dev, "Unable to read data, error %d\n", retval); in usbtmc_read()
584 retval = -EFAULT; in usbtmc_read()
600 retval = -EFAULT; in usbtmc_read()
609 retval = done; in usbtmc_read()
614 return retval; in usbtmc_read()
622 int retval; in usbtmc_write() local
637 retval = -ENODEV; in usbtmc_write()
668 retval = -EFAULT; in usbtmc_write()
676 retval = usb_bulk_msg(data->usb_dev, in usbtmc_write()
681 if (retval != 0) in usbtmc_write()
692 if (retval < 0) { in usbtmc_write()
694 "Unable to send data, error %d\n", retval); in usbtmc_write()
704 retval = count; in usbtmc_write()
708 return retval; in usbtmc_write()
1039 int retval = -EBADRQC; in usbtmc_ioctl() local
1044 retval = -ENODEV; in usbtmc_ioctl()
1050 retval = usbtmc_ioctl_clear_out_halt(data); in usbtmc_ioctl()
1054 retval = usbtmc_ioctl_clear_in_halt(data); in usbtmc_ioctl()
1058 retval = usbtmc_ioctl_indicator_pulse(data); in usbtmc_ioctl()
1062 retval = usbtmc_ioctl_clear(data); in usbtmc_ioctl()
1066 retval = usbtmc_ioctl_abort_bulk_out(data); in usbtmc_ioctl()
1070 retval = usbtmc_ioctl_abort_bulk_in(data); in usbtmc_ioctl()
1076 return retval; in usbtmc_ioctl()