/third_party/libusb/libusb/ |
D | sync.c | 46 struct libusb_context *ctx = HANDLE_CTX(transfer->dev_handle); in sync_transfer_wait_for_completion() 106 if (usbi_handling_events(HANDLE_CTX(dev_handle))) in libusb_control_transfer() 160 usbi_warn(HANDLE_CTX(dev_handle), in libusb_control_transfer() 177 if (usbi_handling_events(HANDLE_CTX(dev_handle))) in do_sync_bulk_transfer() 220 usbi_warn(HANDLE_CTX(dev_handle), in do_sync_bulk_transfer()
|
D | descriptor.c | 859 usbi_err(HANDLE_CTX(dev_handle), "failed to read BOS (%d)", r); in libusb_get_bos_descriptor() 863 usbi_err(HANDLE_CTX(dev_handle), "short BOS read %d/%d", in libusb_get_bos_descriptor() 878 usbi_warn(HANDLE_CTX(dev_handle), "short BOS read %d/%u", in libusb_get_bos_descriptor() 880 r = parse_bos(HANDLE_CTX(dev_handle), bos, bos_data, r); in libusb_get_bos_descriptor() 882 usbi_err(HANDLE_CTX(dev_handle), "failed to read BOS (%d)", r); in libusb_get_bos_descriptor() 1112 …usbi_warn(HANDLE_CTX(dev_handle), "suspicious bLength %u for string descriptor", str.desc.bLength); in libusb_get_string_descriptor_ascii() 1123 …usbi_warn(HANDLE_CTX(dev_handle), "suspicious bLength %u for string descriptor", str.desc.bLength); in libusb_get_string_descriptor_ascii()
|
D | libusbi.h | 304 #define HANDLE_CTX(handle) (DEVICE_CTX((handle)->dev)) macro 305 #define TRANSFER_CTX(transfer) (HANDLE_CTX((transfer)->dev_handle))
|
D | io.c | 1734 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in usbi_signal_transfer_completion() 2786 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in usbi_handle_disconnect()
|
D | core.c | 1467 ctx = HANDLE_CTX(dev_handle); in libusb_close() 1561 usbi_err(HANDLE_CTX(dev_handle), "zero bytes returned in ctrl transfer?"); in libusb_get_configuration()
|
/third_party/libusb/libusb/os/ |
D | windows_common.c | 644 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_open() 653 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_close() 680 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_get_configuration() 686 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_set_configuration() 694 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_claim_interface() 700 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_release_interface() 707 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_set_interface_altsetting() 713 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_clear_halt() 719 struct windows_context_priv *priv = usbi_get_context_priv(HANDLE_CTX(dev_handle)); in windows_reset_device() 733 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in windows_submit_transfer()
|
D | darwin_usb.c | 210 usbi_warn (HANDLE_CTX(dev_handle), "no pipeRef found with endpoint address 0x%02x.", ep); in ep_to_pipeRef() 1207 usbi_warn (HANDLE_CTX (dev_handle), "USBDeviceOpen: %s", darwin_error_str(kresult)); in darwin_open() 1222 … usbi_err (HANDLE_CTX (dev_handle), "CreateDeviceAsyncEventSource: %s", darwin_error_str(kresult)); in darwin_open() 1255 usbi_err (HANDLE_CTX (dev_handle), "Close called on a device that was not open!"); in darwin_close() 1281 usbi_warn (HANDLE_CTX (dev_handle), "USBDeviceClose: %s", darwin_error_str(kresult)); in darwin_close() 1378 …usbi_err (HANDLE_CTX (dev_handle), "can't get number of endpoints for interface: %s", darwin_error… in get_endpoints() 1395 usbi_err (HANDLE_CTX (dev_handle), "can't get alternate setting for interface"); in get_endpoints() 1438 …usbi_info (HANDLE_CTX (dev_handle), "no interface found; setting configuration: %d", dpriv->first_… in darwin_claim_interface() 1443 usbi_err (HANDLE_CTX (dev_handle), "could not set configuration"); in darwin_claim_interface() 1449 usbi_err (HANDLE_CTX (dev_handle), "darwin_get_interface: %s", darwin_error_str(kresult)); in darwin_claim_interface() [all …]
|
D | linux_usbfs.c | 1319 usbi_err(HANDLE_CTX(handle), "getcap failed, errno=%d", errno); in initialize_handle() 1323 return usbi_add_event_source(HANDLE_CTX(handle), hpriv->fd, POLLOUT); in initialize_handle() 1409 usbi_remove_event_source(HANDLE_CTX(dev_handle), hpriv->fd); in op_close() 1433 usbi_err(HANDLE_CTX(handle), "device unconfigured"); in op_get_configuration() 1453 usbi_err(HANDLE_CTX(handle), "set configuration failed, errno=%d", errno); in op_set_configuration() 1480 usbi_err(HANDLE_CTX(handle), "claim interface failed, errno=%d", errno); in claim_interface() 1496 usbi_err(HANDLE_CTX(handle), "release interface failed, errno=%d", errno); in release_interface() 1519 usbi_err(HANDLE_CTX(handle), "set interface failed, errno=%d", errno); in op_set_interface() 1540 usbi_err(HANDLE_CTX(handle), "clear halt failed, errno=%d", errno); in op_clear_halt() 1572 usbi_err(HANDLE_CTX(handle), "reset failed, errno=%d", errno); in op_reset_device() [all …]
|
D | windows_winusb.c | 470 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in windows_open() 499 usbi_warn(HANDLE_CTX(dev_handle), "could not read config descriptor: error %d", r); in windows_assign_endpoints() 2367 …usbi_err(HANDLE_CTX(dev_handle), "could not open device %s (interface %d): %s", priv->usb_interfac… in winusbx_open() 2485 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in winusbx_claim_interface() 2758 usbi_err(HANDLE_CTX(dev_handle), "interface must be claimed first"); in winusbx_set_interface_altsetting() 2763 usbi_err(HANDLE_CTX(dev_handle), "SetCurrentAlternateSetting failed: %s", windows_error_str(0)); in winusbx_set_interface_altsetting() 3046 usbi_err(HANDLE_CTX(dev_handle), "unable to match endpoint to an open interface - cannot clear"); in winusbx_clear_halt() 3054 usbi_err(HANDLE_CTX(dev_handle), "ResetPipe failed: %s", windows_error_str(0)); in winusbx_clear_halt() 3108 usbi_err(HANDLE_CTX(dev_handle), "AbortPipe (pipe address %02X) failed: %s", in winusbx_reset_device() 3114 usbi_err(HANDLE_CTX(dev_handle), "FlushPipe (pipe address %02X) failed: %s", in winusbx_reset_device() [all …]
|
D | windows_usbdk.c | 433 usbi_err(HANDLE_CTX(dev_handle), "Redirector shutdown failed"); in usbdk_close() 467 usbi_err(HANDLE_CTX(dev_handle), "SetAltsetting failed: %s", windows_error_str(0)); in usbdk_set_interface_altsetting() 486 usbi_err(HANDLE_CTX(dev_handle), "ResetPipe failed: %s", windows_error_str(0)); in usbdk_clear_halt() 498 usbi_err(HANDLE_CTX(dev_handle), "ResetDevice failed: %s", windows_error_str(0)); in usbdk_reset_device()
|
D | sunos_usb.c | 351 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in sunos_detach_kernel_driver() 389 usbi_warn(HANDLE_CTX(dev_handle), "one or more ioctls failed"); in sunos_detach_kernel_driver() 397 usbi_err(HANDLE_CTX(dev_handle), "fail to detach kernel driver"); in sunos_detach_kernel_driver() 408 struct libusb_context *ctx = HANDLE_CTX(dev_handle); in sunos_attach_kernel_driver() 450 usbi_warn(HANDLE_CTX(dev_handle), "one or more ioctls failed"); in sunos_attach_kernel_driver()
|