Lines Matching defs:cr
102 u16 cr;
213 unsigned int status, cr;
218 cr = readl_relaxed(rtc->base + regs->cr);
221 (cr & STM32_RTC_CR_ALRAIE)) {
345 unsigned int alrmar, cr, status;
348 cr = readl_relaxed(rtc->base + regs->cr);
401 alrm->enabled = (cr & STM32_RTC_CR_ALRAE) ? 1 : 0;
412 unsigned int cr;
414 cr = readl_relaxed(rtc->base + regs->cr);
420 cr |= (STM32_RTC_CR_ALRAIE | STM32_RTC_CR_ALRAE);
422 cr &= ~(STM32_RTC_CR_ALRAIE | STM32_RTC_CR_ALRAE);
423 writel_relaxed(cr, rtc->base + regs->cr);
476 unsigned int cr, isr, alrmar;
506 cr = readl_relaxed(rtc->base + regs->cr);
507 cr &= ~STM32_RTC_CR_ALRAE;
508 writel_relaxed(cr, rtc->base + regs->cr);
559 .cr = 0x08,
581 .cr = 0x08,
612 .cr = 0x18,
639 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr;
683 cr = readl_relaxed(rtc->base + regs->cr);
694 if ((cr & STM32_RTC_CR_FMT) == 0 && prer == (pred_s | pred_a))
710 cr &= ~STM32_RTC_CR_FMT;
711 writel_relaxed(cr, rtc->base + regs->cr);
873 unsigned int cr;
877 cr = readl_relaxed(rtc->base + regs->cr);
878 cr &= ~STM32_RTC_CR_ALRAIE;
879 writel_relaxed(cr, rtc->base + regs->cr);