Lines Matching refs:alm
270 static int ds1286_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in ds1286_read_alarm() argument
281 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
282 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm()
283 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; in ds1286_read_alarm()
287 alm->time.tm_min = bcd2bin(alm->time.tm_min); in ds1286_read_alarm()
288 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); in ds1286_read_alarm()
289 alm->time.tm_sec = 0; in ds1286_read_alarm()
293 static int ds1286_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in ds1286_set_alarm() argument
298 hrs = alm->time.tm_hour; in ds1286_set_alarm()
299 min = alm->time.tm_min; in ds1286_set_alarm()
300 sec = alm->time.tm_sec; in ds1286_set_alarm()