Lines Matching refs:FvbDevice
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;
889 FvbDevice = FVB_DEVICE_FROM_THIS (This);
891 return FvbSetVolumeAttributes (FvbDevice->Instance, Attributes, mFvbModuleGlobal, EfiGoneVirtual ());
925 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
933 FvbDevice = FVB_DEVICE_FROM_THIS (This);
935 Status = GetFvbInstance (FvbDevice->Instance, mFvbModuleGlobal, &FwhInstance, EfiGoneVirtual ());
971 Status = FvbEraseBlock (FvbDevice->Instance, StartingLba, mFvbModuleGlobal, EfiGoneVirtual ());
1029 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
1031 FvbDevice = FVB_DEVICE_FROM_THIS (This);
1033 return FvbWriteBlock (FvbDevice->Instance, (EFI_LBA)Lba, (UINTN)Offset, NumBytes, (UINT8 *)Buffer, mFvbModuleGlobal, EfiGoneVirtual ());
1078 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
1080 FvbDevice = FVB_DEVICE_FROM_THIS (This);
1082 return FvbReadBlock (FvbDevice->Instance, Lba, Offset, NumBytes, Buffer, mFvbModuleGlobal, EfiGoneVirtual ());
1151 EFI_FW_VOL_BLOCK_DEVICE *FvbDevice;
1298 FvbDevice = AllocateRuntimePool (sizeof (EFI_FW_VOL_BLOCK_DEVICE));
1299 ASSERT (FvbDevice != NULL);
1301 CopyMem (FvbDevice, &mFvbDeviceTemplate, sizeof (EFI_FW_VOL_BLOCK_DEVICE));
1303 FvbDevice->Instance = mFvbModuleGlobal->NumFv;
1314 FvbDevice->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateCopyPool (sizeof (FV_MEMMAP_DEVICE_PATH), &mFvMemmapDevicePathTemplate);
1315 ((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.StartingAddress = BaseAddress;
1316 ((FV_MEMMAP_DEVICE_PATH *) FvbDevice->DevicePath)->MemMapDevPath.EndingAddress = BaseAddress + FwVolHeader->FvLength - 1;
1318 FvbDevice->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *) AllocateCopyPool (sizeof (FV_PIWG_DEVICE_PATH), &mFvPIWGDevicePathTemplate);
1320 &((FV_PIWG_DEVICE_PATH *)FvbDevice->DevicePath)->FvDevPath.FvName,
1327 Status = gBS->LocateDevicePath (&gEfiFirmwareVolumeBlockProtocolGuid, &FvbDevice->DevicePath, &FwbHandle);
1336 &FvbDevice->FwVolBlockInstance,
1338 FvbDevice->DevicePath,
1342 } else if (IsDevicePathEnd (FvbDevice->DevicePath)) {
1357 &FvbDevice->FwVolBlockInstance