/device/linaro/bootloader/edk2/UefiCpuPkg/CpuIo2Smm/ |
D | CpuIo2Smm.c | 171 UINT8 *Uint8Buffer; in CpuMemoryServiceRead() local 182 for (Uint8Buffer = Buffer; Count > 0; Address += Stride, Uint8Buffer += Stride, Count--) { in CpuMemoryServiceRead() 184 *Uint8Buffer = MmioRead8 ((UINTN)Address); in CpuMemoryServiceRead() 186 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in CpuMemoryServiceRead() 188 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in CpuMemoryServiceRead() 190 *((UINT64 *)Uint8Buffer) = MmioRead64 ((UINTN)Address); in CpuMemoryServiceRead() 231 UINT8 *Uint8Buffer; in CpuMemoryServiceWrite() local 242 for (Uint8Buffer = Buffer; Count > 0; Address += Stride, Uint8Buffer += Stride, Count--) { in CpuMemoryServiceWrite() 244 MmioWrite8 ((UINTN)Address, *Uint8Buffer); in CpuMemoryServiceWrite() 246 MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer)); in CpuMemoryServiceWrite() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuIo2Dxe/ |
D | CpuIo2Dxe.c | 240 UINT8 *Uint8Buffer; in CpuMemoryServiceRead() local 253 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { in CpuMemoryServiceRead() 255 *Uint8Buffer = MmioRead8 ((UINTN)Address); in CpuMemoryServiceRead() 257 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in CpuMemoryServiceRead() 259 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in CpuMemoryServiceRead() 261 *((UINT64 *)Uint8Buffer) = MmioRead64 ((UINTN)Address); in CpuMemoryServiceRead() 320 UINT8 *Uint8Buffer; in CpuMemoryServiceWrite() local 333 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { in CpuMemoryServiceWrite() 335 MmioWrite8 ((UINTN)Address, *Uint8Buffer); in CpuMemoryServiceWrite() 337 MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer)); in CpuMemoryServiceWrite() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/CpuIoDxe/ |
D | CpuIo.c | 240 UINT8 *Uint8Buffer; in CpuMemoryServiceRead() local 253 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { in CpuMemoryServiceRead() 255 *Uint8Buffer = MmioRead8 ((UINTN)Address); in CpuMemoryServiceRead() 257 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in CpuMemoryServiceRead() 259 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in CpuMemoryServiceRead() 261 *((UINT64 *)Uint8Buffer) = MmioRead64 ((UINTN)Address); in CpuMemoryServiceRead() 320 UINT8 *Uint8Buffer; in CpuMemoryServiceWrite() local 333 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { in CpuMemoryServiceWrite() 335 MmioWrite8 ((UINTN)Address, *Uint8Buffer); in CpuMemoryServiceWrite() 337 MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer)); in CpuMemoryServiceWrite() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuIoPei/ |
D | CpuIoPei.c | 217 UINT8 *Uint8Buffer; in CpuMemoryServiceRead() local 231 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { in CpuMemoryServiceRead() 233 *Uint8Buffer = MmioRead8 ((UINTN)Address); in CpuMemoryServiceRead() 236 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in CpuMemoryServiceRead() 238 WriteUnaligned16 ((UINT16 *)Uint8Buffer, MmioRead16 ((UINTN)Address)); in CpuMemoryServiceRead() 242 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in CpuMemoryServiceRead() 244 WriteUnaligned32 ((UINT32 *)Uint8Buffer, MmioRead32 ((UINTN)Address)); in CpuMemoryServiceRead() 248 *((UINT64 *)Uint8Buffer) = MmioRead64 ((UINTN)Address); in CpuMemoryServiceRead() 250 WriteUnaligned64 ((UINT64 *)Uint8Buffer, MmioRead64 ((UINTN)Address)); in CpuMemoryServiceRead() 291 UINT8 *Uint8Buffer; in CpuMemoryServiceWrite() local [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/PciHostBridgeDxe/ |
D | PciRootBridgeIo.c | 1114 UINT8 *Uint8Buffer; in RootBridgeIoMemRW() local 1125 for (Uint8Buffer = Buffer; in RootBridgeIoMemRW() 1127 Address += InStride, Uint8Buffer += OutStride, Count--) { in RootBridgeIoMemRW() 1131 MmioWrite8 ((UINTN)Address, *Uint8Buffer); in RootBridgeIoMemRW() 1134 MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer)); in RootBridgeIoMemRW() 1137 MmioWrite32 ((UINTN)Address, *((UINT32 *)Uint8Buffer)); in RootBridgeIoMemRW() 1140 MmioWrite64 ((UINTN)Address, *((UINT64 *)Uint8Buffer)); in RootBridgeIoMemRW() 1153 *Uint8Buffer = MmioRead8 ((UINTN)Address); in RootBridgeIoMemRW() 1156 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in RootBridgeIoMemRW() 1159 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in RootBridgeIoMemRW() [all …]
|
/device/linaro/bootloader/edk2/ArmVirtPkg/PciHostBridgeDxe/ |
D | PciRootBridgeIo.c | 903 UINT8 *Uint8Buffer; in RootBridgeIoMemRW() local 913 for (Uint8Buffer = Buffer; Count > 0; Address += InStride, Uint8Buffer += OutStride, Count--) { in RootBridgeIoMemRW() 917 MmioWrite8 ((UINTN)Address, *Uint8Buffer); in RootBridgeIoMemRW() 920 MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer)); in RootBridgeIoMemRW() 923 MmioWrite32 ((UINTN)Address, *((UINT32 *)Uint8Buffer)); in RootBridgeIoMemRW() 926 MmioWrite64 ((UINTN)Address, *((UINT64 *)Uint8Buffer)); in RootBridgeIoMemRW() 939 *Uint8Buffer = MmioRead8 ((UINTN)Address); in RootBridgeIoMemRW() 942 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in RootBridgeIoMemRW() 945 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in RootBridgeIoMemRW() 948 *((UINT64 *)Uint8Buffer) = MmioRead64 ((UINTN)Address); in RootBridgeIoMemRW() [all …]
|
/device/linaro/bootloader/edk2/PcAtChipsetPkg/PciHostBridgeDxe/ |
D | PciRootBridgeIo.c | 1114 UINT8 *Uint8Buffer; in RootBridgeIoMemRW() local 1125 for (Uint8Buffer = Buffer; in RootBridgeIoMemRW() 1127 Address += InStride, Uint8Buffer += OutStride, Count--) { in RootBridgeIoMemRW() 1131 MmioWrite8 ((UINTN)Address, *Uint8Buffer); in RootBridgeIoMemRW() 1134 MmioWrite16 ((UINTN)Address, *((UINT16 *)Uint8Buffer)); in RootBridgeIoMemRW() 1137 MmioWrite32 ((UINTN)Address, *((UINT32 *)Uint8Buffer)); in RootBridgeIoMemRW() 1140 MmioWrite64 ((UINTN)Address, *((UINT64 *)Uint8Buffer)); in RootBridgeIoMemRW() 1153 *Uint8Buffer = MmioRead8 ((UINTN)Address); in RootBridgeIoMemRW() 1156 *((UINT16 *)Uint8Buffer) = MmioRead16 ((UINTN)Address); in RootBridgeIoMemRW() 1159 *((UINT32 *)Uint8Buffer) = MmioRead32 ((UINTN)Address); in RootBridgeIoMemRW() [all …]
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/ |
D | SerialIo.c | 635 UINT8 *Uint8Buffer; in SerialRead() local 654 Uint8Buffer = (UINT8 *)Buffer; in SerialRead() 659 *Uint8Buffer = (UINT8)(mLoopbackBuffer & 0xff); in SerialRead() 669 *Uint8Buffer = *Data8; in SerialRead() 670 Uint8Buffer ++; in SerialRead() 697 *Uint8Buffer = *Data8; in SerialRead() 698 Uint8Buffer ++; in SerialRead() 701 *BufferSize = (UINTN)Uint8Buffer - (UINTN)Buffer; in SerialRead()
|