/device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicLib/ |
D | BaseXApicLib.c | 83 return (UINTN)(LShiftU64 ((UINT64) ApicBaseMsr.Bits.ApicBaseHi, 32)) + in GetLocalApicBaseAddress() 84 (((UINTN)ApicBaseMsr.Bits.ApicBase) << 12); in GetLocalApicBaseAddress() 114 ApicBaseMsr.Bits.ApicBase = (UINT32) (BaseAddress >> 12); in SetLocalApicBaseAddress() 115 ApicBaseMsr.Bits.ApicBaseHi = (UINT32) (RShiftU64((UINT64) BaseAddress, 32)); in SetLocalApicBaseAddress() 206 } while (IcrLowReg.Bits.DeliveryStatus != 0); in SendIpi() 219 } while (IcrLowReg.Bits.DeliveryStatus != 0); in SendIpi() 260 ASSERT (ApicBaseMsr.Bits.EN != 0); in GetApicMode() 261 ASSERT (ApicBaseMsr.Bits.EXTD == 0); in GetApicMode() 390 IcrLow.Bits.DeliveryMode = LOCAL_APIC_DELIVERY_MODE_FIXED; in SendFixedIpi() 391 IcrLow.Bits.Level = 1; in SendFixedIpi() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/ |
D | SdramSpdDdr4.h | 28 } Bits; member 36 } Bits; member 43 } Bits; member 52 } Bits; member 61 } Bits; member 70 } Bits; member 80 } Bits; member 89 } Bits; member 96 } Bits; member 105 } Bits; member [all …]
|
D | SdramSpdDdr3.h | 28 } Bits; member 36 } Bits; member 43 } Bits; member 51 } Bits; member 60 } Bits; member 69 } Bits; member 79 } Bits; member 88 } Bits; member 97 } Bits; member 105 } Bits; member [all …]
|
D | SdramSpdLpDdr.h | 28 } Bits; member 36 } Bits; member 43 } Bits; member 52 } Bits; member 61 } Bits; member 70 } Bits; member 80 } Bits; member 89 } Bits; member 96 } Bits; member 105 } Bits; member [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/BaseXApicX2ApicLib/ |
D | BaseXApicX2ApicLib.c | 84 return (UINTN)(LShiftU64 ((UINT64) ApicBaseMsr.Bits.ApicBaseHi, 32)) + in GetLocalApicBaseAddress() 85 (((UINTN)ApicBaseMsr.Bits.ApicBase) << 12); in GetLocalApicBaseAddress() 115 ApicBaseMsr.Bits.ApicBase = (UINT32) (BaseAddress >> 12); in SetLocalApicBaseAddress() 116 ApicBaseMsr.Bits.ApicBaseHi = (UINT32) (RShiftU64((UINT64) BaseAddress, 32)); in SetLocalApicBaseAddress() 255 } while (IcrLowReg.Bits.DeliveryStatus != 0); in SendIpi() 268 } while (IcrLowReg.Bits.DeliveryStatus != 0); in SendIpi() 318 ASSERT (ApicBaseMsr.Bits.EN != 0); in GetApicMode() 319 if (ApicBaseMsr.Bits.EXTD != 0) { in GetApicMode() 360 ApicBaseMsr.Bits.EXTD = 1; in SetApicMode() 374 ApicBaseMsr.Bits.EXTD = 0; in SetApicMode() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Include/Regs/ |
D | HisiPcieV1RegOffset.h | 204 }Bits; member 215 } Bits; member 254 } Bits; member 270 } Bits; member 289 } Bits; member 307 } Bits; member 326 } Bits; member 345 } Bits; member 361 } Bits; member 377 } Bits; member [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Include/Register/ |
D | Cpuid.h | 105 } Bits; member 159 } Bits; member 334 } Bits; member 537 } Bits; member 731 } Bits; member 862 } Bits; member 904 } Bits; member 942 } Bits; member 991 } Bits; member 1013 } Bits; member [all …]
|
D | ArchitecturalMsr.h | 160 } Bits; member 219 } Bits; member 319 } Bits; member 418 } Bits; member 507 } Bits; member 704 } Bits; member 750 } Bits; member 881 } Bits; member 943 } Bits; member 1064 } Bits; member [all …]
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/X64/ |
D | ArchDebugSupport.c | 50 IdtEntry[Index].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler; in InitializeDebugIdt() 51 IdtEntry[Index].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16); in InitializeDebugIdt() 52 IdtEntry[Index].Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32); in InitializeDebugIdt() 53 IdtEntry[Index].Bits.Selector = CodeSegment; in InitializeDebugIdt() 54 IdtEntry[Index].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32; in InitializeDebugIdt() 58 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler; in InitializeDebugIdt() 59 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16); in InitializeDebugIdt() 60 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32); in InitializeDebugIdt() 61 IdtEntry[DEBUG_TIMER_VECTOR].Bits.Selector = CodeSegment; in InitializeDebugIdt() 62 IdtEntry[DEBUG_TIMER_VECTOR].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32; in InitializeDebugIdt() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/GdbStub/X64/ |
D | Processor.c | 458 if (Dr6.Bits.B0 == 1) { in GetBreakpointDetected() 460 } else if (Dr6.Bits.B1 == 1) { in GetBreakpointDetected() 462 } else if (Dr6.Bits.B2 == 1) { in GetBreakpointDetected() 464 } else if (Dr6.Bits.B3 == 1) { in GetBreakpointDetected() 496 Type = (BREAK_TYPE) Dr7.Bits.RW0; in GetBreakpointType() 498 Type = (BREAK_TYPE) Dr7.Bits.RW1; in GetBreakpointType() 500 Type = (BREAK_TYPE) Dr7.Bits.RW2; in GetBreakpointType() 502 Type = (BREAK_TYPE) Dr7.Bits.RW3; in GetBreakpointType() 556 if (Dr7.Bits.G0 == 0) { in FindNextFreeDebugRegister() 558 } else if (Dr7.Bits.G1 == 0) { in FindNextFreeDebugRegister() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbDebugAgent/X64/ |
D | Processor.c | 458 if (Dr6.Bits.B0 == 1) { in GetBreakpointDetected() 460 } else if (Dr6.Bits.B1 == 1) { in GetBreakpointDetected() 462 } else if (Dr6.Bits.B2 == 1) { in GetBreakpointDetected() 464 } else if (Dr6.Bits.B3 == 1) { in GetBreakpointDetected() 496 Type = (BREAK_TYPE) Dr7.Bits.RW0; in GetBreakpointType() 498 Type = (BREAK_TYPE) Dr7.Bits.RW1; in GetBreakpointType() 500 Type = (BREAK_TYPE) Dr7.Bits.RW2; in GetBreakpointType() 502 Type = (BREAK_TYPE) Dr7.Bits.RW3; in GetBreakpointType() 556 if (Dr7.Bits.G0 == 0) { in FindNextFreeDebugRegister() 558 } else if (Dr7.Bits.G1 == 0) { in FindNextFreeDebugRegister() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/PciSioSerialDxe/ |
D | SerialIo.c | 339 Mcr.Bits.Rts = 1; in SerialReceiveTransmit() 348 if ((Lsr.Bits.Dr == 1) && !ReceiveFifoFull) { in SerialReceiveTransmit() 351 …if (Lsr.Bits.FIFOe == 1 || Lsr.Bits.Oe == 1 || Lsr.Bits.Pe == 1 || Lsr.Bits.Fe == 1 || Lsr.Bits.Bi… in SerialReceiveTransmit() 357 if (Lsr.Bits.FIFOe == 1 || Lsr.Bits.Pe == 1|| Lsr.Bits.Fe == 1 || Lsr.Bits.Bi == 1) { in SerialReceiveTransmit() 376 Mcr.Bits.Rts = 0; in SerialReceiveTransmit() 393 if (Lsr.Bits.Thre == 1 && !SerialFifoEmpty (&SerialDevice->Transmit)) { in SerialReceiveTransmit() 403 Mcr.Bits.Rts= 0; in SerialReceiveTransmit() 411 … while ((Msr.Bits.Dcd == 1) && ((Msr.Bits.Cts == 0) ^ FeaturePcdGet(PcdSerialUseHalfHandshake))) { in SerialReceiveTransmit() 421 … if ((Msr.Bits.Dcd == 0) || ((Msr.Bits.Cts == 1) ^ FeaturePcdGet(PcdSerialUseHalfHandshake))) { in SerialReceiveTransmit() 431 Mcr.Bits.Rts = 1; in SerialReceiveTransmit() [all …]
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon/Ia32/ |
D | ArchDebugSupport.c | 50 IdtEntry[Index].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler; in InitializeDebugIdt() 51 IdtEntry[Index].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16); in InitializeDebugIdt() 52 IdtEntry[Index].Bits.Selector = CodeSegment; in InitializeDebugIdt() 53 IdtEntry[Index].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32; in InitializeDebugIdt() 57 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler; in InitializeDebugIdt() 58 IdtEntry[DEBUG_TIMER_VECTOR].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16); in InitializeDebugIdt() 59 IdtEntry[DEBUG_TIMER_VECTOR].Bits.Selector = CodeSegment; in InitializeDebugIdt() 60 IdtEntry[DEBUG_TIMER_VECTOR].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32; in InitializeDebugIdt() 91 return (VOID *) (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetLow) | in GetExceptionHandlerInIdtEntry() 92 (((UINTN)IdtEntry[ExceptionNum].Bits.OffsetHigh) << 16)); in GetExceptionHandlerInIdtEntry() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/GdbStub/Ia32/ |
D | Processor.c | 486 if (Dr6.Bits.B0 == 1) { in GetBreakpointDetected() 488 } else if (Dr6.Bits.B1 == 1) { in GetBreakpointDetected() 490 } else if (Dr6.Bits.B2 == 1) { in GetBreakpointDetected() 492 } else if (Dr6.Bits.B3 == 1) { in GetBreakpointDetected() 525 Type = (BREAK_TYPE) Dr7.Bits.RW0; in GetBreakpointType() 527 Type = (BREAK_TYPE) Dr7.Bits.RW1; in GetBreakpointType() 529 Type = (BREAK_TYPE) Dr7.Bits.RW2; in GetBreakpointType() 531 Type = (BREAK_TYPE) Dr7.Bits.RW3; in GetBreakpointType() 585 if (Dr7.Bits.G0 == 0) { in FindNextFreeDebugRegister() 587 } else if (Dr7.Bits.G1 == 0) { in FindNextFreeDebugRegister() [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbDebugAgent/Ia32/ |
D | Processor.c | 438 if (Dr6.Bits.B0 == 1) { in GetBreakpointDetected() 440 } else if (Dr6.Bits.B1 == 1) { in GetBreakpointDetected() 442 } else if (Dr6.Bits.B2 == 1) { in GetBreakpointDetected() 444 } else if (Dr6.Bits.B3 == 1) { in GetBreakpointDetected() 477 Type = (BREAK_TYPE) Dr7.Bits.RW0; in GetBreakpointType() 479 Type = (BREAK_TYPE) Dr7.Bits.RW1; in GetBreakpointType() 481 Type = (BREAK_TYPE) Dr7.Bits.RW2; in GetBreakpointType() 483 Type = (BREAK_TYPE) Dr7.Bits.RW3; in GetBreakpointType() 537 if (Dr7.Bits.G0 == 0) { in FindNextFreeDebugRegister() 539 } else if (Dr7.Bits.G1 == 0) { in FindNextFreeDebugRegister() [all …]
|
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/BaseIoApicLib/ |
D | IoApicLib.c | 91 ASSERT (Version.Bits.MaximumRedirectionEntry < 0xF0); in IoApicEnableInterrupt() 92 ASSERT (Irq <= Version.Bits.MaximumRedirectionEntry); in IoApicEnableInterrupt() 95 Entry.Bits.Mask = Enable ? 0 : 1; in IoApicEnableInterrupt() 141 ASSERT (Version.Bits.MaximumRedirectionEntry < 0xF0); in IoApicConfigureInterrupt() 142 ASSERT (Irq <= Version.Bits.MaximumRedirectionEntry); in IoApicConfigureInterrupt() 147 Entry.Bits.Vector = (UINT8)Vector; in IoApicConfigureInterrupt() 148 Entry.Bits.DeliveryMode = (UINT32)DeliveryMode; in IoApicConfigureInterrupt() 149 Entry.Bits.DestinationMode = 0; in IoApicConfigureInterrupt() 150 Entry.Bits.Polarity = AssertionLevel ? 0 : 1; in IoApicConfigureInterrupt() 151 Entry.Bits.TriggerMode = LevelTriggered ? 1 : 0; in IoApicConfigureInterrupt() [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/ |
D | ArmLib.c | 27 IN UINT32 Bits in ArmSetAuxCrBit() argument 31 val |= Bits; in ArmSetAuxCrBit() 38 IN UINT32 Bits in ArmUnsetAuxCrBit() argument 42 val &= ~Bits; in ArmUnsetAuxCrBit() 53 IN UINTN Bits in ArmSetCpuActlrBit() argument 58 Value |= Bits; in ArmSetCpuActlrBit() 65 IN UINTN Bits in ArmUnsetCpuActlrBit() argument 70 Value &= ~Bits; in ArmUnsetCpuActlrBit()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/X64/ |
D | SetIdtEntry.c | 76 …ler = (VOID *)(UINTN)(LShiftU64 (IdtEntry->Bits.OffsetUpper, 32) + IdtEntry->Bits.OffsetLow + (Idt… in HookPageFaultHandler() 77 IdtEntry->Bits.OffsetLow = (UINT16)PageFaultHandlerHookAddress; in HookPageFaultHandler() 78 IdtEntry->Bits.Selector = (UINT16)AsmReadCs (); in HookPageFaultHandler() 79 IdtEntry->Bits.Reserved_0 = 0; in HookPageFaultHandler() 80 IdtEntry->Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32; in HookPageFaultHandler() 81 IdtEntry->Bits.OffsetHigh = (UINT16)(PageFaultHandlerHookAddress >> 16); in HookPageFaultHandler() 82 IdtEntry->Bits.OffsetUpper = (UINT32)(PageFaultHandlerHookAddress >> 32); in HookPageFaultHandler() 83 IdtEntry->Bits.Reserved_1 = 0; in HookPageFaultHandler() 163 IdtEntry->Bits.OffsetLow = (UINT16)S3DebugBuffer; in SetIdtEntry() 164 IdtEntry->Bits.Selector = (UINT16)AsmReadCs (); in SetIdtEntry() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Include/Register/Msr/ |
D | SilvermontMsr.h | 68 } Bits; member 106 } Bits; member 151 } Bits; member 204 } Bits; member 346 } Bits; member 412 } Bits; member 472 } Bits; member 531 } Bits; member 584 } Bits; member 690 } Bits; member [all …]
|
D | HaswellMsr.h | 105 } Bits; member 208 } Bits; member 314 } Bits; member 392 } Bits; member 457 } Bits; member 522 } Bits; member 623 } Bits; member 684 } Bits; member 741 } Bits; member 788 } Bits; member [all …]
|
D | XeonDMsr.h | 67 } Bits; member 158 } Bits; member 248 } Bits; member 326 } Bits; member 382 } Bits; member 429 } Bits; member 501 } Bits; member 569 } Bits; member 624 } Bits; member 689 } Bits; member [all …]
|
D | GoldmontMsr.h | 85 } Bits; member 162 } Bits; member 226 } Bits; member 282 } Bits; member 384 } Bits; member 435 } Bits; member 490 } Bits; member 583 } Bits; member 668 } Bits; member 747 } Bits; member [all …]
|
/device/linaro/bootloader/edk2/DuetPkg/DxeIpl/X64/ |
D | Paging.c | 61 PageTableEntry4KB->Bits.Present = 0; in EnableNullPointerProtection() 94 PageDirectoryEntry4KB->Bits.ReadWrite = 1; in X64Create4KPageTables() 95 PageDirectoryEntry4KB->Bits.Present = 1; in X64Create4KPageTables() 96 PageDirectoryEntry4KB->Bits.MustBeZero = 0; in X64Create4KPageTables() 106 PageTableEntry4KB->Bits.ReadWrite = 1; in X64Create4KPageTables() 107 PageTableEntry4KB->Bits.Present = 1; in X64Create4KPageTables() 151 PageMapLevel4Entry->Bits.ReadWrite = 1; in X64Create2MPageTables() 152 PageMapLevel4Entry->Bits.Present = 1; in X64Create2MPageTables() 165 PageDirectoryPointerEntry->Bits.ReadWrite = 1; in X64Create2MPageTables() 166 PageDirectoryPointerEntry->Bits.Present = 1; in X64Create2MPageTables() [all …]
|
/device/linaro/bootloader/edk2/PcAtChipsetPkg/HpetTimerDxe/ |
D | HpetTimer.c | 280 mHpetGeneralConfiguration.Bits.MainCounterEnable = Enable ? 1 : 0; in HpetEnable() 388 mHpetGeneralCapabilities.Bits.CounterClockPeriod in TimerInterruptHandler() 539 if (mTimerConfiguration.Bits.MsiInterruptCapablity != 0 && FeaturePcdGet (PcdHpetMsiEnable)) { in TimerDriverSetTimerPeriod() 543 mTimerConfiguration.Bits.MsiInterruptEnable = 0; in TimerDriverSetTimerPeriod() 554 mTimerConfiguration.Bits.InterruptEnable = 0; in TimerDriverSetTimerPeriod() 564 mHpetGeneralCapabilities.Bits.CounterClockPeriod in TimerDriverSetTimerPeriod() 585 if (mTimerConfiguration.Bits.MsiInterruptCapablity != 0 && FeaturePcdGet (PcdHpetMsiEnable)) { in TimerDriverSetTimerPeriod() 590 HpetTimerMsiRoute.Bits.Address = GetApicMsiAddress (); in TimerDriverSetTimerPeriod() 591 …HpetTimerMsiRoute.Bits.Value = (UINT32)GetApicMsiValue (PcdGet8 (PcdHpetLocalApicVector), LOCAL_… in TimerDriverSetTimerPeriod() 596 mTimerConfiguration.Bits.MsiInterruptEnable = 1; in TimerDriverSetTimerPeriod() [all …]
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/X64/ |
D | IntHandlerFuncs.c | 41 InterruptHandler = IdtEntry[InterruptType].Bits.OffsetLow + in CheckDebugAgentHandler() 42 (((UINTN)IdtEntry[InterruptType].Bits.OffsetHigh) << 16) + in CheckDebugAgentHandler() 43 (((UINTN)IdtEntry[InterruptType].Bits.OffsetUpper) << 32); in CheckDebugAgentHandler() 77 IdtEntry[1].Bits.OffsetLow = (UINT16)(UINTN)InterruptHandler; in SaveAndUpdateIdtEntry1() 78 IdtEntry[1].Bits.OffsetHigh = (UINT16)((UINTN)InterruptHandler >> 16); in SaveAndUpdateIdtEntry1() 79 IdtEntry[1].Bits.OffsetUpper = (UINT32)((UINTN)InterruptHandler >> 32); in SaveAndUpdateIdtEntry1() 80 IdtEntry[1].Bits.Selector = CodeSegment; in SaveAndUpdateIdtEntry1() 81 IdtEntry[1].Bits.GateType = IA32_IDT_GATE_TYPE_INTERRUPT_32; in SaveAndUpdateIdtEntry1()
|