Searched refs:alm_tm (Results 1 – 3 of 3) sorted by relevance
64 void ds1286_get_alm_time (struct rtc_time *alm_tm);188 struct rtc_time alm_tm; in ds1286_ioctl() local193 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() argument521 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()[all …]
116 static void get_rtc_alm_time (struct rtc_time *alm_tm);391 struct rtc_time alm_tm; in rtc_ioctl() local393 if (copy_from_user(&alm_tm, (struct rtc_time*)arg, in rtc_ioctl()397 hrs = alm_tm.tm_hour; in rtc_ioctl()398 min = alm_tm.tm_min; in rtc_ioctl()399 sec = alm_tm.tm_sec; in rtc_ioctl()1104 static void get_rtc_alm_time(struct rtc_time *alm_tm) in get_rtc_alm_time() argument1113 alm_tm->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in get_rtc_alm_time()1114 alm_tm->tm_min = CMOS_READ(RTC_MINUTES_ALARM); in get_rtc_alm_time()1115 alm_tm->tm_hour = CMOS_READ(RTC_HOURS_ALARM); in get_rtc_alm_time()[all …]
595 struct hp_sdc_rtc_time alm_tm; in hp_sdc_rtc_ioctl()597 if (copy_from_user(&alm_tm, (struct hp_sdc_rtc_time*)arg, in hp_sdc_rtc_ioctl()601 if (alm_tm.tm_hour > 23) return -EINVAL; in hp_sdc_rtc_ioctl()602 if (alm_tm.tm_min > 59) return -EINVAL; in hp_sdc_rtc_ioctl()603 if (alm_tm.tm_sec > 59) return -EINVAL; in hp_sdc_rtc_ioctl()605 ttime.sec = alm_tm.tm_hour * 3600 + in hp_sdc_rtc_ioctl()606 alm_tm.tm_min * 60 + alm_tm.tm_sec; in hp_sdc_rtc_ioctl()