Searched refs:time_buf (Results 1 – 2 of 2) sorted by relevance
30 struct rtc_time time_buf; member56 time_state->last_time = time_state->time_buf; in hid_time_proc_event()81 struct rtc_time *time_buf = &time_state->time_buf; in hid_time_capture_sample() local91 time_buf->tm_year = *(u8 *)raw_data; in hid_time_capture_sample()92 if (time_buf->tm_year < 70) in hid_time_capture_sample()94 time_buf->tm_year += 100; in hid_time_capture_sample()96 time_buf->tm_year = in hid_time_capture_sample()101 time_buf->tm_mon = (int)hid_time_value(raw_len, raw_data)-1; in hid_time_capture_sample()104 time_buf->tm_mday = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()107 time_buf->tm_hour = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()[all …]
2213 char time_buf[32]; in print_sample_time() local2219 time_buf, sizeof(time_buf)); in print_sample_time()2220 fprintf(fp, "# time of first sample : %s\n", time_buf); in print_sample_time()2223 time_buf, sizeof(time_buf)); in print_sample_time()2224 fprintf(fp, "# time of last sample : %s\n", time_buf); in print_sample_time()