Searched refs:pred_a_max (Results 1 - 1 of 1) sorted by relevance

/linux-master/drivers/rtc/
H A Drtc-stm32.c639 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; local
646 pred_a_max = STM32_RTC_PRER_PRED_A >> STM32_RTC_PRER_PRED_A_SHIFT;
649 if (rate > (pred_a_max + 1) * (pred_s_max + 1)) {
655 for (pred_a = 0; pred_a <= pred_a_max; pred_a++) {
662 for (pred_a = pred_a_max; pred_a + 1 > 0; pred_a--) {
674 if (pred_s > pred_s_max || pred_a > pred_a_max) {
675 pred_a = pred_a_max;

Completed in 98 milliseconds