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