Lines Matching refs:Size
152 _In_ ULONG *Size, in x86BiosAllocateBuffer() argument
157 if (!x86BiosIsInitialized || (*Size > PAGE_SIZE)) in x86BiosAllocateBuffer()
171 *Size = PAGE_SIZE; in x86BiosAllocateBuffer()
207 _Out_writes_bytes_(Size) PVOID Buffer, in x86BiosReadMemory()
208 _In_ ULONG Size) in x86BiosReadMemory() argument
216 if (!x86BiosIsInitialized || ((Address + Size) > 0x100000)) in x86BiosReadMemory()
223 RtlCopyMemory(Buffer, x86BiosMemoryMapping + Address, Size); in x86BiosReadMemory()
234 _In_reads_bytes_(Size) PVOID Buffer, in x86BiosWriteMemory()
235 _In_ ULONG Size) in x86BiosWriteMemory() argument
243 if (!x86BiosIsInitialized || ((Address + Size) > 0x100000)) in x86BiosWriteMemory()
250 RtlCopyMemory(x86BiosMemoryMapping + Address, Buffer, Size); in x86BiosWriteMemory()
263 ULONG Size) in x86MemRead() argument
266 if (((ULONG64)Address + Size) < 0x100000) in x86MemRead()
268 RtlCopyMemory(Buffer, x86BiosMemoryMapping + Address, Size); in x86MemRead()
272 RtlFillMemory(Buffer, Size, 0xCC); in x86MemRead()
273 DPRINT1("x86MemRead: invalid read at 0x%lx (size 0x%lx)\n", Address, Size); in x86MemRead()
284 ULONG Size) in x86MemWrite() argument
287 if (((ULONG64)Address + Size) < 0x100000) in x86MemWrite()
289 RtlCopyMemory(x86BiosMemoryMapping + Address, Buffer, Size); in x86MemWrite()
293 DPRINT1("x86MemWrite: invalid write at 0x%lx (size 0x%lx)\n", Address, Size); in x86MemWrite()
301 UCHAR Size, in ValidatePort() argument
307 case 0x3C0: return (Size == 1) && IsWrite; in ValidatePort()
308 case 0x3C1: return (Size == 1) && !IsWrite; in ValidatePort()
309 case 0x3C2: return (Size == 1) && IsWrite; in ValidatePort()
311 case 0x3C5: return (Size <= 2); in ValidatePort()
312 case 0x3C7: return (Size == 1) && IsWrite; in ValidatePort()
313 case 0x3CC: return (Size == 1) && !IsWrite; in ValidatePort()
315 case 0x3CF: return (Size <= 2); in ValidatePort()
317 case 0x3D5: return (Size <= 2); in ValidatePort()
318 case 0x3C6: return (Size == 1); in ValidatePort()
319 case 0x3C8: return (Size == 1) && IsWrite; in ValidatePort()
320 case 0x3C9: return (Size == 1); in ValidatePort()
321 case 0x3DA: return (Size == 1) && !IsWrite; in ValidatePort()
325 case 0x402: return (Size == 1) && IsWrite; in ValidatePort()
328 case 0x1CE: return (Size == 1) && IsWrite; in ValidatePort()
329 case 0x1CF: return (Size == 1); in ValidatePort()
332 case 0x3B6: return (Size <= 2); in ValidatePort()
336 DPRINT1("Unknown port 0x%x, size %d, write %d\n", Port, Size, IsWrite); in ValidatePort()