Home
last modified time | relevance | path

Searched refs:VariableMtrr (Results 1 – 4 of 4) sorted by relevance

/device/linaro/bootloader/edk2/UefiCpuPkg/Library/MtrrLib/
DMtrrLib.c577 OUT VARIABLE_MTRR *VariableMtrr in MtrrGetMemoryAttributeInVariableMtrrWorker() argument
583 ZeroMem (VariableMtrr, sizeof (VARIABLE_MTRR) * MTRR_NUMBER_OF_VARIABLE_MTRR); in MtrrGetMemoryAttributeInVariableMtrrWorker()
586 VariableMtrr[Index].Msr = (UINT32)Index; in MtrrGetMemoryAttributeInVariableMtrrWorker()
587 VariableMtrr[Index].BaseAddress = (VariableSettings->Mtrr[Index].Base & MtrrValidAddressMask); in MtrrGetMemoryAttributeInVariableMtrrWorker()
588VariableMtrr[Index].Length = ((~(VariableSettings->Mtrr[Index].Mask & MtrrValidAddressMask)) … in MtrrGetMemoryAttributeInVariableMtrrWorker()
589 VariableMtrr[Index].Type = (VariableSettings->Mtrr[Index].Base & 0x0ff); in MtrrGetMemoryAttributeInVariableMtrrWorker()
590 VariableMtrr[Index].Valid = TRUE; in MtrrGetMemoryAttributeInVariableMtrrWorker()
591 VariableMtrr[Index].Used = TRUE; in MtrrGetMemoryAttributeInVariableMtrrWorker()
618 OUT VARIABLE_MTRR *VariableMtrr in MtrrGetMemoryAttributeInVariableMtrr() argument
638 VariableMtrr in MtrrGetMemoryAttributeInVariableMtrr()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/MtrrLib/
DMtrrLib.c553 OUT VARIABLE_MTRR *VariableMtrr in MtrrGetMemoryAttributeInVariableMtrrWorker() argument
559 ZeroMem (VariableMtrr, sizeof (VARIABLE_MTRR) * MTRR_NUMBER_OF_VARIABLE_MTRR); in MtrrGetMemoryAttributeInVariableMtrrWorker()
562 VariableMtrr[Index].Msr = (UINT32)Index; in MtrrGetMemoryAttributeInVariableMtrrWorker()
563 VariableMtrr[Index].BaseAddress = (VariableSettings->Mtrr[Index].Base & MtrrValidAddressMask); in MtrrGetMemoryAttributeInVariableMtrrWorker()
564VariableMtrr[Index].Length = ((~(VariableSettings->Mtrr[Index].Mask & MtrrValidAddressMask)) … in MtrrGetMemoryAttributeInVariableMtrrWorker()
565 VariableMtrr[Index].Type = (VariableSettings->Mtrr[Index].Base & 0x0ff); in MtrrGetMemoryAttributeInVariableMtrrWorker()
566 VariableMtrr[Index].Valid = TRUE; in MtrrGetMemoryAttributeInVariableMtrrWorker()
567 VariableMtrr[Index].Used = TRUE; in MtrrGetMemoryAttributeInVariableMtrrWorker()
594 OUT VARIABLE_MTRR *VariableMtrr in MtrrGetMemoryAttributeInVariableMtrr() argument
614 VariableMtrr in MtrrGetMemoryAttributeInVariableMtrr()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuDxe/
DCpuDxe.c662 VARIABLE_MTRR VariableMtrr[MTRR_NUMBER_OF_VARIABLE_MTRR]; in RefreshGcdMemoryAttributes() local
688 VariableMtrr in RefreshGcdMemoryAttributes()
722 if (VariableMtrr[Index].Valid && in RefreshGcdMemoryAttributes()
723 VariableMtrr[Index].Type == MTRR_CACHE_WRITE_BACK) { in RefreshGcdMemoryAttributes()
727 VariableMtrr[Index].BaseAddress, in RefreshGcdMemoryAttributes()
728 VariableMtrr[Index].Length, in RefreshGcdMemoryAttributes()
738 if (VariableMtrr[Index].Valid && in RefreshGcdMemoryAttributes()
739 VariableMtrr[Index].Type != MTRR_CACHE_WRITE_BACK && in RefreshGcdMemoryAttributes()
740 VariableMtrr[Index].Type != MTRR_CACHE_UNCACHEABLE) { in RefreshGcdMemoryAttributes()
741 Attributes = GetMemorySpaceAttributeFromMtrrType ((UINT8) VariableMtrr[Index].Type); in RefreshGcdMemoryAttributes()
[all …]
/device/linaro/bootloader/edk2/UefiCpuPkg/Include/Library/
DMtrrLib.h317 OUT VARIABLE_MTRR *VariableMtrr