Lines Matching refs:alarm
192 static int pl031_stv2_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pl031_stv2_read_alarm() argument
198 readl(ldata->base + RTC_YMR), &alarm->time); in pl031_stv2_read_alarm()
200 alarm->pending = readl(ldata->base + RTC_RIS) & RTC_BIT_AI; in pl031_stv2_read_alarm()
201 alarm->enabled = readl(ldata->base + RTC_IMSC) & RTC_BIT_AI; in pl031_stv2_read_alarm()
206 static int pl031_stv2_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pl031_stv2_set_alarm() argument
213 ret = pl031_stv2_tm_to_time(dev, &alarm->time, in pl031_stv2_set_alarm()
219 pl031_alarm_irq_enable(dev, alarm->enabled); in pl031_stv2_set_alarm()
261 static int pl031_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pl031_read_alarm() argument
265 rtc_time64_to_tm(readl(ldata->base + RTC_MR), &alarm->time); in pl031_read_alarm()
267 alarm->pending = readl(ldata->base + RTC_RIS) & RTC_BIT_AI; in pl031_read_alarm()
268 alarm->enabled = readl(ldata->base + RTC_IMSC) & RTC_BIT_AI; in pl031_read_alarm()
273 static int pl031_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in pl031_set_alarm() argument
277 writel(rtc_tm_to_time64(&alarm->time), ldata->base + RTC_MR); in pl031_set_alarm()
278 pl031_alarm_irq_enable(dev, alarm->enabled); in pl031_set_alarm()