Lines Matching full:mr
133 u32 offset, alarm, mr; in at91_rtc_settime() local
140 mr = rtt_readl(rtc, MR); in at91_rtc_settime()
143 rtt_writel(rtc, MR, mr & ~(AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN)); in at91_rtc_settime()
164 mr &= ~AT91_RTT_ALMIEN; in at91_rtc_settime()
170 rtt_writel(rtc, MR, mr | AT91_RTT_RTTRST); in at91_rtc_settime()
192 if (rtt_readl(rtc, MR) & AT91_RTT_ALMIEN) in at91_rtc_readalarm()
205 u32 mr; in at91_rtc_setalarm() local
214 mr = rtt_readl(rtc, MR); in at91_rtc_setalarm()
215 rtt_writel(rtc, MR, mr & ~AT91_RTT_ALMIEN); in at91_rtc_setalarm()
226 rtt_writel(rtc, MR, mr | AT91_RTT_ALMIEN); in at91_rtc_setalarm()
236 u32 mr = rtt_readl(rtc, MR); in at91_rtc_alarm_irq_enable() local
238 dev_dbg(dev, "alarm_irq_enable: enabled=%08x, mr %08x\n", enabled, mr); in at91_rtc_alarm_irq_enable()
240 rtt_writel(rtc, MR, mr | AT91_RTT_ALMIEN); in at91_rtc_alarm_irq_enable()
242 rtt_writel(rtc, MR, mr & ~AT91_RTT_ALMIEN); in at91_rtc_alarm_irq_enable()
252 u32 mr = rtt_readl(rtc, MR); in at91_rtc_proc() local
255 (mr & AT91_RTT_RTTINCIEN) ? "yes" : "no"); in at91_rtc_proc()
261 u32 sr, mr; in at91_rtc_cache_events() local
266 mr = rtt_readl(rtc, MR) & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_cache_events()
267 sr = rtt_readl(rtc, SR) & (mr >> 16); in at91_rtc_cache_events()
309 rtt_writel(rtc, MR, in at91_rtc_interrupt()
310 rtt_readl(rtc, MR) & in at91_rtc_interrupt()
339 u32 mr; in at91_rtc_probe() local
395 mr = rtt_readl(rtc, MR); in at91_rtc_probe()
398 if ((mr & AT91_RTT_RTPRES) != sclk_rate) { in at91_rtc_probe()
399 mr = AT91_RTT_RTTRST | (sclk_rate & AT91_RTT_RTPRES); in at91_rtc_probe()
404 mr &= ~(AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_probe()
405 rtt_writel(rtc, MR, mr); in at91_rtc_probe()
449 u32 mr = rtt_readl(rtc, MR); in at91_rtc_remove() local
452 rtt_writel(rtc, MR, mr & ~(AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN)); in at91_rtc_remove()
460 u32 mr = rtt_readl(rtc, MR); in at91_rtc_shutdown() local
462 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_shutdown()
463 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_shutdown()
473 u32 mr = rtt_readl(rtc, MR); in at91_rtc_suspend() local
479 rtc->imr = mr & (AT91_RTT_ALMIEN | AT91_RTT_RTTINCIEN); in at91_rtc_suspend()
481 if (device_may_wakeup(dev) && (mr & AT91_RTT_ALMIEN)) { in at91_rtc_suspend()
489 if (mr & AT91_RTT_RTTINCIEN) in at91_rtc_suspend()
490 rtt_writel(rtc, MR, mr & ~AT91_RTT_RTTINCIEN); in at91_rtc_suspend()
492 rtt_writel(rtc, MR, mr & ~rtc->imr); in at91_rtc_suspend()
502 u32 mr; in at91_rtc_resume() local
509 mr = rtt_readl(rtc, MR); in at91_rtc_resume()
510 rtt_writel(rtc, MR, mr | rtc->imr); in at91_rtc_resume()