Home
last modified time | relevance | path

Searched refs:time_buf (Results 1 – 1 of 1) sorted by relevance

/linux-4.4.14/drivers/rtc/
Drtc-hid-sensor-time.c43 struct rtc_time time_buf; member
69 time_state->last_time = time_state->time_buf; in hid_time_proc_event()
94 struct rtc_time *time_buf = &time_state->time_buf; in hid_time_capture_sample() local
104 time_buf->tm_year = *(u8 *)raw_data; in hid_time_capture_sample()
105 if (time_buf->tm_year < 70) in hid_time_capture_sample()
107 time_buf->tm_year += 100; in hid_time_capture_sample()
109 time_buf->tm_year = in hid_time_capture_sample()
114 time_buf->tm_mon = (int)hid_time_value(raw_len, raw_data)-1; in hid_time_capture_sample()
117 time_buf->tm_mday = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()
120 time_buf->tm_hour = (int)hid_time_value(raw_len, raw_data); in hid_time_capture_sample()
[all …]