42 IN OUT UINT8 *Descriptor,
43 IN OUT UINT32 *DescSize
49 Private = UFS_PASS_THRU_PRIVATE_DATA_FROM_DEV_CONFIG (This);
51 if ((This ==
NULL) || (Descriptor ==
NULL) || (DescSize ==
NULL)) {
52 return EFI_INVALID_PARAMETER;
64 if (Status == EFI_TIMEOUT) {
65 Status = EFI_DEVICE_ERROR;
101 Private = UFS_PASS_THRU_PRIVATE_DATA_FROM_DEV_CONFIG (This);
103 if ((This ==
NULL) || (Flag ==
NULL)) {
104 return EFI_INVALID_PARAMETER;
107 Status =
UfsRwFlags (Private, Read, FlagId, Flag);
108 if (Status == EFI_TIMEOUT) {
109 Status = EFI_DEVICE_ERROR;
146 IN OUT UINT8 *Attribute,
147 IN OUT UINT32 *AttrSize
154 Private = UFS_PASS_THRU_PRIVATE_DATA_FROM_DEV_CONFIG (This);
157 if ((This ==
NULL) || (Attribute ==
NULL) || (AttrSize ==
NULL)) {
158 return EFI_INVALID_PARAMETER;
166 return EFI_INVALID_PARAMETER;
170 CopyMem (&Attribute32, Attribute, *AttrSize);
181 if (!EFI_ERROR (Status)) {
183 CopyMem (Attribute, &Attribute32, *AttrSize);
187 if (Status == EFI_TIMEOUT) {
188 Status = EFI_DEVICE_ERROR;
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
EFI_STATUS UfsRwDeviceDesc(IN UFS_PEIM_HC_PRIVATE_DATA *Private, IN BOOLEAN Read, IN UINT8 DescId, IN UINT8 Index, IN UINT8 Selector, IN OUT VOID *Descriptor, IN UINT32 DescSize)
EFI_STATUS UfsRwAttributes(IN UFS_PEIM_HC_PRIVATE_DATA *Private, IN BOOLEAN Read, IN UINT8 AttrId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT32 *Attributes)
EFI_STATUS EFIAPI UfsRwUfsAttribute(IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 AttrId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT8 *Attribute, IN OUT UINT32 *AttrSize)
EFI_STATUS EFIAPI UfsRwUfsFlag(IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 FlagId, IN OUT UINT8 *Flag)
EFI_STATUS EFIAPI UfsRwUfsDescriptor(IN EFI_UFS_DEVICE_CONFIG_PROTOCOL *This, IN BOOLEAN Read, IN UINT8 DescId, IN UINT8 Index, IN UINT8 Selector, IN OUT UINT8 *Descriptor, IN OUT UINT32 *DescSize)
EFI_STATUS UfsRwFlags(IN UFS_PEIM_HC_PRIVATE_DATA *Private, IN BOOLEAN Read, IN UINT8 FlagId, IN OUT UINT8 *Value)