Searched refs:alm_tm (Results 1 – 4 of 4) sorted by relevance
/linux-3.4.99/drivers/rtc/ |
D | rtc-s3c.c | 248 struct rtc_time *alm_tm = &alrm->time; in s3c_rtc_getalarm() local 253 alm_tm->tm_sec = readb(base + S3C2410_ALMSEC); in s3c_rtc_getalarm() 254 alm_tm->tm_min = readb(base + S3C2410_ALMMIN); in s3c_rtc_getalarm() 255 alm_tm->tm_hour = readb(base + S3C2410_ALMHOUR); in s3c_rtc_getalarm() 256 alm_tm->tm_mon = readb(base + S3C2410_ALMMON); in s3c_rtc_getalarm() 257 alm_tm->tm_mday = readb(base + S3C2410_ALMDATE); in s3c_rtc_getalarm() 258 alm_tm->tm_year = readb(base + S3C2410_ALMYEAR); in s3c_rtc_getalarm() 266 1900 + alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, in s3c_rtc_getalarm() 267 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec); in s3c_rtc_getalarm() 273 alm_tm->tm_sec = bcd2bin(alm_tm->tm_sec); in s3c_rtc_getalarm() [all …]
|
D | rtc-puv3.c | 116 struct rtc_time *alm_tm = &alrm->time; in puv3_rtc_getalarm() local 118 rtc_time_to_tm(readl(RTC_RTAR), alm_tm); in puv3_rtc_getalarm() 124 alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday, in puv3_rtc_getalarm() 125 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec); in puv3_rtc_getalarm()
|
/linux-3.4.99/drivers/char/ |
D | rtc.c | 153 static void get_rtc_alm_time(struct rtc_time *alm_tm); 499 struct rtc_time alm_tm; in rtc_do_ioctl() local 501 if (copy_from_user(&alm_tm, (struct rtc_time __user *)arg, in rtc_do_ioctl() 505 hrs = alm_tm.tm_hour; in rtc_do_ioctl() 506 min = alm_tm.tm_min; in rtc_do_ioctl() 507 sec = alm_tm.tm_sec; in rtc_do_ioctl() 1364 static void get_rtc_alm_time(struct rtc_time *alm_tm) in get_rtc_alm_time() argument 1373 alm_tm->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in get_rtc_alm_time() 1374 alm_tm->tm_min = CMOS_READ(RTC_MINUTES_ALARM); in get_rtc_alm_time() 1375 alm_tm->tm_hour = CMOS_READ(RTC_HOURS_ALARM); in get_rtc_alm_time() [all …]
|
/linux-3.4.99/drivers/input/misc/ |
D | hp_sdc_rtc.c | 582 struct hp_sdc_rtc_time alm_tm; in hp_sdc_rtc_ioctl() 584 if (copy_from_user(&alm_tm, (struct hp_sdc_rtc_time*)arg, in hp_sdc_rtc_ioctl() 588 if (alm_tm.tm_hour > 23) return -EINVAL; in hp_sdc_rtc_ioctl() 589 if (alm_tm.tm_min > 59) return -EINVAL; in hp_sdc_rtc_ioctl() 590 if (alm_tm.tm_sec > 59) return -EINVAL; in hp_sdc_rtc_ioctl() 592 ttime.sec = alm_tm.tm_hour * 3600 + in hp_sdc_rtc_ioctl() 593 alm_tm.tm_min * 60 + alm_tm.tm_sec; in hp_sdc_rtc_ioctl()
|