Lines Matching refs:ret
36 int ret = 0; in message_thread() local
40 while (sDevice && ret >= 0) { in message_thread()
42 ret = usb_device_bulk_transfer(sDevice, endpoints[0], buffer, sizeof(buffer), 1000); in message_thread()
43 if (ret < 0 && errno == ETIMEDOUT) { in message_thread()
44 ret = 0; in message_thread()
46 if (ret > 0) { in message_thread()
48 fwrite(buffer, 1, ret, stdout); in message_thread()
71 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, in send_string() local
82 int ret; in usb_device_added() local
145 ret = usb_device_control_transfer(device, USB_DIR_IN | USB_TYPE_VENDOR, in usb_device_added()
147 if (ret == 2) in usb_device_added()
160 ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, in usb_device_added()