Lines Matching refs:rtc_time
86 static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_do_read_bbrtc()
120 memset(rtctm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_do_read_bbrtc()
132 static int hp_sdc_rtc_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_read_bbrtc()
134 struct rtc_time tm, tm_last; in hp_sdc_rtc_read_bbrtc()
142 while (memcmp(&tm, &tm_last, sizeof(struct rtc_time))) { in hp_sdc_rtc_read_bbrtc()
144 memcpy(&tm_last, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
148 memcpy(rtctm, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
444 struct rtc_time tm; in hp_sdc_rtc_proc_output()
447 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_output()
542 struct rtc_time wtime; in hp_sdc_rtc_ioctl()
613 memset(&wtime, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_ioctl()
619 struct rtc_time hp_sdc_rtc_tm; in hp_sdc_rtc_ioctl()
625 if (copy_from_user(&hp_sdc_rtc_tm, (struct rtc_time *)arg, in hp_sdc_rtc_ioctl()
626 sizeof(struct rtc_time))) in hp_sdc_rtc_ioctl()