Home
last modified time | relevance | path

Searched refs:year (Results 1 – 13 of 13) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/rtc/
Drtc_base.c32 uint8_t RtcIsInvalidDay(const uint8_t day, const uint8_t month, const uint16_t year) in RtcIsInvalidDay() argument
35 maxDay = RtcGetMonthDays(IS_LEAP_YEAR(year), month); in RtcIsInvalidDay()
47 return (IS_INVALID_YEAR(time->year) || IS_INVALID_MONTH(time->month) || in RtcIsInvalid()
48 (RtcIsInvalidDay(time->day, time->month, time->year) == RTC_TRUE) || in RtcIsInvalid()
57 uint16_t year; in RtcGetWeekDay() local
59 if ((time == NULL) || IS_INVALID_MONTH(time->month) || IS_INVALID_YEAR(time->year) || in RtcGetWeekDay()
60 (RtcIsInvalidDay(time->day, time->month, time->year) == RTC_TRUE)) { in RtcGetWeekDay()
68 days += RtcGetMonthDays(IS_LEAP_YEAR(time->year), month); in RtcGetWeekDay()
71 year = time->year; in RtcGetWeekDay()
72 while (--year >= RTC_BEGIN_YEAR) { in RtcGetWeekDay()
[all …]
/drivers/hdf_core/framework/include/platform/
Drtc_base.h20 #define IS_LEAP_YEAR(year) (((((year) % 4) == 0) && (((year) % 100) != 0)) || (((year) % 400) =… argument
21 #define RTC_YEAR_DAYS(year) (IS_LEAP_YEAR(year) ? 366 : 365) argument
44 #define IS_INVALID_YEAR(year) ((year) < RTC_BEGIN_YEAR) argument
68 uint8_t RtcIsInvalidDay(const uint8_t day, const uint8_t month, const uint16_t year);
Drtc_if.h75 uint16_t year; /**< Year. The value is greater than or equal to 1970. */ member
/drivers/hdf_core/framework/test/unittest/platform/common/
Drtc_test.c124 if ((readTime->year != writeTime->year) || (readTime->month != writeTime->month) || in IsSameRtcTestTime()
165 tester->time.year = tester->config.year; in RtcReadWriteTimeTest()
187 tester->time.year = tester->config.year; in RtcReadWriteMaxTimeTest()
209 tester->time.year = RTC_BEGIN_YEAR - 1; in RtcReadWriteMinTimeTest()
258 tester->time.year = tester->config.year; in RtcReadWriteAlarmTimeTest()
280 tester->time.year = tester->config.maxYear; in RtcReadWriteAlarmMaxTimeTest()
302 tester->time.year = RTC_BEGIN_YEAR - 1; in RtcReadWriteAlarmMinTimeTest()
325 tester->time.year = tester->config.year; in RtcAlarmEnableTest()
381 tester->time.year = tester->config.year; in RtcAlarmIrqTest()
560 tester->time.year = tester->config.year; in RtcTestSample()
Drtc_test.h23 uint32_t year; member
Drtc_driver_test.c63 ret = drsOps->GetUint32(node, "year", &config->year, 0); in RtcTestReadConfig()
/drivers/hdf_core/adapter/khdf/linux/platform/rtc/
Drtc_adapter.c36 linuxTime->tm_year = hdfTime->year - YEAR_BASE; in HdfTimeToLinuxTime()
48 hdfTime->year = linuxTime->tm_year + YEAR_BASE; in LinuxTimeToHdfTime()
/drivers/hdf_core/framework/tools/idl-gen/testcase/
Dtest_header_parser.py512 year = stack["properties"]["public"][5]
513 params = parser._checkout_function_pointer_param(year["type"])
/drivers/hdf_core/framework/support/platform/include/hdmi/
Dhdmi_edid.h82 uint8_t year; member
275 uint8_t year; /* This value is determined by the actual year of production minus 1990. */ member
/drivers/hdf_core/framework/model/storage/include/mmc/
Dmmc_protocol.h357 uint16_t year; /* Manufacturing date: The y field */ member
/drivers/hdf_core/framework/support/platform/src/hdmi/
Dhdmi_edid.c117 sinkCap->vendorInfo.year = block->year + HDMI_EDID_YEAR_BASE; in HdmiEdidVendorInfoPhase()
/drivers/hdf_core/adapter/khdf/linux/
DLICENSE313 Copyright (C) <year> <name of author>
335 Gnomovision version 69, Copyright (C) year name of author
/drivers/hdf_core/framework/model/storage/src/mmc/
Dmmc_protocol.c796 cid->year = MmcParseBits(rawCid, CID_BITS, 8, 4) + 1997; in EmmcDecodeCid()
2060 cid->year = MmcParseBits(rawCid, CID_BITS, 12, 8) + 2000; in SdDecodeCid()