Lines Matching refs:RTC_VAL
18 #define RTC_VAL(reg, val) (((val) >> RTC_## reg ## _SHIFT) & \ macro
35 #define RTC_MR_CORR(val) RTC_VAL(val, MR_CORR)
121 tm->tm_wday = bcd_decode(RTC_VAL(CAL_DAY, date)) - 1; in atmel_decode_date()
122 tm->tm_mday = bcd_decode(RTC_VAL(CAL_DATE, date)); in atmel_decode_date()
123 tm->tm_mon = bcd_decode(RTC_VAL(CAL_MONTH, date)) - 1; in atmel_decode_date()
124 tm->tm_year = bcd_decode(RTC_VAL(CAL_CENT, date)) * 100; in atmel_decode_date()
125 tm->tm_year += bcd_decode(RTC_VAL(CAL_YEAR, date)); in atmel_decode_date()
127 tm->tm_hour = bcd_decode(RTC_VAL(TIME_HOUR, time)); in atmel_decode_date()
128 tm->tm_min = bcd_decode(RTC_VAL(TIME_MIN, time)); in atmel_decode_date()
129 tm->tm_sec = bcd_decode(RTC_VAL(TIME_SEC, time)); in atmel_decode_date()
203 long val = RTC_VAL(MR_CORR, mr); in atmel_rtc_get_offset()