Lines Matching refs:DeviceIndex
636 @param[in] DeviceIndex Specifies the block device to which the function wants
672 IN UINTN DeviceIndex,
688 if (DeviceIndex >= UFS_PEIM_MAX_LUNS) {
692 if ((Private->Luns.BitMask & (BIT0 << DeviceIndex)) == 0) {
706 DeviceIndex,
718 Status = UfsPeimParsingSenseKeys (&(Private->Media[DeviceIndex]), &SenseData, &NeedRetry);
727 Status = UfsPeimReadCapacity (Private, DeviceIndex, &Capacity, (UINT32 *)&DataLength, NULL, &SenseDataLength);
736 Status = UfsPeimReadCapacity16 (Private, DeviceIndex, &Capacity16, (UINT32 *)&DataLength, NULL, &SenseDataLength);
740 Private->Media[DeviceIndex].LastBlock = (Capacity16.LastLba3 << 24) | (Capacity16.LastLba2 << 16) | (Capacity16.LastLba1 << 8) | Capacity16.LastLba0;
741 Private->Media[DeviceIndex].LastBlock |= LShiftU64 ((UINT64)Capacity16.LastLba7, 56) | LShiftU64((UINT64)Capacity16.LastLba6, 48) | LShiftU64 ((UINT64)Capacity16.LastLba5, 40) | LShiftU64 ((UINT64)Capacity16.LastLba4, 32);
742 Private->Media[DeviceIndex].BlockSize = (Capacity16.BlockSize3 << 24) | (Capacity16.BlockSize2 << 16) | (Capacity16.BlockSize1 << 8) | Capacity16.BlockSize0;
744 Private->Media[DeviceIndex].LastBlock = (Capacity.LastLba3 << 24) | (Capacity.LastLba2 << 16) | (Capacity.LastLba1 << 8) | Capacity.LastLba0;
745 Private->Media[DeviceIndex].BlockSize = (Capacity.BlockSize3 << 24) | (Capacity.BlockSize2 << 16) | (Capacity.BlockSize1 << 8) | Capacity.BlockSize0;
749 MediaInfo->MediaPresent = Private->Media[DeviceIndex].MediaPresent;
750 MediaInfo->LastBlock = (UINTN)Private->Media[DeviceIndex].LastBlock;
751 MediaInfo->BlockSize = Private->Media[DeviceIndex].BlockSize;
766 @param[in] DeviceIndex Specifies the block device to which the function wants
795 IN UINTN DeviceIndex,
827 if (DeviceIndex >= UFS_PEIM_MAX_LUNS) {
831 if ((Private->Luns.BitMask & (BIT0 << DeviceIndex)) == 0) {
835 BlockSize = Private->Media[DeviceIndex].BlockSize;
841 if (StartLBA > Private->Media[DeviceIndex].LastBlock) {
850 DeviceIndex,
862 Status = UfsPeimParsingSenseKeys (&(Private->Media[DeviceIndex]), &SenseData, &NeedRetry);
870 if (Private->Media[DeviceIndex].LastBlock < 0xfffffffful) {
873 DeviceIndex,
884 DeviceIndex,
942 @param[in] DeviceIndex Specifies the block device to which the function wants
978 IN UINTN DeviceIndex,
991 DeviceIndex,
998 CopyMem (MediaInfo, &(Private->Media[DeviceIndex]), sizeof (EFI_PEI_BLOCK_IO2_MEDIA));
1012 @param[in] DeviceIndex Specifies the block device to which the function wants
1041 IN UINTN DeviceIndex,
1056 DeviceIndex,