Lines Matching refs:wfd
2555 struct winfd wfd; in winusb_submit_control_transfer() local
2575 wfd = usbi_create_fd(winusb_handle, _O_RDONLY); in winusb_submit_control_transfer()
2577 if (wfd.fd < 0) { in winusb_submit_control_transfer()
2586 usbi_free_fd(wfd.fd); in winusb_submit_control_transfer()
2589 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusb_submit_control_transfer()
2590 wfd.overlapped->InternalHigh = 0; in winusb_submit_control_transfer()
2592 …if (!WinUsb_ControlTransfer(wfd.handle, *setup, transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE, size… in winusb_submit_control_transfer()
2595 usbi_free_fd(wfd.fd); in winusb_submit_control_transfer()
2599 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusb_submit_control_transfer()
2600 wfd.overlapped->InternalHigh = (DWORD)size; in winusb_submit_control_transfer()
2605 transfer_priv->pollable_fd = wfd; in winusb_submit_control_transfer()
2647 struct winfd wfd; in winusb_submit_bulk_transfer() local
2663 wfd = usbi_create_fd(winusb_handle, IS_XFERIN(transfer) ? _O_RDONLY : _O_WRONLY); in winusb_submit_bulk_transfer()
2665 if (wfd.fd < 0) { in winusb_submit_bulk_transfer()
2671 …ret = WinUsb_ReadPipe(wfd.handle, transfer->endpoint, transfer->buffer, transfer->length, NULL, wf… in winusb_submit_bulk_transfer()
2674 …ret = WinUsb_WritePipe(wfd.handle, transfer->endpoint, transfer->buffer, transfer->length, NULL, w… in winusb_submit_bulk_transfer()
2679 usbi_free_fd(wfd.fd); in winusb_submit_bulk_transfer()
2683 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusb_submit_bulk_transfer()
2684 wfd.overlapped->InternalHigh = (DWORD)transfer->length; in winusb_submit_bulk_transfer()
2687 transfer_priv->pollable_fd = wfd; in winusb_submit_bulk_transfer()
2774 struct winfd wfd; in winusb_reset_device() local
2783 for (wfd = handle_to_winfd(winusb_handle); wfd.fd > 0;) in winusb_reset_device()
2786 usbi_remove_pollfd(ctx, wfd.fd); in winusb_reset_device()
2787 usbi_free_fd(wfd.fd); in winusb_reset_device()
2788 wfd = handle_to_winfd(winusb_handle); in winusb_reset_device()