Lines Matching full:year
49 * Ranges from 0x40 to 0x78 provide RTC time setup for year, month,
59 * The offset is used in the translation for the year between in struct
66 * tm_year 100 as not a leap year and thus it is also required being excluded
72 * The most year the RTC can hold is 99 and the next to 99 in year register
155 u32 year, mon, mday, wday, hour, min, sec; in mtk_rtc_get_alarm_or_time() local
170 year = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA)); in mtk_rtc_get_alarm_or_time()
180 /* Rebase to the absolute year which userspace queries */ in mtk_rtc_get_alarm_or_time()
181 tm->tm_year = year + MTK_RTC_TM_YR_OFFSET; in mtk_rtc_get_alarm_or_time()
187 u32 year; in mtk_rtc_set_alarm_or_time() local
189 /* Rebase to the relative year which RTC hardware requires */ in mtk_rtc_set_alarm_or_time()
190 year = tm->tm_year - MTK_RTC_TM_YR_OFFSET; in mtk_rtc_set_alarm_or_time()
192 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA), year); in mtk_rtc_set_alarm_or_time()