Lines Matching defs:alm
266 static int ds1286_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
277 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f;
278 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f;
279 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07;
283 alm->time.tm_min = bcd2bin(alm->time.tm_min);
284 alm->time.tm_hour = bcd2bin(alm->time.tm_hour);
285 alm->time.tm_sec = 0;
289 static int ds1286_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
294 hrs = alm->time.tm_hour;
295 min = alm->time.tm_min;
296 sec = alm->time.tm_sec;