/device/linaro/bootloader/edk2/MdePkg/Library/DxeIoLibCpuIo2/ |
D | IoHighLevel.c | 42 IN UINTN Port, in IoOr8() argument 46 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 70 IN UINTN Port, in IoAnd8() argument 74 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 100 IN UINTN Port, in IoAndThenOr8() argument 105 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 131 IN UINTN Port, in IoBitFieldRead8() argument 136 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 166 IN UINTN Port, in IoBitFieldWrite8() argument 173 Port, in IoBitFieldWrite8() [all …]
|
D | IoLib.c | 66 IN UINTN Port, in IoReadWorker() argument 73 Status = mCpuIo->Io.Read (mCpuIo, Width, Port, 1, &Data); in IoReadWorker() 97 IN UINTN Port, in IoWriteWorker() argument 104 Status = mCpuIo->Io.Write (mCpuIo, Width, Port, 1, &Data); in IoWriteWorker() 188 IN UINTN Port in IoRead8() argument 191 return (UINT8)IoReadWorker (Port, EfiCpuIoWidthUint8); in IoRead8() 212 IN UINTN Port, in IoWrite8() argument 216 return (UINT8)IoWriteWorker (Port, EfiCpuIoWidthUint8, Value); in IoWrite8() 238 IN UINTN Port in IoRead16() argument 244 ASSERT ((Port & 1) == 0); in IoRead16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmIoLibSmmCpuIo2/ |
D | IoHighLevel.c | 47 IN UINTN Port, in IoOr8() argument 51 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 75 IN UINTN Port, in IoAnd8() argument 79 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 105 IN UINTN Port, in IoAndThenOr8() argument 110 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 136 IN UINTN Port, in IoBitFieldRead8() argument 141 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 171 IN UINTN Port, in IoBitFieldWrite8() argument 178 Port, in IoBitFieldWrite8() [all …]
|
D | IoLib.c | 36 IN UINTN Port, in IoReadWorker() argument 43 Status = gSmst->SmmIo.Io.Read (&gSmst->SmmIo, Width, Port, 1, &Data); in IoReadWorker() 67 IN UINTN Port, in IoWriteWorker() argument 74 Status = gSmst->SmmIo.Io.Write (&gSmst->SmmIo, Width, Port, 1, &Data); in IoWriteWorker() 158 IN UINTN Port in IoRead8() argument 161 return (UINT8)IoReadWorker (Port, SMM_IO_UINT8); in IoRead8() 182 IN UINTN Port, in IoWrite8() argument 186 return (UINT8)IoWriteWorker (Port, SMM_IO_UINT8, Value); in IoWrite8() 208 IN UINTN Port in IoRead16() argument 214 ASSERT ((Port & 1) == 0); in IoRead16() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/DxeIoLibCpuIo/ |
D | IoHighLevel.c | 50 IN UINTN Port, in IoOr8() argument 54 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 78 IN UINTN Port, in IoAnd8() argument 82 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 108 IN UINTN Port, in IoAndThenOr8() argument 113 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 139 IN UINTN Port, in IoBitFieldRead8() argument 144 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 174 IN UINTN Port, in IoBitFieldWrite8() argument 181 Port, in IoBitFieldWrite8() [all …]
|
D | IoLib.c | 71 IN UINTN Port, in IoReadWorker() argument 78 Status = mCpuIo->Io.Read (mCpuIo, Width, Port, 1, &Data); in IoReadWorker() 102 IN UINTN Port, in IoWriteWorker() argument 109 Status = mCpuIo->Io.Write (mCpuIo, Width, Port, 1, &Data); in IoWriteWorker() 193 IN UINTN Port in IoRead8() argument 196 return (UINT8)IoReadWorker (Port, EfiCpuIoWidthUint8); in IoRead8() 217 IN UINTN Port, in IoWrite8() argument 221 return (UINT8)IoWriteWorker (Port, EfiCpuIoWidthUint8, Value); in IoWrite8() 243 IN UINTN Port in IoRead16() argument 249 ASSERT ((Port & 1) == 0); in IoRead16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiIoLibCpuIo/ |
D | IoHighLevel.c | 47 IN UINTN Port, in IoOr8() argument 51 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 75 IN UINTN Port, in IoAnd8() argument 79 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 105 IN UINTN Port, in IoAndThenOr8() argument 110 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 136 IN UINTN Port, in IoBitFieldRead8() argument 141 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 170 IN UINTN Port, in IoBitFieldWrite8() argument 177 Port, in IoBitFieldWrite8() [all …]
|
D | IoLib.c | 40 IN UINTN Port in IoRead8() argument 50 return CpuIo->IoRead8 (PeiServices, CpuIo, (UINT64) Port); in IoRead8() 71 IN UINTN Port, in IoWrite8() argument 82 CpuIo->IoWrite8 (PeiServices, CpuIo, (UINT64) Port, Value); in IoWrite8() 104 IN UINTN Port in IoRead16() argument 116 ASSERT ((Port & 1) == 0); in IoRead16() 117 return CpuIo->IoRead16 (PeiServices, CpuIo, (UINT64) Port); in IoRead16() 139 IN UINTN Port, in IoWrite16() argument 152 ASSERT ((Port & 1) == 0); in IoWrite16() 153 CpuIo->IoWrite16 (PeiServices, CpuIo, (UINT64) Port, Value); in IoWrite16() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeIoLibCpuIo/ |
D | IoHighLevel.c | 46 IN UINTN Port, in IoOr8() argument 50 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 74 IN UINTN Port, in IoAnd8() argument 78 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 104 IN UINTN Port, in IoAndThenOr8() argument 109 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 135 IN UINTN Port, in IoBitFieldRead8() argument 140 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 169 IN UINTN Port, in IoBitFieldWrite8() argument 176 Port, in IoBitFieldWrite8() [all …]
|
D | IoLib.c | 74 IN UINTN Port, in IoReadWorker() argument 81 Status = mCpuIo->Io.Read (mCpuIo, Width, Port, 1, &Data); in IoReadWorker() 105 IN UINTN Port, in IoWriteWorker() argument 112 Status = mCpuIo->Io.Write (mCpuIo, Width, Port, 1, &Data); in IoWriteWorker() 195 IN UINTN Port in IoRead8() argument 198 return (UINT8)IoReadWorker (Port, EfiCpuIoWidthUint8); in IoRead8() 219 IN UINTN Port, in IoWrite8() argument 223 return (UINT8)IoWriteWorker (Port, EfiCpuIoWidthUint8, Value); in IoWrite8() 243 IN UINTN Port in IoRead16() argument 249 ASSERT ((Port & 1) == 0); in IoRead16() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/ |
D | IoHighLevel.c | 55 IN UINTN Port, in IoOr8() argument 59 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 83 IN UINTN Port, in IoAnd8() argument 87 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 113 IN UINTN Port, in IoAndThenOr8() argument 118 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 144 IN UINTN Port, in IoBitFieldRead8() argument 149 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 178 IN UINTN Port, in IoBitFieldWrite8() argument 185 Port, in IoBitFieldWrite8() [all …]
|
D | IoLibGcc.c | 235 IN UINTN Port in IoRead8() argument 240 __asm__ __volatile__ ("inb %w1,%b0" : "=a" (Data) : "d" ((UINT16)Port)); in IoRead8() 263 IN UINTN Port, in IoWrite8() argument 267 __asm__ __volatile__ ("outb %b0,%w1" : : "a" (Value), "d" ((UINT16)Port)); in IoWrite8() 289 IN UINTN Port in IoRead16() argument 294 ASSERT ((Port & 1) == 0); in IoRead16() 295 __asm__ __volatile__ ("inw %w1,%w0" : "=a" (Data) : "d" ((UINT16)Port)); in IoRead16() 318 IN UINTN Port, in IoWrite16() argument 322 ASSERT ((Port & 1) == 0); in IoWrite16() 323 __asm__ __volatile__ ("outw %w0,%w1" : : "a" (Value), "d" ((UINT16)Port)); in IoWrite16() [all …]
|
D | IoLibIcc.c | 226 IN UINTN Port in IoRead8() argument 232 mov dx, word ptr [Port] in IoRead8() 258 IN UINTN Port, in IoWrite8() argument 264 mov dx, word ptr [Port] in IoWrite8() 287 IN UINTN Port in IoRead16() argument 292 ASSERT ((Port & 1) == 0); in IoRead16() 295 mov dx, word ptr [Port] in IoRead16() 321 IN UINTN Port, in IoWrite16() argument 325 ASSERT ((Port & 1) == 0); in IoWrite16() 329 mov dx, word ptr [Port] in IoWrite16() [all …]
|
D | IoLibMsc.c | 78 IN UINTN Port in GlueIoRead8() argument 84 Value = (UINT8)_inp ((UINT16)Port); in GlueIoRead8() 107 IN UINTN Port, in GlueIoWrite8() argument 112 (UINT8)_outp ((UINT16)Port, Value); in GlueIoWrite8() 134 IN UINTN Port in GlueIoRead16() argument 139 ASSERT ((Port & 1) == 0); in GlueIoRead16() 141 Value = _inpw ((UINT16)Port); in GlueIoRead16() 164 IN UINTN Port, in GlueIoWrite16() argument 168 ASSERT ((Port & 1) == 0); in GlueIoWrite16() 170 _outpw ((UINT16)Port, Value); in GlueIoWrite16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseIoLibIntrinsic/ |
D | IoHighLevel.c | 47 IN UINTN Port, in IoOr8() argument 51 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8() 75 IN UINTN Port, in IoAnd8() argument 79 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8() 105 IN UINTN Port, in IoAndThenOr8() argument 110 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 136 IN UINTN Port, in IoBitFieldRead8() argument 141 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 170 IN UINTN Port, in IoBitFieldWrite8() argument 177 Port, in IoBitFieldWrite8() [all …]
|
D | IoLibGcc.c | 45 IN UINTN Port in IoRead8() argument 50 __asm__ __volatile__ ("inb %w1,%b0" : "=a" (Data) : "d" ((UINT16)Port)); in IoRead8() 73 IN UINTN Port, in IoWrite8() argument 77 __asm__ __volatile__ ("outb %b0,%w1" : : "a" (Value), "d" ((UINT16)Port)); in IoWrite8() 100 IN UINTN Port in IoRead16() argument 105 ASSERT ((Port & 1) == 0); in IoRead16() 106 __asm__ __volatile__ ("inw %w1,%w0" : "=a" (Data) : "d" ((UINT16)Port)); in IoRead16() 130 IN UINTN Port, in IoWrite16() argument 134 ASSERT ((Port & 1) == 0); in IoWrite16() 135 __asm__ __volatile__ ("outw %w0,%w1" : : "a" (Value), "d" ((UINT16)Port)); in IoWrite16() [all …]
|
D | IoLibMsc.c | 71 IN UINTN Port in IoRead8() argument 77 Value = (UINT8)_inp ((UINT16)Port); in IoRead8() 100 IN UINTN Port, in IoWrite8() argument 105 (UINT8)_outp ((UINT16)Port, Value); in IoWrite8() 128 IN UINTN Port in IoRead16() argument 133 ASSERT ((Port & 1) == 0); in IoRead16() 135 Value = _inpw ((UINT16)Port); in IoRead16() 159 IN UINTN Port, in IoWrite16() argument 163 ASSERT ((Port & 1) == 0); in IoWrite16() 165 _outpw ((UINT16)Port, Value); in IoWrite16() [all …]
|
D | IoLibIcc.c | 35 IN UINTN Port in IoRead8() argument 41 mov dx, word ptr [Port] in IoRead8() 67 IN UINTN Port, in IoWrite8() argument 73 mov dx, word ptr [Port] in IoWrite8() 97 IN UINTN Port in IoRead16() argument 102 ASSERT ((Port & 1) == 0); in IoRead16() 105 mov dx, word ptr [Port] in IoRead16() 132 IN UINTN Port, in IoWrite16() argument 136 ASSERT ((Port & 1) == 0); in IoWrite16() 140 mov dx, word ptr [Port] in IoWrite16() [all …]
|
D | IoLibIpf.c | 36 IN UINTN Port in InternalGetMemoryMapAddress() argument 42 Address = MAP_PORT_BASE_TO_MEM (Port); in InternalGetMemoryMapAddress() 71 IN UINTN Port in IoRead8() argument 74 return MmioRead8 (InternalGetMemoryMapAddress (Port)); in IoRead8() 95 IN UINTN Port in IoRead16() argument 98 return MmioRead16 (InternalGetMemoryMapAddress (Port)); in IoRead16() 119 IN UINTN Port in IoRead32() argument 122 return MmioRead32 (InternalGetMemoryMapAddress (Port)); in IoRead32() 143 IN UINTN Port in IoRead64() argument 168 IN UINTN Port, in IoWrite8() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/DxeIoLibEsal/ |
D | IoHighLevel.c | 38 IN UINTN Port, in IoOr8() argument 42 return IoWrite8 (Port, (UINT8)(IoRead8 (Port) | OrData)); in IoOr8() 66 IN UINTN Port, in IoAnd8() argument 70 return IoWrite8 (Port, (UINT8)(IoRead8 (Port) & AndData)); in IoAnd8() 96 IN UINTN Port, in IoAndThenOr8() argument 101 return IoWrite8 (Port, (UINT8)((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8() 127 IN UINTN Port, in IoBitFieldRead8() argument 132 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8() 162 IN UINTN Port, in IoBitFieldWrite8() argument 169 Port, in IoBitFieldWrite8() [all …]
|
D | IoLib.c | 34 IN UINTN Port, in IoReadWorker() argument 48 Port, in IoReadWorker() 77 IN UINTN Port, in IoWriteWorker() argument 89 Port, in IoWriteWorker() 200 IN UINTN Port in IoRead8() argument 203 return (UINT8)IoReadWorker (Port, EfiCpuIoWidthUint8); in IoRead8() 224 IN UINTN Port, in IoWrite8() argument 228 return (UINT8)IoWriteWorker (Port, EfiCpuIoWidthUint8, Value); in IoWrite8() 248 IN UINTN Port in IoRead16() argument 254 ASSERT ((Port & 1) == 0); in IoRead16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseS3IoLib/ |
D | S3IoLib.c | 42 IN UINTN Port, in InternalSaveIoWriteValueToBootScript() argument 50 Port, in InternalSaveIoWriteValueToBootScript() 73 IN UINTN Port, in InternalSaveIoWrite8ValueToBootScript() argument 77 InternalSaveIoWriteValueToBootScript (S3BootScriptWidthUint8, Port, &Value); in InternalSaveIoWrite8ValueToBootScript() 100 IN UINTN Port in S3IoRead8() argument 103 return InternalSaveIoWrite8ValueToBootScript (Port, IoRead8 (Port)); in S3IoRead8() 125 IN UINTN Port, in S3IoWrite8() argument 129 return InternalSaveIoWrite8ValueToBootScript (Port, IoWrite8 (Port, Value)); in S3IoWrite8() 154 IN UINTN Port, in S3IoOr8() argument 158 return InternalSaveIoWrite8ValueToBootScript (Port, IoOr8 (Port, OrData)); in S3IoOr8() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Include/Library/ |
D | QNCAccessLib.h | 21 #define MESSAGE_READ_DW(Port, Reg) \ argument 22 …(UINT32)((QUARK_OPCODE_READ << QNC_MCR_OP_OFFSET) | ((Port << QNC_MCR_PORT_OFFSET) & 0xFF0000) | (… 24 #define MESSAGE_WRITE_DW(Port, Reg) \ argument 25 …(UINT32)((QUARK_OPCODE_WRITE << QNC_MCR_OP_OFFSET) | ((Port << QNC_MCR_PORT_OFFSET) & 0xFF0000) | … 27 #define ALT_MESSAGE_READ_DW(Port, Reg) \ argument 28 …(UINT32)((QUARK_ALT_OPCODE_READ << QNC_MCR_OP_OFFSET) | ((Port << QNC_MCR_PORT_OFFSET) & 0xFF0000)… 30 #define ALT_MESSAGE_WRITE_DW(Port, Reg) \ argument 31 …(UINT32)((QUARK_ALT_OPCODE_WRITE << QNC_MCR_OP_OFFSET) | ((Port << QNC_MCR_PORT_OFFSET) & 0xFF0000… 33 #define MESSAGE_IO_READ_DW(Port, Reg) \ argument 34 …(UINT32)((QUARK_OPCODE_IO_READ << QNC_MCR_OP_OFFSET) | ((Port << QNC_MCR_PORT_OFFSET) & 0xFF0000) … [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Ebl/ |
D | HwIoDebug.c | 49 UINTN Port; in EblIoReadCmd() local 56 Port = AsciiStrHexToUintn (Argv[1]); in EblIoReadCmd() 60 Data = IoRead8 (Port); in EblIoReadCmd() 62 Data = IoRead16 (Port); in EblIoReadCmd() 64 Data = IoRead32 (Port); in EblIoReadCmd() 69 AsciiPrint ("0x%04x = 0x%x", Port, Data); in EblIoReadCmd() 100 UINTN Port; in EblIoWriteCmd() local 107 Port = AsciiStrHexToUintn (Argv[1]); in EblIoWriteCmd() 112 IoWrite8 (Port, (UINT8)Data); in EblIoWriteCmd() 114 IoWrite16 (Port, (UINT16)Data); in EblIoWriteCmd() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/ |
D | AhciMode.c | 316 IN UINT8 Port in AhciCheckDeviceStatus() argument 322 Offset = EFI_AHCI_PORT_START + Port * EFI_AHCI_PORT_REG_WIDTH + EFI_AHCI_PORT_SSTS; in AhciCheckDeviceStatus() 346 IN UINT8 Port in AhciClearPortStatus() argument 354 Offset = EFI_AHCI_PORT_START + Port * EFI_AHCI_PORT_REG_WIDTH + EFI_AHCI_PORT_SERR; in AhciClearPortStatus() 360 Offset = EFI_AHCI_PORT_START + Port * EFI_AHCI_PORT_REG_WIDTH + EFI_AHCI_PORT_IS; in AhciClearPortStatus() 382 IN UINT8 Port, in AhciDumpPortStatus() argument 391 Offset = EFI_AHCI_PORT_START + Port * EFI_AHCI_PORT_REG_WIDTH + EFI_AHCI_PORT_TFD; in AhciDumpPortStatus() 421 IN UINT8 Port, in AhciEnableFisReceive() argument 427 Offset = EFI_AHCI_PORT_START + Port * EFI_AHCI_PORT_REG_WIDTH + EFI_AHCI_PORT_CMD; in AhciEnableFisReceive() 456 IN UINT8 Port, in AhciDisableFisReceive() argument [all …]
|