Lines Matching full:overlap
38 OVERLAPPED overlap; member
431 if ((ctx->overlap.hEvent = CreateEventA(NULL, FALSE, FALSE, in fido_hid_open()
453 if (ctx->overlap.hEvent != NULL) { in fido_hid_close()
456 if (CancelIoEx(ctx->dev, &ctx->overlap) == 0) in fido_hid_close()
460 CloseHandle(ctx->overlap.hEvent); in fido_hid_close()
490 ResetEvent(ctx->overlap.hEvent); in fido_hid_read()
492 &ctx->overlap) == 0 && GetLastError() != ERROR_IO_PENDING) { in fido_hid_read()
500 if (ms > -1 && WaitForSingleObject(ctx->overlap.hEvent, in fido_hid_read()
506 if (GetOverlappedResult(ctx->dev, &ctx->overlap, &n, TRUE) == 0) { in fido_hid_read()
527 OVERLAPPED overlap; in fido_hid_write() local
530 memset(&overlap, 0, sizeof(overlap)); in fido_hid_write()
537 if (WriteFile(ctx->dev, buf, (DWORD)len, NULL, &overlap) == 0 && in fido_hid_write()
543 if (GetOverlappedResult(ctx->dev, &overlap, &n, TRUE) == 0) { in fido_hid_write()