Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/misc/
Dtrancevibrator.c52 struct trancevibrator *tv = usb_get_intfdata(intf); in show_speed() local
54 return sprintf(buf, "%d\n", tv->speed); in show_speed()
61 struct trancevibrator *tv = usb_get_intfdata(intf); in set_speed() local
69 old = tv->speed; in set_speed()
70 tv->speed = temp; in set_speed()
72 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in set_speed()
75 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), in set_speed()
78 tv->speed, /* speed value */ in set_speed()
81 tv->speed = old; in set_speed()
82 dev_dbg(&tv->udev->dev, "retval = %d\n", retval); in set_speed()
/linux-4.1.27/fs/xfs/
Dxfs_trans_inode.c71 struct timespec tv; in xfs_trans_ichgtime() local
76 tv = current_fs_time(inode->i_sb); in xfs_trans_ichgtime()
79 !timespec_equal(&inode->i_mtime, &tv)) { in xfs_trans_ichgtime()
80 inode->i_mtime = tv; in xfs_trans_ichgtime()
81 ip->i_d.di_mtime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
82 ip->i_d.di_mtime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime()
85 !timespec_equal(&inode->i_ctime, &tv)) { in xfs_trans_ichgtime()
86 inode->i_ctime = tv; in xfs_trans_ichgtime()
87 ip->i_d.di_ctime.t_sec = tv.tv_sec; in xfs_trans_ichgtime()
88 ip->i_d.di_ctime.t_nsec = tv.tv_nsec; in xfs_trans_ichgtime()
Dxfs_inode.c708 struct timespec tv; in xfs_ialloc() local
774 tv = current_fs_time(mp->m_super); in xfs_ialloc()
775 ip->i_d.di_mtime.t_sec = (__int32_t)tv.tv_sec; in xfs_ialloc()
776 ip->i_d.di_mtime.t_nsec = (__int32_t)tv.tv_nsec; in xfs_ialloc()
/linux-4.1.27/drivers/isdn/hardware/eicon/
Ddivamnt.c91 struct timeval tv; in diva_os_get_time() local
93 do_gettimeofday(&tv); in diva_os_get_time()
95 if (tv.tv_sec > start_time.tv_sec) { in diva_os_get_time()
96 if (start_time.tv_usec > tv.tv_usec) { in diva_os_get_time()
97 tv.tv_sec--; in diva_os_get_time()
98 tv.tv_usec += 1000000; in diva_os_get_time()
100 *sec = (dword) (tv.tv_sec - start_time.tv_sec); in diva_os_get_time()
101 *usec = (dword) (tv.tv_usec - start_time.tv_usec); in diva_os_get_time()
102 } else if (tv.tv_sec == start_time.tv_sec) { in diva_os_get_time()
104 if (start_time.tv_usec < tv.tv_usec) { in diva_os_get_time()
[all …]
/linux-4.1.27/kernel/time/
Dtime.c84 struct timespec tv; in SYSCALL_DEFINE1() local
87 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
90 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
92 err = security_settime(&tv, NULL); in SYSCALL_DEFINE1()
96 do_settimeofday(&tv); in SYSCALL_DEFINE1()
102 SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv, in SYSCALL_DEFINE2() argument
105 if (likely(tv != NULL)) { in SYSCALL_DEFINE2()
108 if (copy_to_user(tv, &ktv, sizeof(ktv))) in SYSCALL_DEFINE2()
163 int do_sys_settimeofday(const struct timespec *tv, const struct timezone *tz) in do_sys_settimeofday() argument
168 if (tv && !timespec_valid(tv)) in do_sys_settimeofday()
[all …]
Dtimekeeping.c892 void do_gettimeofday(struct timeval *tv) in do_gettimeofday() argument
897 tv->tv_sec = now.tv_sec; in do_gettimeofday()
898 tv->tv_usec = now.tv_nsec/1000; in do_gettimeofday()
Dtimer.c1107 static int cascade(struct tvec_base *base, struct tvec *tv, int index) in cascade() argument
1113 list_replace_init(tv->vec + index, &tv_list); in cascade()
/linux-4.1.27/arch/um/os-Linux/
Dtime.c52 static inline long long timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument
54 return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) + in timeval_to_ns()
55 tv->tv_usec * UM_NSEC_PER_USEC; in timeval_to_ns()
76 struct timeval tv; in os_nsecs() local
78 gettimeofday(&tv, NULL); in os_nsecs()
79 return timeval_to_ns(&tv); in os_nsecs()
139 struct timeval tv; in after_sleep_interval() local
156 tv = ((struct timeval) { .tv_sec = start_usecs / UM_USEC_PER_SEC, in after_sleep_interval()
158 interval = ((struct itimerval) { { 0, usec }, tv }); in after_sleep_interval()
/linux-4.1.27/drivers/staging/rts5208/
Drtsx.h151 struct timeval tv; in get_current_time() local
156 do_gettimeofday(&tv); in get_current_time()
158 timeval_buf[0] = (u8)(tv.tv_sec >> 24); in get_current_time()
159 timeval_buf[1] = (u8)(tv.tv_sec >> 16); in get_current_time()
160 timeval_buf[2] = (u8)(tv.tv_sec >> 8); in get_current_time()
161 timeval_buf[3] = (u8)(tv.tv_sec); in get_current_time()
162 timeval_buf[4] = (u8)(tv.tv_usec >> 24); in get_current_time()
163 timeval_buf[5] = (u8)(tv.tv_usec >> 16); in get_current_time()
164 timeval_buf[6] = (u8)(tv.tv_usec >> 8); in get_current_time()
165 timeval_buf[7] = (u8)(tv.tv_usec); in get_current_time()
/linux-4.1.27/arch/sh/kernel/
Dtime.c27 static void null_rtc_get_time(struct timespec *tv) in null_rtc_get_time() argument
29 tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); in null_rtc_get_time()
30 tv->tv_nsec = 0; in null_rtc_get_time()
56 struct timespec tv; in get_rtc_time() local
58 rtc_sh_get_time(&tv); in get_rtc_time()
59 rtc_time_to_tm(tv.tv_sec, tm); in get_rtc_time()
/linux-4.1.27/Documentation/vDSO/
Dvdso_test.c33 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
41 struct timeval tv; in main() local
42 long ret = gtod(&tv, 0); in main()
46 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
Dvdso_standalone_test_x86.c90 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in c_main()
96 struct timeval tv; in c_main() local
97 long ret = gtod(&tv, 0); in c_main()
101 to_base10(buf + 31, tv.tv_sec); in c_main()
102 to_base10(buf + 38, tv.tv_usec); in c_main()
/linux-4.1.27/drivers/media/pci/saa7134/
Dsaa7134-cards.c93 .tv = 1,
98 .tv = 1,
120 .tv = 1,
126 .tv = 1,
169 .tv = 1,
210 .tv = 1,
241 .tv = 1,
291 .tv = 1,
297 .tv = 1,
347 .tv = 1,
[all …]
Dsaa7134.h365 unsigned int tv:1; member
Dsaa7134-video.c479 if (card_in(dev, dev->ctl_input).tv) in saa7134_set_tvnorm_hw()
1387 if (card_in(dev, n).tv) in saa7134_enum_input()
1657 if (card_in(dev, n).tv) in saa7134_g_tuner()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_legacy_tv.c393 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
394 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
395 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
398 tmp = ((uint32_t)tv_dac->tv.h_code_timing[i] << 14) | ((uint32_t)tv_dac->tv.h_code_timing[i+1]); in radeon_restore_tv_timing_tables()
400 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables()
404 tmp = ((uint32_t)tv_dac->tv.v_code_timing[i+1] << 14) | ((uint32_t)tv_dac->tv.v_code_timing[i]); in radeon_restore_tv_timing_tables()
406 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables()
416 WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); in radeon_legacy_write_tv_restarts()
417 WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); in radeon_legacy_write_tv_restarts()
418 WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); in radeon_legacy_write_tv_restarts()
[all …]
Dradeon_cs.c167 p->relocs[i].tv.bo = &p->relocs[i].robj->tbo; in radeon_cs_parser_relocs()
168 p->relocs[i].tv.shared = !r->write_domain; in radeon_cs_parser_relocs()
170 radeon_cs_buckets_add(&buckets, &p->relocs[i].tv.head, in radeon_cs_parser_relocs()
238 list_for_each_entry(reloc, &p->validated, tv.head) { in radeon_cs_sync_rings()
243 reloc->tv.shared); in radeon_cs_sync_rings()
381 struct radeon_bo_list *la = list_entry(a, struct radeon_bo_list, tv.head); in cmp_size_smaller_first()
382 struct radeon_bo_list *lb = list_entry(b, struct radeon_bo_list, tv.head); in cmp_size_smaller_first()
Dradeon_vm.c144 list[0].tv.bo = &vm->page_directory->tbo; in radeon_vm_get_bos()
145 list[0].tv.shared = true; in radeon_vm_get_bos()
147 list_add(&list[0].tv.head, head); in radeon_vm_get_bos()
156 list[idx].tv.bo = &list[idx].robj->tbo; in radeon_vm_get_bos()
157 list[idx].tv.shared = true; in radeon_vm_get_bos()
159 list_add(&list[idx++].tv.head, head); in radeon_vm_get_bos()
Dradeon_gem.c537 struct ttm_validate_buffer tv, *entry; in radeon_gem_va_update_vm() local
546 tv.bo = &bo_va->bo->tbo; in radeon_gem_va_update_vm()
547 tv.shared = true; in radeon_gem_va_update_vm()
548 list_add(&tv.head, &list); in radeon_gem_va_update_vm()
Dradeon_drv.c227 MODULE_PARM_DESC(tv, "TV enable (0 = disable)");
228 module_param_named(tv, radeon_tv, int, 0444);
Dradeon_object.c531 list_for_each_entry(lobj, head, tv.head) { in radeon_bo_list_validate()
578 list_for_each_entry(lobj, &duplicates, tv.head) { in radeon_bo_list_validate()
Dradeon_mode.h409 struct radeon_tv_regs tv; member
Dradeon.h459 struct ttm_validate_buffer tv; member
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_release.c169 struct qxl_bo_list, tv.head); in qxl_release_free_list()
170 bo = to_qxl_bo(entry->tv.bo); in qxl_release_free_list()
172 list_del(&entry->tv.head); in qxl_release_free_list()
218 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_list_add()
219 if (entry->tv.bo == &bo->tbo) in qxl_release_list_add()
228 entry->tv.bo = &bo->tbo; in qxl_release_list_add()
229 entry->tv.shared = false; in qxl_release_list_add()
230 list_add_tail(&entry->tv.head, &release->bos); in qxl_release_list_add()
272 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_reserve_list()
273 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); in qxl_release_reserve_list()
[all …]
Dqxl_cmd.c182 struct qxl_bo_list *entry = list_first_entry(&release->bos, struct qxl_bo_list, tv.head); in qxl_push_command_ring_release()
185 cmd.data = qxl_bo_physical_address(qdev, to_qxl_bo(entry->tv.bo), release->release_offset); in qxl_push_command_ring_release()
195 struct qxl_bo_list *entry = list_first_entry(&release->bos, struct qxl_bo_list, tv.head); in qxl_push_cursor_ring_release()
198 cmd.data = qxl_bo_physical_address(qdev, to_qxl_bo(entry->tv.bo), release->release_offset); in qxl_push_cursor_ring_release()
Dqxl_drv.h130 struct ttm_validate_buffer tv; member
/linux-4.1.27/arch/cris/arch-v10/kernel/
Dfasttimer.c115 inline void do_gettimeofday_fast(struct fasttime_t *tv) in do_gettimeofday_fast() argument
117 tv->tv_jiff = jiffies; in do_gettimeofday_fast()
118 tv->tv_usec = GET_JIFFIES_USEC(); in do_gettimeofday_fast()
366 struct fasttime_t tv; in timer1_handler() local
371 do_gettimeofday_fast(&tv); in timer1_handler()
373 tv.tv_jiff, tv.tv_usec)); in timer1_handler()
375 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) in timer1_handler()
426 struct fasttime_t tv; in timer1_handler() local
428 do_gettimeofday_fast(&tv); in timer1_handler()
431 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) in timer1_handler()
[all …]
/linux-4.1.27/arch/x86/vdso/
Dvclock_gettime.c26 extern int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz);
54 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument
59 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in vdso_fallback_gtod()
150 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument
160 : "0" (__NR_gettimeofday), "g" (tv), "c" (tz) in vdso_fallback_gtod()
320 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
322 if (likely(tv != NULL)) { in __vdso_gettimeofday()
323 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) in __vdso_gettimeofday()
324 return vdso_fallback_gtod(tv, tz); in __vdso_gettimeofday()
325 tv->tv_usec /= 1000; in __vdso_gettimeofday()
/linux-4.1.27/include/linux/
Dtime.h113 static inline bool timeval_valid(const struct timeval *tv) in timeval_valid() argument
116 if (tv->tv_sec < 0) in timeval_valid()
120 if (tv->tv_usec < 0 || tv->tv_usec >= USEC_PER_SEC) in timeval_valid()
203 static inline s64 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument
205 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
206 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
Dtimekeeping.h12 extern void do_gettimeofday(struct timeval *tv);
14 extern int do_sys_settimeofday(const struct timespec *tv,
34 extern int __getnstimeofday64(struct timespec64 *tv);
35 extern void getnstimeofday64(struct timespec64 *tv);
Dktime.h93 static inline ktime_t timeval_to_ktime(struct timeval tv) in timeval_to_ktime() argument
95 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in timeval_to_ktime()
Dpoll.h99 extern long select_estimate_accuracy(struct timespec *tv);
Dcompat.h420 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv,
422 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
Dsyscalls.h212 asmlinkage long sys_gettimeofday(struct timeval __user *tv,
214 asmlinkage long sys_settimeofday(struct timeval __user *tv,
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dfasttimer.c105 inline void do_gettimeofday_fast(struct fasttime_t *tv) in do_gettimeofday_fast() argument
107 tv->tv_jiff = jiffies; in do_gettimeofday_fast()
108 tv->tv_usec = GET_JIFFIES_USEC(); in do_gettimeofday_fast()
358 struct fasttime_t tv; in timer_trig_handler() local
361 do_gettimeofday_fast(&tv); in timer_trig_handler()
363 "t: %is %06ius\n", tv.tv_jiff, tv.tv_usec)); in timer_trig_handler()
365 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) { in timer_trig_handler()
408 struct fasttime_t tv; in timer_trig_handler() local
410 do_gettimeofday_fast(&tv); in timer_trig_handler()
413 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) in timer_trig_handler()
[all …]
/linux-4.1.27/drivers/input/misc/
Dhp_sdc_rtc.c436 struct timeval tv; in hp_sdc_rtc_proc_show() local
452 if (hp_sdc_rtc_read_rt(&tv)) { in hp_sdc_rtc_proc_show()
456 tv.tv_sec, (int)tv.tv_usec/1000); in hp_sdc_rtc_proc_show()
459 if (hp_sdc_rtc_read_fhs(&tv)) { in hp_sdc_rtc_proc_show()
463 tv.tv_sec, (int)tv.tv_usec/1000); in hp_sdc_rtc_proc_show()
466 if (hp_sdc_rtc_read_mt(&tv)) { in hp_sdc_rtc_proc_show()
470 tv.tv_sec, (int)tv.tv_usec/1000); in hp_sdc_rtc_proc_show()
473 if (hp_sdc_rtc_read_dt(&tv)) { in hp_sdc_rtc_proc_show()
477 tv.tv_sec, (int)tv.tv_usec/1000); in hp_sdc_rtc_proc_show()
480 if (hp_sdc_rtc_read_ct(&tv)) { in hp_sdc_rtc_proc_show()
[all …]
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
Dping_test.c95 struct timeval tv; in ping_client_prep_rpc() local
113 cfs_fs_timeval(&tv); in ping_client_prep_rpc()
114 req->pnr_time_sec = tv.tv_sec; in ping_client_prep_rpc()
115 req->pnr_time_usec = tv.tv_usec; in ping_client_prep_rpc()
127 struct timeval tv; in ping_client_done_rpc() local
164 cfs_fs_timeval(&tv); in ping_client_done_rpc()
166 (unsigned)((tv.tv_sec - (unsigned)reqst->pnr_time_sec) * 1000000 in ping_client_done_rpc()
167 + (tv.tv_usec - reqst->pnr_time_usec))); in ping_client_done_rpc()
Dbrw_test.c137 struct timeval tv; in brw_inject_one_error() local
142 do_gettimeofday(&tv); in brw_inject_one_error()
144 if ((tv.tv_usec & 1) == 0) in brw_inject_one_error()
Dconrpc.c481 struct timeval tv; in lstcon_rpc_trans_interpreter() local
508 cfs_duration_usec(dur, &tv); in lstcon_rpc_trans_interpreter()
512 copy_to_user(&ent->rpe_stamp, &tv, sizeof(tv)) || in lstcon_rpc_trans_interpreter()
Dframework.c374 struct timeval tv; in sfw_get_stats() local
394 sn->sn_started), &tv); in sfw_get_stats()
396 cnt->running_ms = (__u32)(tv.tv_sec * 1000 + tv.tv_usec / 1000); in sfw_get_stats()
/linux-4.1.27/drivers/isdn/mISDN/
Dclock.c142 mISDN_clock_update(struct mISDNclock *iclock, int samples, struct timeval *tv) in mISDN_clock_update() argument
162 if (tv) { /* tv must be set, if function call is delayed */ in mISDN_clock_update()
163 iclock_tv.tv_sec = tv->tv_sec; in mISDN_clock_update()
164 iclock_tv.tv_usec = tv->tv_usec; in mISDN_clock_update()
169 if (tv) { /* tv must be set, if function call is delayed */ in mISDN_clock_update()
170 tv_now.tv_sec = tv->tv_sec; in mISDN_clock_update()
171 tv_now.tv_usec = tv->tv_usec; in mISDN_clock_update()
Dsocket.c106 struct timeval tv; in mISDN_sock_cmsg() local
109 skb_get_timestamp(skb, &tv); in mISDN_sock_cmsg()
110 put_cmsg(msg, SOL_MISDN, MISDN_TIME_STAMP, sizeof(tv), &tv); in mISDN_sock_cmsg()
/linux-4.1.27/tools/testing/selftests/timers/
Dleapcrash.c95 struct timeval tv; in main() local
99 tv.tv_sec = next_leap - 2; in main()
100 tv.tv_usec = 0; in main()
101 if (settimeofday(&tv, NULL)) { in main()
Dleap-a-day.c214 struct timeval tv; in main() local
216 tv.tv_sec = next_leap - 10; in main()
217 tv.tv_usec = 0; in main()
218 settimeofday(&tv, NULL); in main()
219 printf("Setting time to %s", ctime(&tv.tv_sec)); in main()
Drtctest.c91 struct timeval tv = {5, 0}; /* 5 second timeout on select */ in main() local
97 retval = select(fd+1, &readfds, NULL, NULL, &tv); in main()
/linux-4.1.27/arch/arm/vdso/
Dvgettimeofday.c233 register struct timeval *tv asm("r0") = _tv; in gettimeofday_fallback()
240 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback()
246 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
256 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday()
258 if (tv) { in __vdso_gettimeofday()
259 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday()
260 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
/linux-4.1.27/kernel/
Dcompat.c91 COMPAT_SYSCALL_DEFINE2(gettimeofday, struct compat_timeval __user *, tv, in COMPAT_SYSCALL_DEFINE2() argument
94 if (tv) { in COMPAT_SYSCALL_DEFINE2()
97 if (compat_put_timeval(&ktv, tv)) in COMPAT_SYSCALL_DEFINE2()
108 COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv, in COMPAT_SYSCALL_DEFINE2() argument
115 if (tv) { in COMPAT_SYSCALL_DEFINE2()
116 if (compat_get_timeval(&user_tv, tv)) in COMPAT_SYSCALL_DEFINE2()
126 return do_sys_settimeofday(tv ? &new_ts : NULL, tz ? &new_tz : NULL); in COMPAT_SYSCALL_DEFINE2()
129 static int __compat_get_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) in __compat_get_timeval() argument
132 __get_user(tv->tv_sec, &ctv->tv_sec) || in __compat_get_timeval()
133 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_get_timeval()
[all …]
/linux-4.1.27/fs/
Dcompat_binfmt_elf.c61 struct timeval tv; in cputime_to_compat_timeval() local
62 cputime_to_timeval(cputime, &tv); in cputime_to_compat_timeval()
63 value->tv_sec = tv.tv_sec; in cputime_to_compat_timeval()
64 value->tv_usec = tv.tv_usec; in cputime_to_compat_timeval()
Dutimes.c29 struct timespec tv[2]; in SYSCALL_DEFINE2() local
32 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
33 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
35 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
36 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
38 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
Dcompat.c78 struct timespec tv[2]; in COMPAT_SYSCALL_DEFINE2() local
81 if (get_user(tv[0].tv_sec, &t->actime) || in COMPAT_SYSCALL_DEFINE2()
82 get_user(tv[1].tv_sec, &t->modtime)) in COMPAT_SYSCALL_DEFINE2()
84 tv[0].tv_nsec = 0; in COMPAT_SYSCALL_DEFINE2()
85 tv[1].tv_nsec = 0; in COMPAT_SYSCALL_DEFINE2()
87 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in COMPAT_SYSCALL_DEFINE2()
92 struct timespec tv[2]; in COMPAT_SYSCALL_DEFINE4() local
95 if (compat_get_timespec(&tv[0], &t[0]) || in COMPAT_SYSCALL_DEFINE4()
96 compat_get_timespec(&tv[1], &t[1])) in COMPAT_SYSCALL_DEFINE4()
99 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in COMPAT_SYSCALL_DEFINE4()
[all …]
Dselect.c50 static long __estimate_accuracy(struct timespec *tv) in __estimate_accuracy() argument
55 if (tv->tv_sec < 0) in __estimate_accuracy()
61 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy()
64 slack = tv->tv_nsec / divfactor; in __estimate_accuracy()
65 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy()
73 long select_estimate_accuracy(struct timespec *tv) in select_estimate_accuracy() argument
86 now = timespec_sub(*tv, now); in select_estimate_accuracy()
626 struct timeval tv; in SYSCALL_DEFINE5() local
630 if (copy_from_user(&tv, tvp, sizeof(tv))) in SYSCALL_DEFINE5()
635 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), in SYSCALL_DEFINE5()
[all …]
/linux-4.1.27/drivers/staging/media/lirc/
Dlirc_parallel.c147 struct timeval tv, now; in init_lirc_timer() local
151 do_gettimeofday(&tv); in init_lirc_timer()
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()
162 && now.tv_usec < tv.tv_usec))); in init_lirc_timer()
164 timeelapsed = (now.tv_sec + 1 - tv.tv_sec)*1000000 in init_lirc_timer()
165 + (now.tv_usec - tv.tv_usec); in init_lirc_timer()
223 struct timeval tv; in lirc_lirc_irq_handler() local
247 do_gettimeofday(&tv); in lirc_lirc_irq_handler()
[all …]
Dlirc_serial.c609 struct timeval tv; in lirc_irq_handler() local
632 do_gettimeofday(&tv); in lirc_irq_handler()
663 tv.tv_sec, lasttv.tv_sec, in lirc_irq_handler()
664 (unsigned long)tv.tv_usec, 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()
672 tv.tv_usec < lasttv.tv_usec)) { in lirc_irq_handler()
676 tv.tv_sec, lasttv.tv_sec, in lirc_irq_handler()
677 (unsigned long)tv.tv_usec, in lirc_irq_handler()
[all …]
Dlirc_sasem.c570 struct timeval tv; in incoming_packet() local
587 do_gettimeofday(&tv); in incoming_packet()
588 ms = (tv.tv_sec - context->presstime.tv_sec) * 1000 + in incoming_packet()
589 (tv.tv_usec - context->presstime.tv_usec) / 1000; in incoming_packet()
605 context->presstime.tv_sec = tv.tv_sec; in incoming_packet()
606 context->presstime.tv_usec = tv.tv_usec; in incoming_packet()
616 context->presstime.tv_sec = tv.tv_sec; in incoming_packet()
617 context->presstime.tv_usec = tv.tv_usec; in incoming_packet()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c258 struct timeval tv; in libcfs_sock_write() local
275 tv = (struct timeval) { in libcfs_sock_write()
280 (char *)&tv, sizeof(tv)); in libcfs_sock_write()
283 (long)tv.tv_sec, (int)tv.tv_usec, rc); in libcfs_sock_write()
320 struct timeval tv; in libcfs_sock_read() local
335 tv = (struct timeval) { in libcfs_sock_read()
340 (char *)&tv, sizeof(tv)); in libcfs_sock_read()
343 (long)tv.tv_sec, (int)tv.tv_usec, rc); in libcfs_sock_read()
Dlinux-tracefile.c197 struct timeval tv; in cfs_set_ptldebug_header() local
199 do_gettimeofday(&tv); in cfs_set_ptldebug_header()
205 header->ph_sec = (__u32)tv.tv_sec; in cfs_set_ptldebug_header()
206 header->ph_usec = tv.tv_usec; in cfs_set_ptldebug_header()
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbttv-input.c197 struct timeval tv; in bttv_rc5_timer_end() local
202 do_gettimeofday(&tv); in bttv_rc5_timer_end()
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()
209 tv.tv_usec - ir->base_time.tv_usec; in bttv_rc5_timer_end()
252 struct timeval tv; in bttv_rc5_irq() local
262 do_gettimeofday(&tv); in bttv_rc5_irq()
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()
269 tv.tv_usec - ir->base_time.tv_usec; in bttv_rc5_irq()
[all …]
Dbttv-cards.c3721 struct tveeprom tv; in hauppauge_eeprom() local
3723 tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); in hauppauge_eeprom()
3724 btv->tuner_type = tv.tuner_type; in hauppauge_eeprom()
3725 btv->has_radio = tv.has_radio; in hauppauge_eeprom()
3728 btv->c.nr, tv.model); in hauppauge_eeprom()
3734 if(tv.model == 64900) { in hauppauge_eeprom()
3743 if (tv.model == 61334) in hauppauge_eeprom()
/linux-4.1.27/arch/tile/kernel/vdso/
Dvgettimeofday.c130 struct syscall_return_value __vdso_gettimeofday(struct timeval *tv, in __vdso_gettimeofday() argument
146 if (unlikely(tv == NULL)) in __vdso_gettimeofday()
149 do_realtime(vdso, (struct timespec *)tv); in __vdso_gettimeofday()
150 tv->tv_usec /= 1000; in __vdso_gettimeofday()
155 int gettimeofday(struct timeval *tv, struct timezone *tz)
/linux-4.1.27/drivers/media/usb/au0828/
Dau0828-cards.c158 struct tveeprom tv; in hauppauge_eeprom() local
160 tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data); in hauppauge_eeprom()
161 dev->board.tuner_type = tv.tuner_type; in hauppauge_eeprom()
164 switch (tv.model) { in hauppauge_eeprom()
182 __func__, tv.model); in hauppauge_eeprom()
187 __func__, tv.model); in hauppauge_eeprom()
DKconfig13 This is a hybrid analog/digital tv capture driver for
/linux-4.1.27/include/linux/raid/
Dpq.h171 struct timeval tv; in raid6_jiffies() local
172 gettimeofday(&tv, NULL); in raid6_jiffies()
173 return tv.tv_sec*1000 + tv.tv_usec/1000; in raid6_jiffies()
/linux-4.1.27/include/linux/ceph/
Ddecode.h138 const struct ceph_timespec *tv) in ceph_decode_timespec() argument
140 ts->tv_sec = (__kernel_time_t)le32_to_cpu(tv->tv_sec); in ceph_decode_timespec()
141 ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); in ceph_decode_timespec()
143 static inline void ceph_encode_timespec(struct ceph_timespec *tv, in ceph_encode_timespec() argument
146 tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); in ceph_encode_timespec()
147 tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); in ceph_encode_timespec()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dsuper25.c94 struct timeval tv; in init_lustre_lite() local
153 do_gettimeofday(&tv); in init_lustre_lite()
154 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); in init_lustre_lite()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-driver.c405 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) in ivtv_read_eeprom() argument
411 tveeprom_hauppauge_analog(&itv->i2c_client, tv, eedata); in ivtv_read_eeprom()
416 struct tveeprom tv; in ivtv_process_eeprom() local
419 ivtv_read_eeprom(itv, &tv); in ivtv_process_eeprom()
423 switch (tv.model) { in ivtv_process_eeprom()
446 IVTV_ERR("Unknown model %d, defaulting to PVR-150\n", tv.model); in ivtv_process_eeprom()
451 switch (tv.model) { in ivtv_process_eeprom()
480 if (tv.model / 1000 == 23) { in ivtv_process_eeprom()
484 .tv = { 0x61, I2C_CLIENT_END }, in ivtv_process_eeprom()
496 tv.has_radio = 0; in ivtv_process_eeprom()
[all …]
Divtv-cards.h264 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member
Divtv-cards.c49 .tv = { 0x61, 0x60, I2C_CLIENT_END },
56 .tv = { 0x61, I2C_CLIENT_END },
63 .tv = { 0x4b, I2C_CLIENT_END },
Divtv-i2c.c282 itv->card_i2c->tv); in ivtv_i2c_register()
Divtv-driver.h789 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv);
Divtv-ioctl.c1523 struct tveeprom tv; in ivtv_log_status() local
1525 ivtv_read_eeprom(itv, &tv); in ivtv_log_status()
/linux-4.1.27/Documentation/devicetree/bindings/video/
Danalog-tv-connector.txt16 tv: connector {
18 label = "tv";
/linux-4.1.27/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c79 static void peak_usb_add_us(struct timeval *tv, u32 delta_us) in peak_usb_add_us() argument
86 tv->tv_usec += delta_us; in peak_usb_add_us()
87 if (tv->tv_usec >= 1000000) { in peak_usb_add_us()
88 tv->tv_usec -= 1000000; in peak_usb_add_us()
91 tv->tv_sec += delta_s; in peak_usb_add_us()
148 struct timeval *tv) in peak_usb_get_ts_tv() argument
163 *tv = time_ref->tv_host_0; in peak_usb_get_ts_tv()
164 peak_usb_add_us(tv, (u32)delta_us); in peak_usb_get_ts_tv()
166 *tv = ktime_to_timeval(ktime_get()); in peak_usb_get_ts_tv()
177 struct timeval tv; in peak_usb_netif_rx() local
[all …]
Dpcan_usb.c408 struct timeval tv; in pcan_usb_decode_error() local
525 peak_usb_get_ts_tv(&mc->pdev->time_ref, mc->ts16, &tv); in pcan_usb_decode_error()
526 hwts->hwtstamp = timeval_to_ktime(tv); in pcan_usb_decode_error()
610 struct timeval tv; in pcan_usb_decode_data() local
658 peak_usb_get_ts_tv(&mc->pdev->time_ref, mc->ts16, &tv); in pcan_usb_decode_data()
660 hwts->hwtstamp = timeval_to_ktime(tv); in pcan_usb_decode_data()
Dpcan_usb_pro.c534 struct timeval tv; in pcan_usb_pro_handle_canmsg() local
552 peak_usb_get_ts_tv(&usb_if->time_ref, le32_to_cpu(rx->ts32), &tv); in pcan_usb_pro_handle_canmsg()
554 hwts->hwtstamp = timeval_to_ktime(tv); in pcan_usb_pro_handle_canmsg()
574 struct timeval tv; in pcan_usb_pro_handle_error() local
670 peak_usb_get_ts_tv(&usb_if->time_ref, le32_to_cpu(er->ts32), &tv); in pcan_usb_pro_handle_error()
672 hwts->hwtstamp = timeval_to_ktime(tv); in pcan_usb_pro_handle_error()
Dpcan_usb_core.h151 struct timeval *tv);
/linux-4.1.27/drivers/input/serio/
Dhil_mlc.c277 struct timeval tv; in hilse_init_lcv() local
279 do_gettimeofday(&tv); in hilse_init_lcv()
281 if (mlc->lcv && (tv.tv_sec - mlc->lcv_tv.tv_sec) < 5) in hilse_init_lcv()
284 mlc->lcv_tv = tv; in hilse_init_lcv()
734 struct timeval tv; in hilse_donode() local
739 do_gettimeofday(&tv); in hilse_donode()
740 tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - mlc->instart.tv_sec); in hilse_donode()
741 tv.tv_usec -= mlc->instart.tv_usec; in hilse_donode()
742 if (tv.tv_usec >= mlc->intimeout) goto sched; in hilse_donode()
743 tv.tv_usec = (mlc->intimeout - tv.tv_usec) * HZ / USEC_PER_SEC; in hilse_donode()
[all …]
Dhp_sdc_mlc.c152 struct timeval tv; in hp_sdc_mlc_in() local
163 do_gettimeofday(&tv); in hp_sdc_mlc_in()
164 tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - mlc->instart.tv_sec); in hp_sdc_mlc_in()
165 if (tv.tv_usec - mlc->instart.tv_usec > mlc->intimeout) { in hp_sdc_mlc_in()
Dhp_sdc.c309 struct timeval tv; in hp_sdc_tasklet() local
311 do_gettimeofday(&tv); in hp_sdc_tasklet()
312 if (tv.tv_sec > hp_sdc.rtv.tv_sec) in hp_sdc_tasklet()
313 tv.tv_usec += USEC_PER_SEC; in hp_sdc_tasklet()
315 if (tv.tv_usec - hp_sdc.rtv.tv_usec > HP_SDC_MAX_REG_DELAY) { in hp_sdc_tasklet()
325 (int)(tv.tv_usec - hp_sdc.rtv.tv_usec)); in hp_sdc_tasklet()
/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-driver.c325 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument
330 memset(tv, 0, sizeof(*tv)); in cx18_read_eeprom()
347 tveeprom_hauppauge_analog(c, tv, eedata); in cx18_read_eeprom()
351 tv->model = 0x718; in cx18_read_eeprom()
357 tv->model = 0xffffffff; in cx18_read_eeprom()
368 struct tveeprom tv; in cx18_process_eeprom() local
370 cx18_read_eeprom(cx, &tv); in cx18_process_eeprom()
377 switch (tv.model) { in cx18_process_eeprom()
409 "(cardtype=1)\n", tv.model); in cx18_process_eeprom()
420 if (tv.tuner_type == TUNER_ABSENT) in cx18_process_eeprom()
[all …]
Dcx18-cards.h114 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member
Dcx18-cards.c39 .tv = { 0x61, 0x60, I2C_CLIENT_END },
49 .tv = { 0x61, 0x60, I2C_CLIENT_END },
Dcx18-i2c.c130 adap, type, 0, cx->card_i2c->tv); in cx18_i2c_register()
Dcx18-driver.h696 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv);
Dcx18-ioctl.c1026 struct tveeprom tv; in cx18_log_status() local
1028 cx18_read_eeprom(cx, &tv); in cx18_log_status()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dlustre_handles.c196 struct timeval tv; in class_handle_init() local
214 do_gettimeofday(&tv); in class_handle_init()
215 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); in class_handle_init()
/linux-4.1.27/arch/x86/um/vdso/
Dum_vdso.c31 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
36 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); in __vdso_gettimeofday()
/linux-4.1.27/arch/sh/boards/mach-sh03/
Drtc.c80 void sh03_rtc_gettimeofday(struct timespec *tv) in sh03_rtc_gettimeofday() argument
83 tv->tv_sec = get_cmos_time(); in sh03_rtc_gettimeofday()
84 tv->tv_nsec = 0; in sh03_rtc_gettimeofday()
/linux-4.1.27/drivers/scsi/bfa/
Dbfa_port.c98 struct timeval tv; in bfa_port_get_stats_isr() local
104 do_gettimeofday(&tv); in bfa_port_get_stats_isr()
105 port->stats->fc.secs_reset = tv.tv_sec - port->stats_reset_time; in bfa_port_get_stats_isr()
126 struct timeval tv; in bfa_port_clear_stats_isr() local
134 do_gettimeofday(&tv); in bfa_port_clear_stats_isr()
135 port->stats_reset_time = tv.tv_sec; in bfa_port_clear_stats_isr()
473 struct timeval tv; in bfa_port_attach() local
496 do_gettimeofday(&tv); in bfa_port_attach()
497 port->stats_reset_time = tv.tv_sec; in bfa_port_attach()
Dbfa_cs.h37 struct timeval tv; \
39 do_gettimeofday(&tv); \
40 (tv.tv_sec*1000000+tv.tv_usec); \
Dbfa_plog.h39 u64 tv; /* timestamp */ member
Dbfa_svc.c310 struct timeval tv; in bfa_get_log_time() local
311 do_gettimeofday(&tv); in bfa_get_log_time()
314 system_time = tv.tv_sec; in bfa_get_log_time()
338 pl_recp->tv = bfa_get_log_time(); in bfa_plog_add()
3095 struct timeval tv; in bfa_fcport_attach() local
3108 do_gettimeofday(&tv); in bfa_fcport_attach()
3109 fcport->stats_reset_time = tv.tv_sec; in bfa_fcport_attach()
3361 struct timeval tv; in __bfa_cb_fcport_stats_get() local
3363 do_gettimeofday(&tv); in __bfa_cb_fcport_stats_get()
3378 tv.tv_sec - fcport->stats_reset_time; in __bfa_cb_fcport_stats_get()
[all …]
Dbfad_bsg.c2096 struct timeval tv; in bfad_iocmd_fcpim_cfg_profile() local
2099 do_gettimeofday(&tv); in bfad_iocmd_fcpim_cfg_profile()
2102 iocmd->status = bfa_fcpim_profile_on(&bfad->bfa, tv.tv_sec); in bfad_iocmd_fcpim_cfg_profile()
Dbfa_ioc.c1811 struct timeval tv; in bfa_ioc_send_enable() local
1816 do_gettimeofday(&tv); in bfa_ioc_send_enable()
1817 enable_req.tv_sec = be32_to_cpu(tv.tv_sec); in bfa_ioc_send_enable()
/linux-4.1.27/drivers/s390/block/
Ddasd_eer.c298 struct timeval tv; in dasd_eer_write_standard_trigger() local
312 do_gettimeofday(&tv); in dasd_eer_write_standard_trigger()
313 header.tv_sec = tv.tv_sec; in dasd_eer_write_standard_trigger()
314 header.tv_usec = tv.tv_usec; in dasd_eer_write_standard_trigger()
342 struct timeval tv; in dasd_eer_write_snss_trigger() local
355 do_gettimeofday(&tv); in dasd_eer_write_snss_trigger()
356 header.tv_sec = tv.tv_sec; in dasd_eer_write_snss_trigger()
357 header.tv_usec = tv.tv_usec; in dasd_eer_write_snss_trigger()
/linux-4.1.27/Documentation/video4linux/
Dcafe_ccic13 mplayer tv:// -tv driver=v4l2:width=640:height=480 -nosound
14 mplayer tv:// -tv driver=v4l2:width=640:height=480:outfmt=bgr16 -nosound
DZoran142 tv broadcast formats all aver the world.
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dlib-eq.c344 struct timeval tv; in lnet_eq_wait_locked() local
348 cfs_duration_usec(cfs_time_sub(cfs_time_current(), now), &tv); in lnet_eq_wait_locked()
349 tms -= (int)(tv.tv_sec * 1000 + tv.tv_usec / 1000); in lnet_eq_wait_locked()
Drouter.c251 struct timeval tv; in lnet_shuffle_seed() local
270 do_gettimeofday(&tv); in lnet_shuffle_seed()
271 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); in lnet_shuffle_seed()
/linux-4.1.27/drivers/media/v4l2-core/
Dtuner-core.c555 struct tuner **radio, struct tuner **tv) in tuner_lookup() argument
560 *tv = NULL; in tuner_lookup()
575 else if (*tv == NULL && pos->type != TUNER_TDA9887 && in tuner_lookup()
577 *tv = pos; in tuner_lookup()
601 struct tuner *tv; in tuner_probe() local
639 tuner_lookup(t->i2c->adapter, &radio, &tv); in tuner_probe()
640 if (tv) in tuner_probe()
641 tv->mode_mask &= ~T_RADIO; in tuner_probe()
670 tuner_lookup(t->i2c->adapter, &radio, &tv); in tuner_probe()
671 if (tv) in tuner_probe()
[all …]
Dv4l2-common.c399 void v4l2_get_timestamp(struct timeval *tv) in v4l2_get_timestamp() argument
404 tv->tv_sec = ts.tv_sec; in v4l2_get_timestamp()
405 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; in v4l2_get_timestamp()
/linux-4.1.27/fs/adfs/
Dinode.c170 adfs_adfs2unix_time(struct timespec *tv, struct inode *inode) in adfs_adfs2unix_time() argument
198 *tv = ns_to_timespec(nsec); in adfs_adfs2unix_time()
202 *tv = CURRENT_TIME; in adfs_adfs2unix_time()
206 tv->tv_sec = tv->tv_nsec = 0; in adfs_adfs2unix_time()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_time.h112 static inline void cfs_fs_timeval(struct timeval *tv) in cfs_fs_timeval() argument
117 cfs_fs_time_usec(&time, tv); in cfs_fs_timeval()
/linux-4.1.27/net/ipv4/
Dip_options.c61 struct timespec tv; in ip_options_build() local
63 getnstimeofday(&tv); in ip_options_build()
64 midtime = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC); in ip_options_build()
418 struct timespec tv; in ip_options_compile() local
420 getnstimeofday(&tv); in ip_options_compile()
421 midtime = (tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC; in ip_options_compile()
Dtcp_probe.c190 struct timespec tv in tcpprobe_sprint() local
195 (unsigned long)tv.tv_sec, in tcpprobe_sprint()
196 (unsigned long)tv.tv_nsec, in tcpprobe_sprint()
Dicmp.c910 struct timespec tv; in icmp_timestamp() local
921 getnstimeofday(&tv); in icmp_timestamp()
922 icmp_param.data.times[1] = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + in icmp_timestamp()
923 tv.tv_nsec / NSEC_PER_MSEC); in icmp_timestamp()
Digmp.c215 int tv = prandom_u32() % max_delay; in igmp_start_timer() local
218 if (!mod_timer(&im->timer, jiffies+tv+2)) in igmp_start_timer()
224 int tv = prandom_u32() % in_dev->mr_maxdelay; in igmp_gq_start_timer() local
227 if (!mod_timer(&in_dev->mr_gq_timer, jiffies+tv+2)) in igmp_gq_start_timer()
233 int tv = prandom_u32() % delay; in igmp_ifc_start_timer() local
235 if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2)) in igmp_ifc_start_timer()
/linux-4.1.27/arch/xtensa/platforms/iss/include/platform/
Dsimcall.h106 struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; in simc_poll() local
108 return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv); in simc_poll()
/linux-4.1.27/arch/um/drivers/
Ddaemon_user.c128 struct timeval tv; in daemon_user_init() local
140 gettimeofday(&tv, NULL); in daemon_user_init()
141 name.usecs = tv.tv_usec; in daemon_user_init()
/linux-4.1.27/arch/alpha/kernel/
Dosf_sys.c997 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
1000 if (tv) { in SYSCALL_DEFINE2()
1003 if (put_tv32(tv, &ktv)) in SYSCALL_DEFINE2()
1013 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
1019 if (tv) { in SYSCALL_DEFINE2()
1020 if (get_tv32((struct timeval *)&kts, tv)) in SYSCALL_DEFINE2()
1029 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); in SYSCALL_DEFINE2()
1070 struct timespec tv[2]; in SYSCALL_DEFINE2() local
1082 tv[0].tv_sec = ktvs[0].tv_sec; in SYSCALL_DEFINE2()
1083 tv[0].tv_nsec = 1000 * ktvs[0].tv_usec; in SYSCALL_DEFINE2()
[all …]
/linux-4.1.27/scripts/
Dget_maintainer.pl903 my $tv = $typevalue[$index];
904 if (($tv =~ m/^(\C):\s*(.*)/)) {
917 my $tv = $typevalue[$index];
918 if (!($tv =~ m/^(\C):\s*(.*)/)) {
931 my $tv = $typevalue[$index];
932 if (!($tv =~ m/^(\C):\s*(.*)/)) {
957 my $tv = $typevalue[$i];
958 if ($tv =~ m/^(\C):\s*(.*)/) {
1016 my $tv = $typevalue[$i];
1017 if ($tv =~ m/^(\C):\s*(.*)/) {
[all …]
/linux-4.1.27/net/atm/
Dmpoa_caches.h17 struct timeval tv; member
54 struct timeval tv; member
Dmpoa_caches.c119 do_gettimeofday(&(entry->tv)); in in_cache_add_entry()
238 if ((now.tv_sec - entry->tv.tv_sec) in clear_count_and_expired()
482 do_gettimeofday(&(entry->tv)); in eg_cache_add_entry()
497 do_gettimeofday(&(entry->tv)); in update_eg_cache_entry()
514 if ((now.tv_sec - entry->tv.tv_sec) in clear_expired()
Dmpoa_proc.c158 (now.tv_sec-in_entry->tv.tv_sec), in mpc_show()
177 (now.tv_sec-eg_entry->tv.tv_sec)), in mpc_show()
Dmpc.c1179 do_gettimeofday(&(entry->tv)); in MPOA_res_reply_rcvd()
/linux-4.1.27/tools/perf/
Dbuiltin-buildid-cache.c51 struct timeval tv; in build_id_cache__kcore_dir() local
55 if (gettimeofday(&tv, NULL) || !localtime_r(&tv.tv_sec, &tm)) in build_id_cache__kcore_dir()
61 scnprintf(dir, sz, "%s%02u", dt, (unsigned)tv.tv_usec / 10000); in build_id_cache__kcore_dir()
Dbuiltin-kvm.c563 struct timeval tv; in show_timeofday() local
566 gettimeofday(&tv, NULL); in show_timeofday()
567 if (localtime_r(&tv.tv_sec, &ltime)) { in show_timeofday()
569 pr_info("%s.%06ld", date, tv.tv_usec); in show_timeofday()
/linux-4.1.27/net/
Dcompat.c217 struct timeval *tv = (struct timeval *)data; in put_cmsg_compat() local
218 ctv.tv_sec = tv->tv_sec; in put_cmsg_compat()
219 ctv.tv_usec = tv->tv_usec; in put_cmsg_compat()
434 struct timeval tv; in compat_sock_get_timestamp() local
443 tv = ktime_to_timeval(sk->sk_stamp); in compat_sock_get_timestamp()
444 if (tv.tv_sec == -1) in compat_sock_get_timestamp()
446 if (tv.tv_sec == 0) { in compat_sock_get_timestamp()
448 tv = ktime_to_timeval(sk->sk_stamp); in compat_sock_get_timestamp()
451 if (put_user(tv.tv_sec, &ctv->tv_sec) || in compat_sock_get_timestamp()
452 put_user(tv.tv_usec, &ctv->tv_usec)) in compat_sock_get_timestamp()
Dsocket.c654 struct timeval tv; in __sock_recv_timestamp() local
655 skb_get_timestamp(skb, &tv); in __sock_recv_timestamp()
657 sizeof(tv), &tv); in __sock_recv_timestamp()
/linux-4.1.27/Documentation/misc-devices/mei/
Dmei-amt-version.c175 struct timeval tv; in mei_send_msg() local
180 tv.tv_sec = timeout / 1000; in mei_send_msg()
181 tv.tv_usec = (timeout % 1000) * 1000000; in mei_send_msg()
195 rc = select(me->fd + 1 , &set, NULL, NULL, &tv); in mei_send_msg()
/linux-4.1.27/drivers/media/rc/keymaps/
DMakefile7 rc-ati-tv-wonder-hd-600.o \
52 rc-kworld-plus-tv-analog.o \
100 rc-videomate-tv-pvr.o \
/linux-4.1.27/drivers/firewire/
Dnosy.c418 struct timeval tv; in packet_irq_handler() local
425 do_gettimeofday(&tv); in packet_irq_handler()
426 lynx->rcv_buffer[0] = (__force __le32)tv.tv_usec; in packet_irq_handler()
447 struct timeval tv; in bus_reset_irq_handler() local
449 do_gettimeofday(&tv); in bus_reset_irq_handler()
454 packet_buffer_put(&client->buffer, &tv.tv_usec, 4); in bus_reset_irq_handler()
/linux-4.1.27/net/vmw_vsock/
Daf_vsock.c1408 struct timeval tv; in vsock_stream_setsockopt() local
1409 COPY_IN(tv); in vsock_stream_setsockopt()
1410 if (tv.tv_sec >= 0 && tv.tv_usec < USEC_PER_SEC && in vsock_stream_setsockopt()
1411 tv.tv_sec < (MAX_SCHEDULE_TIMEOUT / HZ - 1)) { in vsock_stream_setsockopt()
1412 vsk->connect_timeout = tv.tv_sec * HZ + in vsock_stream_setsockopt()
1413 DIV_ROUND_UP(tv.tv_usec, (1000000 / HZ)); in vsock_stream_setsockopt()
1486 struct timeval tv; in vsock_stream_getsockopt() local
1487 tv.tv_sec = vsk->connect_timeout / HZ; in vsock_stream_getsockopt()
1488 tv.tv_usec = in vsock_stream_getsockopt()
1490 tv.tv_sec * HZ) * (1000000 / HZ); in vsock_stream_getsockopt()
[all …]
/linux-4.1.27/drivers/media/pci/saa7164/
Dsaa7164-cards.c617 struct tveeprom tv; in hauppauge_eeprom() local
620 tveeprom_hauppauge_analog(&dev->i2c_bus[0].i2c_client, &tv, in hauppauge_eeprom()
624 switch (tv.model) { in hauppauge_eeprom()
652 dev->name, tv.model); in hauppauge_eeprom()
657 tv.model); in hauppauge_eeprom()
/linux-4.1.27/drivers/net/wireless/mwifiex/
D11n_aggr.c176 struct timeval tv; in mwifiex_11n_aggregate_pkt() local
207 do_gettimeofday(&tv); in mwifiex_11n_aggregate_pkt()
208 skb_aggr->tstamp = timeval_to_ktime(tv); in mwifiex_11n_aggregate_pkt()
/linux-4.1.27/net/core/
Dsock.c384 struct timeval tv; in sock_set_timeout() local
386 if (optlen < sizeof(tv)) in sock_set_timeout()
388 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout()
390 if (tv.tv_usec < 0 || tv.tv_usec >= USEC_PER_SEC) in sock_set_timeout()
393 if (tv.tv_sec < 0) { in sock_set_timeout()
405 if (tv.tv_sec == 0 && tv.tv_usec == 0) in sock_set_timeout()
407 if (tv.tv_sec < (MAX_SCHEDULE_TIMEOUT/HZ - 1)) in sock_set_timeout()
408 *timeo_p = tv.tv_sec*HZ + (tv.tv_usec+(1000000/HZ-1))/(1000000/HZ); in sock_set_timeout()
2440 struct timeval tv; in sock_get_timestamp() local
2443 tv = ktime_to_timeval(sk->sk_stamp); in sock_get_timestamp()
[all …]
/linux-4.1.27/Documentation/networking/timestamping/
Dtimestamping.c160 struct timeval tv; in printpacket() local
261 if (ioctl(sock, SIOCGSTAMP, &tv)) in printpacket()
265 (long)tv.tv_sec, in printpacket()
266 (long)tv.tv_usec); in printpacket()
Dtxtimestamp.c109 struct timeval tv; /* avoid dependency on -lrt */ in print_timestamp_usr() local
111 gettimeofday(&tv, NULL); in print_timestamp_usr()
112 ts.tv_sec = tv.tv_sec; in print_timestamp_usr()
113 ts.tv_nsec = tv.tv_usec * 1000; in print_timestamp_usr()
/linux-4.1.27/drivers/video/fbdev/
Dpxa3xx-gcu.c129 struct timeval tv; \
133 do_gettimeofday(&tv); \
139 tv.tv_sec - priv->base_time.tv_sec, \
140 tv.tv_usec / 1000, tv.tv_usec % 1000, \
/linux-4.1.27/arch/arm/boot/dts/
Dsun5i-a10s-r7-tv-dongle.dts56 model = "R7 A10s hdmi tv-stick";
57 compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
128 label = "r7-tv-dongle:green:usr";
Domap3-pandora-common.dtsi30 tv: connector@1 { label
31 compatible = "connector-analog-tv";
32 label = "tv";
Domap3-cm-t3x.dtsi62 label = "tv";
Domap3-beagle-xm.dts139 label = "tv";
Domap3-beagle.dts134 label = "tv";
Domap3-gta04.dtsi88 label = "tv";
Domap3-n900.dts116 tv: connector { label
118 label = "tv";
Dexynos4415.dtsi137 pd_tv: tv-power-domain@10024020 {
Dexynos4.dtsi104 pd_tv: tv-power-domain@10023C20 {
DMakefile540 sun5i-a10s-r7-tv-dongle.dtb \
/linux-4.1.27/drivers/net/hamradio/
Dbaycom_ser_fdx.c231 static __inline__ void ser12_rx(struct net_device *dev, struct baycom_state *bc, struct timeval *tv in ser12_rx() argument
238 timediff = 1000000 + tv->tv_usec - bc->modem.ser12.pll_time; in ser12_rx()
290 struct timeval tv; in ser12_interrupt() local
300 do_gettimeofday(&tv); in ser12_interrupt()
343 ser12_rx(dev, bc, &tv, msr & 0x10); /* CTS */ in ser12_interrupt()
/linux-4.1.27/drivers/media/dvb-frontends/
Dstv0299.c408 struct timeval tv[10]; in stv0299_send_legacy_dish_cmd() local
423 tv[0] = nexttime; in stv0299_send_legacy_dish_cmd()
430 do_gettimeofday (&tv[i+1]); in stv0299_send_legacy_dish_cmd()
446 printk ("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i])); in stv0299_send_legacy_dish_cmd()
/linux-4.1.27/Documentation/arm/OMAP/
DDSS200 When writing, two special timings are accepted for tv-out:
223 tv=/sys/devices/platform/omapdss/display2
263 w=`cat $tv/timings | cut -d "," -f 2 | cut -d "/" -f 1`
264 h=`cat $tv/timings | cut -d "," -f 3 | cut -d "/" -f 1`
273 echo "tv" > $ovl1/manager
278 echo "1" > $tv/enabled
311 can be used to tv out.
342 Common examples are "lcd" or "tv".
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/
DMakefile6 obj-$(CONFIG_DISPLAY_CONNECTOR_ANALOG_TV) += connector-analog-tv.o
/linux-4.1.27/fs/gfs2/
Ddir.c829 struct timespec tv = CURRENT_TIME; in new_leaf() local
848 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in new_leaf()
849 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in new_leaf()
1699 struct timespec tv; in gfs2_dir_add() local
1715 tv = CURRENT_TIME; in gfs2_dir_add()
1719 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_add()
1720 leaf->lf_sec = cpu_to_be64(tv.tv_sec); in gfs2_dir_add()
1726 ip->i_inode.i_mtime = ip->i_inode.i_ctime = tv; in gfs2_dir_add()
1777 struct timespec tv = CURRENT_TIME; in gfs2_dir_del() local
1803 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_dir_del()
[all …]
/linux-4.1.27/drivers/media/platform/
DMakefile32 obj-$(CONFIG_VIDEO_SAMSUNG_S5P_TV) += s5p-tv/
DKconfig119 source "drivers/media/platform/s5p-tv/Kconfig"
/linux-4.1.27/arch/um/os-Linux/skas/
Dprocess.c463 struct timeval tv = { .tv_sec = 0, .tv_usec = UM_USEC_PER_SEC / UM_HZ }; in copy_context_skas0() local
478 { .it_value = tv, in copy_context_skas0()
479 .it_interval = tv }) }); in copy_context_skas0()
/linux-4.1.27/fs/jffs2/
Dos-linux.h35 #define I_SEC(tv) ((tv).tv_sec) argument
/linux-4.1.27/tools/thermal/tmon/
Dtmon.h51 struct timeval tv; member
Dsysfs.c500 gettimeofday(&trec[cur_thermal_record].tv, NULL); in update_thermal_data()
/linux-4.1.27/drivers/pci/
Dxen-pcifront.c120 struct timeval tv; in do_pci_op() local
137 do_gettimeofday(&tv); in do_pci_op()
138 ns_timeout = timeval_to_ns(&tv) + 2 * (s64)NSEC_PER_SEC; in do_pci_op()
146 do_gettimeofday(&tv); in do_pci_op()
147 ns = timeval_to_ns(&tv); in do_pci_op()
/linux-4.1.27/net/bluetooth/
Dhci_sock.c899 struct timeval tv; in hci_sock_cmsg() local
903 skb_get_timestamp(skb, &tv); in hci_sock_cmsg()
905 data = &tv; in hci_sock_cmsg()
906 len = sizeof(tv); in hci_sock_cmsg()
910 ctv.tv_sec = tv.tv_sec; in hci_sock_cmsg()
911 ctv.tv_usec = tv.tv_usec; in hci_sock_cmsg()
/linux-4.1.27/arch/ia64/include/asm/
Dpal.h521 tv : 1, /* Target address member
558 tv : 1, /* Target address member
594 tv : 1, /* Target address member
654 tv : 1, /* Target address member
723 #define pmci_cache_target_address_valid pme_cache.tv
737 #define pmci_bus_target_address_valid pme_bus.tv
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
Dmxl111sf.h83 struct tveeprom tv; member
Dmxl111sf.c920 tveeprom_hauppauge_analog(&c, &state->tv, (0x84 == eeprom[0xa0]) ? in mxl111sf_init()
923 switch (state->tv.model) { in mxl111sf_init()
931 __func__, state->tv.model); in mxl111sf_init()
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/
Dft1000_debug.c415 struct timeval tv; in ft1000_ioctl() local
513 do_gettimeofday(&tv); in ft1000_ioctl()
514 get_stat_data.ConTm = (u32)(tv.tv_sec - info->ConTm); in ft1000_ioctl()
Dft1000_hw.c622 struct timeval tv; in ft1000_open() local
630 do_gettimeofday(&tv); in ft1000_open()
631 pInfo->ConTm = tv.tv_sec; in ft1000_open()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_bios.h151 uint8_t crt, tv, panel; member
Dnouveau_bios.c1194 bios->legacy.i2c_indices.tv = bios->data[legacy_i2c_offset + 1]; in parse_bmp_structure()
1769 if (nv04_tv_identify(dev, bios->legacy.i2c_indices.tv) >= 0) in fabricate_dcb_encoder_table()
1771 bios->legacy.i2c_indices.tv, in fabricate_dcb_encoder_table()
/linux-4.1.27/include/media/
Dv4l2-common.h190 void v4l2_get_timestamp(struct timeval *tv);
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fence.c875 struct timeval tv; in vmw_event_fence_action_seq_passed() local
877 do_gettimeofday(&tv); in vmw_event_fence_action_seq_passed()
878 *eaction->tv_sec = tv.tv_sec; in vmw_event_fence_action_seq_passed()
879 *eaction->tv_usec = tv.tv_usec; in vmw_event_fence_action_seq_passed()
/linux-4.1.27/arch/arm/mach-lpc32xx/
Dclock.c233 u32 tv, tmp = 0; in local_clk_pll_setup() local
244 tv = ffs(PllSetup->pll_p) - 1; in local_clk_pll_setup()
245 if ((!is_power_of_2(PllSetup->pll_p)) || (tv > 3)) in local_clk_pll_setup()
248 tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_2POW(tv); in local_clk_pll_setup()
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-cards.c1039 struct tveeprom tv; in hauppauge_eeprom() local
1041 tveeprom_hauppauge_analog(&dev->i2c_bus[0].i2c_client, &tv, in hauppauge_eeprom()
1045 switch (tv.model) { in hauppauge_eeprom()
1183 dev->name, tv.model); in hauppauge_eeprom()
1188 dev->name, tv.model); in hauppauge_eeprom()
/linux-4.1.27/include/sound/
Dpcm.h1129 struct timespec *tv) in snd_pcm_gettime() argument
1133 ktime_get_ts(tv); in snd_pcm_gettime()
1136 getrawmonotonic(tv); in snd_pcm_gettime()
1139 getnstimeofday(tv); in snd_pcm_gettime()
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-cards.c2857 struct tveeprom tv; in hauppauge_eeprom() local
2859 tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); in hauppauge_eeprom()
2860 core->board.tuner_type = tv.tuner_type; in hauppauge_eeprom()
2861 core->tuner_formats = tv.tuner_formats; in hauppauge_eeprom()
2862 core->board.radio.type = tv.has_radio ? CX88_RADIO : 0; in hauppauge_eeprom()
2863 core->model = tv.model; in hauppauge_eeprom()
2866 switch (tv.model) in hauppauge_eeprom()
2909 tv.model); in hauppauge_eeprom()
2913 info_printk(core, "hauppauge eeprom: model=%d\n", tv.model); in hauppauge_eeprom()
/linux-4.1.27/drivers/scsi/
Dgdth_proc.c151 struct timeval tv; in gdth_show_info() local
543 do_gettimeofday(&tv); in gdth_show_info()
544 sec = (int)(tv.tv_sec - estr->first_stamp); in gdth_show_info()
Dips.c996 struct timeval tv; in __ips_eh_reset() local
998 do_gettimeofday(&tv); in __ips_eh_reset()
999 ha->last_ffdc = tv.tv_sec; in __ips_eh_reset()
2406 struct timeval tv; in ips_hainit() local
2421 do_gettimeofday(&tv); in ips_hainit()
2422 ha->last_ffdc = tv.tv_sec; in ips_hainit()
2562 struct timeval tv; in ips_next() local
2564 do_gettimeofday(&tv); in ips_next()
2566 if (tv.tv_sec - ha->last_ffdc > IPS_SECS_8HOURS) { in ips_next()
2567 ha->last_ffdc = tv.tv_sec; in ips_next()
Dstex.c367 struct timeval tv; in stex_gettime() local
369 do_gettimeofday(&tv); in stex_gettime()
370 *time = cpu_to_le64(tv.tv_sec); in stex_gettime()
Dgdth.c2841 struct timeval tv; in gdth_store_event() local
2857 do_gettimeofday(&tv); in gdth_store_event()
2858 e->last_stamp = tv.tv_sec; in gdth_store_event()
2874 do_gettimeofday(&tv); in gdth_store_event()
2875 e->first_stamp = e->last_stamp = tv.tv_sec; in gdth_store_event()
Dpmcraid.c5566 struct timeval tv; in pmcraid_set_timestamp() local
5569 do_gettimeofday(&tv); in pmcraid_set_timestamp()
5570 timestamp = tv.tv_sec * 1000; in pmcraid_set_timestamp()
/linux-4.1.27/Documentation/dvb/
Dfaq.txt67 http://www.linuxdvb.tv/
136 gives you access to the "analog" tv picture of the av7110 mpeg2
/linux-4.1.27/drivers/media/platform/s5p-tv/
DKconfig1 # drivers/media/platform/s5p-tv/Kconfig
/linux-4.1.27/net/netfilter/
Dnfnetlink_log.c541 struct timeval tv = ktime_to_timeval(skb->tstamp); in __build_packet_message() local
542 ts.sec = cpu_to_be64(tv.tv_sec); in __build_packet_message()
543 ts.usec = cpu_to_be64(tv.tv_usec); in __build_packet_message()
Dnfnetlink_queue_core.c470 struct timeval tv = ktime_to_timeval(entskb->tstamp); in nfqnl_build_packet_message() local
471 ts.sec = cpu_to_be64(tv.tv_sec); in nfqnl_build_packet_message()
472 ts.usec = cpu_to_be64(tv.tv_usec); in nfqnl_build_packet_message()
/linux-4.1.27/drivers/media/pci/zoran/
Dzoran_device.c187 struct timeval tv; in get_time() local
189 do_gettimeofday(&tv); in get_time()
190 return (1000000 * tv.tv_sec + tv.tv_usec); in get_time()
/linux-4.1.27/net/ipv6/
Dmcast.c997 unsigned long tv = prandom_u32() % idev->mc_maxdelay; in mld_gq_start_timer() local
1000 if (!mod_timer(&idev->mc_gq_timer, jiffies+tv+2)) in mld_gq_start_timer()
1013 unsigned long tv = prandom_u32() % delay; in mld_ifc_start_timer() local
1015 if (!mod_timer(&idev->mc_ifc_timer, jiffies+tv+2)) in mld_ifc_start_timer()
1028 unsigned long tv = prandom_u32() % delay; in mld_dad_start_timer() local
1030 if (!mod_timer(&idev->mc_dad_timer, jiffies+tv+2)) in mld_dad_start_timer()
/linux-4.1.27/drivers/media/platform/exynos4-is/
Dfimc-lite.c257 struct timeval *tv; in flite_irq_handler() local
298 tv = &vbuf->vb.v4l2_buf.timestamp; in flite_irq_handler()
299 tv->tv_sec = ts.tv_sec; in flite_irq_handler()
300 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; in flite_irq_handler()
Dfimc-capture.c186 struct timeval *tv; in fimc_capture_irq_handler() local
200 tv = &v_buf->vb.v4l2_buf.timestamp; in fimc_capture_irq_handler()
201 tv->tv_sec = ts.tv_sec; in fimc_capture_irq_handler()
202 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; in fimc_capture_irq_handler()
/linux-4.1.27/drivers/media/platform/s3c-camif/
Dcamif-capture.c331 struct timeval *tv; in s3c_camif_irq_handler() local
345 tv = &vbuf->vb.v4l2_buf.timestamp; in s3c_camif_irq_handler()
346 tv->tv_sec = ts.tv_sec; in s3c_camif_irq_handler()
347 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; in s3c_camif_irq_handler()
/linux-4.1.27/drivers/block/
Dsx8.c674 struct timeval tv; in carm_fill_sync_time() local
677 do_gettimeofday(&tv); in carm_fill_sync_time()
683 st->timestamp = cpu_to_le32(tv.tv_sec); in carm_fill_sync_time()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-ctrls.c880 struct timeval tv; in vivid_streaming_s_ctrl() local
919 v4l2_get_timestamp(&tv); in vivid_streaming_s_ctrl()
920 dev->time_wrap_offset = -tv.tv_sec - 16; in vivid_streaming_s_ctrl()
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_frontend.c2462 struct timeval tv[10]; in dvb_frontend_ioctl_legacy() local
2469 tv[0] = nexttime; in dvb_frontend_ioctl_legacy()
2478 do_gettimeofday(&tv[i + 1]); in dvb_frontend_ioctl_legacy()
2492 printk("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i])); in dvb_frontend_ioctl_legacy()
/linux-4.1.27/drivers/staging/ft1000/ft1000-pcmcia/
Dft1000_hw.c909 struct timeval tv; in ft1000_proc_drvmsg() local
986 do_gettimeofday(&tv); in ft1000_proc_drvmsg()
987 info->ConTm = tv.tv_sec; in ft1000_proc_drvmsg()
/linux-4.1.27/drivers/staging/comedi/
Dcomedi_fops.c1218 struct timeval tv; in parse_insn() local
1225 do_gettimeofday(&tv); in parse_insn()
1226 data[0] = tv.tv_sec; in parse_insn()
1227 data[1] = tv.tv_usec; in parse_insn()
/linux-4.1.27/drivers/media/usb/em28xx/
Dem28xx-cards.c2808 struct tveeprom tv; in em28xx_card_setup() local
2818 tveeprom_hauppauge_analog(&dev->i2c_client[dev->def_i2c_bus], &tv, dev->eedata); in em28xx_card_setup()
2820 dev->tuner_type = tv.tuner_type; in em28xx_card_setup()
2822 if (tv.audio_processor == TVEEPROM_AUDPROC_MSP) { in em28xx_card_setup()
/linux-4.1.27/kernel/debug/kdb/
Dkdb_main.c2489 static void kdb_gmtime(struct timespec *tv, struct kdb_tm *tm) in kdb_gmtime() argument
2495 tm->tm_sec = tv->tv_sec % (24 * 60 * 60); in kdb_gmtime()
2496 tm->tm_mday = tv->tv_sec / (24 * 60 * 60) + in kdb_gmtime()
/linux-4.1.27/Documentation/laptops/
Dasus-laptop.txt204 5 = tv
/linux-4.1.27/Documentation/video4linux/bttv/
DCards332 PV-951TDV (tv tuner + 1394)
561 ProTV II = ProTV Stereo (Bt878) ["stereo" means FM stereo, tv is still mono]
766 SkyEye tv 878
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c2998 struct timeval tv; in kiblnd_startup() local
3016 do_gettimeofday(&tv); in kiblnd_startup()
3017 net->ibn_incarnation = (((__u64)tv.tv_sec) * 1000000) + tv.tv_usec; in kiblnd_startup()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110.c356 struct timeval tv; in print_time() local
357 do_gettimeofday(&tv); in print_time()
358 printk("%s: %d.%d\n", s, (int)tv.tv_sec, (int)tv.tv_usec); in print_time()
/linux-4.1.27/drivers/usb/gadget/udc/
Ddummy_hcd.c772 struct timeval tv; in dummy_g_get_frame() local
774 do_gettimeofday(&tv); in dummy_g_get_frame()
775 return tv.tv_usec / 1000; in dummy_g_get_frame()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c1951 struct timeval tv; in bfa_ioc_send_enable() local
1956 do_gettimeofday(&tv); in bfa_ioc_send_enable()
1957 enable_req.tv_sec = ntohl(tv.tv_sec); in bfa_ioc_send_enable()
/linux-4.1.27/Documentation/ide/
Dide.txt256 comments at 2.6.0-test4 time. Maciej Soltysiak <solt@dns.toxicfilms.tv>
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_mr.c1815 struct timeval tv; in qlafx00_fx_disc() local
1889 do_gettimeofday(&tv); in qlafx00_fx_disc()
1890 preg_hsi->utc = (uint64_t)tv.tv_sec; in qlafx00_fx_disc()
/linux-4.1.27/fs/nfsd/
Dnfs4xdr.c243 nfsd4_decode_time(struct nfsd4_compoundargs *argp, struct timespec *tv) in nfsd4_decode_time() argument
250 tv->tv_sec = sec; in nfsd4_decode_time()
251 tv->tv_nsec = be32_to_cpup(p++); in nfsd4_decode_time()
252 if (tv->tv_nsec >= (u32)1000000000) in nfsd4_decode_time()
/linux-4.1.27/Documentation/usb/
Dpower-management.txt573 [2]: http://linuxplumbers.ubicast.tv/videos/usb-port-power-off-kerneluserspace-api/
/linux-4.1.27/
DCREDITS1771 S: Lemnosvej 1, 3.tv
3597 E: sturner@tele-tv.com
DMAINTAINERS1429 F: drivers/media/platform/s5p-tv/