Lines Matching refs:isr
98 u16 isr; member
151 unsigned int isr = readl_relaxed(rtc->base + regs->isr); in stm32_rtc_enter_init_mode() local
153 if (!(isr & STM32_RTC_ISR_INITF)) { in stm32_rtc_enter_init_mode()
154 isr |= STM32_RTC_ISR_INIT; in stm32_rtc_enter_init_mode()
155 writel_relaxed(isr, rtc->base + regs->isr); in stm32_rtc_enter_init_mode()
164 rtc->base + regs->isr, in stm32_rtc_enter_init_mode()
165 isr, (isr & STM32_RTC_ISR_INITF), in stm32_rtc_enter_init_mode()
175 unsigned int isr = readl_relaxed(rtc->base + regs->isr); in stm32_rtc_exit_init_mode() local
177 isr &= ~STM32_RTC_ISR_INIT; in stm32_rtc_exit_init_mode()
178 writel_relaxed(isr, rtc->base + regs->isr); in stm32_rtc_exit_init_mode()
184 unsigned int isr = readl_relaxed(rtc->base + regs->isr); in stm32_rtc_wait_sync() local
186 isr &= ~STM32_RTC_ISR_RSF; in stm32_rtc_wait_sync()
187 writel_relaxed(isr, rtc->base + regs->isr); in stm32_rtc_wait_sync()
193 return readl_relaxed_poll_timeout_atomic(rtc->base + regs->isr, in stm32_rtc_wait_sync()
194 isr, in stm32_rtc_wait_sync()
195 (isr & STM32_RTC_ISR_RSF), in stm32_rtc_wait_sync()
471 unsigned int cr, isr, alrmar; in stm32_rtc_set_alarm() local
509 ret = readl_relaxed_poll_timeout_atomic(rtc->base + regs->isr, in stm32_rtc_set_alarm()
510 isr, in stm32_rtc_set_alarm()
511 (isr & STM32_RTC_ISR_ALRAWF), in stm32_rtc_set_alarm()
543 writel_relaxed(readl_relaxed(rtc->base + regs->isr) & ~flags, in stm32_rtc_clear_events()
544 rtc->base + regs->isr); in stm32_rtc_clear_events()
555 .isr = 0x0C,
577 .isr = 0x0C,
608 .isr = 0x0C, /* named RTC_ICSR on stm32mp1 */
821 if (!(readl_relaxed(rtc->base + regs->isr) & STM32_RTC_ISR_INITS)) in stm32_rtc_probe()