Lines Matching refs:endpoint_in
419 static void get_sense(libusb_device_handle *handle, uint8_t endpoint_in, uint8_t endpoint_out) in get_sense() argument
435 …rc = libusb_bulk_transfer(handle, endpoint_in, (unsigned char*)&sense, REQUEST_SENSE_LENGTH, &size… in get_sense()
451 get_mass_storage_status(handle, endpoint_in, expected_tag); in get_sense()
455 static int test_mass_storage(libusb_device_handle *handle, uint8_t endpoint_in, uint8_t endpoint_ou… in test_mass_storage() argument
488 …CALL_CHECK(libusb_bulk_transfer(handle, endpoint_in, (unsigned char*)&buffer, INQUIRY_LENGTH, &siz… in test_mass_storage()
500 if (get_mass_storage_status(handle, endpoint_in, expected_tag) == -2) { in test_mass_storage()
501 get_sense(handle, endpoint_in, endpoint_out); in test_mass_storage()
511 …CALL_CHECK(libusb_bulk_transfer(handle, endpoint_in, (unsigned char*)&buffer, READ_CAPACITY_LENGTH… in test_mass_storage()
517 if (get_mass_storage_status(handle, endpoint_in, expected_tag) == -2) { in test_mass_storage()
518 get_sense(handle, endpoint_in, endpoint_out); in test_mass_storage()
536 libusb_bulk_transfer(handle, endpoint_in, data, block_size, &size, 5000); in test_mass_storage()
538 if (get_mass_storage_status(handle, endpoint_in, expected_tag) == -2) { in test_mass_storage()
539 get_sense(handle, endpoint_in, endpoint_out); in test_mass_storage()
609 static int test_hid(libusb_device_handle *handle, uint8_t endpoint_in) in test_hid() argument
692 printf("\nTesting interrupt read using endpoint %02X...\n", endpoint_in); in test_hid()
693 r = libusb_interrupt_transfer(handle, endpoint_in, report_buffer, size, &size, 5000); in test_hid()
812 uint8_t endpoint_in = 0, endpoint_out = 0; // default IN and OUT endpoints in test_device() local
894 if (!endpoint_in) in test_device()
895 endpoint_in = endpoint->bEndpointAddress; in test_device()
952 test_hid(handle, endpoint_in); in test_device()
955 CALL_CHECK_CLOSE(test_mass_storage(handle, endpoint_in, endpoint_out), handle); in test_device()