Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 152) sorted by relevance

1234567

/drivers/input/misc/
Dhp_sdc_rtc.c210 res->tv_sec = (time_t)(tenms / 100) + days * 86400; in hp_sdc_rtc_read_rt()
227 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_fhs()
244 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_mt()
261 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_dt()
278 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_ct()
300 if (0xffff < setto->tv_sec / 86400) return -1;
301 days = setto->tv_sec / 86400;
303 days += ((setto->tv_sec % 86400) + setto->tv_usec / 1000000) / 86400;
306 if (0xffffff < setto->tv_sec) return -1;
307 tenms = setto->tv_sec * 100;
[all …]
/drivers/isdn/mISDN/
Dclock.c163 iclock_tv.tv_sec = tv->tv_sec; in mISDN_clock_update()
170 tv_now.tv_sec = tv->tv_sec; in mISDN_clock_update()
174 elapsed_sec = tv_now.tv_sec - iclock_tv.tv_sec; in mISDN_clock_update()
183 iclock_tv.tv_sec = tv_now.tv_sec; in mISDN_clock_update()
206 elapsed_sec = tv_now.tv_sec - iclock_tv.tv_sec; in mISDN_clock_get()
/drivers/pps/generators/
Dpps_gen_parport.c97 if (expire_time.tv_sec != ts1.tv_sec || ts1.tv_nsec > lim) { in hrtimer_event()
100 ts1.tv_sec, ts1.tv_nsec); in hrtimer_event()
107 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
117 } while (expire_time.tv_sec == ts2.tv_sec && ts2.tv_nsec < lim); in hrtimer_event()
147 ktime_set(expire_time.tv_sec + 1, in hrtimer_event()
187 return ktime_set(ts.tv_sec + in next_intr_time()
/drivers/isdn/hardware/eicon/
Ddivamnt.c95 if (tv.tv_sec > start_time.tv_sec) { in diva_os_get_time()
97 tv.tv_sec--; in diva_os_get_time()
100 *sec = (dword) (tv.tv_sec - start_time.tv_sec); in diva_os_get_time()
102 } else if (tv.tv_sec == start_time.tv_sec) { in diva_os_get_time()
110 *sec = (dword) tv.tv_sec; in diva_os_get_time()
/drivers/net/wireless/prism54/
Disl_38xx.c127 current_time.tv_sec, (long)current_time.tv_usec); in isl38xx_trigger_device()
130 current_time.tv_sec, (long)current_time.tv_usec, in isl38xx_trigger_device()
140 current_time.tv_sec, (long)current_time.tv_usec); in isl38xx_trigger_device()
154 current_time.tv_sec, (long)current_time.tv_usec, in isl38xx_trigger_device()
159 current_time.tv_sec, (long)current_time.tv_usec, in isl38xx_trigger_device()
174 current_time.tv_sec, (long)current_time.tv_usec, reg); in isl38xx_trigger_device()
/drivers/rtc/
Dclass.c65 rtc_tm_to_time(&tm, &old_rtc.tv_sec); in rtc_suspend()
76 if (delta_delta.tv_sec < -2 || delta_delta.tv_sec >= 2) { in rtc_suspend()
111 rtc_tm_to_time(&tm, &new_rtc.tv_sec); in rtc_resume()
114 if (new_rtc.tv_sec < old_rtc.tv_sec) { in rtc_resume()
132 if (sleep_time.tv_sec >= 0) in rtc_resume()
Dsystohc.c30 rtc_time_to_tm(now.tv_sec, &tm); in rtc_set_ntp_time()
32 rtc_time_to_tm(now.tv_sec + 1, &tm); in rtc_set_ntp_time()
Dhctosys.c55 rtc_tm_to_time(&tm, &tv.tv_sec); in rtc_hctosys()
64 (unsigned int) tv.tv_sec); in rtc_hctosys()
Drtc-lib.c144 ts.tv_sec++; in rtc_ktime_to_tm()
145 rtc_time_to_tm(ts.tv_sec, &ret); in rtc_ktime_to_tm()
/drivers/input/
Dinput-compat.c27 event->time.tv_sec = compat_event.time.tv_sec; in input_event_from_user()
47 compat_event.time.tv_sec = event->time.tv_sec; in input_event_to_user()
/drivers/staging/media/lirc/
Dlirc_parallel.c152 tv.tv_sec++; /* wait max. 1 sec. */ in init_lirc_timer()
160 } while (count < 1000 && (now.tv_sec < tv.tv_sec in init_lirc_timer()
161 || (now.tv_sec == tv.tv_sec in init_lirc_timer()
164 timeelapsed = ((now.tv_sec + 1 - tv.tv_sec)*1000000 in init_lirc_timer()
251 signal = tv.tv_sec - lasttv.tv_sec; in irq_handler()
Dlirc_serial.c709 tv.tv_sec, lasttv.tv_sec, in irq_handler()
714 deltv = tv.tv_sec-lasttv.tv_sec; in irq_handler()
715 if (tv.tv_sec < lasttv.tv_sec || in irq_handler()
716 (tv.tv_sec == lasttv.tv_sec && in irq_handler()
721 tv.tv_sec, lasttv.tv_sec, in irq_handler()
730 tv.tv_sec, lasttv.tv_sec, in irq_handler()
Dlirc_igorplugusb.c332 timediff = now.tv_sec - ir->last_time.tv_sec; in igorplugusb_remote_poll()
339 ir->last_time.tv_sec = now.tv_sec; in igorplugusb_remote_poll()
Dlirc_sasem.c602 ms = (tv.tv_sec - context->presstime.tv_sec) * 1000 + in incoming_packet()
619 context->presstime.tv_sec = tv.tv_sec; in incoming_packet()
630 context->presstime.tv_sec = tv.tv_sec; in incoming_packet()
/drivers/staging/rts5139/
Drts51x.h127 timeval_buf[0] = (u8) (tv.tv_sec >> 24); in get_current_time()
128 timeval_buf[1] = (u8) (tv.tv_sec >> 16); in get_current_time()
129 timeval_buf[2] = (u8) (tv.tv_sec >> 8); in get_current_time()
130 timeval_buf[3] = (u8) (tv.tv_sec); in get_current_time()
/drivers/char/
Dmmtimer.c488 tp->tv_sec += sgi_clock_offset.tv_sec; in sgi_clock_get()
500 sgi_clock_offset.tv_sec = tp->tv_sec - div_u64_rem(nsec, NSEC_PER_SEC, &rem); in sgi_clock_set()
503 sgi_clock_offset.tv_nsec = tp->tv_sec - rem; in sgi_clock_set()
505 sgi_clock_offset.tv_nsec = tp->tv_sec + NSEC_PER_SEC - rem; in sgi_clock_set()
506 sgi_clock_offset.tv_sec--; in sgi_clock_set()
665 cur_setting->it_interval.tv_sec = 0; in sgi_timer_get()
667 cur_setting->it_value.tv_sec =0; in sgi_timer_get()
770 tp->tv_sec = 0; in sgi_clock_getres()
/drivers/media/pci/bt8xx/
Dbttv-input.c205 if (tv.tv_sec - ir->base_time.tv_sec > 1) { in bttv_rc5_timer_end()
208 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) + in bttv_rc5_timer_end()
262 if (tv.tv_sec - ir->base_time.tv_sec > 1) { in bttv_rc5_irq()
265 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) + in bttv_rc5_irq()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_marker.c110 t1.tv_sec += t2.tv_sec; in vmw_timespec_add()
113 t1.tv_sec += 1; in vmw_timespec_add()
Dvmwgfx_fence.c79 uint32_t *tv_sec; member
851 if (likely(eaction->tv_sec != NULL)) { in vmw_event_fence_action_seq_passed()
855 *eaction->tv_sec = tv.tv_sec; in vmw_event_fence_action_seq_passed()
958 uint32_t *tv_sec, in vmw_event_fence_action_queue() argument
979 eaction->tv_sec = tv_sec; in vmw_event_fence_action_queue()
1040 &event->event.tv_sec, in vmw_event_fence_action_create()
/drivers/firmware/efi/
Defi-pstore.c61 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
72 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
163 (unsigned int)ed->id, ed->time.tv_sec); in efi_pstore_erase_func()
190 time.tv_sec); in efi_pstore_erase()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c88 tv->tv_sec += delta_s; in peak_usb_add_us()
99 if (time_ref->tv_host.tv_sec > 0) { in peak_usb_update_ts_now()
114 if (time_ref->tv_host_0.tv_sec == 0) { in peak_usb_set_ts_now()
117 time_ref->tv_host.tv_sec = 0; in peak_usb_set_ts_now()
124 if (time_ref->tv_host.tv_sec != 0) { in peak_usb_set_ts_now()
125 u32 delta_s = time_ref->tv_host.tv_sec in peak_usb_set_ts_now()
126 - time_ref->tv_host_0.tv_sec; in peak_usb_set_ts_now()
148 if (time_ref->tv_host.tv_sec > 0) { in peak_usb_get_ts_tv()
/drivers/media/usb/uvc/
Duvc_video.c653 y2 = (ts.tv_sec + 1) * NSEC_PER_SEC + ts.tv_nsec; in uvc_video_clock_update()
671 ts.tv_sec = first->host_ts.tv_sec - 1 + div; in uvc_video_clock_update()
674 ts.tv_sec++; in uvc_video_clock_update()
682 y, ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC, in uvc_video_clock_update()
683 v4l2_buf->timestamp.tv_sec, v4l2_buf->timestamp.tv_usec, in uvc_video_clock_update()
688 v4l2_buf->timestamp.tv_sec = ts.tv_sec; in uvc_video_clock_update()
854 ts.tv_sec = stream->stats.stream.stop_ts.tv_sec in uvc_video_stats_dump()
855 - stream->stats.stream.start_ts.tv_sec; in uvc_video_stats_dump()
859 ts.tv_sec--; in uvc_video_stats_dump()
866 duration = ts.tv_sec * 1000 + ts.tv_nsec / 1000000; in uvc_video_stats_dump()
[all …]
/drivers/ptp/
Dptp_chardev.c114 pct->sec = ts.tv_sec; in ptp_ioctl()
118 pct->sec = ts.tv_sec; in ptp_ioctl()
123 pct->sec = ts.tv_sec; in ptp_ioctl()
/drivers/s390/block/
Ddasd_eer.c280 __u64 tv_sec; member
313 header.tv_sec = tv.tv_sec; in dasd_eer_write_standard_trigger()
356 header.tv_sec = tv.tv_sec; in dasd_eer_write_snss_trigger()
/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ptp.c122 ts->tv_sec = div_u64_rem(ns, 1000000000ULL, &reminder); in stmmac_get_time()
146 priv->hw->ptp->init_systime(priv->ioaddr, ts->tv_sec, ts->tv_nsec); in stmmac_set_time()

1234567