/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/ |
FvbServiceSmm.c | 52 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
57 FvbDevice = (EFI_FW_VOL_BLOCK_DEVICE *) AllocateRuntimeCopyPool (
61 ASSERT (FvbDevice != NULL);
63 FvbDevice->Instance = InstanceNum;
73 FvbDevice->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateRuntimeCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH), &mFvMemmapDevicePathTemplate);
74 ((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.StartingAddress = FwhInstance->FvBase;
75 ((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.EndingAddress = FwhInstance->FvBase + FwVolHeader->FvLength - 1;
77 FvbDevice->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateRuntimeCopyPool (sizeof (FV_PIWG_DEVICE_PATH), &mFvPIWGDevicePathTemplate);
79 &((FV_PIWG_DEVICE_PATH *)FvbDevice->DevicePath)->FvDevPath.FvName,
92 &FvbDevice->FwVolBlockInstance [all...] |
FvbServiceDxe.c | 87 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
93 FvbDevice = (EFI_FW_VOL_BLOCK_DEVICE *) AllocateRuntimeCopyPool (
97 ASSERT (FvbDevice != NULL);
99 FvbDevice->Instance = InstanceNum;
110 FvbDevice->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateRuntimeCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH), &mFvMemmapDevicePathTemplate);
111 ((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.StartingAddress = FwhInstance->FvBase;
112 ((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.EndingAddress = FwhInstance->FvBase + FwVolHeader->FvLength - 1;
114 FvbDevice->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateRuntimeCopyPool (sizeof (FV_PIWG_DEVICE_PATH), &mFvPIWGDevicePathTemplate);
116 &((FV_PIWG_DEVICE_PATH *)FvbDevice->DevicePath)->FvDevPath.FvName,
126 &FvbDevice->DevicePath, [all...] |
FvbService.c | 624 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
627 FvbDevice = FVB_DEVICE_FROM_THIS (This);
628 FvInstance = GetFvbInstance(FvbDevice->Instance);
662 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
671 FvbDevice = FVB_DEVICE_FROM_THIS (This);
674 FvbDevice->Instance,
699 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
701 FvbDevice = FVB_DEVICE_FROM_THIS (This);
703 *Attributes = FvbGetVolumeAttributes (FvbDevice->Instance);
732 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
[all...] |
FvbSmmDxe.c | 199 EFI_FVB_DEVICE *FvbDevice;
205 FvbDevice = FVB_DEVICE_FROM_THIS (This);
206 SmmFvb = FvbDevice->SmmFvbInstance;
262 EFI_FVB_DEVICE *FvbDevice;
268 FvbDevice = FVB_DEVICE_FROM_THIS (This);
269 SmmFvb = FvbDevice->SmmFvbInstance;
375 EFI_FVB_DEVICE *FvbDevice;
381 FvbDevice = FVB_DEVICE_FROM_THIS (This);
382 SmmFvb = FvbDevice->SmmFvbInstance;
419 EFI_FVB_DEVICE *FvbDevice;
[all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/FwVolBlock/ |
FwVolBlock.c | 106 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
108 FvbDevice = FVB_DEVICE_FROM_THIS (This);
113 *Attributes = FvbDevice->FvbAttributes & ~EFI_FVB2_WRITE_STATUS;
210 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
217 FvbDevice = FVB_DEVICE_FROM_THIS (This);
222 if ((FvbDevice->FvbAttributes & EFI_FVB2_READ_STATUS) == 0) {
227 if (LbaIndex >= FvbDevice->NumBlocks) {
235 if (Offset > FvbDevice->LbaCache[LbaIndex].Length) {
244 if (Offset + NumOfBytesRead > FvbDevice->LbaCache[LbaIndex].Length) {
248 NumOfBytesRead = FvbDevice->LbaCache[LbaIndex].Length - Offset; [all...] |
/device/linaro/bootloader/edk2/OvmfPkg/EmuVariableFvbRuntimeDxe/ |
Fvb.c | 141 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
143 FvbDevice = FVB_DEVICE_FROM_THIS (This);
145 *Address = (EFI_PHYSICAL_ADDRESS)(UINTN) FvbDevice->BufferPtr;
186 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
192 FvbDevice = FVB_DEVICE_FROM_THIS (This);
194 *BlockSize = FvbDevice->BlockSize;
324 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
332 FvbDevice = FVB_DEVICE_FROM_THIS (This);
364 ErasePtr = (UINT8*) FvbDevice->BufferPtr;
368 EraseSize = EraseSize + FvbDevice->BlockSize; [all...] |
/device/linaro/bootloader/edk2/EmulatorPkg/FvbServicesRuntimeDxe/ |
FWBlockService.c | 750 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
752 FvbDevice = FVB_DEVICE_FROM_THIS (This);
754 return FvbGetPhysicalAddress (FvbDevice->Instance, Address, mFvbModuleGlobal, EfiGoneVirtual ());
786 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
788 FvbDevice = FVB_DEVICE_FROM_THIS (This);
791 FvbDevice->Instance,
821 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
823 FvbDevice = FVB_DEVICE_FROM_THIS (This);
825 return FvbGetVolumeAttributes (FvbDevice->Instance, Attributes, mFvbModuleGlobal, EfiGoneVirtual ());
848 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
[all...] |
/device/linaro/bootloader/edk2/Nt32Pkg/FvbServicesRuntimeDxe/ |
FWBlockService.c | 789 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
791 FvbDevice = FVB_DEVICE_FROM_THIS (This);
793 return FvbGetPhysicalAddress (FvbDevice->Instance, Address, mFvbModuleGlobal, EfiGoneVirtual ());
825 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
827 FvbDevice = FVB_DEVICE_FROM_THIS (This);
830 FvbDevice->Instance,
860 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
862 FvbDevice = FVB_DEVICE_FROM_THIS (This);
864 return FvbGetVolumeAttributes (FvbDevice->Instance, Attributes, mFvbModuleGlobal, EfiGoneVirtual ());
887 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
[all...] |
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/ |
FwBlockService.c | 485 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
487 FvbDevice = FVB_DEVICE_FROM_THIS (This);
489 return FvbGetPhysicalAddress (FvbDevice->Instance, Address,
522 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
524 FvbDevice = FVB_DEVICE_FROM_THIS (This);
527 FvbDevice->Instance,
556 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
558 FvbDevice = FVB_DEVICE_FROM_THIS (This);
560 return FvbGetVolumeAttributes (FvbDevice->Instance, Attributes,
584 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
[all...] |
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/SpiFvbServices/ |
FwBlockService.c | 1054 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
[all...] |
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/ |
FWBlockService.c | 835 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
837 FvbDevice = FVB_DEVICE_FROM_THIS (This);
839 return FvbGetPhysicalAddress (FvbDevice->Instance, Address, mFvbModuleGlobal, EfiGoneVirtual ());
871 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
873 FvbDevice = FVB_DEVICE_FROM_THIS (This);
876 FvbDevice->Instance,
906 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
908 FvbDevice = FVB_DEVICE_FROM_THIS (This);
910 return FvbGetVolumeAttributes (FvbDevice->Instance, Attributes, mFvbModuleGlobal, EfiGoneVirtual ());
933 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
[all...] |