Searched refs:pred_s (Results 1 – 1 of 1) sorted by relevance
634 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; in stm32_rtc_init() local645 pred_s = (rate / (pred_a + 1)) - 1; in stm32_rtc_init()647 if (((pred_s + 1) * (pred_a + 1)) == rate) in stm32_rtc_init()655 if ((pred_s > pred_s_max) || (pred_a > pred_a_max)) { in stm32_rtc_init()657 pred_s = (rate / (pred_a + 1)) - 1; in stm32_rtc_init()660 (rate < ((pred_a + 1) * (pred_s + 1))) ? in stm32_rtc_init()673 prer = (pred_s << STM32_RTC_PRER_PRED_S_SHIFT) & STM32_RTC_PRER_PRED_S; in stm32_rtc_init()