/external/libusb/examples/ |
dpfp.c | 60 static struct libusb_device_handle *devh = NULL; variable in typeref:struct:libusb_device_handle 70 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a); 71 return devh ? 0 : -EIO; 80 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data, 102 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0); 121 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0); 139 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0); 182 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL, 195 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH, 404 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf [all...] |
dpfp_threaded.c | 61 static struct libusb_device_handle *devh = NULL; variable in typeref:struct:libusb_device_handle 99 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a); 100 return devh ? 0 : -EIO; 109 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data, 131 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0); 150 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0); 168 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0); 211 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL, 224 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH, 431 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf [all...] |
/external/libusb_aah/examples/ |
dpfp.c | 60 static struct libusb_device_handle *devh = NULL; variable in typeref:struct:libusb_device_handle 70 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a); 71 return devh ? 0 : -EIO; 80 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data, 102 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0); 121 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0); 139 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0); 182 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL, 195 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH, 404 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf [all...] |
dpfp_threaded.c | 61 static struct libusb_device_handle *devh = NULL; variable in typeref:struct:libusb_device_handle 99 devh = libusb_open_device_with_vid_pid(NULL, 0x05ba, 0x000a); 100 return devh ? 0 : -EIO; 109 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0xf0, 0, data, 131 r = libusb_control_transfer(devh, CTRL_IN, USB_RQ, 0x07, 0, status, 1, 0); 150 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x07, 0, &data, 1, 0); 168 r = libusb_control_transfer(devh, CTRL_OUT, USB_RQ, 0x4e, 0, &data, 1, 0); 211 libusb_fill_control_transfer(transfer, devh, buf, cb_mode_changed, NULL, 224 r = libusb_interrupt_transfer(devh, EP_INTR, data, INTR_LENGTH, 431 libusb_fill_bulk_transfer(img_transfer, devh, EP_DATA, imgbuf [all...] |
/system/core/adb/ |
usb_libusb.c | 49 libusb_device_handle *devh; member in struct:usb_handle 105 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[1], (void *)data, len, 123 r = libusb_bulk_transfer(uh->devh, uh->end_point_address[0], data, len, 218 libusb_release_interface(h->devh, h->interface); 219 libusb_close(h->devh); 242 libusb_release_interface(h->devh, h->interface); 243 libusb_close(h->devh); 447 r = libusb_open(dev, &uh.devh); 478 r = libusb_claim_interface(uh.devh, uh.interface); 494 r = libusb_control_transfer(uh.devh, [all...] |
/external/libmtp/src/ |
libusb-glue.c | 223 usb_dev_handle *devh; local 242 devh = usb_open(dev); 243 if (devh == NULL) { 271 ret = usb_get_string_simple(devh, 284 usb_close(devh); 292 usb_close(devh); 310 usb_dev_handle *devh; local 321 devh = usb_open(dev); 322 if (devh == NULL) { 352 ret = usb_get_string_simple(devh, [all...] |