• Home
  • Raw
  • Download

Lines Matching refs:FwhInstance

71   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()
148 if (Address - FwhInstance->FvBase[FVB_PHYSICAL] < FwhInstance->Offset) { in FlashFdErase()
150 BufferForFile = FwhInstance->FvBase[FVB_PHYSICAL] + FwhInstance->Offset; in FlashFdErase()
151 Length = LbaLength - (FwhInstance->Offset - (Address - FwhInstance->FvBase[FVB_PHYSICAL])); in FlashFdErase()
153 FileOffset = Address - FwhInstance->FvBase[FVB_PHYSICAL] - FwhInstance->Offset; in FlashFdErase()
194 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbVirtualddressChangeEvent() local
203 FwhInstance = mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]; in FvbVirtualddressChangeEvent()
205 EfiConvertPointer (0, (VOID **) &FwhInstance->FvBase[FVB_VIRTUAL]); in FvbVirtualddressChangeEvent()
206FwhInstance = (EFI_FW_VOL_INSTANCE *) ((UINTN)((UINT8 *)FwhInstance) + FwhInstance->VolumeHeader.H… in FvbVirtualddressChangeEvent()
219 OUT EFI_FW_VOL_INSTANCE **FwhInstance, in GetFvbInstance() argument
256 *FwhInstance = FwhRecord; in GetFvbInstance()
289 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetPhysicalAddress() local
295 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbGetPhysicalAddress()
297 *Address = FwhInstance->FvBase[Virtual]; in FvbGetPhysicalAddress()
329 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetVolumeAttributes() local
335 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbGetVolumeAttributes()
337 *Attributes = FwhInstance->VolumeHeader.Attributes; in FvbGetVolumeAttributes()
382 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbGetLbaAddress() local
389 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbGetLbaAddress()
394 BlockMap = &(FwhInstance->VolumeHeader.BlockMap[0]); in FvbGetLbaAddress()
416 *LbaAddress = FwhInstance->FvBase[Virtual] + Offset; in FvbGetLbaAddress()
564 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbWriteBlock() local
571 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbWriteBlock()
577 if (!FwhInstance->WriteEnabled) { in FvbWriteBlock()
617 FwhInstance, in FvbWriteBlock()
660 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbEraseBlock() local
667 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbEraseBlock()
673 if (!FwhInstance->WriteEnabled) { in FvbEraseBlock()
695 FwhInstance, in FvbEraseBlock()
733 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbSetVolumeAttributes() local
744 Status = GetFvbInstance (Instance, Global, &FwhInstance, Virtual); in FvbSetVolumeAttributes()
747 AttribPtr = (EFI_FVB_ATTRIBUTES_2 *) &(FwhInstance->VolumeHeader.Attributes); in FvbSetVolumeAttributes()
972 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbProtocolEraseBlocks() local
981 …Status = GetFvbInstance (FvbDevice->Instance, mFvbModuleGlobal, &FwhInstance, EfiGoneVirtual ()… in FvbProtocolEraseBlocks()
984 NumOfBlocks = FwhInstance->NumOfBlocks; in FvbProtocolEraseBlocks()
1276 EFI_FW_VOL_INSTANCE *FwhInstance; in OnSimpleFileSystemInstall() local
1295 Status = GetFvbInstance (Instance, mFvbModuleGlobal, &FwhInstance, FALSE); in OnSimpleFileSystemInstall()
1298 if (FwhInstance->MappedFile[0] == L'\0') { in OnSimpleFileSystemInstall()
1305 if ((FwhInstance->Device != NULL) && in OnSimpleFileSystemInstall()
1306 !EFI_ERROR (CheckStoreExists (FwhInstance->Device)) in OnSimpleFileSystemInstall()
1314 (UINTN) FwhInstance->FvBase[FVB_PHYSICAL], in OnSimpleFileSystemInstall()
1315 (UINTN) FwhInstance->Offset in OnSimpleFileSystemInstall()
1320 Status = CheckStore (Handle, FwhInstance->VolumeId, &Device); in OnSimpleFileSystemInstall()
1325 …Status = FileOpen (Device, FwhInstance->MappedFile, &File, EFI_FILE_MODE_WRITE | EFI_FILE_MODE_REA… in OnSimpleFileSystemInstall()
1330 (UINTN) FwhInstance->FvBase[FVB_PHYSICAL], in OnSimpleFileSystemInstall()
1331 (UINTN) FwhInstance->Offset in OnSimpleFileSystemInstall()
1336 FwhInstance->FvBase[FVB_PHYSICAL] + FwhInstance->Offset, in OnSimpleFileSystemInstall()
1337 FwhInstance->ActuralSize - FwhInstance->Offset in OnSimpleFileSystemInstall()
1341 if (FwhInstance->Device != NULL) { in OnSimpleFileSystemInstall()
1342 gBS->FreePool (FwhInstance->Device); in OnSimpleFileSystemInstall()
1344 FwhInstance->Device = Device; in OnSimpleFileSystemInstall()
1347 (UINTN) FwhInstance->FvBase[FVB_PHYSICAL], in OnSimpleFileSystemInstall()
1348 (UINTN) FwhInstance->Offset in OnSimpleFileSystemInstall()
1402 EFI_FW_VOL_INSTANCE *FwhInstance; in FvbInitialize() local
1469 FwhInstance = mFvbModuleGlobal->FvInstance[FVB_PHYSICAL]; in FvbInitialize()
1470 mFvbModuleGlobal->FvInstance[FVB_VIRTUAL] = FwhInstance; in FvbInitialize()
1494 …CopyMem ((UINTN *) &(FwhInstance->VolumeHeader), (UINTN *) FwVolHeader, FwVolHeader->HeaderLength); in FvbInitialize()
1495 FwVolHeader = &(FwhInstance->VolumeHeader); in FvbInitialize()
1497 FwhInstance->FvBase[FVB_PHYSICAL] = (UINTN) BaseAddress; in FvbInitialize()
1498 FwhInstance->FvBase[FVB_VIRTUAL] = (UINTN) BaseAddress; in FvbInitialize()
1499 FwhInstance->Device = NULL; in FvbInitialize()
1500 FwhInstance->Offset = Offset; in FvbInitialize()
1503 FwhInstance->VolumeId = VolumeId; in FvbInitialize()
1504 FwhInstance->ActuralSize = ActuralSize; in FvbInitialize()
1505 StrCpy (FwhInstance->MappedFile, MappedFile); in FvbInitialize()
1509 FwhInstance->VolumeId = (UINT32) -1; in FvbInitialize()
1510 FwhInstance->ActuralSize = (UINT32) -1; in FvbInitialize()
1511 FwhInstance->MappedFile[0] = L'\0'; in FvbInitialize()
1519 FwhInstance->WriteEnabled = TRUE; // Ken: Why enable write? in FvbInitialize()
1520 EfiInitializeLock (&(FwhInstance->FvbDevLock), TPL_HIGH_LEVEL); in FvbInitialize()
1522 LbaAddress = (UINTN) FwhInstance->FvBase[0]; in FvbInitialize()
1525 if (FwhInstance->WriteEnabled) { in FvbInitialize()
1545 (UINTN) FwhInstance->FvBase[0], in FvbInitialize()
1546 FwhInstance, in FvbInitialize()
1553 (UINTN) FwhInstance->FvBase[0], in FvbInitialize()
1554 FwhInstance, in FvbInitialize()
1561 …I_D_ERROR, "Fvb (0x%x): FV header invalid, write back - %r\n", (UINTN) FwhInstance->FvBase[0], Sta… in FvbInitialize()
1567 FwhInstance->NumOfBlocks = NumOfBlocks; in FvbInitialize()
1636 FwhInstance = (EFI_FW_VOL_INSTANCE *) in FvbInitialize()
1638 (UINTN) ((UINT8 *) FwhInstance) + FwVolHeader->HeaderLength + in FvbInitialize()