Home
last modified time | relevance | path

Searched refs:Year (Results 1 – 25 of 79) sorted by relevance

1234

/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/SysCall/
DTimerWrapper.c77 UINTN Year; in time() local
88 for (Year = 1970, CalTime = 0; Year != Time.Year; Year++) { in time()
89 CalTime = CalTime + (time_t)(CumulativeDays[IsLeap(Year)][13] * SECSPERDAY); in time()
97 (time_t)(CumulativeDays[IsLeap(Time.Year)][Time.Month] * SECSPERDAY) + in time()
118 time_t Year; in gmtime() local
142 for (Year = 1970, YearNo = 0; DayNo > 0; Year++) { in gmtime()
143 TotalDays = (UINT16) (IsLeap (Year) ? 366 : 365); in gmtime()
156 if (DayNo >= CumulativeDays[IsLeap(Year)][MonthNo]) { in gmtime()
157 DayNo = (UINT16) (DayNo - (UINT16) (CumulativeDays[IsLeap(Year)][MonthNo])); in gmtime()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/HalRuntimeServicesExampleLib/
DRtc.c138 if (Time->Year % 4 == 0) { in IsLeapYear()
139 if (Time->Year % 100 == 0) { in IsLeapYear()
140 if (Time->Year % 400 == 0) { in IsLeapYear()
230 *Century = DecimaltoBcd ((UINT8) (Time->Year / 100)); in ConvertEfiTimeToRtcTime()
232 Time->Year = (UINT16) (Time->Year % 100); in ConvertEfiTimeToRtcTime()
235 Time->Year = DecimaltoBcd ((UINT8) Time->Year); in ConvertEfiTimeToRtcTime()
263 if ((Time->Year < 1998 ) || in RtcTimeFieldsValid()
264 (Time->Year > 2099 ) || in RtcTimeFieldsValid()
342 Time->Year = BcdToDecimal ((UINT8) Time->Year); in ConvertRtcTimeToEfiTime()
446 Time->Year = RtcRead (RTC_ADDRESS_YEAR); in LibGetTime()
[all …]
/device/linaro/bootloader/OpenPlatformPkg/Library/EfiTimeBaseLib/
DEfiTimeBaseLib.c30 if (Time->Year % 4 == 0) { in IsLeapYear()
31 if (Time->Year % 100 == 0) { in IsLeapYear()
32 if (Time->Year % 400 == 0) { in IsLeapYear()
70 if ((Time->Year < 2000) || in IsTimeValid()
71 (Time->Year > 2099) || in IsTimeValid()
128 Time->Year = y - 4800 + ((m + 2) / 12); in EpochToEfiTime()
161 y = Time->Year + 4800 - a; in EfiTimeToEpoch()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/
DPcRtc.c173 Time.Year = RtcRead (RTC_ADDRESS_YEAR); in PcRtcInit()
229 Time.Year = PcdGet16 (PcdMinimalValidYear); in PcRtcInit()
262 Time.Year = PcdGet16 (PcdMinimalValidYear); in PcRtcInit()
391 Time->Year = RtcRead (RTC_ADDRESS_YEAR); in PcRtcGetTime()
531 RtcWrite (Global->CenturyRtcAddress, DecimalToBcd8 ((UINT8) (RtcTime.Year / 100))); in PcRtcSetTime()
541 RtcWrite (RTC_ADDRESS_YEAR, (UINT8) RtcTime.Year); in PcRtcSetTime()
634 Time->Year = RtcRead (RTC_ADDRESS_YEAR); in PcRtcGetWakeupTime()
655 Time->Year = RtcTime.Year; in PcRtcGetWakeupTime()
769 RtcTime.Year = RtcRead (RTC_ADDRESS_YEAR); in PcRtcSetWakeupTime()
885 Time->Year = CheckAndConvertBcd8ToDecimal8 ((UINT8) Time->Year); in ConvertRtcTimeToEfiTime()
[all …]
/device/linaro/bootloader/edk2/EmulatorPkg/RealTimeClockRuntimeDxe/
DRealTimeClock.c251 if (Time->Year < 1998 || in RtcTimeFieldsValid()
252 Time->Year > 2099 || in RtcTimeFieldsValid()
292 if (Time->Year % 4 == 0) { in IsLeapYear()
293 if (Time->Year % 100 == 0) { in IsLeapYear()
294 if (Time->Year % 400 == 0) { in IsLeapYear()
/device/linaro/bootloader/edk2/Nt32Pkg/RealTimeClockRuntimeDxe/
DRealTimeClock.c95 Time->Year = (UINT16) SystemTime.wYear; in WinNtGetTime()
170 SystemTime.wYear = Time->Year; in WinNtSetTime()
313 if (Time->Year < 1998 || in RtcTimeFieldsValid()
314 Time->Year > 2099 || in RtcTimeFieldsValid()
384 if (Time->Year % 4 == 0) { in IsLeapYear()
385 if (Time->Year % 100 == 0) { in IsLeapYear()
386 if (Time->Year % 400 == 0) { in IsLeapYear()
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Library/DS3231RealTimeClockLib/
DDS3231RealTimeClockLib.c160 Time->Year = BaseYear+(Temp>>4) *10 + (Temp&0x0F); in LibGetTime()
194 if((EFI_ERROR(Status)) || (!IsTimeValid(Time)) || ((Time->Year - BaseYear) > 99)) { in LibGetTime()
273 if(Time->Year >= 2000){ in LibSetTime()
288 Temp = (((Time->Year-BaseYear)/10)<<4) | (Time->Year%10); in LibSetTime()
381 if(EFI_ERROR (Status) || (EfiTime.Year < 2000) || (EfiTime.Year > 2099)){ in LibRtcInitialize()
382 EfiTime.Year = 2000; in LibRtcInitialize()
/device/linaro/bootloader/OpenPlatformPkg/Platforms/AMD/Styx/Library/RealTimeClockLib/
DRealTimeClockLib.c84 Time->Year = RtcInfo.Year; in LibGetTime()
121 RtcInfo.Year = Time->Year; in LibSetTime()
/device/linaro/bootloader/OpenPlatformPkg/Platforms/Hisilicon/D03/Library/DS3231RealTimeClockLib/
DDS3231RealTimeClockLib.c215 Time->Year = BaseYear+(Temp>>4) *10 + (Temp&0x0F); in LibGetTime()
246 if((EFI_ERROR(Status)) || (!IsTimeValid(Time)) || ((Time->Year - BaseYear) > 99)) { in LibGetTime()
341 if(Time->Year >= 2000){ in LibSetTime()
356 Temp = (((Time->Year-BaseYear)/10)<<4) | (Time->Year%10); in LibSetTime()
455 if((EfiTime.Year < 2015) || (EfiTime.Year > 2099)){ in LibRtcInitialize()
456 EfiTime.Year = 2015; in LibRtcInitialize()
/device/linaro/bootloader/edk2/FatPkg/EnhancedFatDxe/
DMisc.c488 if (ETime->Year > 1980) { in FatEfiTimeToFatTime()
489 FTime->Date.Year = (UINT16) (ETime->Year - 1980); in FatEfiTimeToFatTime()
492 if (ETime->Year >= 1980 + FAT_MAX_YEAR_FROM_1980) { in FatEfiTimeToFatTime()
493 FTime->Date.Year = FAT_MAX_YEAR_FROM_1980; in FatEfiTimeToFatTime()
517 ETime->Year = (UINT16) (FTime->Date.Year + 1980); in FatFatTimeToEfiTime()
548 Now.Year = 1980; in FatGetCurrentFatTime()
579 if (Time->Year < 1980 || in FatIsValidTime()
597 if (Time->Month == 2 && IS_LEAP_YEAR (Time->Year)) { in FatIsValidTime()
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/
DCryptTs.c168 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;
177 EfiTime->Year += (Str[Index++] - '0');
178 if ((EfiTime->Year < 1900) || (EfiTime->Year > 9999)) {
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/
DRtc.c70 if ((Time->Year) < YearBuilt) { in CheckRtcTimeFields()
145 …EfiTime.Year = (UINT16)(CharToUint(mBiosReleaseDate[8])*10 + CharToUint(mBiosReleaseDate[9]) + 2… in AdjustDefaultRtcTimeCallback()
150 …, "Day:%d Month:%d Year:%d \n", (UINT32)EfiTime.Day, (UINT32)EfiTime.Month, (UINT32)EfiTime.Year)); in AdjustDefaultRtcTimeCallback()
/device/linaro/bootloader/edk2/ArmPlatformPkg/Library/PL031RealTimeClockLib/
DPL031RealTimeClockLib.c152 Time->Year = y - 4800 + ((m + 2) / 12); in EpochToEfiTime()
185 y = Time->Year + 4800 - a; in EfiTimeToEpoch()
203 if (Time->Year % 4 == 0) { in IsLeapYear()
204 if (Time->Year % 100 == 0) { in IsLeapYear()
205 if (Time->Year % 400 == 0) { in IsLeapYear()
430 if ((Time->Year < 1900) || in LibSetTime()
431 (Time->Year > 9999) || in LibSetTime()
450 if ((Time->Year < 1970) || (Time->Year >= 2106)) { in LibSetTime()
/device/linaro/bootloader/edk2/StdLib/LibC/Time/
DTimeEfi.c34 BT->tm_year = ET->Year - TM_YEAR_BASE; in Efi2Tm()
73 ET->Year = (UINT16)BT->tm_year + TM_YEAR_BASE; in Tm2Efi()
/device/linaro/bootloader/edk2/Omap35xxPkg/Library/RealTimeClockLib/
DRealTimeClockLib.c76 Time->Year = 2000 + ((Data >> 4) & 0xF) * 10 + (Data & 0xF); in LibGetTime()
141 || (Time->Year < 2000 || Time->Year > 2099) in LibSetTime()
155 Data = Time->Year - 2000; in LibSetTime()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/
DTimeDate.c118 TheTime.Year = 0xFFFF; in CheckAndSetDate()
143 TheTime.Year = (UINT16)ShellStrToUintn (Walker); in CheckAndSetDate()
147 if (TheTime.Year < 100) { in CheckAndSetDate()
148 if (TheTime.Year >= 98) { in CheckAndSetDate()
149 TheTime.Year = (UINT16)(1900 + TheTime.Year); in CheckAndSetDate()
151 TheTime.Year = (UINT16)(2000 + TheTime.Year); in CheckAndSetDate()
238 …RING_TOKEN (STR_DATE_SFO_FORMAT), gShellLevel2HiiHandle, TheTime.Day, TheTime.Month, TheTime.Year); in ShellCommandRunDate()
240 …, STRING_TOKEN (STR_DATE_FORMAT), gShellLevel2HiiHandle, TheTime.Month, TheTime.Day, TheTime.Year); in ShellCommandRunDate()
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/
DEventLogInfo.c376 if (Log != NULL && Log->Year >= 80 && Log->Year <= 99) { in DisplaySysEventLogData()
378 } else if (Log != NULL && Log->Year <= 79) { in DisplaySysEventLogData()
388 Log->Year, in DisplaySysEventLogData()
DEventLogInfo.h25 UINT8 Year; member
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Include/Guid/
DFirmwareId.h50 CHAR8 Year[2];
/device/linaro/bootloader/edk2/UefiCpuPkg/Include/Register/
DMicrocode.h31 UINT32 Year:16; member
/device/linaro/bootloader/edk2/SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/
DPkcs7VerifyDxe.c318 if ((Time->Year == 0) && (Time->Month == 0) && (Time->Day == 0) && in IsTimeZero()
342 if (SigningTime->Year != RevocationTime->Year) { in CompareTimestamp()
343 return (BOOLEAN) (SigningTime->Year < RevocationTime->Year); in CompareTimestamp()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/DisplayEngineDxe/
DInputHandler.c329 UINT16 Year; in AdjustQuestionValue() local
334 Year = QuestionValue->Value.date.Year; in AdjustQuestionValue()
339 if ((Year % 4) == 0 && ((Year % 100) != 0 || (Year % 400) == 0)) { in AdjustQuestionValue()
559 if ((QuestionValue->Value.date.Year % 4) == 0 && in GetNumericInput()
560 ((QuestionValue->Value.date.Year % 100) != 0 || in GetNumericInput()
561 (QuestionValue->Value.date.Year % 400) == 0)) { in GetNumericInput()
585 EditValue = QuestionValue->Value.date.Year; in GetNumericInput()
942 QuestionValue->Value.date.Year = (UINT16) EditValue; in GetNumericInput()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePrintLib/
DPrintLibInternal.h49 UINT16 Year; member
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Library/VirtualRealTimeClockLib/
DRealTimeClockLib.c235 if ((Time->Year < 1970) || (Time->Year >= 2106)) { in LibSetTime()
/device/linaro/bootloader/OpenPlatformPkg/Chips/Hisilicon/Drivers/VersionInfoPeim/
DVersionInfoPeim.c62 Time->Year = AsciiStrDecimalToUintn(ReleaseDate+7); in GetReleaseTime()

1234