Home
last modified time | relevance | path

Searched refs:usbi_transfer (Results 1 – 12 of 12) sorted by relevance

/external/libusb/libusb/
Dlibusbi.h251 struct usbi_transfer { struct
270 + sizeof(struct usbi_transfer))) argument
272 ((struct usbi_transfer *)(((void *)(transfer)) \
273 - sizeof(struct usbi_transfer)))
275 static inline void *usbi_transfer_get_os_priv(struct usbi_transfer *transfer) in usbi_transfer_get_os_priv()
277 return ((void *)transfer) + sizeof(struct usbi_transfer) in usbi_transfer_get_os_priv()
303 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer,
305 int usbi_handle_transfer_cancellation(struct usbi_transfer *transfer);
715 int (*submit_transfer)(struct usbi_transfer *itransfer);
723 int (*cancel_transfer)(struct usbi_transfer *itransfer);
[all …]
Dio.c1058 static int calculate_timeout(struct usbi_transfer *transfer) in calculate_timeout()
1090 static int add_to_flying_list(struct usbi_transfer *transfer) in add_to_flying_list()
1092 struct usbi_transfer *cur; in add_to_flying_list()
1163 int alloc_size = sizeof(struct usbi_transfer) in libusb_alloc_transfer()
1167 struct usbi_transfer *itransfer = malloc(alloc_size); in libusb_alloc_transfer()
1196 struct usbi_transfer *itransfer; in libusb_free_transfer()
1221 struct usbi_transfer *itransfer = in libusb_submit_transfer()
1276 struct usbi_transfer *itransfer = in libusb_cancel_transfer()
1312 struct usbi_transfer *transfer; in arm_timerfd_for_next_timeout()
1356 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer, in usbi_handle_transfer_completion()
[all …]
/external/libusb_aah/libusb/
Dio.c1207 static int calculate_timeout(struct usbi_transfer *transfer) in calculate_timeout()
1239 static int add_to_flying_list(struct usbi_transfer *transfer) in add_to_flying_list()
1241 struct usbi_transfer *cur; in add_to_flying_list()
1264 list_for_each_entry(cur, &ctx->flying_transfers, list, struct usbi_transfer) { in add_to_flying_list()
1314 size_t alloc_size = sizeof(struct usbi_transfer) in libusb_alloc_transfer()
1318 struct usbi_transfer *itransfer = malloc(alloc_size); in libusb_alloc_transfer()
1347 struct usbi_transfer *itransfer; in libusb_free_transfer()
1374 struct usbi_transfer *itransfer = in libusb_submit_transfer()
1431 struct usbi_transfer *itransfer = in libusb_cancel_transfer()
1477 struct usbi_transfer *transfer; in arm_timerfd_for_next_timeout()
[all …]
Dlibusbi.h359 struct usbi_transfer { struct
392 + sizeof(struct usbi_transfer))) argument
394 ((struct usbi_transfer *)(((unsigned char *)(transfer)) \
395 - sizeof(struct usbi_transfer)))
397 static inline void *usbi_transfer_get_os_priv(struct usbi_transfer *transfer) in usbi_transfer_get_os_priv()
399 return ((unsigned char *)transfer) + sizeof(struct usbi_transfer) in usbi_transfer_get_os_priv()
425 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer,
427 int usbi_handle_transfer_cancellation(struct usbi_transfer *transfer);
838 int (*submit_transfer)(struct usbi_transfer *itransfer);
846 int (*cancel_transfer)(struct usbi_transfer *itransfer);
[all …]
Dcore.c1044 struct usbi_transfer *itransfer; in do_close()
1045 struct usbi_transfer *tmp; in do_close()
1053 list_for_each_entry_safe(itransfer, tmp, &ctx->flying_transfers, list, struct usbi_transfer) { in do_close()
/external/libusb_aah/libusb/os/
Dopenbsd_usb.c74 static int obsd_submit_transfer(struct usbi_transfer *);
75 static int obsd_cancel_transfer(struct usbi_transfer *);
76 static void obsd_clear_transfer_priv(struct usbi_transfer *);
86 static int _sync_control_transfer(struct usbi_transfer *);
87 static int _sync_gen_transfer(struct usbi_transfer *);
424 obsd_submit_transfer(struct usbi_transfer *itransfer) in obsd_submit_transfer()
468 obsd_cancel_transfer(struct usbi_transfer *itransfer) in obsd_cancel_transfer()
476 obsd_clear_transfer_priv(struct usbi_transfer *itransfer) in obsd_clear_transfer_priv()
489 struct usbi_transfer *itransfer; in obsd_handle_events()
618 _sync_control_transfer(struct usbi_transfer *itransfer) in _sync_control_transfer()
[all …]
Dwindows_usb.c63 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 …]
Dwindows_usb.h135 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);
Ddarwin_usb.c1265 static int submit_bulk_transfer(struct usbi_transfer *itransfer) { in submit_bulk_transfer()
1320 static int submit_iso_transfer(struct usbi_transfer *itransfer) { in submit_iso_transfer()
1397 static int submit_control_transfer(struct usbi_transfer *itransfer) { in submit_control_transfer()
1447 static int darwin_submit_transfer(struct usbi_transfer *itransfer) { in darwin_submit_transfer()
1464 static int cancel_control_transfer(struct usbi_transfer *itransfer) { in cancel_control_transfer()
1479 static int darwin_abort_transfers (struct usbi_transfer *itransfer) { in darwin_abort_transfers()
1516 static int darwin_cancel_transfer(struct usbi_transfer *itransfer) { in darwin_cancel_transfer()
1532 static void darwin_clear_transfer_priv (struct usbi_transfer *itransfer) { in darwin_clear_transfer_priv()
1543 struct usbi_transfer *itransfer = (struct usbi_transfer *)refcon; in darwin_async_io_callback()
1560 static int darwin_transfer_status (struct usbi_transfer *itransfer, kern_return_t result) { in darwin_transfer_status()
[all …]
Dlinux_usbfs.c1525 static int discard_urbs(struct usbi_transfer *itransfer, int first, int last_plus_one) in discard_urbs()
1575 static int submit_bulk_transfer(struct usbi_transfer *itransfer, in submit_bulk_transfer()
1702 static int submit_iso_transfer(struct usbi_transfer *itransfer) in submit_iso_transfer()
1852 static int submit_control_transfer(struct usbi_transfer *itransfer) in submit_control_transfer()
1896 static int op_submit_transfer(struct usbi_transfer *itransfer) in op_submit_transfer()
1917 static int op_cancel_transfer(struct usbi_transfer *itransfer) in op_cancel_transfer()
1945 static void op_clear_transfer_priv(struct usbi_transfer *itransfer) in op_clear_transfer_priv()
1974 static int handle_bulk_completion(struct usbi_transfer *itransfer, in handle_bulk_completion()
2110 static int handle_iso_completion(struct usbi_transfer *itransfer, in handle_iso_completion()
2231 static int handle_control_completion(struct usbi_transfer *itransfer, in handle_control_completion()
[all …]
/external/libusb/libusb/os/
Ddarwin_usb.c1072 static int submit_bulk_transfer(struct usbi_transfer *itransfer) { in submit_bulk_transfer()
1126 static int submit_iso_transfer(struct usbi_transfer *itransfer) { in submit_iso_transfer()
1194 static int submit_control_transfer(struct usbi_transfer *itransfer) { in submit_control_transfer()
1225 static int darwin_submit_transfer(struct usbi_transfer *itransfer) { in darwin_submit_transfer()
1242 static int cancel_control_transfer(struct usbi_transfer *itransfer) { in cancel_control_transfer()
1254 static int darwin_abort_transfers (struct usbi_transfer *itransfer) { in darwin_abort_transfers()
1287 static int darwin_cancel_transfer(struct usbi_transfer *itransfer) { in darwin_cancel_transfer()
1303 static void darwin_clear_transfer_priv (struct usbi_transfer *itransfer) { in darwin_clear_transfer_priv()
1314 struct usbi_transfer *itransfer = (struct usbi_transfer *)refcon; in darwin_async_io_callback()
1329 static int darwin_transfer_status (struct usbi_transfer *itransfer, kern_return_t result) { in darwin_transfer_status()
[all …]
Dlinux_usbfs.c1335 static int submit_bulk_transfer(struct usbi_transfer *itransfer, in submit_bulk_transfer()
1451 static int submit_iso_transfer(struct usbi_transfer *itransfer) in submit_iso_transfer()
1608 static int submit_control_transfer(struct usbi_transfer *itransfer) in submit_control_transfer()
1651 static int op_submit_transfer(struct usbi_transfer *itransfer) in op_submit_transfer()
1672 static int cancel_control_transfer(struct usbi_transfer *itransfer) in cancel_control_transfer()
1700 static int cancel_bulk_transfer(struct usbi_transfer *itransfer) in cancel_bulk_transfer()
1722 static int cancel_iso_transfer(struct usbi_transfer *itransfer) in cancel_iso_transfer()
1744 static int op_cancel_transfer(struct usbi_transfer *itransfer) in op_cancel_transfer()
1764 static void op_clear_transfer_priv(struct usbi_transfer *itransfer) in op_clear_transfer_priv()
1786 static int handle_bulk_completion(struct usbi_transfer *itransfer, in handle_bulk_completion()
[all …]