• Home
  • Raw
  • Download

Lines Matching refs:cr

97 	u16 cr;  member
210 unsigned int status, cr; in stm32_rtc_alarm_irq() local
215 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_alarm_irq()
218 (cr & STM32_RTC_CR_ALRAIE)) { in stm32_rtc_alarm_irq()
342 unsigned int alrmar, cr, status; in stm32_rtc_read_alarm() local
345 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_read_alarm()
398 alrm->enabled = (cr & STM32_RTC_CR_ALRAE) ? 1 : 0; in stm32_rtc_read_alarm()
409 unsigned int cr; in stm32_rtc_alarm_irq_enable() local
411 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_alarm_irq_enable()
417 cr |= (STM32_RTC_CR_ALRAIE | STM32_RTC_CR_ALRAE); in stm32_rtc_alarm_irq_enable()
419 cr &= ~(STM32_RTC_CR_ALRAIE | STM32_RTC_CR_ALRAE); in stm32_rtc_alarm_irq_enable()
420 writel_relaxed(cr, rtc->base + regs->cr); in stm32_rtc_alarm_irq_enable()
471 unsigned int cr, isr, alrmar; in stm32_rtc_set_alarm() local
501 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_set_alarm()
502 cr &= ~STM32_RTC_CR_ALRAE; in stm32_rtc_set_alarm()
503 writel_relaxed(cr, rtc->base + regs->cr); in stm32_rtc_set_alarm()
554 .cr = 0x08,
576 .cr = 0x08,
607 .cr = 0x18,
634 unsigned int prer, pred_a, pred_s, pred_a_max, pred_s_max, cr; in stm32_rtc_init() local
679 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_init()
680 cr &= ~STM32_RTC_CR_FMT; in stm32_rtc_init()
681 writel_relaxed(cr, rtc->base + regs->cr); in stm32_rtc_init()
853 unsigned int cr; in stm32_rtc_remove() local
857 cr = readl_relaxed(rtc->base + regs->cr); in stm32_rtc_remove()
858 cr &= ~STM32_RTC_CR_ALRAIE; in stm32_rtc_remove()
859 writel_relaxed(cr, rtc->base + regs->cr); in stm32_rtc_remove()