Home
last modified time | relevance | path

Searched refs:IoRead8 (Results 1 – 25 of 85) sorted by relevance

1234

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordSmm/
DOpalIdeMode.c84 if ((IoRead8 (IdeRegisters->CmdOrStatus) & ATA_STSREG_DWF) != 0) { in DumpAllIdeRegisters()
85 …DEBUG ((EFI_D_ERROR, "CheckRegisterStatus()-- %02x : Error : Write Fault\n", IoRead8 (IdeRegisters… in DumpAllIdeRegisters()
88 if ((IoRead8 (IdeRegisters->CmdOrStatus) & ATA_STSREG_CORR) != 0) { in DumpAllIdeRegisters()
89 …DEBUG ((EFI_D_ERROR, "CheckRegisterStatus()-- %02x : Error : Corrected Data\n", IoRead8 (IdeRegist… in DumpAllIdeRegisters()
92 if ((IoRead8 (IdeRegisters->CmdOrStatus) & ATA_STSREG_ERR) != 0) { in DumpAllIdeRegisters()
93 if ((IoRead8 (IdeRegisters->ErrOrFeature) & ATA_ERRREG_BBK) != 0) { in DumpAllIdeRegisters()
94 …DEBUG ((EFI_D_ERROR, "CheckRegisterStatus()-- %02x : Error : Bad Block Detected\n", IoRead8 (IdeRe… in DumpAllIdeRegisters()
97 if ((IoRead8 (IdeRegisters->ErrOrFeature) & ATA_ERRREG_UNC) != 0) { in DumpAllIdeRegisters()
98 …DEBUG ((EFI_D_ERROR, "CheckRegisterStatus()-- %02x : Error : Uncorrectable Data\n", IoRead8 (IdeRe… in DumpAllIdeRegisters()
101 if ((IoRead8 (IdeRegisters->ErrOrFeature) & ATA_ERRREG_MC) != 0) { in DumpAllIdeRegisters()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/
DResetSystemLib.c81 Data8 = IoRead8 (PCAT_RTC_DATA_REGISTER); in WaitForRTCUpdate()
85 Data8 = IoRead8 (PCAT_RTC_DATA_REGISTER); in WaitForRTCUpdate()
91 Data8 = IoRead8 (PCAT_RTC_DATA_REGISTER); in WaitForRTCUpdate()
96 Data8 = IoRead8 (PCAT_RTC_DATA_REGISTER); in WaitForRTCUpdate()
234 Data8 = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
241 Data8 = IoRead8 (PCAT_RTC_DATA_REGISTER); // Read clears alarm status in EnterS3WithImmediateWake()
259 EfiTime.Second = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
266 EfiTime.Hour = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
268 EfiTime.Minute = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
270 EfiTime.Second = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
[all …]
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/SerialIoLib/
DSerialPortLib.c151 Data = IoRead8 ((UINT16) gUartBase + LSR_OFFSET); in SerialPortWrite()
192 Data = IoRead8 ((UINT16) gUartBase + LSR_OFFSET); in SerialPortRead()
195 *Buffer++ = IoRead8 ((UINT16) gUartBase); in SerialPortRead()
223 Data = IoRead8 ((UINT16) gUartBase + LSR_OFFSET); in SerialPortPoll()
256 Mcr = IoRead8 ((UINT16) gUartBase + MCR_OFFSET); in SerialPortSetControl()
300 Msr = IoRead8 ((UINT16) gUartBase + MSR_OFFSET); in SerialPortGetControl()
321 Mcr = IoRead8 ((UINT16) gUartBase + MCR_OFFSET); in SerialPortGetControl()
334 Lsr = IoRead8 ((UINT16) gUartBase + LSR_OFFSET); in SerialPortGetControl()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SerialPortLib/
DSerialPortLib.c152 Data = IoRead8 ((UINT16) PcdGet64 (PcdSerialRegisterBase) + LSR_OFFSET); in UARTDbgOut()
215 Data = IoRead8 ((UINT16) PcdGet64 (PcdSerialRegisterBase) + LSR_OFFSET); in UARTDbgIn()
218 *Buffer++ = IoRead8 ((UINT16) PcdGet64 (PcdSerialRegisterBase)); in UARTDbgIn()
268 Data = IoRead8 ((UINT16) PcdGet64 (PcdSerialRegisterBase) + LSR_OFFSET); in SerialPortPoll()
DSioInit.c121 if (IoRead8 (DataPort) == WPCN381U_CHIP_ID) { // Winbond WPCN381U Device ID is 0xF4 in InitializeSio()
131 if (IoRead8 (DataPort) == WDCP376_CHIP_ID) { // Winbond WDCP376 Device ID is 0xF1 in InitializeSio()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbSerialLib/
DGdbSerialLib.c180 Data = IoRead8 (gPort + LSR_OFFSET); in GdbIsCharAvailable()
203 Data = IoRead8 (gPort + LSR_OFFSET); in GdbGetChar()
206 Char = IoRead8 (gPort); in GdbGetChar()
235 Data = IoRead8 (gPort + LSR_OFFSET); in GdbPutChar()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SmbusLib/
DSmbusLib.c77 HostStatus = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS); in InternalSmBusAcquire()
133 HostStatus = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS); in InternalSmBusStart()
148 AuxiliaryStatus = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_AUXS); in InternalSmBusStart()
232 Value = (UINT16)(IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HD1) << 8); in InternalSmBusNonBlock()
233 Value = (UINT16)(Value | IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HD0)); in InternalSmBusNonBlock()
682 IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HCTL); in InternalSmBusBlock()
715 BytesCount = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HD0); in InternalSmBusBlock()
721 ReadBuffer[Index] = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HBD); in InternalSmBusBlock()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Isa/Ps2MouseDxe/
DCommPs2.c492 Buffer[BytesRead] = IoRead8 (KBC_DATA_PORT); in PS2MouseRead()
590 if ((IoRead8 (KBC_CMD_STS_PORT) & KBC_OUTB) == KBC_OUTB) { in In8042Data()
602 *Data = IoRead8 (KBC_DATA_PORT); in In8042Data()
750 *Data = IoRead8 (KBC_DATA_PORT); in In8042AuxData()
769 Data = IoRead8 (KBC_CMD_STS_PORT); in CheckForInput()
800 Data = IoRead8 (KBC_CMD_STS_PORT); in WaitInputEmpty()
839 Data = IoRead8 (KBC_CMD_STS_PORT); in WaitOutputFull()
/device/linaro/bootloader/edk2/DuetPkg/LegacyMetronome/
DMetronome.c67 while ((IoRead8(REFRESH_PORT) & REFRESH_ON) == REFRESH_ON); in WaitForTick()
68 while ((IoRead8(REFRESH_PORT) & REFRESH_ON) == REFRESH_OFF); in WaitForTick()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/8259InterruptControllerDxe/
D8259.c89 MasterValue = IoRead8 (LEGACY_8259_MASK_REGISTER_MASTER); in Interrupt8259ReadMask()
90 SlaveValue = IoRead8 (LEGACY_8259_MASK_REGISTER_SLAVE); in Interrupt8259ReadMask()
96 MasterValue = IoRead8 (LEGACY_8259_EDGE_LEVEL_TRIGGERED_REGISTER_MASTER); in Interrupt8259ReadMask()
97 SlaveValue = IoRead8 (LEGACY_8259_EDGE_LEVEL_TRIGGERED_REGISTER_SLAVE); in Interrupt8259ReadMask()
144 Mask = IoRead8 (LEGACY_8259_MASK_REGISTER_SLAVE); in Interrupt8259SetVectorBase()
186 Mask = IoRead8 (LEGACY_8259_MASK_REGISTER_MASTER); in Interrupt8259SetVectorBase()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/
DQNCSmmLib.c134 SmiStatus = IoRead8 ((UINT16)(LpcPciCfg32 (R_QNC_LPC_GPE0BLK) & 0xFFFF) + R_QNC_GPE0BLK_SMIS); in InternalGetSwSmiData()
136 (IoRead8 (PcdGet16 (PcdSmmActivationPort)) == PcdGet8 (PcdSmmActivationData))) { in InternalGetSwSmiData()
137 Data = IoRead8 (PcdGet16 (PcdSmmDataPort)); in InternalGetSwSmiData()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSmm/
DPlatform.c898 if(IoRead8(PCAT_RTC_DATA_REGISTER) & B_RTC_ALARM_INT_ENABLE){ in EnableS5WakeOnRtc()
906 CmosData = IoRead8(PCAT_RTC_DATA_REGISTER); in EnableS5WakeOnRtc()
912 if(((CmosData = IoRead8(PCAT_RTC_DATA_REGISTER)) & B_RTC_DATE_ALARM_MASK) in EnableS5WakeOnRtc()
925 if(IoRead8(PCAT_RTC_DATA_REGISTER) == mWakeupSecond){ in EnableS5WakeOnRtc()
937 if(IoRead8(PCAT_RTC_DATA_REGISTER) == mWakeupMinute){ in EnableS5WakeOnRtc()
949 if(IoRead8(PCAT_RTC_DATA_REGISTER) == mWakeupHour){ in EnableS5WakeOnRtc()
958 while (IoRead8(PCAT_RTC_DATA_REGISTER) & 0x80); in EnableS5WakeOnRtc()
964 IoRead8(PCAT_RTC_DATA_REGISTER); in EnableS5WakeOnRtc()
970 IoWrite8(PCAT_RTC_DATA_REGISTER, IoRead8(PCAT_RTC_DATA_REGISTER) | B_RTC_ALARM_INT_ENABLE); in EnableS5WakeOnRtc()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/SmbusLib/
DSmbusLib.c122 HostStatus = IoRead8 (IoPortBaseAddress + R_QNC_SMBUS_HSTS); in InternalSmBusStart()
195 Value = (UINT16)(IoRead8 (IoPortBaseAddress + R_QNC_SMBUS_HD1) << 8); in InternalSmBusNonBlock()
196 Value = (UINT16)(Value | IoRead8 (IoPortBaseAddress + R_QNC_SMBUS_HD0)); in InternalSmBusNonBlock()
614 IoRead8 (IoPortBaseAddress + R_QNC_SMBUS_HCTL); in InternalSmBusBlock()
644 BytesCount = IoRead8 (IoPortBaseAddress + R_QNC_SMBUS_HD0); in InternalSmBusBlock()
649 ReadBuffer[Index] = IoRead8 (IoPortBaseAddress + R_QNC_SMBUS_HBD + (UINT8)Index); in InternalSmBusBlock()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/IdeBusPei/
DAtapiPeim.c743 StatusValue = IoRead8 (StatusRegister); in CheckPowerMode()
753 SectorCountValue = IoRead8 (SectorCountRegister); in CheckPowerMode()
760 ErrorValue = IoRead8 (ErrorRegister); in CheckPowerMode()
787 SectorCountValue = IoRead8 (SectorCountRegister); in CheckPowerMode()
871 StatusValue = IoRead8 (StatusRegister); in WaitForBSYClear()
917 StatusValue = IoRead8 (StatusRegister); in DRDYReady()
926 ErrValue = IoRead8 (IdeIoRegisters->Reg1.Error); in DRDYReady()
975 StatusValue = IoRead8 (StatusRegister); in DRQClear()
985 ErrValue = IoRead8 (IdeIoRegisters->Reg1.Error); in DRQClear()
1033 AltStatusValue = IoRead8 (AltStatusRegister); in DRQClear2()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/
DLegacySpeaker.c47 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOnSpeaker()
66 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOffSpeaker()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformPei/
DPlatform.c330 StsReg = (UINT8)IoRead8(SmbusBase + R_PCH_SMBUS_HSTS); in AcquireBus()
339 …do { StsReg = (UINT8) IoRead8(SmbusBase+R_PCH_SMBUS_HSTS); } while ((StsReg & B_PCH_SMBUS_HBSY) !=… in AcquireBus()
456 if ((IoRead8 (R_PCH_RTC_TARGET2) & B_PCH_RTC_REGISTERA_UIP) == 0) {
518 DataUint8 = (IoRead8 (R_PCH_RTC_TARGET2) | B_PCH_RTC_REGISTERB_SET);
534 DataUint8 = (IoRead8 (R_PCH_RTC_TARGET2) & (UINT8)~B_PCH_RTC_REGISTERB_SET);
1092 IoRead8 (SmbusBase+R_PCH_SMBUS_HCTL); in PeiSmbusExec()
1126 do { StsReg = (UINT8) IoRead8(SmbusBase+0); } while ((StsReg & (BIT4|BIT3|BIT2|BIT1)) == 0); in PeiSmbusExec()
1154 CallBuffer[0] = (UINT8)(IoRead8 (SmbusBase+R_PCH_SMBUS_HD0)); in PeiSmbusExec()
1167 BlockCount = (UINT8)(IoRead8 (SmbusBase+R_PCH_SMBUS_HD0)); in PeiSmbusExec()
1175 CallBuffer[Index] = (UINT8)IoRead8 (SmbusBase+R_PCH_SMBUS_HBD); in PeiSmbusExec()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/
DLegacySpeaker.c59 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOnSpeaker()
80 Data = IoRead8 (EFI_SPEAKER_CONTROL_PORT); in TurnOffSpeaker()
/device/linaro/bootloader/edk2/MdePkg/Library/PeiIoLibCpuIo/
DIoHighLevel.c51 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
79 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
110 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
141 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
178 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
219 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
260 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
306 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeIoLibCpuIo/
DIoHighLevel.c50 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
78 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
109 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
140 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
177 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
217 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
257 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
301 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseIoLibIntrinsic/
DIoHighLevel.c51 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
79 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
110 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
141 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
178 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
219 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
260 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
306 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/MdePkg/Library/DxeIoLibEsal/
DIoHighLevel.c42 return IoWrite8 (Port, (UINT8)(IoRead8 (Port) | OrData)); in IoOr8()
70 return IoWrite8 (Port, (UINT8)(IoRead8 (Port) & AndData)); in IoAnd8()
101 return IoWrite8 (Port, (UINT8)((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
132 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
170 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
211 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
252 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
298 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseIoLibIntrinsic/
DIoHighLevel.c59 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
87 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
118 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
149 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
186 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
226 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
266 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
310 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/MdePkg/Library/DxeIoLibCpuIo2/
DIoHighLevel.c46 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
74 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
105 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
136 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
174 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
215 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
256 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
302 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/MdePkg/Library/SmmIoLibSmmCpuIo2/
DIoHighLevel.c51 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
79 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
110 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
141 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
179 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
220 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
261 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
307 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/DxeIoLibCpuIo/
DIoHighLevel.c54 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) | OrData)); in IoOr8()
82 return IoWrite8 (Port, (UINT8) (IoRead8 (Port) & AndData)); in IoAnd8()
113 return IoWrite8 (Port, (UINT8) ((IoRead8 (Port) & AndData) | OrData)); in IoAndThenOr8()
144 return BitFieldRead8 (IoRead8 (Port), StartBit, EndBit); in IoBitFieldRead8()
182 BitFieldWrite8 (IoRead8 (Port), StartBit, EndBit, Value) in IoBitFieldWrite8()
223 BitFieldOr8 (IoRead8 (Port), StartBit, EndBit, OrData) in IoBitFieldOr8()
264 BitFieldAnd8 (IoRead8 (Port), StartBit, EndBit, AndData) in IoBitFieldAnd8()
310 BitFieldAndThenOr8 (IoRead8 (Port), StartBit, EndBit, AndData, OrData) in IoBitFieldAndThenOr8()

1234