Searched refs:year (Results 1 – 13 of 13) sorted by relevance
/drivers/hdf_core/framework/support/platform/src/rtc/ |
D | rtc_base.c | 32 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/ |
D | rtc_base.h | 20 #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);
|
D | rtc_if.h | 75 uint16_t year; /**< Year. The value is greater than or equal to 1970. */ member
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
D | rtc_test.c | 124 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()
|
D | rtc_test.h | 23 uint32_t year; member
|
D | rtc_driver_test.c | 63 ret = drsOps->GetUint32(node, "year", &config->year, 0); in RtcTestReadConfig()
|
/drivers/hdf_core/adapter/khdf/linux/platform/rtc/ |
D | rtc_adapter.c | 36 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/ |
D | test_header_parser.py | 512 year = stack["properties"]["public"][5] 513 params = parser._checkout_function_pointer_param(year["type"])
|
/drivers/hdf_core/framework/support/platform/include/hdmi/ |
D | hdmi_edid.h | 82 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/ |
D | mmc_protocol.h | 357 uint16_t year; /* Manufacturing date: The y field */ member
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
D | hdmi_edid.c | 117 sinkCap->vendorInfo.year = block->year + HDMI_EDID_YEAR_BASE; in HdmiEdidVendorInfoPhase()
|
/drivers/hdf_core/adapter/khdf/linux/ |
D | LICENSE | 313 Copyright (C) <year> <name of author> 335 Gnomovision version 69, Copyright (C) year name of author
|
/drivers/hdf_core/framework/model/storage/src/mmc/ |
D | mmc_protocol.c | 796 cid->year = MmcParseBits(rawCid, CID_BITS, 8, 4) + 1997; in EmmcDecodeCid() 2060 cid->year = MmcParseBits(rawCid, CID_BITS, 12, 8) + 2000; in SdDecodeCid()
|