Home
last modified time | relevance | path

Searched refs:itransfer (Results 1 – 4 of 4) sorted by relevance

/external/libusb/libusb/os/
Dlinux_usbfs.c1335 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 …]
Ddarwin_usb.c1072 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/libusb/
Dio.c1167 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 …]
Dlibusbi.h303 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);