Lines Matching refs:tm
134 struct rtc_time tm, tm_last; in hp_sdc_rtc_read_bbrtc() local
140 if (hp_sdc_rtc_do_read_bbrtc(&tm)) return -1; 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()
145 if (hp_sdc_rtc_do_read_bbrtc(&tm)) return -1; in hp_sdc_rtc_read_bbrtc()
148 memcpy(rtctm, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc()
435 struct rtc_time tm; in hp_sdc_rtc_proc_show() local
438 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_show()
440 if (hp_sdc_rtc_read_bbrtc(&tm)) { in hp_sdc_rtc_proc_show()
447 tm.tm_hour, tm.tm_min, tm.tm_sec, in hp_sdc_rtc_proc_show()
448 tm.tm_year + 1900, tm.tm_mon + 1, in hp_sdc_rtc_proc_show()
449 tm.tm_mday, epoch); in hp_sdc_rtc_proc_show()