ReactOS 0.4.16-dev-297-gc569aee
|
#include "platform.h"
Go to the source code of this file.
Classes | |
struct | _WCACHE_ERROR_CONTEXT |
struct | _W_CACHE_ENTRY |
struct | _W_CACHE_FRAME |
struct | _W_CACHE |
Definition at line 115 of file wcache_lib.h.
#define MAX_TRIES_FOR_NA 3 |
Definition at line 116 of file wcache_lib.h.
#define PH_TMP_BUFFER 1 |
Definition at line 131 of file wcache_lib.h.
#define WCACHE_ADDR_MASK 0xfffffff8 |
Definition at line 118 of file wcache_lib.h.
#define WCACHE_BLOCK_BAD 0x04 |
Definition at line 56 of file wcache_lib.h.
#define WCACHE_BLOCK_USED 0x01 |
Definition at line 54 of file wcache_lib.h.
#define WCACHE_BLOCK_ZERO 0x02 |
Definition at line 55 of file wcache_lib.h.
#define WCACHE_BOUND_CHECKS |
Definition at line 20 of file wcache_lib.h.
#define WCACHE_CACHE_WHOLE_PACKET 0x01 |
Definition at line 191 of file wcache_lib.h.
#define WCACHE_CHAINED_IO 0x04 |
Definition at line 193 of file wcache_lib.h.
#define WCACHE_DO_NOT_COMPARE 0x02 |
Definition at line 192 of file wcache_lib.h.
#define WCACHE_ERROR_INTERNAL 0x0003 |
Definition at line 68 of file wcache_lib.h.
#define WCACHE_ERROR_READ 0x0001 |
Definition at line 66 of file wcache_lib.h.
#define WCACHE_ERROR_WRITE 0x0002 |
Definition at line 67 of file wcache_lib.h.
#define WCACHE_FLAG_BAD 0x00000004 |
Definition at line 122 of file wcache_lib.h.
#define WCACHE_FLAG_MASK 0x00000007 |
Definition at line 119 of file wcache_lib.h.
#define WCACHE_FLAG_MODIFIED 0x00000001 |
Definition at line 120 of file wcache_lib.h.
#define WCACHE_FLAG_ZERO 0x00000002 |
Definition at line 121 of file wcache_lib.h.
#define WCACHE_INVALID_FLAGS (0xffffffff) |
Definition at line 205 of file wcache_lib.h.
Definition at line 189 of file wcache_lib.h.
#define WCACHE_MARK_BAD_BLOCKS 0x08 |
Definition at line 194 of file wcache_lib.h.
#define WCACHE_MODE_EWR 0x00000004 |
Definition at line 128 of file wcache_lib.h.
#define WCACHE_MODE_MAX WCACHE_MODE_RAM |
Definition at line 129 of file wcache_lib.h.
#define WCACHE_MODE_R 0x00000002 |
Definition at line 126 of file wcache_lib.h.
#define WCACHE_MODE_RAM 0x00000003 |
Definition at line 127 of file wcache_lib.h.
#define WCACHE_MODE_ROM 0x00000000 |
Definition at line 124 of file wcache_lib.h.
#define WCACHE_MODE_RW 0x00000001 |
Definition at line 125 of file wcache_lib.h.
#define WCACHE_NO_WRITE_THROUGH 0x20 |
Definition at line 196 of file wcache_lib.h.
Definition at line 71 of file wcache_lib.h.
#define WCACHE_RO_BAD_BLOCKS 0x10 |
Definition at line 195 of file wcache_lib.h.
#define WCACHE_VALID_FLAGS |
Definition at line 198 of file wcache_lib.h.
Definition at line 70 of file wcache_lib.h.
Definition at line 58 of file wcache_lib.h.
typedef OSSTATUS(* PREAD_BLOCK) (IN PVOID Context, IN PVOID Buffer, IN SIZE_T Length, IN lba_t Lba, OUT PSIZE_T ReadBytes, IN uint32 Flags) |
Definition at line 29 of file wcache_lib.h.
typedef OSSTATUS(* PREAD_BLOCK_ASYNC) (IN PVOID Context, IN PVOID WContext, IN PVOID Buffer, IN SIZE_T Length, IN lba_t Lba, OUT PSIZE_T ReadBytes) |
Definition at line 44 of file wcache_lib.h.
typedef OSSTATUS(* PUPDATE_RELOC) (IN PVOID Context, IN lba_t Lba, IN PULONG RelocTab, IN ULONG BCount) |
Definition at line 61 of file wcache_lib.h.
typedef struct _W_CACHE_ENTRY * PW_CACHE_ENTRY |
typedef struct _W_CACHE_FRAME * PW_CACHE_FRAME |
Definition at line 93 of file wcache_lib.h.
typedef struct _WCACHE_ERROR_CONTEXT * PWCACHE_ERROR_CONTEXT |
typedef OSSTATUS(* PWRITE_BLOCK) (IN PVOID Context, IN PVOID Buffer, IN SIZE_T Length, IN lba_t Lba, OUT PSIZE_T WrittenBytes, IN uint32 Flags) |
Definition at line 22 of file wcache_lib.h.
typedef OSSTATUS(* PWRITE_BLOCK_ASYNC) (IN PVOID Context, IN PVOID WContext, IN PVOID Buffer, IN SIZE_T Length, IN lba_t Lba, OUT PSIZE_T WrittenBytes, IN BOOLEAN FreeBuffer) |
Definition at line 36 of file wcache_lib.h.
typedef struct _W_CACHE_ENTRY W_CACHE_ENTRY |
typedef struct _W_CACHE_FRAME W_CACHE_FRAME |
Definition at line 3635 of file wcache_lib.cpp.
Referenced by UDFMountVolume(), and UDFVerifyVolume().
Definition at line 3586 of file wcache_lib.cpp.
Referenced by WCacheUpdatePacket().
OSSTATUS WCacheDirect__ | ( | IN PW_CACHE | Cache, |
IN PVOID | Context, | ||
IN lba_t | Lba, | ||
IN BOOLEAN | Modified, | ||
OUT PCHAR * | CachedBlock, | ||
IN BOOLEAN | CachedOnly | ||
) |
Definition at line 2949 of file wcache_lib.cpp.
Referenced by UDFWriteInSector().
Definition at line 3520 of file wcache_lib.cpp.
Referenced by UDFMarkSpaceAsXXXNoProtect_().
Definition at line 3083 of file wcache_lib.cpp.
Referenced by UDFCommonRead(), UDFCommonWrite(), UDFIsExtentCached(), UDFVWorkItem(), and UDFWriteInSector().
Definition at line 2560 of file wcache_lib.cpp.
Referenced by UDFEjectReqWaiter(), UDFFlushLogicalVolume(), UDFLoadPartDesc(), UDFRecordVAT(), UDFReleaseVCB(), UDFUmount__(), and UDFVerifyVolume().
Definition at line 2899 of file wcache_lib.cpp.
Referenced by UDFCommonDeviceControl(), UDFEjectReqWaiter(), UDFFlushLogicalVolume(), UDFUmount__(), and UDFUpdateLogicalVolInt().
Definition at line 3441 of file wcache_lib.cpp.
Definition at line 3455 of file wcache_lib.cpp.
Referenced by UDFRecordVAT(), and UDFUmount__().
OSSTATUS WCacheInit__ | ( | IN PW_CACHE | Cache, |
IN ULONG | MaxFrames, | ||
IN ULONG | MaxBlocks, | ||
IN SIZE_T | MaxBytesToRead, | ||
IN ULONG | PacketSizeSh, | ||
IN ULONG | BlockSizeSh, | ||
IN ULONG | BlocksPerFrameSh, | ||
IN lba_t | FirstLba, | ||
IN lba_t | LastLba, | ||
IN ULONG | Mode, | ||
IN ULONG | Flags, | ||
IN ULONG | FramesToKeepFree, | ||
IN PWRITE_BLOCK | WriteProc, | ||
IN PREAD_BLOCK | ReadProc, | ||
IN PWRITE_BLOCK_ASYNC | WriteProcAsync, | ||
IN PREAD_BLOCK_ASYNC | ReadProcAsync, | ||
IN PCHECK_BLOCK | CheckUsedProc, | ||
IN PUPDATE_RELOC | UpdateRelocProc, | ||
IN PWC_ERROR_HANDLER | ErrorHandlerProc | ||
) |
Definition at line 116 of file wcache_lib.cpp.
Referenced by UDFMountVolume(), and UDFVerifyVolume().
WCacheGetBadFlag(block_array, i)
(Cache->CheckUsedProc(Context, Lba) & WCACHE_BLOCK_BAD)
Definition at line 3127 of file wcache_lib.cpp.
Definition at line 2817 of file wcache_lib.cpp.
Referenced by UDFVerifyVolume(), and UDFWriteInSector().
Definition at line 2590 of file wcache_lib.cpp.
Referenced by UDFFindAnchor().
OSSTATUS WCacheReadBlocks__ | ( | IN PW_CACHE | Cache, |
IN PVOID | Context, | ||
IN PCHAR | Buffer, | ||
IN lba_t | Lba, | ||
IN ULONG | BCount, | ||
OUT PSIZE_T | ReadBytes, | ||
IN BOOLEAN | CachedOnly | ||
) |
Definition at line 2012 of file wcache_lib.cpp.
Referenced by WCacheReadBlocks__().
Definition at line 2768 of file wcache_lib.cpp.
Referenced by UDFDoDismountSequence(), UDFReleaseVCB(), and UDFVerifyVolume().
Definition at line 3426 of file wcache_lib.cpp.
Referenced by UDFLoadPartDesc(), UDFMountVolume(), and UDFVerifyVolume().
Definition at line 3101 of file wcache_lib.cpp.
Referenced by UDFIsExtentCached(), and UDFVWorkItem().
Definition at line 3470 of file wcache_lib.cpp.
Referenced by UDFRecordVAT().
OSSTATUS WCacheWriteBlocks__ | ( | IN PW_CACHE | Cache, |
IN PVOID | Context, | ||
IN PCHAR | Buffer, | ||
IN lba_t | Lba, | ||
IN ULONG | BCount, | ||
OUT PSIZE_T | WrittenBytes, | ||
IN BOOLEAN | CachedOnly | ||
) |
Definition at line 2281 of file wcache_lib.cpp.
Referenced by UDFWriteSectors(), and WCacheWriteBlocks__().