Lines Matching refs:ioaddr

44 	void __iomem *ioaddr;  member
52 void __iomem *ioaddr = pdata->ioaddr; in mv_rtc_set_time() local
59 writel(rtc_reg, ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_set_time()
64 writel(rtc_reg, ioaddr + RTC_DATE_REG_OFFS); in mv_rtc_set_time()
72 void __iomem *ioaddr = pdata->ioaddr; in mv_rtc_read_time() local
76 rtc_time = readl(ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_read_time()
77 rtc_date = readl(ioaddr + RTC_DATE_REG_OFFS); in mv_rtc_read_time()
103 void __iomem *ioaddr = pdata->ioaddr; in mv_rtc_read_alarm() local
107 rtc_time = readl(ioaddr + RTC_ALARM_TIME_REG_OFFS); in mv_rtc_read_alarm()
108 rtc_date = readl(ioaddr + RTC_ALARM_DATE_REG_OFFS); in mv_rtc_read_alarm()
133 alm->enabled = !!readl(ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); in mv_rtc_read_alarm()
140 void __iomem *ioaddr = pdata->ioaddr; in mv_rtc_set_alarm() local
153 writel(rtc_reg, ioaddr + RTC_ALARM_TIME_REG_OFFS); in mv_rtc_set_alarm()
169 writel(rtc_reg, ioaddr + RTC_ALARM_DATE_REG_OFFS); in mv_rtc_set_alarm()
170 writel(0, ioaddr + RTC_ALARM_INTERRUPT_CASUE_REG_OFFS); in mv_rtc_set_alarm()
172 ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); in mv_rtc_set_alarm()
180 void __iomem *ioaddr = pdata->ioaddr; in mv_rtc_alarm_irq_enable() local
186 writel(1, ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); in mv_rtc_alarm_irq_enable()
188 writel(0, ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); in mv_rtc_alarm_irq_enable()
195 void __iomem *ioaddr = pdata->ioaddr; in mv_rtc_interrupt() local
198 if (!readl(ioaddr + RTC_ALARM_INTERRUPT_CASUE_REG_OFFS)) in mv_rtc_interrupt()
202 writel(0, ioaddr + RTC_ALARM_INTERRUPT_CASUE_REG_OFFS); in mv_rtc_interrupt()
232 pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res); in mv_rtc_probe()
233 if (IS_ERR(pdata->ioaddr)) in mv_rtc_probe()
234 return PTR_ERR(pdata->ioaddr); in mv_rtc_probe()
242 rtc_time = readl(pdata->ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_probe()
252 rtc_time = readl(pdata->ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_probe()
279 writel(0, pdata->ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS); in mv_rtc_probe()