Home
last modified time | relevance | path

Searched refs:FwhInstance (Results 1 – 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/
DFWBlockService.c71 IN EFI_FW_VOL_INSTANCE *FwhInstance, in FlashFdWrite() argument
95 if (!EfiAtRuntime () && (FwhInstance->Device != NULL)) { in FlashFdWrite()
96 …Status = FileOpen (FwhInstance->Device, FwhInstance->MappedFile, &File, EFI_FILE_MODE_READ | EFI_F… in FlashFdWrite()
99 if (Address - FwhInstance->FvBase[FVB_PHYSICAL] < FwhInstance->Offset) { in FlashFdWrite()
101 BufferForFile = FwhInstance->FvBase[FVB_PHYSICAL] + FwhInstance->Offset; in FlashFdWrite()
102 Length = *NumBytes - (FwhInstance->Offset - (Address - FwhInstance->FvBase[FVB_PHYSICAL])); in FlashFdWrite()
104 FileOffset = Address - FwhInstance->FvBase[FVB_PHYSICAL] - FwhInstance->Offset; in FlashFdWrite()
120 IN EFI_FW_VOL_INSTANCE *FwhInstance, in FlashFdErase() argument
144 if (!EfiAtRuntime () && (FwhInstance->Device != NULL)) { in FlashFdErase()
145 …Status = FileOpen (FwhInstance->Device, FwhInstance->MappedFile, &File, EFI_FILE_MODE_READ | EFI_F… in FlashFdErase()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/
DFvbServiceDxe.c54 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbVirtualddressChangeEvent()
61 FwhInstance = GetFvbInstance (Index); in FvbVirtualddressChangeEvent()
62 EfiConvertPointer (0, (VOID **) &FwhInstance->FvBase); in FvbVirtualddressChangeEvent()
83 IN EFI_FW_VOL_INSTANCE *FwhInstance, in InstallFvbProtocol()
100 FwVolHeader = &FwhInstance->VolumeHeader; in InstallFvbProtocol()
105 DEBUG ((EFI_D_INFO, "FwBlockService.c: Setting up DevicePath for 0x%lx:\n", FwhInstance->FvBase)); in InstallFvbProtocol()
111 …((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.StartingAddress = FwhInstance->Fv… in InstallFvbProtocol()
112 …((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.EndingAddress = FwhInstance->Fv… in InstallFvbProtocol()
117 (GUID *)(UINTN)(FwhInstance->FvBase + FwVolHeader->ExtHeaderOffset) in InstallFvbProtocol()
133 …"FwBlockService.c: LocateDevicePath failed, install new interface 0x%lx:\n", FwhInstance->FvBase)); in InstallFvbProtocol()
[all …]
DFvbService.c209 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetLbaAddress()
215 FwhInstance = GetFvbInstance (Instance); in FvbGetLbaAddress()
219 BlockMap = &(FwhInstance->VolumeHeader.BlockMap[0]); in FvbGetLbaAddress()
242 if ( LbaAddress && FwhInstance ) { in FvbGetLbaAddress()
243 *LbaAddress = FwhInstance->FvBase + Offset; in FvbGetLbaAddress()
368 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbWriteBlock()
372 FwhInstance = GetFvbInstance (Instance); in FvbWriteBlock()
448 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbEraseBlock()
455 FwhInstance = GetFvbInstance (Instance); in FvbEraseBlock()
511 EFI_FW_VOL_INSTANCE *FwhInstance = NULL; in FvbSetVolumeAttributes()
[all …]
DFvbServiceSmm.c48 IN EFI_FW_VOL_INSTANCE *FwhInstance, in InstallFvbProtocol()
64 FwVolHeader = &FwhInstance->VolumeHeader; in InstallFvbProtocol()
74 …((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.StartingAddress = FwhInstance->Fv… in InstallFvbProtocol()
75 …((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.EndingAddress = FwhInstance->Fv… in InstallFvbProtocol()
80 (GUID *)(UINTN)(FwhInstance->FvBase + FwVolHeader->ExtHeaderOffset) in InstallFvbProtocol()
DFvbService.h180 IN EFI_FW_VOL_INSTANCE *FwhInstance,
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/SpiFvbServices/
DFwBlockService.c145 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbVirtualddressChangeEvent() local
154 FwhInstance = mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]; in FvbVirtualddressChangeEvent()
157 gRT->ConvertPointer (EFI_INTERNAL_POINTER, (VOID **) &FwhInstance->FvBase[FVB_VIRTUAL]); in FvbVirtualddressChangeEvent()
165 FwhInstance = (EFI_FW_VOL_INSTANCE *) in FvbVirtualddressChangeEvent()
167 (UINTN) ((UINT8 *) FwhInstance) + FwhInstance->VolumeHeader.HeaderLength + in FvbVirtualddressChangeEvent()
196 OUT EFI_FW_VOL_INSTANCE **FwhInstance, in GetFvbInstance() argument
236 *FwhInstance = FwhRecord; in GetFvbInstance()
269 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetPhysicalAddress() local
272 FwhInstance = NULL; in FvbGetPhysicalAddress()
277 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbGetPhysicalAddress()
[all …]
/device/linaro/bootloader/edk2/EmulatorPkg/FvbServicesRuntimeDxe/
DFWBlockService.c106 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbVirtualddressChangeEvent() local
115 FwhInstance = mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]; in FvbVirtualddressChangeEvent()
117 EfiConvertPointer (0x0, (VOID **) &FwhInstance->FvBase[FVB_VIRTUAL]); in FvbVirtualddressChangeEvent()
118 FwhInstance = (EFI_FW_VOL_INSTANCE *) in FvbVirtualddressChangeEvent()
120 (UINTN) ((UINT8 *) FwhInstance) + FwhInstance->VolumeHeader.HeaderLength + in FvbVirtualddressChangeEvent()
133 OUT EFI_FW_VOL_INSTANCE **FwhInstance, in GetFvbInstance() argument
173 *FwhInstance = FwhRecord; in GetFvbInstance()
206 EFI_FW_VOL_INSTANCE *FwhInstance = NULL; in FvbGetPhysicalAddress() local
212 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbGetPhysicalAddress()
214 *Address = FwhInstance->FvBase[Virtual]; in FvbGetPhysicalAddress()
[all …]
/device/linaro/bootloader/edk2/Nt32Pkg/FvbServicesRuntimeDxe/
DFWBlockService.c146 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbVirtualddressChangeEvent() local
155 FwhInstance = mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]; in FvbVirtualddressChangeEvent()
157 EfiConvertPointer (0x0, (VOID **) &FwhInstance->FvBase[FVB_VIRTUAL]); in FvbVirtualddressChangeEvent()
158 FwhInstance = (EFI_FW_VOL_INSTANCE *) in FvbVirtualddressChangeEvent()
160 (UINTN) ((UINT8 *) FwhInstance) + FwhInstance->VolumeHeader.HeaderLength + in FvbVirtualddressChangeEvent()
174 OUT EFI_FW_VOL_INSTANCE **FwhInstance, in GetFvbInstance() argument
214 *FwhInstance = FwhRecord; in GetFvbInstance()
247 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetPhysicalAddress() local
253 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbGetPhysicalAddress()
255 *Address = FwhInstance->FvBase[Virtual]; in FvbGetPhysicalAddress()
[all …]
/device/linaro/bootloader/edk2/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/
DFwBlockService.c115 OUT EFI_FW_VOL_INSTANCE **FwhInstance in GetFvbInstance() argument
137 *FwhInstance = NULL; in GetFvbInstance()
154 *FwhInstance = FwhRecord; in GetFvbInstance()
185 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetPhysicalAddress() local
191 Status = GetFvbInstance (Instance, Global, &FwhInstance); in FvbGetPhysicalAddress()
193 *Address = FwhInstance->FvBase; in FvbGetPhysicalAddress()
223 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetVolumeAttributes() local
229 Status = GetFvbInstance (Instance, Global, &FwhInstance); in FvbGetVolumeAttributes()
231 *Attributes = FwhInstance->VolumeHeader.Attributes; in FvbGetVolumeAttributes()
274 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetLbaAddress() local
[all …]
DFwBlockServiceDxe.c114 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbVirtualAddressChangeEvent() local
117 FwhInstance = mFvbModuleGlobal->FvInstance; in FvbVirtualAddressChangeEvent()
125 EfiConvertPointer (0x0, (VOID **) &FwhInstance->FvBase); in FvbVirtualAddressChangeEvent()
126 FwhInstance = (EFI_FW_VOL_INSTANCE *) in FvbVirtualAddressChangeEvent()
128 (UINTN) ((UINT8 *) FwhInstance) + in FvbVirtualAddressChangeEvent()
129 FwhInstance->VolumeHeader.HeaderLength + in FvbVirtualAddressChangeEvent()