/device/linaro/bootloader/edk2/Nt32Pkg/WinNtBlockIoDxe/ |
D | WinNtBlockIo.c | 354 EFI_BLOCK_IO_PROTOCOL *BlockIo; in WinNtBlockIoDriverBindingStop() local 364 (VOID **) &BlockIo, in WinNtBlockIoDriverBindingStop() 373 Private = WIN_NT_BLOCK_IO_PRIVATE_DATA_FROM_THIS (BlockIo); in WinNtBlockIoDriverBindingStop() 383 &Private->BlockIo, in WinNtBlockIoDriverBindingStop() 481 EFI_BLOCK_IO_PROTOCOL *BlockIo; in WinNtBlockIoCreateMapping() local 529 BlockIo = &Private->BlockIo; in WinNtBlockIoCreateMapping() 530 BlockIo->Revision = EFI_BLOCK_IO_PROTOCOL_REVISION; in WinNtBlockIoCreateMapping() 531 BlockIo->Media = &Private->Media; in WinNtBlockIoCreateMapping() 532 BlockIo->Media->BlockSize = (UINT32)Private->BlockSize; in WinNtBlockIoCreateMapping() 533 BlockIo->Media->LastBlock = Private->NumberOfBlocks - 1; in WinNtBlockIoCreateMapping() [all …]
|
D | DriverConfiguration.c | 125 EFI_BLOCK_IO_PROTOCOL *BlockIo; in WinNtBlockIoDriverConfigurationSetOptions() local 157 (VOID **) &BlockIo, in WinNtBlockIoDriverConfigurationSetOptions() 226 EFI_BLOCK_IO_PROTOCOL *BlockIo; in WinNtBlockIoDriverConfigurationOptionsValid() local 242 (VOID **) &BlockIo, in WinNtBlockIoDriverConfigurationOptionsValid() 302 EFI_BLOCK_IO_PROTOCOL *BlockIo; in WinNtBlockIoDriverConfigurationForceDefaults() local 318 (VOID **) &BlockIo, in WinNtBlockIoDriverConfigurationForceDefaults()
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Universal/MmcDxe/ |
D | Diagnostics.c | 106 if (!MmcHostInstance->BlockIo.Media->MediaPresent) { in MmcReadWriteDataTest() 121 …Status = MmcReadBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,B… in MmcReadWriteDataTest() 129 …Status = MmcWriteBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,… in MmcReadWriteDataTest() 136 …Status = MmcReadBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,B… in MmcReadWriteDataTest() 149 …Status = MmcWriteBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,… in MmcReadWriteDataTest() 156 …Status = MmcReadBlocks (&(MmcHostInstance->BlockIo), MmcHostInstance->BlockIo.Media->MediaId,Lba,B… in MmcReadWriteDataTest() 228 Status = MmcReadWriteDataTest (MmcHostInstance, 1, MmcHostInstance->BlockIo.Media->BlockSize); in MmcDriverDiagnosticsRunDiagnostics() 232 Status = MmcReadWriteDataTest (MmcHostInstance, 2, MmcHostInstance->BlockIo.Media->BlockSize); in MmcDriverDiagnosticsRunDiagnostics() 236 …WriteDataTest (MmcHostInstance, MmcHostInstance->BlockIo.Media->LastBlock >> 1, MmcHostInstance->B… in MmcDriverDiagnosticsRunDiagnostics() 240 …adWriteDataTest (MmcHostInstance, MmcHostInstance->BlockIo.Media->LastBlock, MmcHostInstance->Bloc… in MmcDriverDiagnosticsRunDiagnostics() [all …]
|
D | Mmc.c | 103 …MmcHostInstance->BlockIo.Media = AllocateCopyPool (sizeof(EFI_BLOCK_IO_MEDIA), &mMmcMediaTemplate); in CreateMmcHostInstance() 104 if (MmcHostInstance->BlockIo.Media == NULL) { in CreateMmcHostInstance() 108 MmcHostInstance->BlockIo.Revision = EFI_BLOCK_IO_INTERFACE_REVISION; in CreateMmcHostInstance() 109 MmcHostInstance->BlockIo.Reset = MmcReset; in CreateMmcHostInstance() 110 MmcHostInstance->BlockIo.ReadBlocks = MmcReadBlocks; in CreateMmcHostInstance() 111 MmcHostInstance->BlockIo.WriteBlocks = MmcWriteBlocks; in CreateMmcHostInstance() 112 MmcHostInstance->BlockIo.FlushBlocks = MmcFlushBlocks; in CreateMmcHostInstance() 137 &gEfiBlockIoProtocolGuid,&MmcHostInstance->BlockIo, in CreateMmcHostInstance() 152 FreePool(MmcHostInstance->BlockIo.Media); in CreateMmcHostInstance() 169 &gEfiBlockIoProtocolGuid,&(MmcHostInstance->BlockIo), in DestroyMmcHostInstance() [all …]
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressFastBootDxe/ |
D | ArmVExpressFastBoot.c | 77 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, in ReadPartitionEntries() argument 88 MediaId = BlockIo->Media->MediaId; in ReadPartitionEntries() 94 GptHeader = AllocatePool (BlockIo->Media->BlockSize); in ReadPartitionEntries() 99 Status = BlockIo->ReadBlocks (BlockIo, MediaId, 1, BlockIo->Media->BlockSize, (VOID *) GptHeader); in ReadPartitionEntries() 122 BufferSize = ALIGN_VALUE (EntrySize * NumEntries, BlockIo->Media->BlockSize); in ReadPartitionEntries() 128 Status = BlockIo->ReadBlocks (BlockIo, MediaId, 2, BufferSize, (VOID *) *PartitionEntries); in ReadPartitionEntries() 336 EFI_BLOCK_IO_PROTOCOL *BlockIo; in ArmFastbootPlatformFlashPartition() local 365 (VOID **) &BlockIo, in ArmFastbootPlatformFlashPartition() 376 PartitionSize = (BlockIo->Media->LastBlock + 1) * BlockIo->Media->BlockSize; in ArmFastbootPlatformFlashPartition() 384 MediaId = BlockIo->Media->MediaId; in ArmFastbootPlatformFlashPartition() [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/PartitionDxe/ |
D | Gpt.c | 48 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 68 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 88 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 203 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, in PartitionInstallGptChildHandles() argument 228 BlockSize = BlockIo->Media->BlockSize; in PartitionInstallGptChildHandles() 229 LastBlock = BlockIo->Media->LastBlock; in PartitionInstallGptChildHandles() 230 MediaId = BlockIo->Media->MediaId; in PartitionInstallGptChildHandles() 291 if (!PartitionValidGptTable (BlockIo, DiskIo, PRIMARY_PART_HEADER_LBA, PrimaryHeader)) { in PartitionInstallGptChildHandles() 294 if (!PartitionValidGptTable (BlockIo, DiskIo, LastBlock, BackupHeader)) { in PartitionInstallGptChildHandles() 300 if (!PartitionRestoreGptTable (BlockIo, DiskIo, BackupHeader)) { in PartitionInstallGptChildHandles() [all …]
|
D | Partition.c | 197 EFI_BLOCK_IO_PROTOCOL *BlockIo; in PartitionDriverBindingStart() local 229 (VOID **) &BlockIo, in PartitionDriverBindingStart() 304 MediaPresent = BlockIo->Media->MediaPresent; in PartitionDriverBindingStart() 305 if (BlockIo->Media->MediaPresent || in PartitionDriverBindingStart() 306 (BlockIo->Media->RemovableMedia && !BlockIo->Media->LogicalPartition)) { in PartitionDriverBindingStart() 319 BlockIo, in PartitionDriverBindingStart() 399 EFI_BLOCK_IO_PROTOCOL *BlockIo; in PartitionDriverBindingStop() local 405 BlockIo = NULL; in PartitionDriverBindingStop() 453 (VOID **) &BlockIo, in PartitionDriverBindingStop() 471 Private = PARTITION_DEVICE_FROM_BLOCK_IO_THIS (BlockIo); in PartitionDriverBindingStop() [all …]
|
D | Partition.h | 52 EFI_BLOCK_IO_PROTOCOL BlockIo; member 75 #define PARTITION_DEVICE_FROM_BLOCK_IO_THIS(a) CR (a, PARTITION_PRIVATE_DATA, BlockIo, PARTITION_P… 386 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 414 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 441 IN EFI_BLOCK_IO_PROTOCOL *BlockIo, 453 IN EFI_BLOCK_IO_PROTOCOL *BlockIo,
|
/device/linaro/bootloader/edk2/OvmfPkg/XenPvBlkDxe/ |
D | XenPvBlkDxe.c | 283 CopyMem (&Dev->BlockIo, &gXenPvBlkDxeBlockIo, sizeof (EFI_BLOCK_IO_PROTOCOL)); in XenPvBlkDxeDriverBindingStart() 305 Dev->BlockIo.Media = Media; in XenPvBlkDxeDriverBindingStart() 309 &gEfiBlockIoProtocolGuid, &Dev->BlockIo, in XenPvBlkDxeDriverBindingStart() 363 EFI_BLOCK_IO_PROTOCOL *BlockIo; in XenPvBlkDxeDriverBindingStop() local 370 (VOID **)&BlockIo, in XenPvBlkDxeDriverBindingStop() 379 &gEfiBlockIoProtocolGuid, BlockIo); in XenPvBlkDxeDriverBindingStop() 384 Media = BlockIo->Media; in XenPvBlkDxeDriverBindingStop() 385 Dev = XEN_BLOCK_FRONT_FROM_BLOCK_IO (BlockIo); in XenPvBlkDxeDriverBindingStop()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | Dblk.c | 35 EFI_BLOCK_IO_PROTOCOL *BlockIo; in DisplayTheBlocks() local 49 …Status = gBS->OpenProtocol(BlockIoHandle, &gEfiBlockIoProtocolGuid, (VOID**)&BlockIo, gImageHandle… in DisplayTheBlocks() 54 BufferSize = BlockIo->Media->BlockSize * BlockCount; in DisplayTheBlocks() 58 …ShellPrintEx(-1,-1,L" BlockSize: 0x%08x, BlockCount: 0x%08x\r\n", BlockIo->Media->BlockSize, Bloc… in DisplayTheBlocks() 62 Status = BlockIo->ReadBlocks(BlockIo, BlockIo->Media->MediaId, Lba, BufferSize, Buffer); in DisplayTheBlocks() 72 BlockIo in DisplayTheBlocks()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/ |
D | UsbMassImpl.c | 500 UsbMass->BlockIo.Media = &UsbMass->BlockIoMedia; in UsbMassInitMultiLun() 501 UsbMass->BlockIo.Reset = UsbMassReset; in UsbMassInitMultiLun() 502 UsbMass->BlockIo.ReadBlocks = UsbMassReadBlocks; in UsbMassInitMultiLun() 503 UsbMass->BlockIo.WriteBlocks = UsbMassWriteBlocks; in UsbMassInitMultiLun() 504 UsbMass->BlockIo.FlushBlocks = UsbMassFlushBlocks; in UsbMassInitMultiLun() 548 &UsbMass->BlockIo, in UsbMassInitMultiLun() 580 &UsbMass->BlockIo, in UsbMassInitMultiLun() 641 UsbMass->BlockIo.Media = &UsbMass->BlockIoMedia; in UsbMassInitNonLun() 642 UsbMass->BlockIo.Reset = UsbMassReset; in UsbMassInitNonLun() 643 UsbMass->BlockIo.ReadBlocks = UsbMassReadBlocks; in UsbMassInitNonLun() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/BiosThunk/BlockIoDxe/ |
D | BiosInt13.c | 53 EFI_BLOCK_IO_PROTOCOL *BlockIo; in BiosInitBlockIo() local 57 BlockIo = &Dev->BlockIo; in BiosInitBlockIo() 58 BlockIo->Media = &Dev->BlockMedia; in BiosInitBlockIo() 59 BlockMedia = BlockIo->Media; in BiosInitBlockIo() 91 BlockIo->Reset = BiosBlockIoReset; in BiosInitBlockIo() 92 BlockIo->FlushBlocks = BiosBlockIoFlushBlocks; in BiosInitBlockIo() 98 BlockIo->ReadBlocks = BiosReadLegacyDrive; in BiosInitBlockIo() 99 BlockIo->WriteBlocks = BiosWriteLegacyDrive; in BiosInitBlockIo() 104 BlockIo->ReadBlocks = Edd30BiosReadBlocks; in BiosInitBlockIo() 105 BlockIo->WriteBlocks = Edd30BiosWriteBlocks; in BiosInitBlockIo() [all …]
|
/device/linaro/bootloader/edk2/EmulatorPkg/EmuBlockIoDxe/ |
D | DriverConfiguration.c | 120 EFI_BLOCK_IO_PROTOCOL *BlockIo; in EmuBlockIoDriverConfigurationSetOptions() local 152 (VOID **)&BlockIo, in EmuBlockIoDriverConfigurationSetOptions() 221 EFI_BLOCK_IO_PROTOCOL *BlockIo; in EmuBlockIoDriverConfigurationOptionsValid() local 237 (VOID **)&BlockIo, in EmuBlockIoDriverConfigurationOptionsValid() 297 EFI_BLOCK_IO_PROTOCOL *BlockIo; in EmuBlockIoDriverConfigurationForceDefaults() local 313 (VOID **)&BlockIo, in EmuBlockIoDriverConfigurationForceDefaults()
|
D | EmuBlockIo.c | 544 Private->BlockIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION2; in EmuBlockIoDriverBindingStart() 545 Private->BlockIo.Media = &Private->Media; in EmuBlockIoDriverBindingStart() 546 Private->BlockIo.Reset = EmuBlockIoReset; in EmuBlockIoDriverBindingStart() 547 Private->BlockIo.ReadBlocks = EmuBlockIoReadBlocks; in EmuBlockIoDriverBindingStart() 548 Private->BlockIo.WriteBlocks = EmuBlockIoWriteBlocks; in EmuBlockIoDriverBindingStart() 549 Private->BlockIo.FlushBlocks = EmuBlockIoFlushBlocks; in EmuBlockIoDriverBindingStart() 582 &gEfiBlockIoProtocolGuid, &Private->BlockIo, in EmuBlockIoDriverBindingStart() 645 EFI_BLOCK_IO_PROTOCOL *BlockIo; in EmuBlockIoDriverBindingStop() local 655 (void *)&BlockIo, in EmuBlockIoDriverBindingStop() 664 Private = EMU_BLOCK_IO_PRIVATE_DATA_FROM_THIS (BlockIo); in EmuBlockIoDriverBindingStop() [all …]
|
/device/linaro/bootloader/edk2/OvmfPkg/BlockMmioToBlockIoDxe/ |
D | BlockIo.c | 320 Private->BlockIo.Media = BlockMmio->Media; in BlockIoInit() 321 Private->BlockIo.Reset = BlockIoReset; in BlockIoInit() 322 Private->BlockIo.ReadBlocks = BlockIoReadBlocks; in BlockIoInit() 323 Private->BlockIo.WriteBlocks = BlockIoWriteBlocks; in BlockIoInit() 324 Private->BlockIo.FlushBlocks = BlockIoFlushBlocks; in BlockIoInit() 326 …DEBUG ((EFI_D_INFO, "Private->BlockIo.Media->LastBlock: 0x%lx\n", Private->BlockIo.Media->LastBloc… in BlockIoInit() 332 &Private->BlockIo in BlockIoInit() 474 &Private->BlockIo in BlockIoDriverBindingStop()
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Sdio/Dxe/SDMediaDeviceDxe/ |
D | ComponentName.c | 185 EFI_BLOCK_IO_PROTOCOL *BlockIo; in SDMediaDeviceGetControllerName() local 201 (VOID **) &BlockIo, in SDMediaDeviceGetControllerName() 211 CardData = CARD_DATA_FROM_THIS (BlockIo); in SDMediaDeviceGetControllerName()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/RamDiskDxe/ |
D | RamDiskBlockIo.c | 54 EFI_BLOCK_IO_PROTOCOL *BlockIo; in RamDiskInitBlockIo() local 58 BlockIo = &PrivateData->BlockIo; in RamDiskInitBlockIo() 62 CopyMem (BlockIo, &mRamDiskBlockIoTemplate, sizeof (EFI_BLOCK_IO_PROTOCOL)); in RamDiskInitBlockIo() 65 BlockIo->Media = Media; in RamDiskInitBlockIo() 349 &PrivateData->BlockIo, in RamDiskBlkIo2ReadBlocksEx() 420 &PrivateData->BlockIo, in RamDiskBlkIo2WriteBlocksEx()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ |
D | ComponentName.c | 178 EFI_BLOCK_IO_PROTOCOL *BlockIo; in ScsiDiskComponentNameGetControllerName() local 204 (VOID **) &BlockIo, in ScsiDiskComponentNameGetControllerName() 214 ScsiDiskDevice = SCSI_DISK_DEV_FROM_BLKIO (BlockIo); in ScsiDiskComponentNameGetControllerName()
|
/device/linaro/bootloader/edk2/OvmfPkg/VirtioBlkDxe/ |
D | VirtioBlk.c | 777 Dev->BlockIo.Revision = 0; in VirtioBlkInit() 778 Dev->BlockIo.Media = &Dev->BlockIoMedia; in VirtioBlkInit() 779 Dev->BlockIo.Reset = &VirtioBlkReset; in VirtioBlkInit() 780 Dev->BlockIo.ReadBlocks = &VirtioBlkReadBlocks; in VirtioBlkInit() 781 Dev->BlockIo.WriteBlocks = &VirtioBlkWriteBlocks; in VirtioBlkInit() 782 Dev->BlockIo.FlushBlocks = &VirtioBlkFlushBlocks; in VirtioBlkInit() 799 Dev->BlockIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION3; in VirtioBlkInit() 853 SetMem (&Dev->BlockIo, sizeof Dev->BlockIo, 0x00); in VirtioBlkUninit() 961 &Dev->BlockIo); in VirtioBlkDriverBindingStart() 1018 EFI_BLOCK_IO_PROTOCOL *BlockIo; in VirtioBlkDriverBindingStop() local [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Disk/DiskIoDxe/ |
D | DiskIo.c | 79 EFI_BLOCK_IO_PROTOCOL *BlockIo; in DiskIoDriverBindingSupported() local 87 (VOID **) &BlockIo, in DiskIoDriverBindingSupported() 145 (VOID **) &gDiskIoPrivateDataTemplate.BlockIo, in DiskIoDriverBindingStart() 179 ((Instance->BlockIo->Media->IoAlign == Instance->BlockIo2->Media->IoAlign) && in DiskIoDriverBindingStart() 180 (Instance->BlockIo->Media->BlockSize == Instance->BlockIo2->Media->BlockSize) in DiskIoDriverBindingStart() 186 … EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize), in DiskIoDriverBindingStart() 187 Instance->BlockIo->Media->IoAlign in DiskIoDriverBindingStart() 217 … EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize) in DiskIoDriverBindingStart() 327 … EFI_SIZE_TO_PAGES (PcdGet32 (PcdDiskIoDataBufferBlockNum) * Instance->BlockIo->Media->BlockSize) in DiskIoDriverBindingStop() 382 Subtask->Length < Instance->BlockIo->Media->BlockSize in DiskIoDestroySubtask() [all …]
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/FileSystem/BootMonFs/ |
D | BootMonFsOpenClose.c | 30 EFI_BLOCK_IO_PROTOCOL *BlockIo; in InvalidateImageDescription() local 36 BlockIo = File->Instance->BlockIo; in InvalidateImageDescription() 37 MediaId = BlockIo->Media->MediaId; in InvalidateImageDescription() 92 BlockSize = File->Instance->BlockIo->Media->BlockSize; in WriteFileDescription() 168 Media = File->Instance->BlockIo->Media; in BootMonFsFindSpaceForNewFile() 258 EFI_BLOCK_IO_PROTOCOL *BlockIo; in BootMonFsFlushFile() local 293 BlockIo = Instance->BlockIo; in BootMonFsFlushFile() 294 Media = BlockIo->Media; in BootMonFsFlushFile() 428 BlockIo->FlushBlocks (BlockIo); in BootMonFsFlushFile()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdDxe/ |
D | ComponentName.c | 187 EFI_BLOCK_IO_PROTOCOL *BlockIo; in SdDxeComponentNameGetControllerName() local 219 (VOID **) &BlockIo, in SdDxeComponentNameGetControllerName() 228 Device = SD_DEVICE_DATA_FROM_BLKIO (BlockIo); in SdDxeComponentNameGetControllerName()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/NvmExpressDxe/ |
D | ComponentName.c | 181 EFI_BLOCK_IO_PROTOCOL *BlockIo; in NvmExpressComponentNameGetControllerName() local 213 (VOID **) &BlockIo, in NvmExpressComponentNameGetControllerName() 221 Device = NVME_DEVICE_PRIVATE_DATA_FROM_BLOCK_IO (BlockIo); in NvmExpressComponentNameGetControllerName()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaBusDxe/ |
D | ComponentName.c | 188 EFI_BLOCK_IO_PROTOCOL *BlockIo; in AtaBusComponentNameGetControllerName() local 220 (VOID **) &BlockIo, in AtaBusComponentNameGetControllerName() 228 AtaDevice = ATA_DEVICE_FROM_BLOCK_IO (BlockIo); in AtaBusComponentNameGetControllerName()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/EmmcDxe/ |
D | ComponentName.c | 187 EFI_BLOCK_IO_PROTOCOL *BlockIo; in EmmcDxeComponentNameGetControllerName() local 220 (VOID **) &BlockIo, in EmmcDxeComponentNameGetControllerName() 229 Partition = EMMC_PARTITION_DATA_FROM_BLKIO (BlockIo); in EmmcDxeComponentNameGetControllerName()
|