/drivers/input/misc/ |
D | hp_sdc_rtc.c | 213 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/ |
D | clock.c | 163 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/ |
D | linux-time.h | 65 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/ |
D | pps_gen_parport.c | 97 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/ |
D | divamnt.c | 95 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/ |
D | isl_38xx.c | 126 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/ |
D | class.c | 72 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()
|
D | systohc.c | 30 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()
|
D | hctosys.c | 55 rtc_tm_to_time(&tm, &tv.tv_sec); in rtc_hctosys() 64 (unsigned int) tv.tv_sec); in rtc_hctosys()
|
D | rtc-lib.c | 144 ts.tv_sec++; in rtc_ktime_to_tm() 145 rtc_time_to_tm(ts.tv_sec, &ret); in rtc_ktime_to_tm()
|
/drivers/input/ |
D | input-compat.c | 27 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/ |
D | lirc_parallel.c | 152 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()
|
D | lirc_serial.c | 663 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()
|
D | lirc_igorplugusb.c | 309 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()
|
D | lirc_sasem.c | 599 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/ |
D | rtsx.h | 161 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/ |
D | libcfs_time.h | 75 (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/ |
D | mmtimer.c | 488 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/ |
D | bttv-input.c | 205 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/ |
D | efi-pstore.c | 66 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/ |
D | pcan_usb_core.c | 88 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/ |
D | uvc_video.c | 661 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/ |
D | vmwgfx_fence.c | 80 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/ |
D | dasd_eer.c | 280 __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/ |
D | stmmac_ptp.c | 122 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()
|