Lines Matching refs:hfile
47 HANDLE hfile; member
56 HANDLE hfile; member
63 HANDLE hfile; member
86 ret = WriteFile(aiocb->hfile, aiocb->aio_iov[i].iov_base, in handle_aiocb_rw()
89 ret = ReadFile(aiocb->hfile, aiocb->aio_iov[i].iov_base, in handle_aiocb_rw()
137 if (!FlushFileBuffers(aiocb->hfile)) { in aio_worker()
151 static BlockAIOCB *paio_submit(BlockDriverState *bs, HANDLE hfile, in paio_submit() argument
158 acb->hfile = hfile; in paio_submit()
243 status = DeviceIoControl(s->hfile, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, in raw_probe_alignment()
397 s->hfile = CreateFile(filename, access_flags, in raw_open()
400 if (s->hfile == INVALID_HANDLE_VALUE) { in raw_open()
415 CloseHandle(s->hfile); in raw_open()
421 ret = win32_aio_attach(s->aio, s->hfile); in raw_open()
424 CloseHandle(s->hfile); in raw_open()
448 return win32_aio_submit(bs, s->aio, s->hfile, offset, bytes, qiov, in raw_aio_preadv()
451 return paio_submit(bs, s->hfile, offset, qiov, bytes, in raw_aio_preadv()
463 return win32_aio_submit(bs, s->aio, s->hfile, offset, bytes, qiov, in raw_aio_pwritev()
466 return paio_submit(bs, s->hfile, offset, qiov, bytes, in raw_aio_pwritev()
475 return paio_submit(bs, s->hfile, 0, NULL, 0, cb, opaque, QEMU_AIO_FLUSH); in raw_aio_flush()
488 CloseHandle(s->hfile); in raw_close()
515 dwPtrLow = SetFilePointer(s->hfile, low, &high, FILE_BEGIN); in raw_co_truncate()
520 if (SetEndOfFile(s->hfile) == 0) { in raw_co_truncate()
538 l.LowPart = GetFileSize(s->hfile, (PDWORD)&l.HighPart); in raw_co_getlength()
548 status = DeviceIoControl(s->hfile, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, in raw_co_getlength()
663 rs->hfile = CreateFile(state->bs->filename, access_flags, in raw_reopen_prepare()
667 if (rs->hfile == INVALID_HANDLE_VALUE) { in raw_reopen_prepare()
681 ret = win32_aio_attach(s->aio, rs->hfile); in raw_reopen_prepare()
684 CloseHandle(rs->hfile); in raw_reopen_prepare()
707 CloseHandle(s->hfile); in raw_reopen_commit()
708 s->hfile = rs->hfile; in raw_reopen_commit()
722 if (rs->hfile != INVALID_HANDLE_VALUE) { in raw_reopen_abort()
723 CloseHandle(rs->hfile); in raw_reopen_abort()
896 s->hfile = CreateFile(filename, access_flags, in hdev_open()
899 if (s->hfile == INVALID_HANDLE_VALUE) { in hdev_open()