Searched refs:interface_number (Results 1 – 9 of 9) sorted by relevance
/third_party/libusb/libusb/ |
D | core.c | 1668 int interface_number) in libusb_claim_interface() argument 1672 usbi_dbg("interface %d", interface_number); in libusb_claim_interface() 1673 if (interface_number < 0 || interface_number >= USB_MAXINTERFACES) in libusb_claim_interface() 1680 if (dev_handle->claimed_interfaces & (1U << interface_number)) in libusb_claim_interface() 1683 r = usbi_backend.claim_interface(dev_handle, (uint8_t)interface_number); in libusb_claim_interface() 1685 dev_handle->claimed_interfaces |= 1U << interface_number; in libusb_claim_interface() 1712 int interface_number) in libusb_release_interface() argument 1716 usbi_dbg("interface %d", interface_number); in libusb_release_interface() 1717 if (interface_number < 0 || interface_number >= USB_MAXINTERFACES) in libusb_release_interface() 1721 if (!(dev_handle->claimed_interfaces & (1U << interface_number))) { in libusb_release_interface() [all …]
|
D | libusbi.h | 1068 int (*claim_interface)(struct libusb_device_handle *dev_handle, uint8_t interface_number); 1085 int (*release_interface)(struct libusb_device_handle *dev_handle, uint8_t interface_number); 1102 uint8_t interface_number, uint8_t altsetting); 1166 uint8_t interface_number); 1182 uint8_t interface_number); 1199 uint8_t interface_number);
|
D | libusb.h | 1426 int interface_number); 1428 int interface_number); 1434 int interface_number, int alternate_setting); 1450 int interface_number); 1452 int interface_number); 1454 int interface_number);
|
D | descriptor.c | 197 int interface_number = -1; in parse_interface() local 240 if (interface_number == -1) in parse_interface() 241 interface_number = ifp->bInterfaceNumber; in parse_interface() 324 if_desc->bInterfaceNumber != interface_number) in parse_interface()
|
/third_party/libusb/libusb/os/ |
D | haiku_usb_raw.cpp | 111 haiku_claim_interface(struct libusb_device_handle *dev_handle, uint8_t interface_number) in haiku_claim_interface() argument 114 return handle->ClaimInterface(interface_number); in haiku_claim_interface() 118 haiku_set_altsetting(struct libusb_device_handle *dev_handle, uint8_t interface_number, uint8_t alt… in haiku_set_altsetting() argument 121 return handle->SetAltSetting(interface_number, altsetting); in haiku_set_altsetting() 132 haiku_release_interface(struct libusb_device_handle *dev_handle, uint8_t interface_number) in haiku_release_interface() argument 135 haiku_set_altsetting(dev_handle, interface_number, 0); in haiku_release_interface() 136 return handle->ReleaseInterface(interface_number); in haiku_release_interface()
|
D | windows_common.h | 283 uint8_t interface_number; member 314 int (*claim_interface)(struct libusb_device_handle *dev_handle, uint8_t interface_number); 315 int (*release_interface)(struct libusb_device_handle *dev_handle, uint8_t interface_number); 317 uint8_t interface_number, uint8_t altsetting);
|
D | windows_common.c | 692 …atic int windows_claim_interface(struct libusb_device_handle *dev_handle, uint8_t interface_number) in windows_claim_interface() argument 695 return priv->backend->claim_interface(dev_handle, interface_number); in windows_claim_interface() 698 …ic int windows_release_interface(struct libusb_device_handle *dev_handle, uint8_t interface_number) in windows_release_interface() argument 701 return priv->backend->release_interface(dev_handle, interface_number); in windows_release_interface() 705 uint8_t interface_number, uint8_t altsetting) in windows_set_interface_altsetting() argument 708 return priv->backend->set_interface_altsetting(dev_handle, interface_number, altsetting); in windows_set_interface_altsetting()
|
D | windows_winusb.c | 570 static int auto_claim(struct libusb_transfer *transfer, int *interface_number, int api_type) in auto_claim() argument 575 int current_interface = *interface_number; in auto_claim() 611 *interface_number = current_interface; in auto_claim() 624 if (handle_priv->autoclaim_count[transfer_priv->interface_number] > 0) { in auto_release() 625 handle_priv->autoclaim_count[transfer_priv->interface_number]--; in auto_release() 626 if (handle_priv->autoclaim_count[transfer_priv->interface_number] == 0) { in auto_release() 627 r = libusb_release_interface(dev_handle, transfer_priv->interface_number); in auto_release() 629 usbi_dbg("auto-released interface %d", transfer_priv->interface_number); in auto_release() 632 transfer_priv->interface_number, libusb_error_name((enum libusb_error)r)); in auto_release() 1295 int interface_number; in set_composite_interface() local [all …]
|
D | sunos_usb.c | 349 uint8_t interface_number) in sunos_detach_kernel_driver() argument 357 UNUSED(interface_number); in sunos_detach_kernel_driver() 406 uint8_t interface_number) in sunos_attach_kernel_driver() argument 414 UNUSED(interface_number); in sunos_attach_kernel_driver()
|