/external/libusb/libusb/os/ |
D | linux_usbfs.c | 1335 static int submit_bulk_transfer(struct usbi_transfer *itransfer, in submit_bulk_transfer() argument 1339 __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_bulk_transfer() 1340 struct linux_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_bulk_transfer() 1380 urb->usercontext = itransfer; in submit_bulk_transfer() 1451 static int submit_iso_transfer(struct usbi_transfer *itransfer) in submit_iso_transfer() argument 1454 __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_iso_transfer() 1455 struct linux_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_iso_transfer() 1543 urb->usercontext = itransfer; in submit_iso_transfer() 1608 static int submit_control_transfer(struct usbi_transfer *itransfer) in submit_control_transfer() argument 1610 struct linux_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_control_transfer() [all …]
|
D | darwin_usb.c | 1072 static int submit_bulk_transfer(struct usbi_transfer *itransfer) { in submit_bulk_transfer() argument 1073 struct libusb_transfer *transfer = __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_bulk_transfer() 1104 transfer->length, darwin_async_io_callback, itransfer); in submit_bulk_transfer() 1107 transfer->length, darwin_async_io_callback, itransfer); in submit_bulk_transfer() 1112 darwin_async_io_callback, (void *)itransfer); in submit_bulk_transfer() 1116 darwin_async_io_callback, (void *)itransfer); in submit_bulk_transfer() 1126 static int submit_iso_transfer(struct usbi_transfer *itransfer) { in submit_iso_transfer() argument 1127 struct libusb_transfer *transfer = __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_iso_transfer() 1128 struct darwin_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_iso_transfer() 1178 itransfer); in submit_iso_transfer() [all …]
|
/external/libusb_aah/libusb/os/ |
D | linux_usbfs.c | 1525 static int discard_urbs(struct usbi_transfer *itransfer, int first, int last_plus_one) in discard_urbs() argument 1528 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in discard_urbs() 1530 usbi_transfer_get_os_priv(itransfer); in discard_urbs() 1575 static int submit_bulk_transfer(struct usbi_transfer *itransfer, in submit_bulk_transfer() argument 1579 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_bulk_transfer() 1580 struct linux_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_bulk_transfer() 1625 urb->usercontext = itransfer; in submit_bulk_transfer() 1691 discard_urbs(itransfer, 0, i); in submit_bulk_transfer() 1702 static int submit_iso_transfer(struct usbi_transfer *itransfer) in submit_iso_transfer() argument 1705 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_iso_transfer() [all …]
|
D | darwin_usb.c | 1265 static int submit_bulk_transfer(struct usbi_transfer *itransfer) { in submit_bulk_transfer() argument 1266 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_bulk_transfer() 1296 transfer->length, darwin_async_io_callback, itransfer); in submit_bulk_transfer() 1299 transfer->length, darwin_async_io_callback, itransfer); in submit_bulk_transfer() 1301 itransfer->flags |= USBI_TRANSFER_OS_HANDLES_TIMEOUT; in submit_bulk_transfer() 1306 darwin_async_io_callback, (void *)itransfer); in submit_bulk_transfer() 1310 darwin_async_io_callback, (void *)itransfer); in submit_bulk_transfer() 1320 static int submit_iso_transfer(struct usbi_transfer *itransfer) { in submit_iso_transfer() argument 1321 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_iso_transfer() 1322 struct darwin_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_iso_transfer() [all …]
|
D | windows_usb.c | 63 static int winusb_submit_control_transfer(struct usbi_transfer *itransfer); 65 static int winusb_submit_bulk_transfer(struct usbi_transfer *itransfer); 67 static int winusb_abort_transfers(struct usbi_transfer *itransfer); 68 static int winusb_abort_control(struct usbi_transfer *itransfer); 70 static int winusb_copy_transfer_data(struct usbi_transfer *itransfer, uint32_t io_size); 79 static int composite_submit_control_transfer(struct usbi_transfer *itransfer); 80 static int composite_submit_bulk_transfer(struct usbi_transfer *itransfer); 81 static int composite_submit_iso_transfer(struct usbi_transfer *itransfer); 83 static int composite_abort_transfers(struct usbi_transfer *itransfer); 84 static int composite_abort_control(struct usbi_transfer *itransfer); [all …]
|
D | openbsd_usb.c | 424 obsd_submit_transfer(struct usbi_transfer *itransfer) in obsd_submit_transfer() argument 432 transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in obsd_submit_transfer() 437 err = _sync_control_transfer(itransfer); in obsd_submit_transfer() 445 err = _sync_gen_transfer(itransfer); in obsd_submit_transfer() 454 err = _sync_gen_transfer(itransfer); in obsd_submit_transfer() 461 if (write(hpriv->pipe[1], &itransfer, sizeof(itransfer)) < 0) in obsd_submit_transfer() 468 obsd_cancel_transfer(struct usbi_transfer *itransfer) in obsd_cancel_transfer() argument 476 obsd_clear_transfer_priv(struct usbi_transfer *itransfer) in obsd_clear_transfer_priv() argument 489 struct usbi_transfer *itransfer; in obsd_handle_events() local 526 if (read(hpriv->pipe[0], &itransfer, sizeof(itransfer)) < 0) { in obsd_handle_events() [all …]
|
D | windows_usb.h | 135 int (*submit_bulk_transfer)(struct usbi_transfer *itransfer); 136 int (*submit_iso_transfer)(struct usbi_transfer *itransfer); 137 int (*submit_control_transfer)(struct usbi_transfer *itransfer); 138 int (*abort_control)(struct usbi_transfer *itransfer); 139 int (*abort_transfers)(struct usbi_transfer *itransfer); 140 int (*copy_transfer_data)(struct usbi_transfer *itransfer, uint32_t io_size);
|
/external/libusb/libusb/ |
D | io.c | 1167 struct usbi_transfer *itransfer = malloc(alloc_size); in libusb_alloc_transfer() local 1168 if (!itransfer) in libusb_alloc_transfer() 1171 memset(itransfer, 0, alloc_size); in libusb_alloc_transfer() 1172 itransfer->num_iso_packets = iso_packets; in libusb_alloc_transfer() 1173 pthread_mutex_init(&itransfer->lock, NULL); in libusb_alloc_transfer() 1174 return __USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in libusb_alloc_transfer() 1196 struct usbi_transfer *itransfer; in libusb_free_transfer() local 1203 itransfer = __LIBUSB_TRANSFER_TO_USBI_TRANSFER(transfer); in libusb_free_transfer() 1204 pthread_mutex_destroy(&itransfer->lock); in libusb_free_transfer() 1205 free(itransfer); in libusb_free_transfer() [all …]
|
D | libusbi.h | 303 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer, 715 int (*submit_transfer)(struct usbi_transfer *itransfer); 723 int (*cancel_transfer)(struct usbi_transfer *itransfer); 735 void (*clear_transfer_priv)(struct usbi_transfer *itransfer);
|
/external/libusb_aah/libusb/ |
D | io.c | 1318 struct usbi_transfer *itransfer = malloc(alloc_size); in libusb_alloc_transfer() local 1319 if (!itransfer) in libusb_alloc_transfer() 1322 memset(itransfer, 0, alloc_size); in libusb_alloc_transfer() 1323 itransfer->num_iso_packets = iso_packets; in libusb_alloc_transfer() 1324 usbi_mutex_init(&itransfer->lock, NULL); in libusb_alloc_transfer() 1325 return USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in libusb_alloc_transfer() 1347 struct usbi_transfer *itransfer; in libusb_free_transfer() local 1354 itransfer = LIBUSB_TRANSFER_TO_USBI_TRANSFER(transfer); in libusb_free_transfer() 1355 usbi_mutex_destroy(&itransfer->lock); in libusb_free_transfer() 1356 free(itransfer); in libusb_free_transfer() [all …]
|
D | core.c | 1044 struct usbi_transfer *itransfer; in do_close() local 1053 list_for_each_entry_safe(itransfer, tmp, &ctx->flying_transfers, list, struct usbi_transfer) { in do_close() 1055 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in do_close() 1060 if (!(itransfer->flags & USBI_TRANSFER_DEVICE_DISAPPEARED)) { in do_close() 1063 if (itransfer->flags & USBI_TRANSFER_CANCELLING) in do_close() 1073 usbi_mutex_lock(&itransfer->lock); in do_close() 1074 list_del(&itransfer->list); in do_close() 1076 usbi_mutex_unlock(&itransfer->lock); in do_close()
|
D | libusbi.h | 425 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer, 838 int (*submit_transfer)(struct usbi_transfer *itransfer); 846 int (*cancel_transfer)(struct usbi_transfer *itransfer); 858 void (*clear_transfer_priv)(struct usbi_transfer *itransfer);
|