Lines Matching refs:virtbase

48 	void __iomem *virtbase;  member
61 writel(1, rtap->virtbase + COH901331_IRQ_EVENT); in coh901331_interrupt()
69 writel(0, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_interrupt()
84 if (readl(rtap->virtbase + COH901331_VALID)) { in coh901331_read_time()
85 rtc_time_to_tm(readl(rtap->virtbase + COH901331_CUR_TIME), tm); in coh901331_read_time()
98 writel(secs, rtap->virtbase + COH901331_SET_TIME); in coh901331_set_mmss()
109 rtc_time_to_tm(readl(rtap->virtbase + COH901331_ALARM), &alarm->time); in coh901331_read_alarm()
110 alarm->pending = readl(rtap->virtbase + COH901331_IRQ_EVENT) & 1U; in coh901331_read_alarm()
111 alarm->enabled = readl(rtap->virtbase + COH901331_IRQ_MASK) & 1U; in coh901331_read_alarm()
124 writel(time, rtap->virtbase + COH901331_ALARM); in coh901331_set_alarm()
125 writel(alarm->enabled, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_set_alarm()
137 writel(1, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_alarm_irq_enable()
139 writel(0, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_alarm_irq_enable()
161 iounmap(rtap->virtbase); in coh901331_remove()
195 rtap->virtbase = ioremap(rtap->phybase, rtap->physize); in coh901331_probe()
196 if (!rtap->virtbase) { in coh901331_probe()
240 iounmap(rtap->virtbase); in coh901331_probe()
264 rtap->irqmaskstore = readl(rtap->virtbase + COH901331_IRQ_MASK); in coh901331_suspend()
265 writel(0, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_suspend()
279 writel(rtap->irqmaskstore, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_resume()
294 writel(0, rtap->virtbase + COH901331_IRQ_MASK); in coh901331_shutdown()