Home
last modified time | relevance | path

Searched refs:transfer_priv (Results 1 – 3 of 3) sorted by relevance

/external/libusb/libusb/os/
Dwindows_usbdk.c538 struct usbdk_transfer_priv *transfer_priv = _usbdk_transfer_priv(itransfer); in windows_clear_transfer_priv() local
541 usbi_free_fd(&transfer_priv->pollable_fd); in windows_clear_transfer_priv()
544 safe_free(transfer_priv->IsochronousPacketsArray); in windows_clear_transfer_priv()
545 safe_free(transfer_priv->IsochronousResultsArray); in windows_clear_transfer_priv()
553 struct usbdk_transfer_priv *transfer_priv = _usbdk_transfer_priv(itransfer); in usbdk_do_control_transfer() local
567 transfer_priv->request.Buffer = (PVOID64)(uintptr_t)transfer->buffer; in usbdk_do_control_transfer()
568 transfer_priv->request.BufferLength = transfer->length; in usbdk_do_control_transfer()
569 transfer_priv->request.TransferType = ControlTransferType; in usbdk_do_control_transfer()
570 transfer_priv->pollable_fd = INVALID_WINFD; in usbdk_do_control_transfer()
574 …transResult = usbdk_helper.ReadPipe(priv->redirector_handle, &transfer_priv->request, wfd.overlapp… in usbdk_do_control_transfer()
[all …]
Dwince_usb.c543 struct wince_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in wince_clear_transfer_priv() local
544 struct winfd wfd = fd_to_winfd(transfer_priv->pollable_fd.fd); in wince_clear_transfer_priv()
549 usbi_free_fd(&transfer_priv->pollable_fd); in wince_clear_transfer_priv()
556 struct wince_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in wince_cancel_transfer() local
558 if (!UkwCancelTransfer(priv->dev, transfer_priv->pollable_fd.overlapped, UKW_TF_NO_WAIT)) in wince_cancel_transfer()
568 struct wince_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in wince_submit_control_or_bulk_transfer() local
577 transfer_priv->pollable_fd = INVALID_WINFD; in wince_submit_control_or_bulk_transfer()
599 transfer_priv->pollable_fd = wfd; in wince_submit_control_or_bulk_transfer()
618 usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, direction_in ? POLLIN : POLLOUT); in wince_submit_control_or_bulk_transfer()
652 …struct wince_transfer_priv *transfer_priv = (struct wince_transfer_priv*)usbi_transfer_get_os_priv… in wince_transfer_callback() local
[all …]
Dwindows_winusb.c639 struct windows_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in auto_release() local
646 if (handle_priv->autoclaim_count[transfer_priv->interface_number] > 0) { in auto_release()
647 handle_priv->autoclaim_count[transfer_priv->interface_number]--; in auto_release()
648 if (handle_priv->autoclaim_count[transfer_priv->interface_number] == 0) { in auto_release()
649 r = libusb_release_interface(dev_handle, transfer_priv->interface_number); in auto_release()
651 usbi_dbg("auto-released interface %d", transfer_priv->interface_number); in auto_release()
654 transfer_priv->interface_number, libusb_error_name((enum libusb_error)r)); in auto_release()
1896 struct windows_transfer_priv *transfer_priv = usbi_transfer_get_os_priv(itransfer); in windows_clear_transfer_priv() local
1898 usbi_free_fd(&transfer_priv->pollable_fd); in windows_clear_transfer_priv()
1899 safe_free(transfer_priv->hid_buffer); in windows_clear_transfer_priv()
[all …]