Home
last modified time | relevance | path

Searched refs:Capacity (Results 1 – 17 of 17) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ufs/UfsBlockIoPei/
DUfsBlockIoPei.c680 EFI_SCSI_DISK_CAPACITY_DATA Capacity; in UfsBlockIoPeimGetMediaInfo() local
697 ZeroMem (&Capacity, sizeof (Capacity)); in UfsBlockIoPeimGetMediaInfo()
727 …Status = UfsPeimReadCapacity (Private, DeviceIndex, &Capacity, (UINT32 *)&DataLength, NULL, &Sense… in UfsBlockIoPeimGetMediaInfo()
732 if ((Capacity.LastLba3 == 0xff) && (Capacity.LastLba2 == 0xff) && in UfsBlockIoPeimGetMediaInfo()
733 (Capacity.LastLba1 == 0xff) && (Capacity.LastLba0 == 0xff)) { in UfsBlockIoPeimGetMediaInfo()
744 …dia[DeviceIndex].LastBlock = (Capacity.LastLba3 << 24) | (Capacity.LastLba2 << 16) | (Capacity.La… in UfsBlockIoPeimGetMediaInfo()
745 …[DeviceIndex].BlockSize = (Capacity.BlockSize3 << 24) | (Capacity.BlockSize2 << 16) | (Capacity.B… in UfsBlockIoPeimGetMediaInfo()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/
DEmmcBlockIoPei.c648 UINT64 Capacity; in InitializeEmmcBlockIoPeim() local
759 Capacity = MultU64x32 ((UINT64)SecCount, 0x200); in InitializeEmmcBlockIoPeim()
763 Capacity = ExtCsd->BootSizeMult * SIZE_128KB; in InitializeEmmcBlockIoPeim()
766 Capacity = ExtCsd->RpmbSizeMult * SIZE_128KB; in InitializeEmmcBlockIoPeim()
770Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in InitializeEmmcBlockIoPeim()
774Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in InitializeEmmcBlockIoPeim()
778Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in InitializeEmmcBlockIoPeim()
782Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in InitializeEmmcBlockIoPeim()
790 if (Capacity != 0) { in InitializeEmmcBlockIoPeim()
791 … Slot->Media[MediaNum].LastBlock = DivU64x32 (Capacity, Slot->Media[MediaNum].BlockSize) - 1; in InitializeEmmcBlockIoPeim()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaBusDxe/
DAtaPassThruExecute.c256 EFI_LBA Capacity; in GetAtapi6Capacity() local
272 Capacity = 0; in GetAtapi6Capacity()
278 Capacity |= LShiftU64 (TmpLba, 16 * Index); in GetAtapi6Capacity()
281 return Capacity; in GetAtapi6Capacity()
305 EFI_LBA Capacity; in IdentifyAtaDevice() local
333 Capacity = GetAtapi6Capacity (AtaDevice); in IdentifyAtaDevice()
334 if (Capacity > MAX_28BIT_ADDRESSING_CAPACITY) { in IdentifyAtaDevice()
343Capacity = ((UINT32)IdentifyData->user_addressable_sectors_hi << 16) | IdentifyData->user_addressa… in IdentifyAtaDevice()
351 BlockMedia->LastBlock = Capacity - 1; in IdentifyAtaDevice()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdBlockIoPei/
DSdBlockIoPei.c493 UINT64 Capacity; in InitializeSdBlockIoPeim() local
596 Capacity = MultU64x32 (MultU64x32 ((UINT64)CSize, CSizeMul), ReadBlLen); in InitializeSdBlockIoPeim()
601 Capacity = MultU64x32 ((UINT64)CSize, SIZE_512KB); in InitializeSdBlockIoPeim()
604 Slot->Media.LastBlock = DivU64x32 (Capacity, Slot->Media.BlockSize) - 1; in InitializeSdBlockIoPeim()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/EmmcDxe/
DEmmcDxe.c259 UINT64 Capacity; in DiscoverAllPartitions() local
343 Capacity = MultU64x32 ((UINT64) SecCount, 0x200); in DiscoverAllPartitions()
347 Capacity = ExtCsd->BootSizeMult * SIZE_128KB; in DiscoverAllPartitions()
350 Capacity = ExtCsd->RpmbSizeMult * SIZE_128KB; in DiscoverAllPartitions()
354Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in DiscoverAllPartitions()
358Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in DiscoverAllPartitions()
362Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in DiscoverAllPartitions()
366Capacity = MultU64x32 (MultU64x32 (MultU64x32 ((UINT64)GpSizeMult, ExtCsd->HcWpGrpSize), ExtCsd->H… in DiscoverAllPartitions()
373 if (Capacity != 0) { in DiscoverAllPartitions()
375 Partition->BlockMedia.LastBlock = DivU64x32 (Capacity, Partition->BlockMedia.BlockSize) - 1; in DiscoverAllPartitions()
/device/linaro/bootloader/edk2/OvmfPkg/Include/IndustryStandard/
DVirtioBlk.h36 UINT64 Capacity; member
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Sd/SdDxe/
DSdDxe.c187 UINT64 Capacity; in DiscoverUserArea() local
237 Capacity = MultU64x32 (MultU64x32 ((UINT64)CSize, CSizeMul), ReadBlLen); in DiscoverUserArea()
242 Capacity = MultU64x32 ((UINT64)CSize, SIZE_512KB); in DiscoverUserArea()
253 Device->BlockMedia.LastBlock = DivU64x32 (Capacity, Device->BlockMedia.BlockSize) - 1; in DiscoverUserArea()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/
DAta.c52 EFI_LBA Capacity; in AtaAtapi6Identify() local
78 Capacity = Atapi6IdentifyStruct->AtaData.maximum_lba_for_48bit_addressing[0]; in AtaAtapi6Identify()
84 Capacity |= LShiftU64 (TmpLba, 16 * Index); in AtaAtapi6Identify()
87 if (Capacity > MAX_28BIT_ADDRESSING_CAPACITY) { in AtaAtapi6Identify()
103 IdeDev->BlkIo.Media->LastBlock = Capacity - 1; in AtaAtapi6Identify()
281 UINT32 Capacity; in ATAIdentify() local
385 Capacity = ((UINT32)AtaIdentifyPointer->AtaData.user_addressable_sectors_hi << 16) | in ATAIdentify()
387 IdeDev->BlkIo.Media->LastBlock = Capacity - 1; in ATAIdentify()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiDevicePathLib/
DUefiDevicePathLib.h48 UINTN Capacity; member
DDevicePathToText.c47 if ((Str->Count + (Count + 1)) * sizeof (CHAR16) > Str->Capacity) { in UefiDevicePathLibCatPrint()
48 Str->Capacity = (Str->Count + (Count + 1) * 2) * sizeof (CHAR16); in UefiDevicePathLibCatPrint()
51 Str->Capacity, in UefiDevicePathLibCatPrint()
57 UnicodeVSPrint (&Str->Str[Str->Count], Str->Capacity - Str->Count * sizeof (CHAR16), Fmt, Args); in UefiDevicePathLibCatPrint()
/device/linaro/bootloader/edk2/NetworkPkg/IpSecDxe/
DIpSecConfigImpl.h65 UINTN Capacity; member
DIpSecConfigImpl.c2729 if (Buffer->Capacity - Buffer->Size < EntrySize) { in IpSecCopyPolicyEntry()
2733 Buffer->Capacity += EntrySize; in IpSecCopyPolicyEntry()
2734 TempPoint = AllocatePool (Buffer->Capacity); in IpSecCopyPolicyEntry()
2969 Buffer.Capacity = IPSEC_DEFAULT_VARIABLE_SIZE; in IpSecConfigSave()
2970 Buffer.Ptr = AllocateZeroPool (Buffer.Capacity); in IpSecConfigSave()
/device/linaro/bootloader/arm-trusted-firmware/docs/plat/
Dpoplar.rst161 Capacity: 7632.0 MB = 7.4 GB (15630336 x 512)
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/
DAtaAtapiPassThru.c1274 UINT64 Capacity; in AtaPassThruPassThru() local
1312 Capacity = *((UINT64 *)IdentifyData->AtaData.maximum_lba_for_48bit_addressing); in AtaPassThruPassThru()
1313 if (Capacity > 0xFFFFFFF) { in AtaPassThruPassThru()
/device/linaro/bootloader/OpenPlatformPkg/Drivers/SdMmc/DwMmcHcDxe/
DDwMmcHci.c467 OUT DW_MMC_HC_SLOT_CAP *Capacity in DwMmcHcGetCapability() argument
473 if (Capacity == NULL) { in DwMmcHcGetCapability()
484 Status = PlatformDwMmc->GetCapability (Controller, Slot, Capacity); in DwMmcHcGetCapability()
/device/linaro/bootloader/edk2/OvmfPkg/VirtioBlkDxe/
DVirtioBlk.c645 Status = VIRTIO_CFG_READ (Dev, Capacity, &NumSectors); in VirtioBlkInit()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSetupDxe/
DVfrStrings.uni1420 #string STR_EM1_CAP_OR_VOLTAGE_HELP #language en-US "Use Voltage or Capacity to …