Lines Matching refs:retval

129 	int retval = 0;  in usbtmc_open()  local
143 return retval; in usbtmc_open()
385 int retval; in send_request_dev_dep_msg_in() local
410 retval = usb_bulk_msg(data->usb_dev, in send_request_dev_dep_msg_in()
424 if (retval < 0) { in send_request_dev_dep_msg_in()
425 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()
426 return retval; in send_request_dev_dep_msg_in()
442 int retval; in usbtmc_read() local
455 retval = -ENODEV; in usbtmc_read()
462 retval = send_request_dev_dep_msg_in(data, count); in usbtmc_read()
464 if (retval < 0) { in usbtmc_read()
485 retval = send_request_dev_dep_msg_in(data, this_part); in usbtmc_read()
486 if (retval < 0) { in usbtmc_read()
487 dev_err(dev, "usb_bulk_msg returned %d\n", retval); in usbtmc_read()
495 retval = usb_bulk_msg(data->usb_dev, in usbtmc_read()
501 …dev_dbg(dev, "usb_bulk_msg: retval(%u), done(%zu), remaining(%zu), actual(%d)\n", retval, done, re… in usbtmc_read()
506 if (retval < 0) { in usbtmc_read()
507 dev_dbg(dev, "Unable to read data, error %d\n", retval); in usbtmc_read()
583 retval = -EFAULT; in usbtmc_read()
599 retval = -EFAULT; in usbtmc_read()
608 retval = done; in usbtmc_read()
613 return retval; in usbtmc_read()
621 int retval; in usbtmc_write() local
636 retval = -ENODEV; in usbtmc_write()
667 retval = -EFAULT; in usbtmc_write()
675 retval = usb_bulk_msg(data->usb_dev, in usbtmc_write()
680 if (retval != 0) in usbtmc_write()
691 if (retval < 0) { in usbtmc_write()
693 "Unable to send data, error %d\n", retval); in usbtmc_write()
703 retval = count; in usbtmc_write()
707 return retval; in usbtmc_write()
1038 int retval = -EBADRQC; in usbtmc_ioctl() local
1043 retval = -ENODEV; in usbtmc_ioctl()
1049 retval = usbtmc_ioctl_clear_out_halt(data); in usbtmc_ioctl()
1053 retval = usbtmc_ioctl_clear_in_halt(data); in usbtmc_ioctl()
1057 retval = usbtmc_ioctl_indicator_pulse(data); in usbtmc_ioctl()
1061 retval = usbtmc_ioctl_clear(data); in usbtmc_ioctl()
1065 retval = usbtmc_ioctl_abort_bulk_out(data); in usbtmc_ioctl()
1069 retval = usbtmc_ioctl_abort_bulk_in(data); in usbtmc_ioctl()
1075 return retval; in usbtmc_ioctl()