Lines Matching refs:alm
262 static int ds1286_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in ds1286_read_alarm() argument
272 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
273 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm()
274 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; in ds1286_read_alarm()
278 alm->time.tm_min = bcd2bin(alm->time.tm_min); in ds1286_read_alarm()
279 alm->time.tm_hour = bcd2bin(alm->time.tm_hour); in ds1286_read_alarm()
280 alm->time.tm_sec = 0; in ds1286_read_alarm()
284 static int ds1286_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in ds1286_set_alarm() argument
289 hrs = alm->time.tm_hour; in ds1286_set_alarm()
290 min = alm->time.tm_min; in ds1286_set_alarm()
291 sec = alm->time.tm_sec; in ds1286_set_alarm()