/linux-4.1.27/drivers/usb/misc/ |
D | trancevibrator.c | 52 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/ |
D | xfs_trans_inode.c | 71 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()
|
D | xfs_inode.c | 708 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/ |
D | divamnt.c | 91 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/ |
D | time.c | 84 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 …]
|
D | timekeeping.c | 892 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()
|
D | timer.c | 1107 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/ |
D | time.c | 52 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/ |
D | rtsx.h | 151 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/ |
D | time.c | 27 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/ |
D | vdso_test.c | 33 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()
|
D | vdso_standalone_test_x86.c | 90 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/ |
D | saa7134-cards.c | 93 .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 …]
|
D | saa7134.h | 365 unsigned int tv:1; member
|
D | saa7134-video.c | 479 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/ |
D | radeon_legacy_tv.c | 393 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 …]
|
D | radeon_cs.c | 167 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()
|
D | radeon_vm.c | 144 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()
|
D | radeon_gem.c | 537 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()
|
D | radeon_drv.c | 227 MODULE_PARM_DESC(tv, "TV enable (0 = disable)"); 228 module_param_named(tv, radeon_tv, int, 0444);
|
D | radeon_object.c | 531 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()
|
D | radeon_mode.h | 409 struct radeon_tv_regs tv; member
|
D | radeon.h | 459 struct ttm_validate_buffer tv; member
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
D | qxl_release.c | 169 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 …]
|
D | qxl_cmd.c | 182 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()
|
D | qxl_drv.h | 130 struct ttm_validate_buffer tv; member
|
/linux-4.1.27/arch/cris/arch-v10/kernel/ |
D | fasttimer.c | 115 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/ |
D | vclock_gettime.c | 26 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/ |
D | time.h | 113 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()
|
D | timekeeping.h | 12 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);
|
D | ktime.h | 93 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()
|
D | poll.h | 99 extern long select_estimate_accuracy(struct timespec *tv);
|
D | compat.h | 420 asmlinkage long compat_sys_gettimeofday(struct compat_timeval __user *tv, 422 asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv,
|
D | syscalls.h | 212 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/ |
D | fasttimer.c | 105 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/ |
D | hp_sdc_rtc.c | 436 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/ |
D | ping_test.c | 95 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()
|
D | brw_test.c | 137 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()
|
D | conrpc.c | 481 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()
|
D | framework.c | 374 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/ |
D | clock.c | 142 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()
|
D | socket.c | 106 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/ |
D | leapcrash.c | 95 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()
|
D | leap-a-day.c | 214 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()
|
D | rtctest.c | 91 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/ |
D | vgettimeofday.c | 233 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/ |
D | compat.c | 91 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/ |
D | compat_binfmt_elf.c | 61 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()
|
D | utimes.c | 29 struct timespec tv[2]; in SYSCALL_DEFINE2() local 32 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 33 get_user(tv[1].tv_sec, ×->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()
|
D | compat.c | 78 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 …]
|
D | select.c | 50 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/ |
D | lirc_parallel.c | 147 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 …]
|
D | lirc_serial.c | 609 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 …]
|
D | lirc_sasem.c | 570 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/ |
D | linux-tcpip.c | 258 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()
|
D | linux-tracefile.c | 197 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/ |
D | bttv-input.c | 197 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 …]
|
D | bttv-cards.c | 3721 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/ |
D | vgettimeofday.c | 130 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/ |
D | au0828-cards.c | 158 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()
|
D | Kconfig | 13 This is a hybrid analog/digital tv capture driver for
|
/linux-4.1.27/include/linux/raid/ |
D | pq.h | 171 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/ |
D | decode.h | 138 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/ |
D | super25.c | 94 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/ |
D | ivtv-driver.c | 405 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 …]
|
D | ivtv-cards.h | 264 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member
|
D | ivtv-cards.c | 49 .tv = { 0x61, 0x60, I2C_CLIENT_END }, 56 .tv = { 0x61, I2C_CLIENT_END }, 63 .tv = { 0x4b, I2C_CLIENT_END },
|
D | ivtv-i2c.c | 282 itv->card_i2c->tv); in ivtv_i2c_register()
|
D | ivtv-driver.h | 789 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv);
|
D | ivtv-ioctl.c | 1523 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/ |
D | analog-tv-connector.txt | 16 tv: connector { 18 label = "tv";
|
/linux-4.1.27/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 79 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 …]
|
D | pcan_usb.c | 408 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()
|
D | pcan_usb_pro.c | 534 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()
|
D | pcan_usb_core.h | 151 struct timeval *tv);
|
/linux-4.1.27/drivers/input/serio/ |
D | hil_mlc.c | 277 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 …]
|
D | hp_sdc_mlc.c | 152 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()
|
D | hp_sdc.c | 309 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/ |
D | cx18-driver.c | 325 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 …]
|
D | cx18-cards.h | 114 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member
|
D | cx18-cards.c | 39 .tv = { 0x61, 0x60, I2C_CLIENT_END }, 49 .tv = { 0x61, 0x60, I2C_CLIENT_END },
|
D | cx18-i2c.c | 130 adap, type, 0, cx->card_i2c->tv); in cx18_i2c_register()
|
D | cx18-driver.h | 696 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv);
|
D | cx18-ioctl.c | 1026 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/ |
D | lustre_handles.c | 196 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/ |
D | um_vdso.c | 31 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/ |
D | rtc.c | 80 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/ |
D | bfa_port.c | 98 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()
|
D | bfa_cs.h | 37 struct timeval tv; \ 39 do_gettimeofday(&tv); \ 40 (tv.tv_sec*1000000+tv.tv_usec); \
|
D | bfa_plog.h | 39 u64 tv; /* timestamp */ member
|
D | bfa_svc.c | 310 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 …]
|
D | bfad_bsg.c | 2096 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()
|
D | bfa_ioc.c | 1811 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/ |
D | dasd_eer.c | 298 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/ |
D | cafe_ccic | 13 mplayer tv:// -tv driver=v4l2:width=640:height=480 -nosound 14 mplayer tv:// -tv driver=v4l2:width=640:height=480:outfmt=bgr16 -nosound
|
D | Zoran | 142 tv broadcast formats all aver the world.
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
D | lib-eq.c | 344 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()
|
D | router.c | 251 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/ |
D | tuner-core.c | 555 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 …]
|
D | v4l2-common.c | 399 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/ |
D | inode.c | 170 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/ |
D | libcfs_time.h | 112 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/ |
D | ip_options.c | 61 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()
|
D | tcp_probe.c | 190 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()
|
D | icmp.c | 910 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()
|
D | igmp.c | 215 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/ |
D | simcall.h | 106 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/ |
D | daemon_user.c | 128 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/ |
D | osf_sys.c | 997 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/ |
D | get_maintainer.pl | 903 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/ |
D | mpoa_caches.h | 17 struct timeval tv; member 54 struct timeval tv; member
|
D | mpoa_caches.c | 119 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()
|
D | mpoa_proc.c | 158 (now.tv_sec-in_entry->tv.tv_sec), in mpc_show() 177 (now.tv_sec-eg_entry->tv.tv_sec)), in mpc_show()
|
D | mpc.c | 1179 do_gettimeofday(&(entry->tv)); in MPOA_res_reply_rcvd()
|
/linux-4.1.27/tools/perf/ |
D | builtin-buildid-cache.c | 51 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()
|
D | builtin-kvm.c | 563 struct timeval tv; in show_timeofday() local 566 gettimeofday(&tv, NULL); in show_timeofday() 567 if (localtime_r(&tv.tv_sec, <ime)) { in show_timeofday() 569 pr_info("%s.%06ld", date, tv.tv_usec); in show_timeofday()
|
/linux-4.1.27/net/ |
D | compat.c | 217 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()
|
D | socket.c | 654 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/ |
D | mei-amt-version.c | 175 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/ |
D | Makefile | 7 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/ |
D | nosy.c | 418 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/ |
D | af_vsock.c | 1408 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/ |
D | saa7164-cards.c | 617 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/ |
D | 11n_aggr.c | 176 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/ |
D | sock.c | 384 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/ |
D | timestamping.c | 160 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()
|
D | txtimestamp.c | 109 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/ |
D | pxa3xx-gcu.c | 129 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/ |
D | sun5i-a10s-r7-tv-dongle.dts | 56 model = "R7 A10s hdmi tv-stick"; 57 compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s"; 128 label = "r7-tv-dongle:green:usr";
|
D | omap3-pandora-common.dtsi | 30 tv: connector@1 { label 31 compatible = "connector-analog-tv"; 32 label = "tv";
|
D | omap3-cm-t3x.dtsi | 62 label = "tv";
|
D | omap3-beagle-xm.dts | 139 label = "tv";
|
D | omap3-beagle.dts | 134 label = "tv";
|
D | omap3-gta04.dtsi | 88 label = "tv";
|
D | omap3-n900.dts | 116 tv: connector { label 118 label = "tv";
|
D | exynos4415.dtsi | 137 pd_tv: tv-power-domain@10024020 {
|
D | exynos4.dtsi | 104 pd_tv: tv-power-domain@10023C20 {
|
D | Makefile | 540 sun5i-a10s-r7-tv-dongle.dtb \
|
/linux-4.1.27/drivers/net/hamradio/ |
D | baycom_ser_fdx.c | 231 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/ |
D | stv0299.c | 408 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/ |
D | DSS | 200 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/ |
D | Makefile | 6 obj-$(CONFIG_DISPLAY_CONNECTOR_ANALOG_TV) += connector-analog-tv.o
|
/linux-4.1.27/fs/gfs2/ |
D | dir.c | 829 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/ |
D | Makefile | 32 obj-$(CONFIG_VIDEO_SAMSUNG_S5P_TV) += s5p-tv/
|
D | Kconfig | 119 source "drivers/media/platform/s5p-tv/Kconfig"
|
/linux-4.1.27/arch/um/os-Linux/skas/ |
D | process.c | 463 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/ |
D | os-linux.h | 35 #define I_SEC(tv) ((tv).tv_sec) argument
|
/linux-4.1.27/tools/thermal/tmon/ |
D | tmon.h | 51 struct timeval tv; member
|
D | sysfs.c | 500 gettimeofday(&trec[cur_thermal_record].tv, NULL); in update_thermal_data()
|
/linux-4.1.27/drivers/pci/ |
D | xen-pcifront.c | 120 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/ |
D | hci_sock.c | 899 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/ |
D | pal.h | 521 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/ |
D | mxl111sf.h | 83 struct tveeprom tv; member
|
D | mxl111sf.c | 920 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/ |
D | ft1000_debug.c | 415 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()
|
D | ft1000_hw.c | 622 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/ |
D | nouveau_bios.h | 151 uint8_t crt, tv, panel; member
|
D | nouveau_bios.c | 1194 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/ |
D | v4l2-common.h | 190 void v4l2_get_timestamp(struct timeval *tv);
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fence.c | 875 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/ |
D | clock.c | 233 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/ |
D | cx23885-cards.c | 1039 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/ |
D | pcm.h | 1129 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/ |
D | cx88-cards.c | 2857 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/ |
D | gdth_proc.c | 151 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()
|
D | ips.c | 996 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()
|
D | stex.c | 367 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()
|
D | gdth.c | 2841 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()
|
D | pmcraid.c | 5566 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/ |
D | faq.txt | 67 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/ |
D | Kconfig | 1 # drivers/media/platform/s5p-tv/Kconfig
|
/linux-4.1.27/net/netfilter/ |
D | nfnetlink_log.c | 541 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()
|
D | nfnetlink_queue_core.c | 470 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/ |
D | zoran_device.c | 187 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/ |
D | mcast.c | 997 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/ |
D | fimc-lite.c | 257 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()
|
D | fimc-capture.c | 186 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/ |
D | camif-capture.c | 331 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/ |
D | sx8.c | 674 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/ |
D | vivid-ctrls.c | 880 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/ |
D | dvb_frontend.c | 2462 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/ |
D | ft1000_hw.c | 909 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/ |
D | comedi_fops.c | 1218 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/ |
D | em28xx-cards.c | 2808 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/ |
D | kdb_main.c | 2489 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/ |
D | asus-laptop.txt | 204 5 = tv
|
/linux-4.1.27/Documentation/video4linux/bttv/ |
D | Cards | 332 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/ |
D | o2iblnd.c | 2998 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/ |
D | av7110.c | 356 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/ |
D | dummy_hcd.c | 772 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/ |
D | bfa_ioc.c | 1951 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/ |
D | ide.txt | 256 comments at 2.6.0-test4 time. Maciej Soltysiak <solt@dns.toxicfilms.tv>
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
D | qla_mr.c | 1815 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/ |
D | nfs4xdr.c | 243 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/ |
D | power-management.txt | 573 [2]: http://linuxplumbers.ubicast.tv/videos/usb-port-power-off-kerneluserspace-api/
|
/linux-4.1.27/ |
D | CREDITS | 1771 S: Lemnosvej 1, 3.tv 3597 E: sturner@tele-tv.com
|
D | MAINTAINERS | 1429 F: drivers/media/platform/s5p-tv/
|