Lines Matching refs:hFile
15 typedef BOOL (WINAPI *CANCELIOEX)(HANDLE hFile, LPOVERLAPPED lpOverlapped);
92 HANDLE hFile; in fio_windowsaio_init() local
94 hFile = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); in fio_windowsaio_init()
95 if (hFile == INVALID_HANDLE_VALUE) { in fio_windowsaio_init()
102 wd->iocp = hFile; in fio_windowsaio_init()
110 CloseHandle(hFile); in fio_windowsaio_init()
116 ctx->iocp = hFile; in fio_windowsaio_init()
196 f->hFile = CreateFile(f->file_name, access, sharemode, in fio_windowsaio_open_file()
199 if (f->hFile == INVALID_HANDLE_VALUE) { in fio_windowsaio_open_file()
211 if (CreateIoCompletionPort(f->hFile, wd->iocp, 0, 0) == NULL) { in fio_windowsaio_open_file()
226 if (f->hFile != INVALID_HANDLE_VALUE) { in fio_windowsaio_close_file()
227 if (!CloseHandle(f->hFile)) { in fio_windowsaio_close_file()
233 f->hFile = INVALID_HANDLE_VALUE; in fio_windowsaio_close_file()
325 success = WriteFile(io_u->file->hFile, io_u->xfer_buf, io_u->xfer_buflen, &iobytes, lpOvl); in fio_windowsaio_queue()
328 success = ReadFile(io_u->file->hFile, io_u->xfer_buf, io_u->xfer_buflen, &iobytes, lpOvl); in fio_windowsaio_queue()
333 success = FlushFileBuffers(io_u->file->hFile); in fio_windowsaio_queue()