Searched refs:AT91_RTC_CORR_DIVIDEND (Results 1 – 1 of 1) sorted by relevance
83 #define AT91_RTC_CORR_DIVIDEND 3906000 macro321 *offset = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, val); in at91_rtc_readoffset()331 if (offset > AT91_RTC_CORR_DIVIDEND / 2) in at91_rtc_setoffset()333 if (offset < -AT91_RTC_CORR_DIVIDEND / 2) in at91_rtc_setoffset()356 corr = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, offset * AT91_RTC_CORR_LOW_RATIO); in at91_rtc_setoffset()358 corr = DIV_ROUND_CLOSEST(AT91_RTC_CORR_DIVIDEND, offset); in at91_rtc_setoffset()