Searched refs:dev_handle (Results 1 – 7 of 7) sorted by relevance
/external/libusb/libusb/os/ |
D | darwin_usb.c | 53 static int darwin_claim_interface(struct libusb_device_handle *dev_handle, int iface); 54 static int darwin_release_interface(struct libusb_device_handle *dev_handle, int iface); 55 static int darwin_reset_device(struct libusb_device_handle *dev_handle); 116 static int ep_to_pipeRef(struct libusb_device_handle *dev_handle, uint8_t ep, uint8_t *pipep, uint8… in ep_to_pipeRef() argument 117 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; in ep_to_pipeRef() 124 usbi_info (HANDLE_CTX(dev_handle), "converting ep address 0x%02x to pipeRef and interface", ep); in ep_to_pipeRef() 129 if (dev_handle->claimed_interfaces & (1 << iface)) { in ep_to_pipeRef() 134 usbi_info (HANDLE_CTX(dev_handle), "pipe %d on interface %d matches", *pipep, *ifcp); in ep_to_pipeRef() 142 usbi_warn (HANDLE_CTX(dev_handle), "no pipeRef found with endpoint address 0x%02x.", ep); in ep_to_pipeRef() 577 static int darwin_open (struct libusb_device_handle *dev_handle) { in darwin_open() argument [all …]
|
D | linux_usbfs.c | 1075 static void op_close(struct libusb_device_handle *dev_handle) in op_close() argument 1077 int fd = __device_handle_priv(dev_handle)->fd; in op_close() 1078 usbi_remove_pollfd(HANDLE_CTX(dev_handle), fd); in op_close() 1342 __device_handle_priv(transfer->dev_handle); in submit_bulk_transfer() 1457 __device_handle_priv(transfer->dev_handle); in submit_iso_transfer() 1614 __device_handle_priv(transfer->dev_handle); in submit_control_transfer() 1678 __device_handle_priv(transfer->dev_handle); in cancel_control_transfer() 1706 __device_handle_priv(transfer->dev_handle); in cancel_bulk_transfer() 1728 __device_handle_priv(transfer->dev_handle); in cancel_iso_transfer() 1890 __device_handle_priv(transfer->dev_handle); in handle_bulk_completion()
|
/external/libusb/libusb/ |
D | sync.c | 72 API_EXPORTED int libusb_control_transfer(libusb_device_handle *dev_handle, in libusb_control_transfer() argument 95 libusb_fill_control_transfer(transfer, dev_handle, buffer, in libusb_control_transfer() 105 r = libusb_handle_events(HANDLE_CTX(dev_handle)); in libusb_control_transfer() 111 if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) in libusb_control_transfer() 136 usbi_warn(HANDLE_CTX(dev_handle), in libusb_control_transfer() 153 static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, in do_sync_bulk_transfer() argument 164 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length, in do_sync_bulk_transfer() 175 r = libusb_handle_events(HANDLE_CTX(dev_handle)); in do_sync_bulk_transfer() 181 if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) in do_sync_bulk_transfer() 206 usbi_warn(HANDLE_CTX(dev_handle), in do_sync_bulk_transfer() [all …]
|
D | libusb.h | 718 libusb_device_handle *dev_handle; member 800 void libusb_close(libusb_device_handle *dev_handle); 801 libusb_device *libusb_get_device(libusb_device_handle *dev_handle); 924 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, in libusb_fill_control_transfer() argument 929 transfer->dev_handle = dev_handle; in libusb_fill_control_transfer() 955 libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_fill_bulk_transfer() argument 959 transfer->dev_handle = dev_handle; in libusb_fill_bulk_transfer() 983 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, in libusb_fill_interrupt_transfer() argument 987 transfer->dev_handle = dev_handle; in libusb_fill_interrupt_transfer() 1012 libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_fill_iso_transfer() argument [all …]
|
D | core.c | 984 struct libusb_device_handle *dev_handle) in do_close() argument 987 list_del(&dev_handle->list); in do_close() 990 usbi_backend->close(dev_handle); in do_close() 991 libusb_unref_device(dev_handle->dev); in do_close() 992 free(dev_handle); in do_close() 1006 API_EXPORTED void libusb_close(libusb_device_handle *dev_handle) in libusb_close() argument 1012 if (!dev_handle) in libusb_close() 1016 ctx = HANDLE_CTX(dev_handle); in libusb_close() 1033 do_close(ctx, dev_handle); in libusb_close() 1049 do_close(ctx, dev_handle); in libusb_close() [all …]
|
D | libusbi.h | 137 #define TRANSFER_CTX(transfer) (HANDLE_CTX((transfer)->dev_handle))
|
D | io.c | 2294 if (__USBI_TRANSFER_TO_LIBUSB_TRANSFER(cur)->dev_handle == handle) { in usbi_handle_disconnect()
|