Home
last modified time | relevance | path

Searched refs:pollable_fd (Results 1 – 7 of 7) sorted by relevance

/external/libusb/libusb/os/
Dwindows_usbdk.c80 struct winfd pollable_fd; member
541 usbi_free_fd(&transfer_priv->pollable_fd); in windows_clear_transfer_priv()
570 transfer_priv->pollable_fd = INVALID_WINFD; in usbdk_do_control_transfer()
592 transfer_priv->pollable_fd = wfd; in usbdk_do_control_transfer()
593 usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, POLLIN); in usbdk_do_control_transfer()
624 transfer_priv->pollable_fd = INVALID_WINFD; in usbdk_do_bulk_transfer()
650 transfer_priv->pollable_fd = wfd; in usbdk_do_bulk_transfer()
651 usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, IS_XFERIN(transfer) ? POLLIN : POLLOUT); in usbdk_do_bulk_transfer()
690 transfer_priv->pollable_fd = INVALID_WINFD; in usbdk_do_iso_transfer()
721 transfer_priv->pollable_fd = wfd; in usbdk_do_iso_transfer()
[all …]
Dwince_usb.c544 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()
558 if (!UkwCancelTransfer(priv->dev, transfer_priv->pollable_fd.overlapped, UKW_TF_NO_WAIT)) in wince_cancel_transfer()
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()
785 if (transfer_priv->pollable_fd.fd == fds[i].fd) { in wince_handle_events()
792 if (found && HasOverlappedIoCompleted(transfer_priv->pollable_fd.overlapped)) { in wince_handle_events()
793 io_result = (DWORD)transfer_priv->pollable_fd.overlapped->Internal; in wince_handle_events()
794 io_size = (DWORD)transfer_priv->pollable_fd.overlapped->InternalHigh; in wince_handle_events()
[all …]
Dwindows_nt_common.c544 struct winfd *pollable_fd = NULL; in windows_handle_events() local
563 pollable_fd = windows_get_fd(transfer); in windows_handle_events()
564 if (pollable_fd->fd == fds[i].fd) { in windows_handle_events()
572 windows_get_overlapped_result(transfer, pollable_fd, &io_result, &io_size); in windows_handle_events()
574 usbi_remove_pollfd(ctx, pollable_fd->fd); in windows_handle_events()
Dwindows_nt_common.h56 void windows_get_overlapped_result(struct usbi_transfer *transfer, struct winfd *pollable_fd, DWORD…
Dwindows_winusb.c1898 usbi_free_fd(&transfer_priv->pollable_fd); in windows_clear_transfer_priv()
1916 usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, in submit_bulk_transfer()
1934 usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, in submit_iso_transfer()
1952 usbi_add_pollfd(ctx, transfer_priv->pollable_fd.fd, POLLIN); in submit_control_transfer()
2024 return &transfer_priv->pollable_fd; in windows_get_fd()
2027 void windows_get_overlapped_result(struct usbi_transfer *transfer, struct winfd *pollable_fd, DWORD… in windows_get_overlapped_result() argument
2029 if (HasOverlappedIoCompletedSync(pollable_fd->overlapped)) { in windows_get_overlapped_result()
2031 *io_size = (DWORD)pollable_fd->overlapped->InternalHigh; in windows_get_overlapped_result()
2033 else if (GetOverlappedResult(pollable_fd->handle, pollable_fd->overlapped, io_size, false)) { in windows_get_overlapped_result()
2716 transfer_priv->pollable_fd = INVALID_WINFD; in winusbx_submit_control_transfer()
[all …]
Dwince_usb.h123 struct winfd pollable_fd; member
Dwindows_winusb.h291 struct winfd pollable_fd; member