Lines Matching refs:rtsr
112 u32 rtsr; in rtsr_clear_bits() local
114 rtsr = rtc_readl(pxa_rtc, RTSR); in rtsr_clear_bits()
115 rtsr &= ~RTSR_TRIG_MASK; in rtsr_clear_bits()
116 rtsr &= ~mask; in rtsr_clear_bits()
117 rtc_writel(pxa_rtc, RTSR, rtsr); in rtsr_clear_bits()
122 u32 rtsr; in rtsr_set_bits() local
124 rtsr = rtc_readl(pxa_rtc, RTSR); in rtsr_set_bits()
125 rtsr &= ~RTSR_TRIG_MASK; in rtsr_set_bits()
126 rtsr |= mask; in rtsr_set_bits()
127 rtc_writel(pxa_rtc, RTSR, rtsr); in rtsr_set_bits()
133 u32 rtsr; in pxa_rtc_irq() local
139 rtsr = rtc_readl(pxa_rtc, RTSR); in pxa_rtc_irq()
140 rtc_writel(pxa_rtc, RTSR, rtsr); in pxa_rtc_irq()
146 if (rtsr & RTSR_RDAL1) in pxa_rtc_irq()
147 rtsr &= ~RTSR_RDALE1; in pxa_rtc_irq()
150 if (rtsr & RTSR_RDAL1) in pxa_rtc_irq()
152 if (rtsr & RTSR_HZ) in pxa_rtc_irq()
154 if (rtsr & RTSR_PIAL) in pxa_rtc_irq()
160 rtc_writel(pxa_rtc, RTSR, rtsr & ~RTSR_TRIG_MASK); in pxa_rtc_irq()
246 u32 rtsr, ryar, rdar; in pxa_rtc_read_alarm() local
252 rtsr = rtc_readl(pxa_rtc, RTSR); in pxa_rtc_read_alarm()
253 alrm->enabled = (rtsr & RTSR_RDALE1) ? 1 : 0; in pxa_rtc_read_alarm()
254 alrm->pending = (rtsr & RTSR_RDAL1) ? 1 : 0; in pxa_rtc_read_alarm()
261 u32 rtsr; in pxa_rtc_set_alarm() local
268 rtsr = rtc_readl(pxa_rtc, RTSR); in pxa_rtc_set_alarm()
270 rtsr |= RTSR_RDALE1; in pxa_rtc_set_alarm()
272 rtsr &= ~RTSR_RDALE1; in pxa_rtc_set_alarm()
273 rtc_writel(pxa_rtc, RTSR, rtsr); in pxa_rtc_set_alarm()
345 sa1100_rtc->rtsr = pxa_rtc->base + 0x8; in pxa_rtc_probe()