Home
last modified time | relevance | path

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

12345678

/drivers/input/misc/
Dhp_sdc_rtc.c213 res->tv_sec = (time_t)(tenms / 100) + days * 86400; in hp_sdc_rtc_read_rt()
230 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_fhs()
247 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_mt()
264 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_dt()
281 res->tv_sec = (time_t)(tenms / 100); in hp_sdc_rtc_read_ct()
303 if (0xffff < setto->tv_sec / 86400) return -1;
304 days = setto->tv_sec / 86400;
306 days += ((setto->tv_sec % 86400) + setto->tv_usec / 1000000) / 86400;
309 if (0xffffff < setto->tv_sec) return -1;
310 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/staging/lustre/include/linux/libcfs/linux/
Dlinux-time.h65 v->tv_sec = t->tv_sec; in cfs_fs_time_usec()
85 return t->tv_sec; in cfs_fs_time_sec()
103 s->tv_sec = d / HZ; in cfs_duration_usec()
104 t = (d - (long)s->tv_sec * HZ) * ONE_MILLION; in cfs_duration_usec()
108 s->tv_sec = d / HZ; in cfs_duration_usec()
109 s->tv_usec = ((d - (long)s->tv_sec * HZ) * ONE_MILLION) / HZ; in cfs_duration_usec()
/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.c126 current_time.tv_sec, (long)current_time.tv_usec); in isl38xx_trigger_device()
129 current_time.tv_sec, (long)current_time.tv_usec, in isl38xx_trigger_device()
139 current_time.tv_sec, (long)current_time.tv_usec); in isl38xx_trigger_device()
153 current_time.tv_sec, (long)current_time.tv_usec, in isl38xx_trigger_device()
158 current_time.tv_sec, (long)current_time.tv_usec, in isl38xx_trigger_device()
173 current_time.tv_sec, (long)current_time.tv_usec, reg); in isl38xx_trigger_device()
/drivers/rtc/
Dclass.c72 rtc_tm_to_time(&tm, &old_rtc.tv_sec); in rtc_suspend()
83 if (delta_delta.tv_sec < -2 || delta_delta.tv_sec >= 2) { in rtc_suspend()
124 rtc_tm_to_time(&tm, &new_rtc.tv_sec); in rtc_resume()
127 if (new_rtc.tv_sec < old_rtc.tv_sec) { in rtc_resume()
145 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()
249 signal = tv.tv_sec - lasttv.tv_sec; in lirc_lirc_irq_handler()
Dlirc_serial.c663 tv.tv_sec, lasttv.tv_sec, in lirc_irq_handler()
669 deltv = tv.tv_sec-lasttv.tv_sec; in lirc_irq_handler()
670 if (tv.tv_sec < lasttv.tv_sec || in lirc_irq_handler()
671 (tv.tv_sec == lasttv.tv_sec && in lirc_irq_handler()
676 tv.tv_sec, lasttv.tv_sec, in lirc_irq_handler()
686 tv.tv_sec, lasttv.tv_sec, in lirc_irq_handler()
Dlirc_igorplugusb.c309 timediff = now.tv_sec - ir->last_time.tv_sec; in igorplugusb_remote_poll()
316 ir->last_time.tv_sec = now.tv_sec; in igorplugusb_remote_poll()
Dlirc_sasem.c599 ms = (tv.tv_sec - context->presstime.tv_sec) * 1000 + in incoming_packet()
616 context->presstime.tv_sec = tv.tv_sec; in incoming_packet()
627 context->presstime.tv_sec = tv.tv_sec; in incoming_packet()
/drivers/staging/rts5208/
Drtsx.h161 timeval_buf[0] = (u8)(tv.tv_sec >> 24); in get_current_time()
162 timeval_buf[1] = (u8)(tv.tv_sec >> 16); in get_current_time()
163 timeval_buf[2] = (u8)(tv.tv_sec >> 8); in get_current_time()
164 timeval_buf[3] = (u8)(tv.tv_sec); in get_current_time()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_time.h75 (large->tv_sec - small->tv_sec) * ONE_MILLION + in cfs_timeval_sub()
79 result->tv_sec = r / ONE_MILLION; in cfs_timeval_sub()
/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()
265 if (tv.tv_sec - ir->base_time.tv_sec > 1) { in bttv_rc5_irq()
268 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) + in bttv_rc5_irq()
/drivers/firmware/efi/
Defi-pstore.c66 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
76 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
88 cb_data->timespec->tv_sec = time; in efi_pstore_read_func()
296 (unsigned int)ed->id, ed->time.tv_sec); in efi_pstore_erase_func()
333 sprintf(name, "dump-type%u-%u-%d-%lu", type, part, count, 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.c661 y2 = (ts.tv_sec + 1) * NSEC_PER_SEC + ts.tv_nsec; in uvc_video_clock_update()
679 ts.tv_sec = first->host_ts.tv_sec - 1 + div; in uvc_video_clock_update()
682 ts.tv_sec++; in uvc_video_clock_update()
690 y, ts.tv_sec, ts.tv_nsec / NSEC_PER_USEC, in uvc_video_clock_update()
691 v4l2_buf->timestamp.tv_sec, in uvc_video_clock_update()
697 v4l2_buf->timestamp.tv_sec = ts.tv_sec; in uvc_video_clock_update()
863 ts.tv_sec = stream->stats.stream.stop_ts.tv_sec in uvc_video_stats_dump()
864 - stream->stats.stream.start_ts.tv_sec; in uvc_video_stats_dump()
868 ts.tv_sec--; in uvc_video_stats_dump()
875 duration = ts.tv_sec * 1000 + ts.tv_nsec / 1000000; in uvc_video_stats_dump()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fence.c80 uint32_t *tv_sec; member
901 if (likely(eaction->tv_sec != NULL)) { in vmw_event_fence_action_seq_passed()
905 *eaction->tv_sec = tv.tv_sec; in vmw_event_fence_action_seq_passed()
1008 uint32_t *tv_sec, in vmw_event_fence_action_queue() argument
1029 eaction->tv_sec = tv_sec; in vmw_event_fence_action_queue()
1091 &event->event.tv_sec, in vmw_event_fence_action_create()
/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()

12345678