/external/libusb/libusb/os/ |
D | haiku_usb_raw.cpp | 139 haiku_submit_transfer(struct usbi_transfer *itransfer) in haiku_submit_transfer() argument 141 struct libusb_transfer *fLibusbTransfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in haiku_submit_transfer() 143 return fDeviceHandle->SubmitTransfer(itransfer); in haiku_submit_transfer() 147 haiku_cancel_transfer(struct usbi_transfer *itransfer) in haiku_cancel_transfer() argument 149 struct libusb_transfer *fLibusbTransfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in haiku_cancel_transfer() 151 return fDeviceHandle->CancelTransfer(*((USBTransfer **)usbi_transfer_get_os_priv(itransfer))); in haiku_cancel_transfer() 155 haiku_clear_transfer_priv(struct usbi_transfer *itransfer) in haiku_clear_transfer_priv() argument 157 USBTransfer *transfer = *((USBTransfer **)usbi_transfer_get_os_priv(itransfer)); in haiku_clear_transfer_priv() 159 *((USBTransfer **)usbi_transfer_get_os_priv(itransfer)) = NULL; in haiku_clear_transfer_priv() 163 haiku_handle_transfer_completion(struct usbi_transfer *itransfer) in haiku_handle_transfer_completion() argument [all …]
|
D | linux_usbfs.c | 1744 static int discard_urbs(struct usbi_transfer *itransfer, int first, int last_plus_one) in discard_urbs() argument 1747 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in discard_urbs() 1749 usbi_transfer_get_os_priv(itransfer); in discard_urbs() 1794 static int submit_bulk_transfer(struct usbi_transfer *itransfer) in submit_bulk_transfer() argument 1797 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_bulk_transfer() 1798 struct linux_transfer_priv *tpriv = usbi_transfer_get_os_priv(itransfer); in submit_bulk_transfer() 1876 urb->usercontext = itransfer; in submit_bulk_transfer() 1884 urb->stream_id = itransfer->stream_id; in submit_bulk_transfer() 1955 discard_urbs(itransfer, 0, i); in submit_bulk_transfer() 1966 static int submit_iso_transfer(struct usbi_transfer *itransfer) in submit_iso_transfer() argument [all …]
|
D | wince_usb.c | 541 static void wince_clear_transfer_priv(struct usbi_transfer *itransfer) in wince_clear_transfer_priv() argument 543 struct wince_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in wince_clear_transfer_priv() 547 wfd.itransfer = NULL; in wince_clear_transfer_priv() 552 static int wince_cancel_transfer(struct usbi_transfer *itransfer) in wince_cancel_transfer() argument 554 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in wince_cancel_transfer() 556 struct wince_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in wince_cancel_transfer() 564 static int wince_submit_control_or_bulk_transfer(struct usbi_transfer *itransfer) in wince_submit_control_or_bulk_transfer() argument 566 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in wince_submit_control_or_bulk_transfer() 568 struct wince_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in wince_submit_control_or_bulk_transfer() 593 …wfd = usbi_create_fd(eventHandle, direction_in ? RW_READ : RW_WRITE, itransfer, &wince_cancel_tran… in wince_submit_control_or_bulk_transfer() [all …]
|
D | darwin_usb.c | 1558 static int submit_bulk_transfer(struct usbi_transfer *itransfer) { in submit_bulk_transfer() argument 1559 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_bulk_transfer() 1594 … transfer->length, darwin_async_io_callback, itransfer); in submit_bulk_transfer() 1597 … transfer->length, darwin_async_io_callback, itransfer); in submit_bulk_transfer() 1599 itransfer->timeout_flags |= USBI_TRANSFER_OS_HANDLES_TIMEOUT; in submit_bulk_transfer() 1604 … darwin_async_io_callback, (void *)itransfer); in submit_bulk_transfer() 1608 … darwin_async_io_callback, (void *)itransfer); in submit_bulk_transfer() 1619 static int submit_stream_transfer(struct usbi_transfer *itransfer) { in submit_stream_transfer() argument 1620 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in submit_stream_transfer() 1631 itransfer->timeout_flags |= USBI_TRANSFER_OS_HANDLES_TIMEOUT; in submit_stream_transfer() [all …]
|
D | windows_usbdk.c | 90 static inline struct usbdk_transfer_priv *_usbdk_transfer_priv(struct usbi_transfer *itransfer) in _usbdk_transfer_priv() argument 92 return (struct usbdk_transfer_priv *)usbi_transfer_get_os_priv(itransfer); in _usbdk_transfer_priv() 536 void windows_clear_transfer_priv(struct usbi_transfer *itransfer) in windows_clear_transfer_priv() argument 538 struct usbdk_transfer_priv *transfer_priv = _usbdk_transfer_priv(itransfer); in windows_clear_transfer_priv() 539 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in windows_clear_transfer_priv() 549 static int usbdk_do_control_transfer(struct usbi_transfer *itransfer) in usbdk_do_control_transfer() argument 551 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in usbdk_do_control_transfer() 553 struct usbdk_transfer_priv *transfer_priv = _usbdk_transfer_priv(itransfer); in usbdk_do_control_transfer() 598 static int usbdk_do_bulk_transfer(struct usbi_transfer *itransfer) in usbdk_do_bulk_transfer() argument 600 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in usbdk_do_bulk_transfer() [all …]
|
D | netbsd_usb.c | 426 netbsd_submit_transfer(struct usbi_transfer *itransfer) in netbsd_submit_transfer() argument 434 transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in netbsd_submit_transfer() 439 err = _sync_control_transfer(itransfer); in netbsd_submit_transfer() 447 err = _sync_gen_transfer(itransfer); in netbsd_submit_transfer() 456 err = _sync_gen_transfer(itransfer); in netbsd_submit_transfer() 466 usbi_signal_transfer_completion(itransfer); in netbsd_submit_transfer() 472 netbsd_cancel_transfer(struct usbi_transfer *itransfer) in netbsd_cancel_transfer() argument 480 netbsd_clear_transfer_priv(struct usbi_transfer *itransfer) in netbsd_clear_transfer_priv() argument 488 netbsd_handle_transfer_completion(struct usbi_transfer *itransfer) in netbsd_handle_transfer_completion() argument 490 return usbi_handle_transfer_completion(itransfer, LIBUSB_TRANSFER_COMPLETED); in netbsd_handle_transfer_completion() [all …]
|
D | windows_winusb.c | 67 static int winusbx_submit_control_transfer(int sub_api, struct usbi_transfer *itransfer); 69 static int winusbx_submit_bulk_transfer(int sub_api, struct usbi_transfer *itransfer); 71 static int winusbx_abort_transfers(int sub_api, struct usbi_transfer *itransfer); 72 static int winusbx_abort_control(int sub_api, struct usbi_transfer *itransfer); 74 static int winusbx_copy_transfer_data(int sub_api, struct usbi_transfer *itransfer, uint32_t io_siz… 83 static int hid_submit_control_transfer(int sub_api, struct usbi_transfer *itransfer); 84 static int hid_submit_bulk_transfer(int sub_api, struct usbi_transfer *itransfer); 86 static int hid_abort_transfers(int sub_api, struct usbi_transfer *itransfer); 88 static int hid_copy_transfer_data(int sub_api, struct usbi_transfer *itransfer, uint32_t io_size); 97 static int composite_submit_control_transfer(int sub_api, struct usbi_transfer *itransfer); [all …]
|
D | openbsd_usb.c | 472 obsd_submit_transfer(struct usbi_transfer *itransfer) in obsd_submit_transfer() argument 480 transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in obsd_submit_transfer() 485 err = _sync_control_transfer(itransfer); in obsd_submit_transfer() 493 err = _sync_gen_transfer(itransfer); in obsd_submit_transfer() 502 err = _sync_gen_transfer(itransfer); in obsd_submit_transfer() 512 usbi_signal_transfer_completion(itransfer); in obsd_submit_transfer() 518 obsd_cancel_transfer(struct usbi_transfer *itransfer) in obsd_cancel_transfer() argument 526 obsd_clear_transfer_priv(struct usbi_transfer *itransfer) in obsd_clear_transfer_priv() argument 534 obsd_handle_transfer_completion(struct usbi_transfer *itransfer) in obsd_handle_transfer_completion() argument 536 return usbi_handle_transfer_completion(itransfer, LIBUSB_TRANSFER_COMPLETED); in obsd_handle_transfer_completion() [all …]
|
D | windows_nt_common.c | 482 static void windows_transfer_callback(struct usbi_transfer *itransfer, uint32_t io_result, uint32_t… in windows_transfer_callback() argument 490 status = windows_copy_transfer_data(itransfer, io_size); in windows_transfer_callback() 501 istatus = windows_copy_transfer_data(itransfer, io_size); in windows_transfer_callback() 509 …usbi_err(ITRANSFER_CTX(itransfer), "detected I/O error %u: %s", io_result, windows_error_str(io_re… in windows_transfer_callback() 513 windows_clear_transfer_priv(itransfer); // Cancel polling in windows_transfer_callback() 515 usbi_handle_transfer_cancellation(itransfer); in windows_transfer_callback() 517 usbi_handle_transfer_completion(itransfer, (enum libusb_transfer_status)status); in windows_transfer_callback() 520 void windows_handle_callback(struct usbi_transfer *itransfer, uint32_t io_result, uint32_t io_size) in windows_handle_callback() argument 522 struct libusb_transfer *transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in windows_handle_callback() 529 windows_transfer_callback(itransfer, io_result, io_size); in windows_handle_callback() [all …]
|
D | windows_nt_common.h | 53 void windows_clear_transfer_priv(struct usbi_transfer *itransfer); 54 int windows_copy_transfer_data(struct usbi_transfer *itransfer, uint32_t io_size); 58 void windows_handle_callback(struct usbi_transfer *itransfer, uint32_t io_result, uint32_t io_size);
|
D | poll_windows.c | 115 if (poll_fd[_index].itransfer && poll_fd[_index].cancel_fn) { in cancel_io() 117 (*poll_fd[_index].cancel_fn)(poll_fd[_index].itransfer); in cancel_io() 146 if (poll_fd[_index].itransfer && poll_fd[_index].cancel_fn) { in cancel_io() 148 (*poll_fd[_index].cancel_fn)(poll_fd[_index].itransfer); in cancel_io() 320 struct winfd usbi_create_fd(HANDLE handle, int access_mode, struct usbi_transfer *itransfer, cancel… in usbi_create_fd() argument 332 wfd.itransfer = itransfer; in usbi_create_fd()
|
D | haiku_usb_backend.cpp | 34 USBTransfer::USBTransfer(struct usbi_transfer *itransfer, USBDevice *device) in USBTransfer() argument 36 fUsbiTransfer = itransfer; in USBTransfer() 37 fLibusbTransfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in USBTransfer() 201 USBDeviceHandle::SubmitTransfer(struct usbi_transfer *itransfer) in SubmitTransfer() argument 203 USBTransfer *transfer = new USBTransfer(itransfer, fUSBDevice); in SubmitTransfer() 204 *((USBTransfer **)usbi_transfer_get_os_priv(itransfer)) = transfer; in SubmitTransfer()
|
D | poll_windows.h | 81 typedef int cancel_transfer(struct usbi_transfer *itransfer); 87 struct usbi_transfer *itransfer; // Associated transfer, or NULL if completed member
|
D | sunos_usb.c | 1022 sunos_submit_transfer(struct usbi_transfer *itransfer) in sunos_submit_transfer() argument 1028 transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in sunos_submit_transfer() 1072 sunos_cancel_transfer(struct usbi_transfer *itransfer) in sunos_cancel_transfer() argument 1081 tpriv = usbi_transfer_get_os_priv(itransfer); in sunos_cancel_transfer() 1083 transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in sunos_cancel_transfer() 1107 sunos_clear_transfer_priv(struct usbi_transfer *itransfer) in sunos_clear_transfer_priv() argument 1115 sunos_handle_transfer_completion(struct usbi_transfer *itransfer) in sunos_handle_transfer_completion() argument 1117 return usbi_handle_transfer_completion(itransfer, LIBUSB_TRANSFER_COMPLETED); in sunos_handle_transfer_completion()
|
D | windows_winusb.h | 115 int (*submit_bulk_transfer)(int sub_api, struct usbi_transfer *itransfer); 116 int (*submit_iso_transfer)(int sub_api, struct usbi_transfer *itransfer); 117 int (*submit_control_transfer)(int sub_api, struct usbi_transfer *itransfer); 118 int (*abort_control)(int sub_api, struct usbi_transfer *itransfer); 119 int (*abort_transfers)(int sub_api, struct usbi_transfer *itransfer); 120 int (*copy_transfer_data)(int sub_api, struct usbi_transfer *itransfer, uint32_t io_size);
|
/external/libusb/libusb/ |
D | io.c | 1266 struct usbi_transfer *itransfer = calloc(1, alloc_size); in libusb_alloc_transfer() local 1267 if (!itransfer) in libusb_alloc_transfer() 1270 itransfer->num_iso_packets = iso_packets; in libusb_alloc_transfer() 1271 usbi_mutex_init(&itransfer->lock); in libusb_alloc_transfer() 1272 transfer = USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in libusb_alloc_transfer() 1296 struct usbi_transfer *itransfer; in libusb_free_transfer() local 1304 itransfer = LIBUSB_TRANSFER_TO_USBI_TRANSFER(transfer); in libusb_free_transfer() 1305 usbi_mutex_destroy(&itransfer->lock); in libusb_free_transfer() 1306 free(itransfer); in libusb_free_transfer() 1471 struct usbi_transfer *itransfer = in libusb_submit_transfer() local [all …]
|
D | libusbi.h | 517 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer, 1021 int (*submit_transfer)(struct usbi_transfer *itransfer); 1029 int (*cancel_transfer)(struct usbi_transfer *itransfer); 1041 void (*clear_transfer_priv)(struct usbi_transfer *itransfer); 1101 int (*handle_transfer_completion)(struct usbi_transfer *itransfer);
|
D | core.c | 1340 struct usbi_transfer *itransfer; in do_close() local 1347 list_for_each_entry_safe(itransfer, tmp, &ctx->flying_transfers, list, struct usbi_transfer) { in do_close() 1349 USBI_TRANSFER_TO_LIBUSB_TRANSFER(itransfer); in do_close() 1354 usbi_mutex_lock(&itransfer->lock); in do_close() 1355 if (!(itransfer->state_flags & USBI_TRANSFER_DEVICE_DISAPPEARED)) { in do_close() 1358 if (itransfer->state_flags & USBI_TRANSFER_CANCELLING) in do_close() 1363 usbi_mutex_unlock(&itransfer->lock); in do_close() 1369 list_del(&itransfer->list); in do_close()
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_resource_texture.c | 795 struct i915_transfer *itransfer = (struct i915_transfer*)transfer; in i915_texture_transfer_unmap() local 796 struct i915_texture *tex = i915_texture(itransfer->b.resource); in i915_texture_transfer_unmap() 799 if (itransfer->staging_texture) in i915_texture_transfer_unmap() 800 tex = i915_texture(itransfer->staging_texture); in i915_texture_transfer_unmap() 804 if ((itransfer->staging_texture) && in i915_texture_transfer_unmap() 808 u_box_origin_2d(itransfer->b.box.width, itransfer->b.box.height, &sbox); in i915_texture_transfer_unmap() 809 pipe->resource_copy_region(pipe, itransfer->b.resource, itransfer->b.level, in i915_texture_transfer_unmap() 810 itransfer->b.box.x, itransfer->b.box.y, itransfer->b.box.z, in i915_texture_transfer_unmap() 811 itransfer->staging_texture, in i915_texture_transfer_unmap() 814 pipe_resource_reference(&itransfer->staging_texture, NULL); in i915_texture_transfer_unmap() [all …]
|
/external/libusb/include/libusb/ |
D | libusbi.h | 517 int usbi_handle_transfer_completion(struct usbi_transfer *itransfer, 1021 int (*submit_transfer)(struct usbi_transfer *itransfer); 1029 int (*cancel_transfer)(struct usbi_transfer *itransfer); 1041 void (*clear_transfer_priv)(struct usbi_transfer *itransfer); 1101 int (*handle_transfer_completion)(struct usbi_transfer *itransfer);
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_texture.c | 281 struct st_texture_image_transfer *itransfer = &stImage->transfer[z]; in st_MapTextureImage() local 284 unsigned stride = *rowStrideOut = itransfer->temp_stride = in st_MapTextureImage() 286 *mapOut = itransfer->temp_data = in st_MapTextureImage() 289 itransfer->map = map; in st_MapTextureImage() 316 struct st_texture_image_transfer *itransfer = &stImage->transfer[z]; in st_UnmapTextureImage() local 317 struct pipe_transfer *transfer = itransfer->transfer; in st_UnmapTextureImage() 323 _mesa_etc1_unpack_rgba8888(itransfer->map, transfer->stride, in st_UnmapTextureImage() 324 itransfer->temp_data, in st_UnmapTextureImage() 325 itransfer->temp_stride, in st_UnmapTextureImage() 329 _mesa_unpack_etc2_format(itransfer->map, transfer->stride, in st_UnmapTextureImage() [all …]
|