/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/Ipf/ |
D | PcatIo.c | 68 UINT32 Data32; in PcatRootBridgeIoIoRead() local 140 Data32 = PORT_TO_MEM32(Address); in PcatRootBridgeIoIoRead() 141 *Buffer.ui8 = (UINT8)(Data32 & 0xff); in PcatRootBridgeIoIoRead() 142 *(Buffer.ui8+1) = (UINT8)((Data32 >> 8) & 0xff); in PcatRootBridgeIoIoRead() 143 *(Buffer.ui8+2) = (UINT8)((Data32 >> 16) & 0xff); in PcatRootBridgeIoIoRead() 144 *(Buffer.ui8+3) = (UINT8)((Data32 >> 24) & 0xff); in PcatRootBridgeIoIoRead() 172 UINT32 Data32; in PcatRootBridgeIoIoWrite() local 242 Data32 = *Buffer.ui8; in PcatRootBridgeIoIoWrite() 243 Data32 = Data32 | (*(Buffer.ui8+1) << 8); in PcatRootBridgeIoIoWrite() 244 Data32 = Data32 | (*(Buffer.ui8+2) << 16); in PcatRootBridgeIoIoWrite() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/ResetSystemLib/ |
D | ResetSystemLib.c | 117 UINT32 Data32; in ResetShutdown() 158 Data32 = IoRead32 ((UINTN) (PchPmioBase + R_PCH_ACPI_PM1_CNT)); in ResetShutdown() 160 …Data32 = (UINT32) ((Data32 &~(B_PCH_ACPI_PM1_CNT_SLP_TYP + B_PCH_ACPI_PM1_CNT_SLP_EN)) | V_PCH_AC… in ResetShutdown() 162 IoWrite32 ((UINTN) (PchPmioBase + R_PCH_ACPI_PM1_CNT), Data32); in ResetShutdown() 164 Data32 = Data32 | B_PCH_ACPI_PM1_CNT_SLP_EN; in ResetShutdown() 166 IoWrite32 ((UINTN) (PchPmioBase + R_PCH_ACPI_PM1_CNT), Data32); in ResetShutdown()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/QNCAccessLib/ |
D | QNCAccessLib.c | 189 UINT32 Data32; in QncHsmmcWrite() local 200 Data32 = QncHsmmcRead (); in QncHsmmcWrite() 201 Data32 &= ~SMM_CTL_EN; in QncHsmmcWrite() 202 QNCPortWrite (QUARK_NC_HOST_BRIDGE_SB_PORT_ID, QNC_MSG_FSBIC_REG_HSMMC, Data32); in QncHsmmcWrite() 207 Data32 = QncHsmmcRead (); in QncHsmmcWrite() 208 ASSERT((Data32 & SMM_CTL_EN) == 0); in QncHsmmcWrite() 225 Data32 = QncHsmmcRead (); in QncHsmmcWrite() 226 ASSERT((Data32 & SMM_CTL_EN) != 0); in QncHsmmcWrite() 241 UINT32 Data32; in QncImrWrite() local 255 …Data32 = QNCPortRead (QUARK_NC_MEMORY_MANAGER_SB_PORT_ID, ImrBaseOffset+QUARK_NC_MEMORY_MANAGER_IM… in QncImrWrite() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Pei/PlatformInit/ |
D | PlatformEarlyInit.c | 112 UINT32 Data32; in SetLanControllerMacAddr() local 164 Data32 = *((UINT32 *) (UINTN)(&MacAddr[0])); in SetLanControllerMacAddr() 165 *((volatile UINT32 *) (UINTN)(Addr)) = Data32; in SetLanControllerMacAddr() 179 Data32 = in SetLanControllerMacAddr() 183 *((volatile UINT32 *) (UINTN)(Addr)) = Data32; in SetLanControllerMacAddr() 955 UINT32 Data32; in EarlyPlatformGpioCtrlerInitAndManipulation() local 1005 Data32 = *((volatile UINT32 *) (UINTN)(Addr)) & 0xFFFFFF00; // Keep reserved bits [31:8] in EarlyPlatformGpioCtrlerInitAndManipulation() 1006 Data32 |= (GpioConfig->IntEn & 0x000FFFFF); in EarlyPlatformGpioCtrlerInitAndManipulation() 1007 *((volatile UINT32 *) (UINTN)(Addr)) = Data32; in EarlyPlatformGpioCtrlerInitAndManipulation() 1013 Data32 = *((volatile UINT32 *) (UINTN)(Addr)) & 0xFFFFFF00; // Keep reserved bits [31:8] in EarlyPlatformGpioCtrlerInitAndManipulation() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/DxeSmm/AcpiSmm/ |
D | AcpiSmmPlatform.c | 685 UINT32 Data32; in SxSleepEntryCallBack() local 704 Data32 = B_QNC_GPE0BLK_GPE0S_ALL; in SxSleepEntryCallBack() 705 …o.Io.Write( &gSmst->SmmIo, SMM_IO_UINT32, mAcpiSmm.QncGpe0Base + R_QNC_GPE0BLK_GPE0S, 1, &Data32 ); in SxSleepEntryCallBack() 716 …Io.Io.Read( &gSmst->SmmIo, SMM_IO_UINT32, mAcpiSmm.QncGpe0Base + R_QNC_GPE0BLK_GPE0E, 1, &Data32 ); in SxSleepEntryCallBack() 717 Data32 |= (B_QNC_GPE0BLK_GPE0E_EGPE | B_QNC_GPE0BLK_GPE0E_GPIO | B_QNC_GPE0BLK_GPE0E_PCIE); in SxSleepEntryCallBack() 718 …o.Io.Write( &gSmst->SmmIo, SMM_IO_UINT32, mAcpiSmm.QncGpe0Base + R_QNC_GPE0BLK_GPE0E, 1, &Data32 ); in SxSleepEntryCallBack() 740 …Io.Io.Read( &gSmst->SmmIo, SMM_IO_UINT32, mAcpiSmm.QncGpe0Base + R_QNC_GPE0BLK_GPE0E, 1, &Data32 ); in SxSleepEntryCallBack() 741 Data32 |= (B_QNC_GPE0BLK_GPE0E_EGPE | B_QNC_GPE0BLK_GPE0E_GPIO | B_QNC_GPE0BLK_GPE0E_PCIE); in SxSleepEntryCallBack() 742 …o.Io.Write( &gSmst->SmmIo, SMM_IO_UINT32, mAcpiSmm.QncGpe0Base + R_QNC_GPE0BLK_GPE0E, 1, &Data32 ); in SxSleepEntryCallBack() 766 …Io.Io.Read( &gSmst->SmmIo, SMM_IO_UINT32, mAcpiSmm.QncGpe0Base + R_QNC_GPE0BLK_GPE0E, 1, &Data32 ); in SxSleepEntryCallBack() [all …]
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Library/RecoveryOemHookLib/ |
D | RecoveryOemHookLib.c | 28 UINT32 Data32; in OemInitiateRecovery() local 33 Data32 = QNCAltPortRead (QUARK_SCSS_SOC_UNIT_SB_PORT_ID, QUARK_SCSS_SOC_UNIT_CFG_STICKY_RW); in OemInitiateRecovery() 34 Data32 |= B_CFG_STICKY_RW_FORCE_RECOVERY; in OemInitiateRecovery() 35 QNCAltPortWrite (QUARK_SCSS_SOC_UNIT_SB_PORT_ID, QUARK_SCSS_SOC_UNIT_CFG_STICKY_RW, Data32); in OemInitiateRecovery()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/ |
D | ResetSystemLib.c | 200 UINT32 Data32; in EnterS3WithImmediateWake() local 309 Data32 = IoRead32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in EnterS3WithImmediateWake() 310 Data32 = (UINT32) ((Data32 & 0xffffc3fe) | V_S3 | B_QNC_PM1BLK_PM1C_SCIEN); in EnterS3WithImmediateWake() 311 IoWrite32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C, Data32); in EnterS3WithImmediateWake() 312 Data32 = Data32 | B_QNC_PM1BLK_PM1C_SLPEN; in EnterS3WithImmediateWake() 313 IoWrite32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C, Data32); in EnterS3WithImmediateWake()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSmm/ |
D | S3Save.c | 92 UINT32 Data32; 334 …Data32 = MmioRead32 (MmPciAddress (0, PciAddress.Bus, PciAddress.Device, PciAddress.Function, PciA… 343 &Data32 368 Data32 = IoRead32(mAcpiBaseAddr + R_PCH_SMI_EN); 374 &Data32
|
D | Platform.c | 622 UINT32 Data32; in S4S5CallBack() 628 Data32 = IoRead32 (GPIO_BASE_ADDRESS + R_PCH_GPIO_SC_LVL); in S4S5CallBack() 629 Data32 |= BIT8; in S4S5CallBack() 630 IoWrite32(GPIO_BASE_ADDRESS + R_PCH_GPIO_SC_LVL, Data32); in S4S5CallBack()
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgPei/ |
D | TisPei.c | 54 UINT32 Data32; in TisTpmCommand() local 131 CopyMem (&Data32, (BufferOut + 2), sizeof (UINT32)); in TisTpmCommand() 132 TpmOutSize = SwapBytes32 (Data32); in TisTpmCommand()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/EbcDxe/ |
D | EbcExecute.c | 2740 UINT32 Data32; in ExecutePUSH() local 2783 Data32 = VmReadMem32 (VmPtr, (UINTN) (VmPtr->Gpr[OPERAND1_REGNUM (Operands)] + Index16)); in ExecutePUSH() 2785 Data32 = (UINT32) VmPtr->Gpr[OPERAND1_REGNUM (Operands)] + Index16; in ExecutePUSH() 2791 VmWriteMem32 (VmPtr, (UINTN) VmPtr->Gpr[0], Data32); in ExecutePUSH() 2876 INT32 Data32; in ExecutePOP() local 2920 Data32 = (INT32) VmReadMem32 (VmPtr, (UINTN) VmPtr->Gpr[0]); in ExecutePOP() 2926 VmWriteMem32 (VmPtr, (UINTN) (VmPtr->Gpr[OPERAND1_REGNUM (Operands)] + Index16), Data32); in ExecutePOP() 2928 VmPtr->Gpr[OPERAND1_REGNUM (Operands)] = (INT64) Data32 + Index16; in ExecutePOP() 4032 INT32 Data32; in ExecuteEXTNDD() local 4038 Data32 = (INT32) Op2; in ExecuteEXTNDD() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/ |
D | BootMode.c | 159 UINT32 Data32; 179 Data32 = IoRead32 (ACPI_BASE_ADDRESS + R_PCH_TCO_STS); 186 if (((GpioValue & BIT0) != 0)&&((Data32 & B_PCH_TCO_STS_SECOND_TO) != B_PCH_TCO_STS_SECOND_TO)){
|
D | PchInitPeim.c | 132 UINT32 Data32; 176 Data32 = IoRead32 (ACPI_BASE_ADDRESS + R_PCH_TCO_STS); 177 if ((Data32 & B_PCH_TCO_STS_SECOND_TO) == B_PCH_TCO_STS_SECOND_TO)
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgDxe/ |
D | TisDxe.c | 99 UINT32 Data32; in TisPcReceive() local 133 CopyMem (&Data32, (TpmBuffer + 2), sizeof (UINT32)); in TisPcReceive() 134 ResponseSize = SwapBytes32 (Data32); in TisPcReceive()
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm12DeviceLibDTpm/ |
D | Tpm12Tis.c | 380 UINT32 Data32; in Tpm12TisTpmCommand() local 487 CopyMem (&Data32, (BufferOut + 2), sizeof (UINT32)); in Tpm12TisTpmCommand() 488 TpmOutSize = SwapBytes32 (Data32); in Tpm12TisTpmCommand()
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2DeviceLibDTpm/ |
D | Tpm2Tis.c | 386 UINT32 Data32; in Tpm2TisTpmCommand() local 498 CopyMem (&Data32, (BufferOut + 2), sizeof (UINT32)); in Tpm2TisTpmCommand() 499 TpmOutSize = SwapBytes32 (Data32); in Tpm2TisTpmCommand()
|
/device/linaro/bootloader/edk2/DuetPkg/Library/DuetBdsLib/ |
D | BdsPlatform.c | 1618 UINT32 Data32; in ConvertMpsTable() local 1641 Data32 = FPLength + SYS_TABLE_PAD (FPLength); in ConvertMpsTable() 1644 Data32 += MpsTableOri->BaseTableLength; in ConvertMpsTable() 1645 Data32 += MpsTableOri->ExtendedTableLength; in ConvertMpsTable() 1647 Data32 += SYS_TABLE_PAD (Data32); in ConvertMpsTable() 1648 Data32 += MpsTableOri->OemTableSize; in ConvertMpsTable() 1660 EFI_SIZE_TO_PAGES(Data32), in ConvertMpsTable()
|
/device/linaro/bootloader/edk2/DuetPkg/SataControllerDxe/ |
D | SataController.c | 395 UINT32 Data32; in SataControllerStart() local 458 Data32 = AhciReadReg (PciIo, R_AHCI_CAP); in SataControllerStart() 459 SataPrivateData->IdeInit.ChannelCount = (UINT8) ((Data32 & B_AHCI_CAP_NPS) + 1); in SataControllerStart() 461 if ((Data32 & B_AHCI_CAP_SPM) == B_AHCI_CAP_SPM) { in SataControllerStart()
|
/device/linaro/bootloader/edk2/OvmfPkg/SataControllerDxe/ |
D | SataController.c | 396 UINT32 Data32; in SataControllerStart() local 476 Data32 = AhciReadReg (PciIo, R_AHCI_CAP); in SataControllerStart() 477 SataPrivateData->IdeInit.ChannelCount = (UINT8) ((Data32 & B_AHCI_CAP_NPS) + 1); in SataControllerStart() 479 if ((Data32 & B_AHCI_CAP_SPM) == B_AHCI_CAP_SPM) { in SataControllerStart()
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Drivers/PL180MciDxe/ |
D | PL180Mci.c | 400 UINT32 Data32; local 408 Data32 = MmioRead32 (MCI_POWER_CONTROL_REG); 409 if ((Data32 & 0x2) == MCI_POWER_UP) {
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciBusDxe/ |
D | PciEnumeratorSupport.c | 2137 UINT32 Data32; in CreatePciIoDevice() local 2148 &Data32 in CreatePciIoDevice() 2150 if ((Data32 & EFI_PCIE_CAPABILITY_DEVICE_CAPABILITIES_2_ARI_FORWARDING) != 0) { in CreatePciIoDevice() 2159 &Data32 in CreatePciIoDevice() 2161 if ((Data32 & EFI_PCIE_CAPABILITY_DEVICE_CONTROL_2_ARI_FORWARDING) == 0) { in CreatePciIoDevice() 2162 Data32 |= EFI_PCIE_CAPABILITY_DEVICE_CONTROL_2_ARI_FORWARDING; in CreatePciIoDevice() 2168 &Data32 in CreatePciIoDevice()
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/ |
D | DebugAgent.c | 1842 UINT32 Data32; in CommandCommunication() local 2002 Data32 = FindNextPendingBreakCpu (); in CommandCommunication() 2003 if (Data32 != -1) { in CommandCommunication() 2013 mDebugMpContext.ViewPointIndex = Data32; in CommandCommunication() 2269 Data32 = mDebugMpContext.ViewPointIndex; in CommandCommunication() 2270 SendDataResponsePacket((UINT8 *) &Data32, (UINT16) sizeof (UINT32), DebugHeader); in CommandCommunication()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | SmmProfile.c | 665 UINT32 Data32; in FindAcpiFadtTableByAcpiGuid() local 693 Data32 = *(UINT32 *) ((UINT8 *) Rsdt + Index); in FindAcpiFadtTableByAcpiGuid() 694 Fadt = (EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE *) (UINT32 *) (UINTN) Data32; in FindAcpiFadtTableByAcpiGuid()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Pei/ |
D | OhcPeim.c | 995 UINT32 Data32; in InitializeUsbHC() local 1016 Data32 = OhciGetOperationalReg (Ohc, HC_COMMAND_STATUS ); in InitializeUsbHC() 1017 if ((Data32 & HC_RESET) == 0) { in InitializeUsbHC()
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/AcpiPlatform/ |
D | AcpiPlatform.c | 797 UINT32 Data32; in AcpiPlatformEntryPoint() local 806 Data32 = 0; in AcpiPlatformEntryPoint()
|