Lines Matching refs:alm_tm
64 void ds1286_get_alm_time (struct rtc_time *alm_tm);
188 struct rtc_time alm_tm; in ds1286_ioctl() local
193 if (copy_from_user(&alm_tm, (struct rtc_time*)arg, in ds1286_ioctl()
197 hrs = alm_tm.tm_hour; in ds1286_ioctl()
198 min = alm_tm.tm_min; in ds1286_ioctl()
511 void ds1286_get_alm_time(struct rtc_time *alm_tm) in ds1286_get_alm_time() argument
521 alm_tm->tm_min = CMOS_READ(RTC_MINUTES_ALARM) & 0x7f; in ds1286_get_alm_time()
522 alm_tm->tm_hour = CMOS_READ(RTC_HOURS_ALARM) & 0x1f; in ds1286_get_alm_time()
523 alm_tm->tm_wday = CMOS_READ(RTC_DAY_ALARM) & 0x07; in ds1286_get_alm_time()
527 BCD_TO_BIN(alm_tm->tm_min); in ds1286_get_alm_time()
528 BCD_TO_BIN(alm_tm->tm_hour); in ds1286_get_alm_time()
529 alm_tm->tm_sec = 0; in ds1286_get_alm_time()