35 UINTN S3InitDevicesLength;
38 UINTN DevicePathInstLength;
47 S3InitDevicesLength =
sizeof (DummyData);
50 Status =
RestoreLockBox (&gS3StorageDeviceInitListGuid, &DummyData, &S3InitDevicesLength);
51 if (Status != EFI_BUFFER_TOO_SMALL) {
55 if (S3InitDevices ==
NULL) {
59 Status =
RestoreLockBox (&gS3StorageDeviceInitListGuid, S3InitDevices, &S3InitDevicesLength);
60 if (EFI_ERROR (Status)) {
74 &DevicePathInstLength,
77 if (EFI_ERROR (Status)) {
81 DevicePathInst = S3InitDevices;
84 if (HcDevicePathLength >= DevicePathInstLength) {
101 }
while (!EntireEnd);
EFI_STATUS GetDevicePathInstanceSize(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT UINTN *InstanceSize, OUT BOOLEAN *EntireDevicePathEnd)
INTN EFIAPI CompareMem(IN CONST VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
RETURN_STATUS EFIAPI RestoreLockBox(IN GUID *Guid, IN VOID *Buffer OPTIONAL, IN OUT UINTN *Length OPTIONAL)
BOOLEAN NvmeS3SkipThisController(IN EFI_DEVICE_PATH_PROTOCOL *HcDevicePath, IN UINTN HcDevicePathLength)
VOID *EFIAPI AllocatePool(IN UINTN AllocationSize)