Lines Matching refs:alarm
58 enum lp8788_alarm_sel alarm; member
163 static int lp8788_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in lp8788_read_alarm() argument
167 struct rtc_time *tm = &alarm->time; in lp8788_read_alarm()
171 addr = addr_alarm_sec[rtc->alarm]; in lp8788_read_alarm()
183 alarm->enabled = data[LPTIME_WDAY] & LP8788_ALM_EN_M; in lp8788_read_alarm()
188 static int lp8788_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in lp8788_set_alarm() argument
192 struct rtc_time *tm = &alarm->time; in lp8788_set_alarm()
211 addr = addr_alarm_sec[rtc->alarm] + i; in lp8788_set_alarm()
217 alarm->enabled = 1; in lp8788_set_alarm()
218 addr = addr_alarm_en[rtc->alarm]; in lp8788_set_alarm()
221 alarm->enabled << LP8788_ALM_EN_S); in lp8788_set_alarm()
233 mask = mask_alarm_en[rtc->alarm]; in lp8788_alarm_irq_enable()
234 shift = shift_alarm_en[rtc->alarm]; in lp8788_alarm_irq_enable()
270 if (rtc->alarm == LP8788_ALARM_1) in lp8788_alarm_irq_register()
293 rtc->alarm = lp->pdata ? lp->pdata->alarm_sel : DEFAULT_ALARM_SEL; in lp8788_rtc_probe()