/external/libusb/libusb/ |
D | core.c | 1241 libusb_device_handle **dev_handle) in libusb_open() argument 1280 *dev_handle = _dev_handle; in libusb_open() 1308 struct libusb_device_handle *dev_handle = NULL; in libusb_open_device_with_vid_pid() local 1327 r = libusb_open(found, &dev_handle); in libusb_open_device_with_vid_pid() 1329 dev_handle = NULL; in libusb_open_device_with_vid_pid() 1334 return dev_handle; in libusb_open_device_with_vid_pid() 1338 struct libusb_device_handle *dev_handle) in do_close() argument 1351 if (transfer->dev_handle != dev_handle) in do_close() 1370 transfer->dev_handle = NULL; in do_close() 1377 transfer, dev_handle); in do_close() [all …]
|
D | libusb.h | 1212 libusb_device_handle *dev_handle; member 1340 int LIBUSB_CALL libusb_get_bos_descriptor(libusb_device_handle *dev_handle, 1373 int LIBUSB_CALL libusb_open(libusb_device *dev, libusb_device_handle **dev_handle); 1374 void LIBUSB_CALL libusb_close(libusb_device_handle *dev_handle); 1375 libusb_device * LIBUSB_CALL libusb_get_device(libusb_device_handle *dev_handle); 1377 int LIBUSB_CALL libusb_set_configuration(libusb_device_handle *dev_handle, 1379 int LIBUSB_CALL libusb_claim_interface(libusb_device_handle *dev_handle, 1381 int LIBUSB_CALL libusb_release_interface(libusb_device_handle *dev_handle, 1387 int LIBUSB_CALL libusb_set_interface_alt_setting(libusb_device_handle *dev_handle, 1389 int LIBUSB_CALL libusb_clear_halt(libusb_device_handle *dev_handle, [all …]
|
D | sync.c | 48 struct libusb_context *ctx = HANDLE_CTX(transfer->dev_handle); in sync_transfer_wait_for_completion() 94 int API_EXPORTED libusb_control_transfer(libusb_device_handle *dev_handle, in libusb_control_transfer() argument 103 if (usbi_handling_events(HANDLE_CTX(dev_handle))) in libusb_control_transfer() 121 libusb_fill_control_transfer(transfer, dev_handle, buffer, in libusb_control_transfer() 157 usbi_warn(HANDLE_CTX(dev_handle), in libusb_control_transfer() 166 static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, in do_sync_bulk_transfer() argument 174 if (usbi_handling_events(HANDLE_CTX(dev_handle))) in do_sync_bulk_transfer() 181 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length, in do_sync_bulk_transfer() 217 usbi_warn(HANDLE_CTX(dev_handle), in do_sync_bulk_transfer() 269 int API_EXPORTED libusb_bulk_transfer(struct libusb_device_handle *dev_handle, in libusb_bulk_transfer() argument [all …]
|
D | libusbi.h | 235 #define TRANSFER_CTX(transfer) (HANDLE_CTX((transfer)->dev_handle)) 515 void usbi_handle_disconnect(struct libusb_device_handle *dev_handle); 713 int (*open)(struct libusb_device_handle *dev_handle); 723 void (*close)(struct libusb_device_handle *dev_handle); 830 int (*get_configuration)(struct libusb_device_handle *dev_handle, int *config); 847 int (*set_configuration)(struct libusb_device_handle *dev_handle, int config); 866 int (*claim_interface)(struct libusb_device_handle *dev_handle, int interface_number); 883 int (*release_interface)(struct libusb_device_handle *dev_handle, int interface_number); 899 int (*set_interface_altsetting)(struct libusb_device_handle *dev_handle, 913 int (*clear_halt)(struct libusb_device_handle *dev_handle, [all …]
|
D | io.c | 1536 libusb_ref_device(transfer->dev_handle->dev); in libusb_submit_transfer() 1643 struct libusb_device_handle *dev_handle = transfer->dev_handle; in usbi_handle_transfer_completion() local 1676 libusb_unref_device(dev_handle->dev); in usbi_handle_transfer_completion() 2771 void usbi_handle_disconnect(struct libusb_device_handle *dev_handle) in usbi_handle_disconnect() argument 2777 dev_handle->dev->bus_number, dev_handle->dev->device_address); in usbi_handle_disconnect() 2794 usbi_mutex_lock(&HANDLE_CTX(dev_handle)->flying_transfers_lock); in usbi_handle_disconnect() 2795 list_for_each_entry(cur, &HANDLE_CTX(dev_handle)->flying_transfers, list, struct usbi_transfer) in usbi_handle_disconnect() 2796 if (USBI_TRANSFER_TO_LIBUSB_TRANSFER(cur)->dev_handle == dev_handle) { in usbi_handle_disconnect() 2805 usbi_mutex_unlock(&HANDLE_CTX(dev_handle)->flying_transfers_lock); in usbi_handle_disconnect()
|
D | descriptor.c | 894 int API_EXPORTED libusb_get_bos_descriptor(libusb_device_handle *dev_handle, in libusb_get_bos_descriptor() argument 905 r = libusb_get_descriptor(dev_handle, LIBUSB_DT_BOS, 0, bos_header, in libusb_get_bos_descriptor() 909 usbi_err(HANDLE_CTX(dev_handle), "failed to read BOS (%d)", r); in libusb_get_bos_descriptor() 913 usbi_err(HANDLE_CTX(dev_handle), "short BOS read %d/%d", in libusb_get_bos_descriptor() 925 r = libusb_get_descriptor(dev_handle, LIBUSB_DT_BOS, 0, bos_data, in libusb_get_bos_descriptor() 928 r = parse_bos(HANDLE_CTX(dev_handle), bos, bos_data, r, host_endian); in libusb_get_bos_descriptor() 930 usbi_err(HANDLE_CTX(dev_handle), "failed to read BOS (%d)", r); in libusb_get_bos_descriptor() 1140 int API_EXPORTED libusb_get_string_descriptor_ascii(libusb_device_handle *dev_handle, in libusb_get_string_descriptor_ascii() argument 1159 r = libusb_get_string_descriptor(dev_handle, 0, 0, tbuf, sizeof(tbuf)); in libusb_get_string_descriptor_ascii() 1168 r = libusb_get_string_descriptor(dev_handle, desc_index, langid, tbuf, in libusb_get_string_descriptor_ascii()
|
/external/libusb/libusb/os/ |
D | haiku_usb_raw.cpp | 48 haiku_open(struct libusb_device_handle *dev_handle) in haiku_open() argument 50 USBDevice *dev = *((USBDevice **)dev_handle->dev->os_priv); in haiku_open() 58 *((USBDeviceHandle **)dev_handle->os_priv) = handle; in haiku_open() 63 haiku_close(struct libusb_device_handle *dev_handle) in haiku_close() argument 65 USBDeviceHandle *handle = *((USBDeviceHandle **)dev_handle->os_priv); in haiku_close() 69 *((USBDeviceHandle **)dev_handle->os_priv) = NULL; in haiku_close() 110 haiku_set_configuration(struct libusb_device_handle *dev_handle, int config) in haiku_set_configuration() argument 112 USBDeviceHandle *handle= *((USBDeviceHandle **)dev_handle->os_priv); in haiku_set_configuration() 117 haiku_claim_interface(struct libusb_device_handle *dev_handle, int interface_number) in haiku_claim_interface() argument 119 USBDeviceHandle *handle = *((USBDeviceHandle **)dev_handle->os_priv); in haiku_claim_interface() [all …]
|
D | windows_winusb.c | 62 static int winusbx_open(int sub_api, struct libusb_device_handle *dev_handle); 63 static void winusbx_close(int sub_api, struct libusb_device_handle *dev_handle); 64 static int winusbx_configure_endpoints(int sub_api, struct libusb_device_handle *dev_handle, int if… 65 static int winusbx_claim_interface(int sub_api, struct libusb_device_handle *dev_handle, int iface); 66 static int winusbx_release_interface(int sub_api, struct libusb_device_handle *dev_handle, int ifac… 68 static int winusbx_set_interface_altsetting(int sub_api, struct libusb_device_handle *dev_handle, i… 70 static int winusbx_clear_halt(int sub_api, struct libusb_device_handle *dev_handle, unsigned char e… 73 static int winusbx_reset_device(int sub_api, struct libusb_device_handle *dev_handle); 78 static int hid_open(int sub_api, struct libusb_device_handle *dev_handle); 79 static void hid_close(int sub_api, struct libusb_device_handle *dev_handle); [all …]
|
D | darwin_usb.c | 84 static int darwin_claim_interface(struct libusb_device_handle *dev_handle, int iface); 85 static int darwin_release_interface(struct libusb_device_handle *dev_handle, int iface); 86 static int darwin_reset_device(struct libusb_device_handle *dev_handle); 174 static int ep_to_pipeRef(struct libusb_device_handle *dev_handle, uint8_t ep, uint8_t *pipep, uint8… in ep_to_pipeRef() argument 175 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; in ep_to_pipeRef() 187 if (dev_handle->claimed_interfaces & (1 << iface)) { in ep_to_pipeRef() 206 usbi_warn (HANDLE_CTX(dev_handle), "no pipeRef found with endpoint address 0x%02x.", ep); in ep_to_pipeRef() 1052 static int darwin_open (struct libusb_device_handle *dev_handle) { in darwin_open() argument 1053 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; in darwin_open() 1054 struct darwin_cached_device *dpriv = DARWIN_CACHED_DEVICE(dev_handle->dev); in darwin_open() [all …]
|
D | windows_usbdk.c | 417 static int usbdk_open(struct libusb_device_handle *dev_handle) in usbdk_open() argument 419 struct usbdk_device_priv *priv = _usbdk_device_priv(dev_handle->dev); in usbdk_open() 423 usbi_err(DEVICE_CTX(dev_handle->dev), "Redirector startup failed"); in usbdk_open() 430 static void usbdk_close(struct libusb_device_handle *dev_handle) in usbdk_close() argument 432 struct usbdk_device_priv *priv = _usbdk_device_priv(dev_handle->dev); in usbdk_close() 435 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in usbdk_close() 440 static int usbdk_get_configuration(struct libusb_device_handle *dev_handle, int *config) in usbdk_get_configuration() argument 442 *config = _usbdk_device_priv(dev_handle->dev)->active_configuration; in usbdk_get_configuration() 447 static int usbdk_set_configuration(struct libusb_device_handle *dev_handle, int config) in usbdk_set_configuration() argument 449 UNUSED(dev_handle); in usbdk_set_configuration() [all …]
|
D | openbsd_usb.c | 481 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in obsd_submit_transfer() 636 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _sync_control_transfer() 645 req.ucr_addr = transfer->dev_handle->dev->device_address; in _sync_control_transfer() 665 if ((fd = _bus_open(transfer->dev_handle->dev->bus_number)) < 0) in _sync_control_transfer() 698 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in _access_endpoint() 699 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _access_endpoint() 730 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _sync_gen_transfer()
|
D | windows_winusb.h | 107 int (*open)(int sub_api, struct libusb_device_handle *dev_handle); 108 void (*close)(int sub_api, struct libusb_device_handle *dev_handle); 109 int (*configure_endpoints)(int sub_api, struct libusb_device_handle *dev_handle, int iface); 110 int (*claim_interface)(int sub_api, struct libusb_device_handle *dev_handle, int iface); 111 …int (*set_interface_altsetting)(int sub_api, struct libusb_device_handle *dev_handle, int iface, i… 112 int (*release_interface)(int sub_api, struct libusb_device_handle *dev_handle, int iface); 113 int (*clear_halt)(int sub_api, struct libusb_device_handle *dev_handle, unsigned char endpoint); 114 int (*reset_device)(int sub_api, struct libusb_device_handle *dev_handle); 273 HANDLE dev_handle; // WinUSB needs an extra handle for the file member
|
D | netbsd_usb.c | 435 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in netbsd_submit_transfer() 576 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _sync_control_transfer() 618 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in _access_endpoint() 619 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _access_endpoint()
|
D | wince_usb.c | 555 struct wince_device_priv *priv = _device_priv(transfer->dev_handle->dev); in wince_cancel_transfer() 567 struct libusb_context *ctx = DEVICE_CTX(transfer->dev_handle->dev); in wince_submit_control_or_bulk_transfer() 569 struct wince_device_priv *priv = _device_priv(transfer->dev_handle->dev); in wince_submit_control_or_bulk_transfer() 653 struct wince_device_priv *priv = _device_priv(transfer->dev_handle->dev); in wince_transfer_callback()
|
D | sunos_usb.c | 815 hpriv = (sunos_dev_handle_priv_t *)xfer->dev_handle->os_priv; in sunos_async_callback() 848 hpriv = (sunos_dev_handle_priv_t *)transfer->dev_handle->os_priv; in sunos_do_async_io() 928 struct libusb_device_handle *hdl = transfer->dev_handle; in solaris_submit_ctrl_on_default() 1029 hdl = transfer->dev_handle; in sunos_submit_transfer() 1084 hpriv = (sunos_dev_handle_priv_t *)transfer->dev_handle->os_priv; in sunos_cancel_transfer()
|
D | linux_usbfs.c | 1324 static void op_close(struct libusb_device_handle *dev_handle) in op_close() argument 1326 struct linux_device_handle_priv *hpriv = _device_handle_priv(dev_handle); in op_close() 1329 usbi_remove_pollfd(HANDLE_CTX(dev_handle), hpriv->fd); in op_close() 1751 _device_handle_priv(transfer->dev_handle); in discard_urbs() 1800 _device_handle_priv(transfer->dev_handle); in submit_bulk_transfer() 1972 _device_handle_priv(transfer->dev_handle); in submit_iso_transfer() 2125 _device_handle_priv(transfer->dev_handle); in submit_control_transfer()
|
/external/libusb/include/libusb/ |
D | libusb.h | 1212 libusb_device_handle *dev_handle; member 1340 int LIBUSB_CALL libusb_get_bos_descriptor(libusb_device_handle *dev_handle, 1373 int LIBUSB_CALL libusb_open(libusb_device *dev, libusb_device_handle **dev_handle); 1374 void LIBUSB_CALL libusb_close(libusb_device_handle *dev_handle); 1375 libusb_device * LIBUSB_CALL libusb_get_device(libusb_device_handle *dev_handle); 1377 int LIBUSB_CALL libusb_set_configuration(libusb_device_handle *dev_handle, 1379 int LIBUSB_CALL libusb_claim_interface(libusb_device_handle *dev_handle, 1381 int LIBUSB_CALL libusb_release_interface(libusb_device_handle *dev_handle, 1387 int LIBUSB_CALL libusb_set_interface_alt_setting(libusb_device_handle *dev_handle, 1389 int LIBUSB_CALL libusb_clear_halt(libusb_device_handle *dev_handle, [all …]
|
D | libusbi.h | 235 #define TRANSFER_CTX(transfer) (HANDLE_CTX((transfer)->dev_handle)) 515 void usbi_handle_disconnect(struct libusb_device_handle *dev_handle); 713 int (*open)(struct libusb_device_handle *dev_handle); 723 void (*close)(struct libusb_device_handle *dev_handle); 830 int (*get_configuration)(struct libusb_device_handle *dev_handle, int *config); 847 int (*set_configuration)(struct libusb_device_handle *dev_handle, int config); 866 int (*claim_interface)(struct libusb_device_handle *dev_handle, int interface_number); 883 int (*release_interface)(struct libusb_device_handle *dev_handle, int interface_number); 899 int (*set_interface_altsetting)(struct libusb_device_handle *dev_handle, 913 int (*clear_halt)(struct libusb_device_handle *dev_handle, [all …]
|
/external/u-boot/drivers/misc/ |
D | fsl_portals.c | 91 u32 dev_handle; in fdt_qportal() local 125 dev_handle = fdt_get_phandle(blob, dev_off); in fdt_qportal() 126 if (dev_handle <= 0) { in fdt_qportal() 127 dev_handle = fdt_alloc_phandle(blob); in fdt_qportal() 129 dev_handle); in fdt_qportal() 135 &dev_handle, sizeof(dev_handle)); in fdt_qportal()
|
/external/ltp/testcases/kernel/device-drivers/acpi/ |
D | ltp_acpi_cmds.c | 233 static acpi_handle dev_handle; variable 260 parent_handle, 0, &dev_handle) == 0) { in acpi_init() 261 parent_handle = dev_handle; in acpi_init() 264 status = acpi_get_object_info(dev_handle, &dev_info); in acpi_init() 273 status = acpi_get_parent(dev_handle, &parent_handle); in acpi_init() 293 status = acpi_install_notify_handler(dev_handle, in acpi_test_notify_handler() 298 status = acpi_remove_notify_handler(dev_handle, in acpi_test_notify_handler()
|