Lines Matching defs: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;
170 year = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA));
180 /* Rebase to the absolute year which userspace queries */
181 tm->tm_year = year + MTK_RTC_TM_YR_OFFSET;
187 u32 year;
189 /* Rebase to the relative year which RTC hardware requires */
190 year = tm->tm_year - MTK_RTC_TM_YR_OFFSET;
192 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA), year);