/dports/devel/py-pyusb/pyusb-1.0.2/usb/backend/ |
H A D | __init__.py | 174 def close_device(self, dev_handle): argument 182 def set_configuration(self, dev_handle, config_value): argument 192 def get_configuration(self, dev_handle): argument 213 def claim_interface(self, dev_handle, intf): argument 226 def release_interface(self, dev_handle, intf): argument 325 dev_handle, argument 351 def clear_halt(self, dev_handle, ep): argument 355 def reset_device(self, dev_handle): argument 359 def is_kernel_driver_active(self, dev_handle, intf): argument 367 def detach_kernel_driver(self, dev_handle, intf): argument [all …]
|
H A D | libusb0.py | 488 def close_device(self, dev_handle): argument 504 dev_handle, 530 dev_handle, 538 dev_handle, 547 dev_handle, 556 dev_handle, 576 dev_handle, argument 586 dev_handle, 612 dev_handle, 623 dev_handle, [all …]
|
/dports/cad/openfpgaloader/openFPGALoader-0.6.1/src/ |
H A D | fx2_ll.cpp | 38 if (dev_handle) { in FX2_ll() 39 ret = libusb_claim_interface(dev_handle, 0); in FX2_ll() 41 libusb_close(dev_handle); in FX2_ll() 61 if (!dev_handle) in FX2_ll() 63 } while (!dev_handle && timeout > 0 && reenum); in FX2_ll() 65 if (!dev_handle) in FX2_ll() 68 ret = libusb_claim_interface(dev_handle, 0); in FX2_ll() 70 libusb_close(dev_handle); in FX2_ll() 89 if (dev_handle) { in close() 101 libusb_close(dev_handle); in close() [all …]
|
/dports/astro/gpsbabel/gpsbabel-gpsbabel_1_7_0/mac/libusb/ |
H A D | core.c | 1273 *dev_handle = _dev_handle; in libusb_open() 1322 dev_handle = NULL; in libusb_open_device_with_vid_pid() 1327 return dev_handle; in libusb_open_device_with_vid_pid() 1344 if (transfer->dev_handle != dev_handle) in do_close() 1363 transfer->dev_handle = NULL; in do_close() 1370 transfer, dev_handle); in do_close() 1375 list_del(&dev_handle->list); in do_close() 1381 free(dev_handle); in do_close() 1401 if (!dev_handle) in libusb_close() 1431 do_close(ctx, dev_handle); in libusb_close() [all …]
|
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/karalabe/usb/libusb/libusb/ |
H A D | core.c | 1273 *dev_handle = _dev_handle; in libusb_open() 1322 dev_handle = NULL; in libusb_open_device_with_vid_pid() 1327 return dev_handle; in libusb_open_device_with_vid_pid() 1344 if (transfer->dev_handle != dev_handle) in do_close() 1363 transfer->dev_handle = NULL; in do_close() 1370 transfer, dev_handle); in do_close() 1375 list_del(&dev_handle->list); in do_close() 1381 free(dev_handle); in do_close() 1401 if (!dev_handle) in libusb_close() 1431 do_close(ctx, dev_handle); in libusb_close() [all …]
|
/dports/emulators/dolphin-emu/dolphin-3152428/Externals/libusb/libusb/ |
H A D | core.c | 1301 *dev_handle = _dev_handle; in libusb_wrap_sys_device() 1365 *dev_handle = _dev_handle; in libusb_open() 1414 dev_handle = NULL; in libusb_open_device_with_vid_pid() 1419 return dev_handle; in libusb_open_device_with_vid_pid() 1436 if (transfer->dev_handle != dev_handle) in do_close() 1462 transfer, dev_handle); in do_close() 1467 list_del(&dev_handle->list); in do_close() 1473 free(dev_handle); in do_close() 1493 if (!dev_handle) in libusb_close() 1523 do_close(ctx, dev_handle); in libusb_close() [all …]
|
/dports/graphics/py-pyinsane2/pyinsane2-2.0.13/tests/ |
H A D | tests_saneapi.py | 59 dev_handle = rawapi.sane_open(self.dev_name) 60 rawapi.sane_close(dev_handle) 72 self.dev_handle = rawapi.sane_open(dev_name) 100 rawapi.sane_close(self.dev_handle) 110 self.dev_handle = rawapi.sane_open(dev_name) 143 rawapi.sane_close(self.dev_handle) 162 rawapi.sane_start(self.dev_handle) 177 rawapi.sane_cancel(self.dev_handle) 182 rawapi.sane_start(self.dev_handle) 187 rawapi.sane_cancel(self.dev_handle) [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/thirdparty/libusb/libusb-1.0.9/libusb/os/ |
H A D | windows_usb.c | 624 transfer->dev_handle); in auto_claim() 666 libusb_device_handle *dev_handle = transfer->dev_handle; in auto_release() local 1622 return priv->apib->open(dev_handle); in windows_open() 1629 priv->apib->close(dev_handle); in windows_close() 1680 r = priv->apib->claim_interface(dev_handle, iface); in windows_claim_interface() 1683 r = windows_assign_endpoints(dev_handle, iface, 0); in windows_claim_interface() 1716 return priv->apib->clear_halt(dev_handle, endpoint); in windows_clear_halt() 1722 return priv->apib->reset_device(dev_handle); in windows_reset_device() 2550 transfer->dev_handle); in winusb_submit_control_transfer() 2844 r = usb_api_backend[api].open(dev_handle); in composite_open() [all …]
|
H A D | darwin_usb.c | 876 if (dev_handle->claimed_interfaces & (1 << i)) in darwin_close() 877 libusb_release_interface (dev_handle, i); in darwin_close() 931 darwin_release_interface (dev_handle, i); in darwin_set_configuration() 940 darwin_claim_interface (dev_handle, i); in darwin_set_configuration() 1094 kresult = get_endpoints (dev_handle, iface); in darwin_claim_interface() 1097 darwin_release_interface (dev_handle, iface); in darwin_claim_interface() 1168 darwin_reset_device (dev_handle); in darwin_set_interface_altsetting() 1171 kresult = get_endpoints (dev_handle, iface); in darwin_set_interface_altsetting() 1174 darwin_release_interface (dev_handle, iface); in darwin_set_interface_altsetting() 1250 (void)dev_handle; in darwin_attach_kernel_driver() [all …]
|
/dports/sysutils/atf-sun50i_a64/arm-trusted-firmware-2.5/plat/socionext/uniphier/ |
H A D | uniphier_io_storage.c | 105 uintptr_t *dev_handle; member 116 .dev_handle = &uniphier_fip_dev_handle, 121 .dev_handle = &uniphier_fip_dev_handle, 126 .dev_handle = &uniphier_fip_dev_handle, 131 .dev_handle = &uniphier_fip_dev_handle, 136 .dev_handle = &uniphier_fip_dev_handle, 142 .dev_handle = &uniphier_fip_dev_handle, 147 .dev_handle = &uniphier_fip_dev_handle, 152 .dev_handle = &uniphier_fip_dev_handle, 157 .dev_handle = &uniphier_fip_dev_handle, [all …]
|
/dports/sysutils/atf-sun50i_h6/arm-trusted-firmware-2.5/plat/socionext/uniphier/ |
H A D | uniphier_io_storage.c | 105 uintptr_t *dev_handle; member 116 .dev_handle = &uniphier_fip_dev_handle, 121 .dev_handle = &uniphier_fip_dev_handle, 126 .dev_handle = &uniphier_fip_dev_handle, 131 .dev_handle = &uniphier_fip_dev_handle, 136 .dev_handle = &uniphier_fip_dev_handle, 142 .dev_handle = &uniphier_fip_dev_handle, 147 .dev_handle = &uniphier_fip_dev_handle, 152 .dev_handle = &uniphier_fip_dev_handle, 157 .dev_handle = &uniphier_fip_dev_handle, [all …]
|
/dports/sysutils/atf-rk3399/arm-trusted-firmware-2.5/plat/socionext/uniphier/ |
H A D | uniphier_io_storage.c | 105 uintptr_t *dev_handle; member 116 .dev_handle = &uniphier_fip_dev_handle, 121 .dev_handle = &uniphier_fip_dev_handle, 126 .dev_handle = &uniphier_fip_dev_handle, 131 .dev_handle = &uniphier_fip_dev_handle, 136 .dev_handle = &uniphier_fip_dev_handle, 142 .dev_handle = &uniphier_fip_dev_handle, 147 .dev_handle = &uniphier_fip_dev_handle, 152 .dev_handle = &uniphier_fip_dev_handle, 157 .dev_handle = &uniphier_fip_dev_handle, [all …]
|
/dports/sysutils/atf-fvp/arm-trusted-firmware-2.5/plat/socionext/uniphier/ |
H A D | uniphier_io_storage.c | 105 uintptr_t *dev_handle; member 116 .dev_handle = &uniphier_fip_dev_handle, 121 .dev_handle = &uniphier_fip_dev_handle, 126 .dev_handle = &uniphier_fip_dev_handle, 131 .dev_handle = &uniphier_fip_dev_handle, 136 .dev_handle = &uniphier_fip_dev_handle, 142 .dev_handle = &uniphier_fip_dev_handle, 147 .dev_handle = &uniphier_fip_dev_handle, 152 .dev_handle = &uniphier_fip_dev_handle, 157 .dev_handle = &uniphier_fip_dev_handle, [all …]
|
/dports/sysutils/atf-rk3328/arm-trusted-firmware-2.5/plat/socionext/uniphier/ |
H A D | uniphier_io_storage.c | 105 uintptr_t *dev_handle; member 116 .dev_handle = &uniphier_fip_dev_handle, 121 .dev_handle = &uniphier_fip_dev_handle, 126 .dev_handle = &uniphier_fip_dev_handle, 131 .dev_handle = &uniphier_fip_dev_handle, 136 .dev_handle = &uniphier_fip_dev_handle, 142 .dev_handle = &uniphier_fip_dev_handle, 147 .dev_handle = &uniphier_fip_dev_handle, 152 .dev_handle = &uniphier_fip_dev_handle, 157 .dev_handle = &uniphier_fip_dev_handle, [all …]
|
/dports/emulators/dolphin-emu/dolphin-3152428/Externals/libusb/libusb/os/haiku/ |
H A D | haiku_usb_raw.cpp | 50 haiku_open(struct libusb_device_handle *dev_handle) in haiku_open() argument 52 USBDevice* dev=*((USBDevice**)dev_handle->dev->os_priv); in haiku_open() 61 *((USBDeviceHandle**)dev_handle->os_priv)=handle; in haiku_open() 66 haiku_close(struct libusb_device_handle *dev_handle) in haiku_close() argument 68 USBDeviceHandle * handle=*((USBDeviceHandle**)dev_handle->os_priv); in haiku_close() 72 *((USBDeviceHandle**)dev_handle->os_priv)=NULL; in haiku_close() 118 USBDeviceHandle * handle= *((USBDeviceHandle**)dev_handle->os_priv); in haiku_set_configuration() 125 USBDeviceHandle * handle=*((USBDeviceHandle**)dev_handle->os_priv); in haiku_claim_interface() 132 USBDeviceHandle* handle = *((USBDeviceHandle**)dev_handle->os_priv); in haiku_set_altsetting() 139 USBDeviceHandle * handle=*((USBDeviceHandle**)dev_handle->os_priv); in haiku_release_interface() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/libusb/src/libusb/os/ |
H A D | windows_usb.c | 619 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in windows_assign_endpoints() 690 transfer->dev_handle); in auto_claim() 739 libusb_device_handle *dev_handle = transfer->dev_handle; in auto_release() local 1691 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in windows_open() 1698 return priv->apib->open(SUB_API_NOTSET, dev_handle); in windows_open() 1705 priv->apib->close(SUB_API_NOTSET, dev_handle); in windows_close() 1759 r = windows_assign_endpoints(dev_handle, iface, 0); in windows_claim_interface() 2395 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in winusbx_open() 2628 if ( (handle_priv->interface_handle[i].dev_handle != 0) in get_valid_interface() 2669 transfer->dev_handle); in winusbx_submit_control_transfer() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libusb/src/libusb/os/ |
H A D | windows_usb.c | 619 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in windows_assign_endpoints() 690 transfer->dev_handle); in auto_claim() 739 libusb_device_handle *dev_handle = transfer->dev_handle; in auto_release() local 1691 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in windows_open() 1698 return priv->apib->open(SUB_API_NOTSET, dev_handle); in windows_open() 1705 priv->apib->close(SUB_API_NOTSET, dev_handle); in windows_close() 1759 r = windows_assign_endpoints(dev_handle, iface, 0); in windows_claim_interface() 2395 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in winusbx_open() 2628 if ( (handle_priv->interface_handle[i].dev_handle != 0) in get_valid_interface() 2669 transfer->dev_handle); in winusbx_submit_control_transfer() [all …]
|
/dports/sysutils/atf-sun50i_h6/arm-trusted-firmware-2.5/drivers/io/ |
H A D | io_storage.c | 174 assert(dev_handle != (uintptr_t)NULL); in io_dev_init() 175 assert(is_valid_dev(dev_handle)); in io_dev_init() 188 int io_dev_close(uintptr_t dev_handle) in io_dev_close() argument 191 assert(dev_handle != (uintptr_t)NULL); in io_dev_close() 192 assert(is_valid_dev(dev_handle)); in io_dev_close() 213 assert(is_valid_dev(dev_handle)); in io_open() 225 entity->dev_handle = dev; in io_open() 242 io_dev_info_t *dev = entity->dev_handle; in io_seek() 259 io_dev_info_t *dev = entity->dev_handle; in io_size() 279 io_dev_info_t *dev = entity->dev_handle; in io_read() [all …]
|
/dports/sysutils/atf-rk3328/arm-trusted-firmware-2.5/drivers/io/ |
H A D | io_storage.c | 174 assert(dev_handle != (uintptr_t)NULL); in io_dev_init() 175 assert(is_valid_dev(dev_handle)); in io_dev_init() 188 int io_dev_close(uintptr_t dev_handle) in io_dev_close() argument 191 assert(dev_handle != (uintptr_t)NULL); in io_dev_close() 192 assert(is_valid_dev(dev_handle)); in io_dev_close() 213 assert(is_valid_dev(dev_handle)); in io_open() 225 entity->dev_handle = dev; in io_open() 242 io_dev_info_t *dev = entity->dev_handle; in io_seek() 259 io_dev_info_t *dev = entity->dev_handle; in io_size() 279 io_dev_info_t *dev = entity->dev_handle; in io_read() [all …]
|
/dports/sysutils/atf-sun50i_a64/arm-trusted-firmware-2.5/drivers/io/ |
H A D | io_storage.c | 174 assert(dev_handle != (uintptr_t)NULL); in io_dev_init() 175 assert(is_valid_dev(dev_handle)); in io_dev_init() 188 int io_dev_close(uintptr_t dev_handle) in io_dev_close() argument 191 assert(dev_handle != (uintptr_t)NULL); in io_dev_close() 192 assert(is_valid_dev(dev_handle)); in io_dev_close() 213 assert(is_valid_dev(dev_handle)); in io_open() 225 entity->dev_handle = dev; in io_open() 242 io_dev_info_t *dev = entity->dev_handle; in io_seek() 259 io_dev_info_t *dev = entity->dev_handle; in io_size() 279 io_dev_info_t *dev = entity->dev_handle; in io_read() [all …]
|
/dports/sysutils/atf-fvp/arm-trusted-firmware-2.5/drivers/io/ |
H A D | io_storage.c | 174 assert(dev_handle != (uintptr_t)NULL); in io_dev_init() 175 assert(is_valid_dev(dev_handle)); in io_dev_init() 188 int io_dev_close(uintptr_t dev_handle) in io_dev_close() argument 191 assert(dev_handle != (uintptr_t)NULL); in io_dev_close() 192 assert(is_valid_dev(dev_handle)); in io_dev_close() 213 assert(is_valid_dev(dev_handle)); in io_open() 225 entity->dev_handle = dev; in io_open() 242 io_dev_info_t *dev = entity->dev_handle; in io_seek() 259 io_dev_info_t *dev = entity->dev_handle; in io_size() 279 io_dev_info_t *dev = entity->dev_handle; in io_read() [all …]
|
/dports/sysutils/atf-rk3399/arm-trusted-firmware-2.5/drivers/io/ |
H A D | io_storage.c | 174 assert(dev_handle != (uintptr_t)NULL); in io_dev_init() 175 assert(is_valid_dev(dev_handle)); in io_dev_init() 188 int io_dev_close(uintptr_t dev_handle) in io_dev_close() argument 191 assert(dev_handle != (uintptr_t)NULL); in io_dev_close() 192 assert(is_valid_dev(dev_handle)); in io_dev_close() 213 assert(is_valid_dev(dev_handle)); in io_open() 225 entity->dev_handle = dev; in io_open() 242 io_dev_info_t *dev = entity->dev_handle; in io_seek() 259 io_dev_info_t *dev = entity->dev_handle; in io_size() 279 io_dev_info_t *dev = entity->dev_handle; in io_read() [all …]
|
/dports/sysutils/opencorsairlink/OpenCorsairLink-4234f4f/lowlevel/ |
H A D | asetek.c | 34 corsairlink_asetek_init( struct libusb_device_handle* dev_handle, uint8_t endpoint ) in corsairlink_asetek_init() argument 38 rr = libusb_control_transfer( dev_handle, 0x40, 0x00, 0xffff, 0x0000, NULL, 0, 0 ); in corsairlink_asetek_init() 43 rr = libusb_control_transfer( dev_handle, 0x40, 0x02, 0x0002, 0x0000, NULL, 0, 0 ); in corsairlink_asetek_init() 53 corsairlink_asetek_deinit( struct libusb_device_handle* dev_handle, uint8_t endpoint ) in corsairlink_asetek_deinit() argument 57 rr = libusb_control_transfer( dev_handle, 0x40, 0x02, 0x0004, 0x0000, NULL, 0, 200 ); in corsairlink_asetek_deinit() 68 struct libusb_device_handle* dev_handle, uint8_t endpoint, uint8_t* data, int length ) in corsairlink_asetek_write() argument 74 dev_handle, endpoint, data, length, &bytes_transferred, TIMEOUT_DEFAULT ); in corsairlink_asetek_write() 85 struct libusb_device_handle* dev_handle, uint8_t endpoint, uint8_t* data, int length ) in corsairlink_asetek_read() argument 91 dev_handle, endpoint, data, length, &bytes_transferred, TIMEOUT_DEFAULT ); in corsairlink_asetek_read()
|
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/karalabe/usb/libusb/libusb/os/ |
H A D | haiku_usb_raw.cpp | 49 haiku_open(struct libusb_device_handle *dev_handle) in haiku_open() argument 51 USBDevice *dev = *((USBDevice **)dev_handle->dev->os_priv); in haiku_open() 59 *((USBDeviceHandle **)dev_handle->os_priv) = handle; in haiku_open() 64 haiku_close(struct libusb_device_handle *dev_handle) in haiku_close() argument 66 USBDeviceHandle *handle = *((USBDeviceHandle **)dev_handle->os_priv); in haiku_close() 70 *((USBDeviceHandle **)dev_handle->os_priv) = NULL; in haiku_close() 113 USBDeviceHandle *handle= *((USBDeviceHandle **)dev_handle->os_priv); in haiku_set_configuration() 120 USBDeviceHandle *handle = *((USBDeviceHandle **)dev_handle->os_priv); in haiku_claim_interface() 127 USBDeviceHandle *handle = *((USBDeviceHandle **)dev_handle->os_priv); in haiku_set_altsetting() 134 USBDeviceHandle *handle = *((USBDeviceHandle **)dev_handle->os_priv); in haiku_release_interface() [all …]
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/thirdparty/libusb/libusb-1.0.9/libusb/ |
H A D | sync.c | 72 int API_EXPORTED 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_completed(HANDLE_CTX(dev_handle), &completed); in libusb_control_transfer() 139 usbi_warn(HANDLE_CTX(dev_handle), in libusb_control_transfer() 156 static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, in do_sync_bulk_transfer() argument 167 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length, in do_sync_bulk_transfer() 178 r = libusb_handle_events_completed(HANDLE_CTX(dev_handle), &completed); in do_sync_bulk_transfer() 209 usbi_warn(HANDLE_CTX(dev_handle), in do_sync_bulk_transfer() 262 return do_sync_bulk_transfer(dev_handle, endpoint, data, length, in libusb_bulk_transfer() 308 struct libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_interrupt_transfer() argument [all …]
|