Searched refs:pred_a_max (Results 1 – 1 of 1) sorted by relevance
974 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; in stm32_rtc_init() local981 pred_a_max = STM32_RTC_PRER_PRED_A >> STM32_RTC_PRER_PRED_A_SHIFT; in stm32_rtc_init()984 if (rate > (pred_a_max + 1) * (pred_s_max + 1)) { in stm32_rtc_init()990 for (pred_a = 0; pred_a <= pred_a_max; pred_a++) { in stm32_rtc_init()997 for (pred_a = pred_a_max; pred_a + 1 > 0; pred_a--) { in stm32_rtc_init()1009 if (pred_s > pred_s_max || pred_a > pred_a_max) { in stm32_rtc_init()1010 pred_a = pred_a_max; in stm32_rtc_init()