Lines Matching defs:pred_a
639 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr;
655 for (pred_a = 0; pred_a <= pred_a_max; pred_a++) {
656 pred_s = (rate / (pred_a + 1)) - 1;
658 if (pred_s <= pred_s_max && ((pred_s + 1) * (pred_a + 1)) == rate)
662 for (pred_a = pred_a_max; pred_a + 1 > 0; pred_a--) {
663 pred_s = (rate / (pred_a + 1)) - 1;
665 if (((pred_s + 1) * (pred_a + 1)) == rate)
674 if (pred_s > pred_s_max || pred_a > pred_a_max) {
675 pred_a = pred_a_max;
676 pred_s = (rate / (pred_a + 1)) - 1;
679 (rate < ((pred_a + 1) * (pred_s + 1))) ?
690 pred_a = (pred_a << STM32_RTC_PRER_PRED_A_SHIFT) &
694 if ((cr & STM32_RTC_CR_FMT) == 0 && prer == (pred_s | pred_a))
707 writel_relaxed(pred_a | pred_s, rtc->base + regs->prer);