Home
last modified time | relevance | path

Searched refs:RegRead (Results 1 – 9 of 9) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/TpmCommLib/
DTisPc.c30 UINT8 RegRead; in TisPcPresenceCheck() local
32 RegRead = MmioRead8 ((UINTN)&TisReg->Access); in TisPcPresenceCheck()
33 return (BOOLEAN)(RegRead != (UINT8)-1); in TisPcPresenceCheck()
56 UINT8 RegRead; in TisPcWaitRegisterBits() local
60 RegRead = MmioRead8 ((UINTN)Register); in TisPcWaitRegisterBits()
61 if ((RegRead & BitSet) == BitSet && (RegRead & BitClear) == 0) in TisPcWaitRegisterBits()
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm12DeviceLibDTpm/
DTpm12Tis.c54 UINT8 RegRead; in Tpm12TisPcPresenceCheck() local
56 RegRead = MmioRead8 ((UINTN)&TisReg->Access); in Tpm12TisPcPresenceCheck()
57 return (BOOLEAN)(RegRead != (UINT8)-1); in Tpm12TisPcPresenceCheck()
117 UINT8 RegRead; in Tpm12TisPcWaitRegisterBits() local
121 RegRead = MmioRead8 ((UINTN)Register); in Tpm12TisPcWaitRegisterBits()
122 if ((RegRead & BitSet) == BitSet && (RegRead & BitClear) == 0) in Tpm12TisPcWaitRegisterBits()
481 UINT32 RegRead; in Tpm12PtpCrbWaitRegisterBits() local
485 RegRead = MmioRead32 ((UINTN)Register); in Tpm12PtpCrbWaitRegisterBits()
486 if ((RegRead & BitSet) == BitSet && (RegRead & BitClear) == 0) { in Tpm12PtpCrbWaitRegisterBits()
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Hi1610/Drivers/PcieInit1610/
DPcieInitLib.c52 RegRead((UINT64)mPcieIntCfg.RegResource[Port] + Offset, Value); in PcieRegRead()
64 RegRead((UINT64)mPcieIntCfg.CfgResource[Port] + Offset0 + Offset1, Value); in PcieMmioRead()
78RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE0_CLKREQ_REG, pcie0.UInt32); in PcieChangeRwMode()
83RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE1_CLKREQ_REG, pcie1.UInt32); in PcieChangeRwMode()
88RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE2_CLKREQ_REG, pcie2.UInt32); in PcieChangeRwMode()
93RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE3_CLKREQ_REG, pcie3.UInt32); in PcieChangeRwMode()
121 RegRead(PCIE_PHY_BASE_1610[HostBridgeNum][Port] + 0xf4 + Laneid * 0x4, Value); in PcieRxValidCtrl()
138 RegRead(PCIE_PHY_BASE_1610[HostBridgeNum][Port] + 0x204 + i * 0x4, Value); in PcieRxValidCtrl()
144 RegRead(PCIE_PHY_BASE_1610[HostBridgeNum][Port] + 0x204 + i * 0x4, Value); in PcieRxValidCtrl()
164 RegRead(PCIE_APB_SLAVE_BASE_1610[HostBridgeNum][Port] + 0x1114, Value); in PcieEnableItssm()
[all …]
DPcieInitLib.h74 #define RegRead(addr,data) ((data) = MmioRead32 (addr)) macro
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2DeviceLibDTpm/
DTpm2Tis.c48 UINT8 RegRead; in TisPcPresenceCheck() local
50 RegRead = MmioRead8 ((UINTN)&TisReg->Access); in TisPcPresenceCheck()
51 return (BOOLEAN)(RegRead != (UINT8)-1); in TisPcPresenceCheck()
73 UINT8 RegRead; in TisPcWaitRegisterBits() local
77 RegRead = MmioRead8 ((UINTN)Register); in TisPcWaitRegisterBits()
78 if ((RegRead & BitSet) == BitSet && (RegRead & BitClear) == 0) in TisPcWaitRegisterBits()
DTpm2Ptp.c59 UINT8 RegRead; in Tpm2IsPtpPresence() local
61 RegRead = MmioRead8 ((UINTN)Reg); in Tpm2IsPtpPresence()
62 if (RegRead == 0xFF) { in Tpm2IsPtpPresence()
90 UINT32 RegRead; in PtpCrbWaitRegisterBits() local
94 RegRead = MmioRead32 ((UINTN)Register); in PtpCrbWaitRegisterBits()
95 if ((RegRead & BitSet) == BitSet && (RegRead & BitClear) == 0) { in PtpCrbWaitRegisterBits()
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Pv660/Drivers/PcieInitDxe/
DPcieInitLib.c51 RegRead((UINT64)mPcieIntCfg.RegResource[Port] + Offset, Value); in PcieRegRead()
63 RegRead((UINT64)mPcieIntCfg.CfgResource[Port] + Offset0 + Offset1, Value); in PcieMmioRead()
77RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE0_CLKREQ_REG, pcie0.UInt32); in PcieChangeRwMode()
82RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE1_CLKREQ_REG, pcie1.UInt32); in PcieChangeRwMode()
87RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE2_CLKREQ_REG, pcie2.UInt32); in PcieChangeRwMode()
92RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE3_CLKREQ_REG, pcie3.UInt32); in PcieChangeRwMode()
563RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCS_LOCAL_RESET_ST_REG, pcs_local_reset… in AssertPciePcsReset()
577RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE_HILINK_PCS_RESET_ST_REG, hilink_re… in AssertPciePcsReset()
611RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCS_LOCAL_RESET_ST_REG, pcs_local_statu… in DeassertPciePcsReset()
622RegRead(pcie_subctrl_base[HostBridgeNum] + PCIE_SUBCTRL_SC_PCIE_HILINK_PCS_RESET_ST_REG, hilink_re… in DeassertPciePcsReset()
[all …]
DPcieInitLib.h69 #define RegRead(addr,data) ((data) = *(volatile UINT32*)(UINTN)(addr)) macro
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Library/Tpm12DeviceLibInfineonI2c/
DTisPc.c299 UINT8 RegRead; in TisPcWaitRegisterBits() local
303 RegRead = TpmReadByte (Register); in TisPcWaitRegisterBits()
304 if ((RegRead & BitSet) == BitSet && (RegRead & BitClear) == 0) in TisPcWaitRegisterBits()