Home
last modified time | relevance | path

Searched refs:BlkIo (Results 1 – 25 of 43) sorted by relevance

12

/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/
DAtapi.c669 IdeDev->BlkIo.Media->RemovableMedia = (UINT8) ((IdeDev->InquiryData->RMB & 0x80) == 0x80); in ATAPIIdentify()
686 IdeDev->BlkIo.Media->MediaId = 0; in ATAPIIdentify()
690 IdeDev->BlkIo.Media->MediaPresent = FALSE; in ATAPIIdentify()
692 IdeDev->BlkIo.Media->LastBlock = 0; in ATAPIIdentify()
693 IdeDev->BlkIo.Media->BlockSize = 0x200; in ATAPIIdentify()
702 IdeDev->BlkIo.Media->MediaId = 0; in ATAPIIdentify()
706 IdeDev->BlkIo.Media->MediaPresent = FALSE; in ATAPIIdentify()
708 IdeDev->BlkIo.Media->LastBlock = 0; in ATAPIIdentify()
709 IdeDev->BlkIo.Media->BlockSize = 0x800; in ATAPIIdentify()
710 IdeDev->BlkIo.Media->ReadOnly = TRUE; in ATAPIIdentify()
[all …]
DDriverDiagnostics.c99 EFI_BLOCK_IO_PROTOCOL *BlkIo; in IDEBusDriverDiagnosticsRunDiagnostics() local
193 (VOID **) &BlkIo, in IDEBusDriverDiagnosticsRunDiagnostics()
202 IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (BlkIo); in IDEBusDriverDiagnosticsRunDiagnostics()
216 Status = IdeBlkIoDevice->BlkIo.ReadBlocks ( in IDEBusDriverDiagnosticsRunDiagnostics()
217 &IdeBlkIoDevice->BlkIo, in IDEBusDriverDiagnosticsRunDiagnostics()
DAta.c97 IdeDev->BlkIo.Media->IoAlign = 4; in AtaAtapi6Identify()
98 IdeDev->BlkIo.Media->MediaId = 1; in AtaAtapi6Identify()
99 IdeDev->BlkIo.Media->RemovableMedia = FALSE; in AtaAtapi6Identify()
100 IdeDev->BlkIo.Media->MediaPresent = TRUE; in AtaAtapi6Identify()
101 IdeDev->BlkIo.Media->ReadOnly = FALSE; in AtaAtapi6Identify()
102 IdeDev->BlkIo.Media->BlockSize = 0x200; in AtaAtapi6Identify()
103 IdeDev->BlkIo.Media->LastBlock = Capacity - 1; in AtaAtapi6Identify()
375 IdeDev->BlkIo.Media->IoAlign = 4; in ATAIdentify()
376 IdeDev->BlkIo.Media->MediaId = 1; in ATAIdentify()
377 IdeDev->BlkIo.Media->RemovableMedia = FALSE; in ATAIdentify()
[all …]
DIde.c674 IdeDev->BlkIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION2; in DiscoverIdeDevice()
676 IdeDev->BlkIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION; in DiscoverIdeDevice()
678 IdeDev->BlkIo.Reset = IDEBlkIoReset; in DiscoverIdeDevice()
679 IdeDev->BlkIo.ReadBlocks = IDEBlkIoReadBlocks; in DiscoverIdeDevice()
680 IdeDev->BlkIo.WriteBlocks = IDEBlkIoWriteBlocks; in DiscoverIdeDevice()
681 IdeDev->BlkIo.FlushBlocks = IDEBlkIoFlushBlocks; in DiscoverIdeDevice()
DIdeBus.h75 EFI_BLOCK_IO_PROTOCOL BlkIo; member
112 #define IDE_BLOCK_IO_DEV_FROM_THIS(a) CR (a, IDE_BLK_IO_DEV, BlkIo, IDE_BLK_IO_DEV_SIGNAT…
DIdeBus.c56 EFI_BLOCK_IO_PROTOCOL *BlkIo; in DeRegisterIdeDevice() local
64 (VOID **) &BlkIo, in DeRegisterIdeDevice()
73 IdeBlkIoDevice = IDE_BLOCK_IO_DEV_FROM_THIS (BlkIo); in DeRegisterIdeDevice()
99 &IdeBlkIoDevice->BlkIo, in DeRegisterIdeDevice()
611 IdeBlkIoDevicePtr->BlkIo.Media = &IdeBlkIoDevicePtr->BlkMedia; in IDEBusDriverBindingStart()
842 &IdeBlkIoDevicePtr->BlkIo, in IDEBusDriverBindingStart()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/
DDiskImage.c175 EFI_BLOCK_IO_PROTOCOL *BlkIo; in HDiskImageRead() local
202 …Status = gBS->OpenProtocol(Handle, &gEfiBlockIoProtocolGuid, (VOID**)&BlkIo, gImageHandle, NULL, E… in HDiskImageRead()
211 if (Offset > BlkIo->Media->LastBlock || Offset + Size > BlkIo->Media->LastBlock) { in HDiskImageRead()
216 Bytes = BlkIo->Media->BlockSize * Size; in HDiskImageRead()
227 Status = BlkIo->ReadBlocks ( in HDiskImageRead()
228 BlkIo, in HDiskImageRead()
229 BlkIo->Media->MediaId, in HDiskImageRead()
262 HDiskImage.BlockSize = BlkIo->Media->BlockSize; in HDiskImageRead()
346 EFI_BLOCK_IO_PROTOCOL *BlkIo; in HDiskImageSave() local
378 …Status = gBS->OpenProtocol(Handle, &gEfiBlockIoProtocolGuid, (VOID**)&BlkIo, gImageHandle, NULL, E… in HDiskImageSave()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/
DIsaFloppyCtrl.c32 FdcDev->BlkIo.Media = &FdcDev->BlkMedia; in DiscoverFddDevice()
39 FdcDev->BlkIo.Reset = FdcReset; in DiscoverFddDevice()
40 FdcDev->BlkIo.FlushBlocks = FddFlushBlocks; in DiscoverFddDevice()
41 FdcDev->BlkIo.ReadBlocks = FddReadBlocks; in DiscoverFddDevice()
42 FdcDev->BlkIo.WriteBlocks = FddWriteBlocks; in DiscoverFddDevice()
83 FdcDev->BlkIo.Media->RemovableMedia = TRUE; in FddIdentify()
84 FdcDev->BlkIo.Media->MediaPresent = TRUE; in FddIdentify()
85 FdcDev->BlkIo.Media->MediaId = 0; in FddIdentify()
93 FdcDev->BlkIo.Media->MediaPresent = FALSE; in FddIdentify()
106 FdcDev->BlkIo.Media->ReadOnly = TRUE; in FddIdentify()
[all …]
DComponentName.c165 EFI_BLOCK_IO_PROTOCOL *BlkIo; in IsaFloppyComponentNameGetControllerName() local
196 (VOID **) &BlkIo, in IsaFloppyComponentNameGetControllerName()
205 FdcDev = FDD_BLK_IO_FROM_THIS (BlkIo); in IsaFloppyComponentNameGetControllerName()
DIsaFloppy.c339 &FdcDev->BlkIo, in FdcControllerDriverStart()
420 EFI_BLOCK_IO_PROTOCOL *BlkIo; in FdcControllerDriverStop() local
433 (VOID **) &BlkIo, in FdcControllerDriverStop()
444 FdcDev = FDD_BLK_IO_FROM_THIS (BlkIo); in FdcControllerDriverStop()
461 &FdcDev->BlkIo in FdcControllerDriverStop()
DIsaFloppy.h71 EFI_BLOCK_IO_PROTOCOL BlkIo; member
91 #define FDD_BLK_IO_FROM_THIS(a) CR (a, FDC_BLK_IO_DEV, BlkIo, FDC_BLK_IO_DEV_SIGNATURE)
/device/linaro/bootloader/edk2/DuetPkg/FvbRuntimeService/
DFileIo.c60 EFI_BLOCK_IO_PROTOCOL *BlkIo; in CheckStore() local
67 (VOID*)&BlkIo in CheckStore()
73 if (!BlkIo->Media->MediaPresent) { in CheckStore()
78 if (BlkIo->Media->ReadOnly) { in CheckStore()
84 Status = BlkIo->ReadBlocks( in CheckStore()
85 BlkIo, in CheckStore()
86 BlkIo->Media->MediaId, in CheckStore()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/
DScsiDisk.c235 ScsiDiskDevice->BlkIo.Revision = EFI_BLOCK_IO_PROTOCOL_REVISION3; in ScsiDiskDriverBindingStart()
236 ScsiDiskDevice->BlkIo.Media = &ScsiDiskDevice->BlkIoMedia; in ScsiDiskDriverBindingStart()
237 ScsiDiskDevice->BlkIo.Media->IoAlign = ScsiIo->IoAlign; in ScsiDiskDriverBindingStart()
238 ScsiDiskDevice->BlkIo.Reset = ScsiDiskReset; in ScsiDiskDriverBindingStart()
239 ScsiDiskDevice->BlkIo.ReadBlocks = ScsiDiskReadBlocks; in ScsiDiskDriverBindingStart()
240 ScsiDiskDevice->BlkIo.WriteBlocks = ScsiDiskWriteBlocks; in ScsiDiskDriverBindingStart()
241 ScsiDiskDevice->BlkIo.FlushBlocks = ScsiDiskFlushBlocks; in ScsiDiskDriverBindingStart()
258 ScsiDiskDevice->BlkIo.Media->BlockSize = 0x200; in ScsiDiskDriverBindingStart()
263 ScsiDiskDevice->BlkIo.Media->BlockSize = 0x800; in ScsiDiskDriverBindingStart()
264 ScsiDiskDevice->BlkIo.Media->ReadOnly = TRUE; in ScsiDiskDriverBindingStart()
[all …]
DScsiDisk.h60 EFI_BLOCK_IO_PROTOCOL BlkIo; member
101 #define SCSI_DISK_DEV_FROM_BLKIO(a) CR (a, SCSI_DISK_DEV, BlkIo, SCSI_DISK_DEV_SIGNATURE)
/device/linaro/bootloader/edk2/DuetPkg/FSVariable/
DFileStorage.c95 EFI_BLOCK_IO_PROTOCOL *BlkIo; in CheckStore() local
102 (VOID*)&BlkIo in CheckStore()
108 if (!BlkIo->Media->MediaPresent) { in CheckStore()
113 if (BlkIo->Media->ReadOnly) { in CheckStore()
119 Status = BlkIo->ReadBlocks( in CheckStore()
120 BlkIo, in CheckStore()
121 BlkIo->Media->MediaId, in CheckStore()
/device/linaro/bootloader/OpenPlatformPkg/Drivers/Block/ramdisk/
Dramdisk.h98 EFI_BLOCK_IO BlkIo; member
104 #define RAM_DISK_FROM_THIS(a) CR(a,RAM_DISK_DEV,BlkIo,PBLOCK_DEVICE_SIGNATURE)
Dramdisk.c263 RamDiskDev->BlkIo.Revision = EFI_BLOCK_IO_INTERFACE_REVISION; in InitializeRamDiskDriver()
264 RamDiskDev->BlkIo.Media = &RamDiskDev->Media; in InitializeRamDiskDriver()
274 RamDiskDev->BlkIo.ReadBlocks = RamDiskReadBlocks; in InitializeRamDiskDriver()
275 RamDiskDev->BlkIo.WriteBlocks = RamDiskWriteBlocks; in InitializeRamDiskDriver()
276 RamDiskDev->BlkIo.FlushBlocks = RamDiskFlushBlocks; in InitializeRamDiskDriver()
292 &RamDiskDev->BlkIo, in InitializeRamDiskDriver()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/
DLegacyBbs.c59 EFI_BLOCK_IO_PROTOCOL *BlkIo; in HasMediaInFloppy() local
113 (VOID **) &BlkIo in HasMediaInFloppy()
119 if (BlkIo->Media->MediaPresent) { in HasMediaInFloppy()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordDxe/
DOpalDriver.c788 EFI_BLOCK_IO_PROTOCOL* BlkIo; in OpalEfiDriverBindingSupported() local
827 (VOID **)&BlkIo, in OpalEfiDriverBindingSupported()
891 EFI_BLOCK_IO_PROTOCOL *BlkIo; in OpalEfiDriverBindingStart() local
937 (VOID **)&BlkIo, in OpalEfiDriverBindingStart()
960 Dev->MediaId = BlkIo->Media->MediaId; in OpalEfiDriverBindingStart()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/
DBootOption.c238 EFI_BLOCK_IO_PROTOCOL *BlkIo; in BOpt_FindFileSystem() local
274 (VOID **) &BlkIo in BOpt_FindFileSystem()
284 if (BlkIo->Media->RemovableMedia) { in BOpt_FindFileSystem()
285 Buffer = AllocateZeroPool (BlkIo->Media->BlockSize); in BOpt_FindFileSystem()
291 BlkIo->ReadBlocks ( in BOpt_FindFileSystem()
292 BlkIo, in BOpt_FindFileSystem()
293 BlkIo->Media->MediaId, in BOpt_FindFileSystem()
295 BlkIo->Media->BlockSize, in BOpt_FindFileSystem()
322 (VOID **) &BlkIo in BOpt_FindFileSystem()
333 RemovableMedia = BlkIo->Media->RemovableMedia; in BOpt_FindFileSystem()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/EfiFileLib/
DEfiFileLib.c381 EFI_BLOCK_IO_PROTOCOL *BlkIo; in EblFileDevicePath() local
411 Status = gBS->HandleProtocol (File->EfiHandle, &gEfiBlockIoProtocolGuid, (VOID **)&BlkIo); in EblFileDevicePath()
413 File->FsBlockIoMedia = BlkIo->Media; in EblFileDevicePath()
414 File->FsBlockIo = BlkIo; in EblFileDevicePath()
417 File->MaxPosition = MultU64x32 (BlkIo->Media->LastBlock + 1, BlkIo->Media->BlockSize); in EblFileDevicePath()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/PlatformBdsLib/
DBdsPlatform.c1089 EFI_BLOCK_IO_PROTOCOL *BlkIo; in PlatformBdsLibEnumerateAllBootOption() local
1193 (VOID **) &BlkIo in PlatformBdsLibEnumerateAllBootOption()
1198 if (EFI_ERROR (Status) || BlkIo->Media->LogicalPartition) { in PlatformBdsLibEnumerateAllBootOption()
1205 if (BlkIo->Media->RemovableMedia == Removable[RemovableIndex]) { in PlatformBdsLibEnumerateAllBootOption()
1227 if (BlkIo->Media->RemovableMedia) { in PlatformBdsLibEnumerateAllBootOption()
1299 (VOID **) &BlkIo in PlatformBdsLibEnumerateAllBootOption()
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/
DUsbCredentialProvider.c270 EFI_BLOCK_IO_PROTOCOL *BlkIo; in GetFileData() local
294 (VOID **) &BlkIo in GetFileData()
300 if (BlkIo->Media->RemovableMedia) { in GetFileData()
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiBootManagerLib/
DBmBoot.c1939 EFI_BLOCK_IO_PROTOCOL *BlkIo; in BmEnumerateBootOptions() local
1965 (VOID **) &BlkIo in BmEnumerateBootOptions()
1974 if (BlkIo->Media->LogicalPartition) { in BmEnumerateBootOptions()
1981 if (BlkIo->Media->RemovableMedia == ((Removable == 0) ? FALSE : TRUE)) { in BmEnumerateBootOptions()
2027 (VOID **) &BlkIo in BmEnumerateBootOptions()
/device/linaro/bootloader/edk2/Omap35xxPkg/
DOmap35xxPkg.dsc129 # DEBUG_BLKIO 0x00001000 // BlkIo Driver

12