Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/
DUsbMassBoot.c410 EFI_SCSI_DISK_CAPACITY_DATA16 CapacityData; in UsbBootReadCapacity16() local
422 ZeroMem (&CapacityData, sizeof (CapacityData)); in UsbBootReadCapacity16()
431 CapacityCmd[13] = sizeof (CapacityData); in UsbBootReadCapacity16()
438 &CapacityData, in UsbBootReadCapacity16()
439 sizeof (CapacityData), in UsbBootReadCapacity16()
451 Media->LastBlock = SwapBytes64 (ReadUnaligned64 ((CONST UINT64 *) &(CapacityData.LastLba7))); in UsbBootReadCapacity16()
453 BlockSize = SwapBytes32 (ReadUnaligned32 ((CONST UINT32 *) &(CapacityData.BlockSize3))); in UsbBootReadCapacity16()
455 Media->LowestAlignedLba = (CapacityData.LowestAlignLogic2 << 8) | in UsbBootReadCapacity16()
456 CapacityData.LowestAlignLogic1; in UsbBootReadCapacity16()
457 Media->LogicalBlocksPerPhysicalBlock = (1 << CapacityData.LogicPerPhysical); in UsbBootReadCapacity16()
[all …]