Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/
DRtc.c93 EFI_TIME EfiTime; in AdjustDefaultRtcTimeCallback() local
113 Status = gRT->GetTime (&EfiTime, NULL); in AdjustDefaultRtcTimeCallback()
118 Status = CheckRtcTimeFields (&EfiTime); in AdjustDefaultRtcTimeCallback()
140 EfiTime.Second = RTC_INIT_SECOND; in AdjustDefaultRtcTimeCallback()
141 EfiTime.Minute = RTC_INIT_MINUTE; in AdjustDefaultRtcTimeCallback()
142 EfiTime.Hour = RTC_INIT_HOUR; in AdjustDefaultRtcTimeCallback()
143 EfiTime.Day = (UINT8)(CharToUint(mBiosReleaseDate[3])*10 + CharToUint(mBiosReleaseDate[4])); in AdjustDefaultRtcTimeCallback()
144 EfiTime.Month = (UINT8)(CharToUint(mBiosReleaseDate[0])*10 + CharToUint(mBiosReleaseDate[1])); in AdjustDefaultRtcTimeCallback()
145EfiTime.Year = (UINT16)(CharToUint(mBiosReleaseDate[8])*10 + CharToUint(mBiosReleaseDate[9]) + 2… in AdjustDefaultRtcTimeCallback()
146 EfiTime.Nanosecond = 0; in AdjustDefaultRtcTimeCallback()
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/
DCryptTs.c153 OUT EFI_TIME *EfiTime
159 if ((Asn1Time == NULL) || (EfiTime == NULL)) {
164 SetMem (EfiTime, 0, sizeof (EFI_TIME));
168 EfiTime->Year = (Str[Index++] - '0') * 10;
169 EfiTime->Year += (Str[Index++] - '0');
170 if (EfiTime->Year < 70) {
171 EfiTime->Year += 100;
174 EfiTime->Year = (Str[Index++] - '0') * 1000;
175 EfiTime->Year += (Str[Index++] - '0') * 100;
176 EfiTime->Year += (Str[Index++] - '0') * 10;
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/
DResetSystemLib.c203 EFI_TIME EfiTime; in EnterS3WithImmediateWake() local
259 EfiTime.Second = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
260 } while (EfiTime.Second > PLATFORM_RTC_ROLLOVER_LIMIT); in EnterS3WithImmediateWake()
266 EfiTime.Hour = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
268 EfiTime.Minute = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
270 EfiTime.Second = IoRead8 (PCAT_RTC_DATA_REGISTER); in EnterS3WithImmediateWake()
280 if ((BCD_BASE - (EfiTime.Second & 0x0F)) <= PLATFORM_WAKE_SECONDS_BUFFER) { in EnterS3WithImmediateWake()
281 …Data8 = (((EfiTime.Second & 0xF0) + 0x10) + (PLATFORM_WAKE_SECONDS_BUFFER - (BCD_BASE - (EfiTime.S… in EnterS3WithImmediateWake()
283 Data8 = EfiTime.Second + PLATFORM_WAKE_SECONDS_BUFFER; in EnterS3WithImmediateWake()
287 IoWrite8 (PCAT_RTC_DATA_REGISTER, EfiTime.Hour); in EnterS3WithImmediateWake()
[all …]
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/SetupBrowserDxe/
DExpression.c2552 EFI_TIME EfiTime; in EvaluateExpression() local
2747 Status = gRT->GetTime (&EfiTime, NULL); in EvaluateExpression()
2753 Value->Value.u16 = EfiTime.Year; in EvaluateExpression()
2757 Value->Value.u8 = EfiTime.Month; in EvaluateExpression()
2761 Value->Value.u8 = EfiTime.Day; in EvaluateExpression()
2774 Value->Value.u8 = EfiTime.Hour; in EvaluateExpression()
2778 Value->Value.u8 = EfiTime.Minute; in EvaluateExpression()
2782 Value->Value.u8 = EfiTime.Second; in EvaluateExpression()
3185 Status = gRT->GetTime (&EfiTime, NULL); in EvaluateExpression()
3190 EfiTime.Year = Value->Value.u16; in EvaluateExpression()
[all …]
DSetup.c1499 EFI_TIME EfiTime; in GetQuestionValue() local
1584 Status = gRT->GetTime (&EfiTime, NULL); in GetQuestionValue()
1588 Status = gRT->GetWakeupTime (&Enabled, &Pending, &EfiTime); in GetQuestionValue()
1613 QuestionValue->date.Year = EfiTime.Year; in GetQuestionValue()
1614 QuestionValue->date.Month = EfiTime.Month; in GetQuestionValue()
1615 QuestionValue->date.Day = EfiTime.Day; in GetQuestionValue()
1617 QuestionValue->time.Hour = EfiTime.Hour; in GetQuestionValue()
1618 QuestionValue->time.Minute = EfiTime.Minute; in GetQuestionValue()
1619 QuestionValue->time.Second = EfiTime.Second; in GetQuestionValue()
1808 EFI_TIME EfiTime; in SetQuestionValue() local
[all …]