/external/libusb/examples/ |
D | sam3u_benchmark.c | 38 static struct libusb_device_handle *devh = NULL; variable 99 libusb_fill_iso_transfer(xfr, devh, ep, buf, in benchmark_in() 103 libusb_fill_bulk_transfer(xfr, devh, ep, buf, in benchmark_in() 165 devh = libusb_open_device_with_vid_pid(NULL, 0x16c0, 0x0763); in main() 166 if (!devh) { in main() 171 rc = libusb_claim_interface(devh, 2); in main() 187 libusb_release_interface(devh, 0); in main() 189 if (devh) in main() 190 libusb_close(devh); in main()
|
D | dpfp.c | 60 static struct libusb_device_handle *devh = NULL; variable 70 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a); in find_dpfp_device() 71 return devh ? 0 : -EIO; in find_dpfp_device() 80 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data, in print_f0_data() 102 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0); in get_hwstat() 121 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0); in set_hwstat() 139 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0); in set_mode() 182 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL, in set_mode_async() 195 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH, in do_sync_intr() 404 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf, in alloc_transfers() [all …]
|
D | dpfp_threaded.c | 65 static struct libusb_device_handle *devh = NULL; variable 102 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a); in find_dpfp_device() 103 return devh ? 0 : -EIO; in find_dpfp_device() 112 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data, in print_f0_data() 134 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0); in get_hwstat() 153 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0); in set_hwstat() 171 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0); in set_mode() 214 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL, in set_mode_async() 227 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH, in do_sync_intr() 434 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf, in alloc_transfers() [all …]
|
/external/libmtp/src/ |
D | libusb-glue.c | 239 usb_dev_handle *devh; in probe_device_descriptor() local 260 devh = usb_open(dev); in probe_device_descriptor() 261 if (devh == NULL) { in probe_device_descriptor() 321 usb_close(devh); in probe_device_descriptor() 332 ret = usb_get_string_simple(devh, in probe_device_descriptor() 344 usb_close(devh); in probe_device_descriptor() 356 ret = usb_get_driver_np(devh, in probe_device_descriptor() 382 ret = usb_get_descriptor(devh, 0x03, 0xee, buf, sizeof(buf)); in probe_device_descriptor() 391 usb_clear_halt(devh, 0); in probe_device_descriptor() 392 usb_close(devh); in probe_device_descriptor() [all …]
|
D | libusb1-glue.c | 236 libusb_device_handle *devh; in probe_device_descriptor() local 267 ret = libusb_open(dev, &devh); in probe_device_descriptor() 331 libusb_close(devh); in probe_device_descriptor() 342 ret = libusb_get_string_descriptor_ascii(devh, in probe_device_descriptor() 355 libusb_close(devh); in probe_device_descriptor() 358 if (libusb_kernel_driver_active(devh, config->interface[j].altsetting[k].iInterface)) in probe_device_descriptor() 368 libusb_close(devh); in probe_device_descriptor() 385 ret = libusb_get_descriptor(devh, 0x03, 0xee, buf, sizeof(buf)); in probe_device_descriptor() 394 libusb_clear_halt (devh, 0); in probe_device_descriptor() 395 libusb_close(devh); in probe_device_descriptor() [all …]
|
D | libopenusb1-glue.c | 210 openusb_dev_handle_t *devh = NULL; in probe_device_descriptor() local 237 ret = openusb_open_device(libmtp_openusb_handle, NULL, USB_INIT_DEFAULT, devh); in probe_device_descriptor() 313 openusb_close_device(*devh); in probe_device_descriptor() 338 openusb_close_device(*devh); in probe_device_descriptor() 351 openusb_close_device(*devh); in probe_device_descriptor() 359 openusb_close_device(*devh); in probe_device_descriptor() 388 ret = openusb_ctrl_xfer(*devh, 0, USB_ENDPOINT_IN, &ctrl); in probe_device_descriptor() 401 openusb_close_device(*devh); in probe_device_descriptor() 408 openusb_close_device(*devh); in probe_device_descriptor() 443 ret = openusb_ctrl_xfer(*devh, 0, USB_ENDPOINT_IN, &ctrl); in probe_device_descriptor() [all …]
|