Home
last modified time | relevance | path

Searched refs:FwCfgSize (Results 1 – 8 of 8) sorted by relevance

/device/linaro/bootloader/edk2/OvmfPkg/PlatformPei/
DFeatureControl.c116 UINTN FwCfgSize; in InstallFeatureControlCallback() local
119 &FwCfgSize); in InstallFeatureControlCallback()
120 if (EFI_ERROR (Status) || FwCfgSize != sizeof mFeatureControlValue) { in InstallFeatureControlCallback()
DMemDetect.c108 UINTN FwCfgSize; in GetFirstNonAddress() local
140 &FwCfgSize); in GetFirstNonAddress()
142 if (FwCfgSize >= sizeof MbString) { in GetFirstNonAddress()
148 QemuFwCfgReadBytes (FwCfgSize, MbString); in GetFirstNonAddress()
149 MbString[FwCfgSize] = '\0'; in GetFirstNonAddress()
177 &FwCfgSize); in GetFirstNonAddress()
178 if (!EFI_ERROR (Status) && FwCfgSize == sizeof HotPlugMemoryEnd) { in GetFirstNonAddress()
180 QemuFwCfgReadBytes (FwCfgSize, &HotPlugMemoryEnd); in GetFirstNonAddress()
DPlatform.c288 UINTN FwCfgSize; in GetNamedFwCfgBoolean() local
291 Status = QemuFwCfgFindFile (FwCfgFileName, &FwCfgItem, &FwCfgSize); in GetNamedFwCfgBoolean()
295 if (FwCfgSize > sizeof Value) { in GetNamedFwCfgBoolean()
299 QemuFwCfgReadBytes (FwCfgSize, Value); in GetNamedFwCfgBoolean()
301 if ((FwCfgSize == 1) || in GetNamedFwCfgBoolean()
302 (FwCfgSize == 2 && Value[1] == '\n') || in GetNamedFwCfgBoolean()
303 (FwCfgSize == 3 && Value[1] == '\r' && Value[2] == '\n')) { in GetNamedFwCfgBoolean()
/device/linaro/bootloader/edk2/OvmfPkg/AcpiPlatformDxe/
DQemuFwCfgAcpi.c137 UINTN FwCfgSize; in ProcessCmdAllocate() local
154 Status = QemuFwCfgFindFile ((CHAR8 *)Allocate->File, &FwCfgItem, &FwCfgSize); in ProcessCmdAllocate()
161 NumPages = EFI_SIZE_TO_PAGES (FwCfgSize); in ProcessCmdAllocate()
175 Blob->Size = FwCfgSize; in ProcessCmdAllocate()
190 QemuFwCfgReadBytes (FwCfgSize, Blob->Base); in ProcessCmdAllocate()
561 UINTN FwCfgSize; in InstallQemuFwCfgTables() local
571 Status = QemuFwCfgFindFile ("etc/table-loader", &FwCfgItem, &FwCfgSize); in InstallQemuFwCfgTables()
575 if (FwCfgSize % sizeof *LoaderEntry != 0) { in InstallQemuFwCfgTables()
577 __FUNCTION__, (UINT64)FwCfgSize)); in InstallQemuFwCfgTables()
581 LoaderStart = AllocatePool (FwCfgSize); in InstallQemuFwCfgTables()
[all …]
DQemu.c346 UINTN FwCfgSize; in GetSuspendStates() local
365 Status = QemuFwCfgFindFile ("etc/system-states", &FwCfgItem, &FwCfgSize); in GetSuspendStates()
366 if (Status != RETURN_SUCCESS || FwCfgSize != sizeof SystemStates) { in GetSuspendStates()
/device/linaro/bootloader/edk2/OvmfPkg/Library/PciHostBridgeLib/
DPciHostBridgeLib.c208 UINTN FwCfgSize; in PciHostBridgeGetRootBridges() local
253 Status = QemuFwCfgFindFile ("etc/extra-pci-roots", &FwCfgItem, &FwCfgSize); in PciHostBridgeGetRootBridges()
254 if (EFI_ERROR (Status) || FwCfgSize != sizeof ExtraRootBridges) { in PciHostBridgeGetRootBridges()
258 QemuFwCfgReadBytes (FwCfgSize, &ExtraRootBridges); in PciHostBridgeGetRootBridges()
/device/linaro/bootloader/edk2/OvmfPkg/Library/QemuFwCfgLib/
DQemuFwCfgLib.c389 UINTN FwCfgSize; in QemuFwCfgS3Enabled() local
392 Status = QemuFwCfgFindFile ("etc/system-states", &FwCfgItem, &FwCfgSize); in QemuFwCfgS3Enabled()
393 if (Status != RETURN_SUCCESS || FwCfgSize != sizeof SystemStates) { in QemuFwCfgS3Enabled()
/device/linaro/bootloader/edk2/OvmfPkg/Library/QemuBootOrderLib/
DQemuBootOrderLib.c1728 UINTN FwCfgSize; in SetBootOrderFromQemu() local
1743 Status = QemuFwCfgFindFile ("bootorder", &FwCfgItem, &FwCfgSize); in SetBootOrderFromQemu()
1748 if (FwCfgSize == 0) { in SetBootOrderFromQemu()
1752 FwCfg = AllocatePool (FwCfgSize); in SetBootOrderFromQemu()
1758 QemuFwCfgReadBytes (FwCfgSize, FwCfg); in SetBootOrderFromQemu()
1759 if (FwCfg[FwCfgSize - 1] != '\0') { in SetBootOrderFromQemu()