/linux-4.1.27/Documentation/vDSO/ |
H A D | vdso_test.c | 33 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); main() 41 struct timeval tv; main() local 42 long ret = gtod(&tv, 0); main() 46 (long long)tv.tv_sec, (long long)tv.tv_usec); main()
|
H A D | vdso_standalone_test_x86.c | 90 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); c_main() 96 struct timeval tv; c_main() local 97 long ret = gtod(&tv, 0); c_main() 101 to_base10(buf + 31, tv.tv_sec); c_main() 102 to_base10(buf + 38, tv.tv_usec); c_main()
|
/linux-4.1.27/drivers/usb/misc/ |
H A D | trancevibrator.c | 52 struct trancevibrator *tv = usb_get_intfdata(intf); show_speed() local 54 return sprintf(buf, "%d\n", tv->speed); show_speed() 61 struct trancevibrator *tv = usb_get_intfdata(intf); set_speed() local 69 old = tv->speed; set_speed() 70 tv->speed = temp; set_speed() 72 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); set_speed() 75 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), set_speed() 78 tv->speed, /* speed value */ set_speed() 81 tv->speed = old; set_speed() 82 dev_dbg(&tv->udev->dev, "retval = %d\n", retval); set_speed()
|
/linux-4.1.27/include/uapi/linux/netfilter_ipv6/ |
H A D | ip6t_HL.h | 2 * Maciej Soltysiak <solt@dns.toxicfilms.tv>
|
H A D | ip6t_hl.h | 2 * Maciej Soltysiak <solt@dns.toxicfilms.tv>
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
H A D | divamnt.c | 91 struct timeval tv; diva_os_get_time() local 93 do_gettimeofday(&tv); diva_os_get_time() 95 if (tv.tv_sec > start_time.tv_sec) { diva_os_get_time() 96 if (start_time.tv_usec > tv.tv_usec) { diva_os_get_time() 97 tv.tv_sec--; diva_os_get_time() 98 tv.tv_usec += 1000000; diva_os_get_time() 100 *sec = (dword) (tv.tv_sec - start_time.tv_sec); diva_os_get_time() 101 *usec = (dword) (tv.tv_usec - start_time.tv_usec); diva_os_get_time() 102 } else if (tv.tv_sec == start_time.tv_sec) { diva_os_get_time() 104 if (start_time.tv_usec < tv.tv_usec) { diva_os_get_time() 105 *usec = (dword) (tv.tv_usec - start_time.tv_usec); diva_os_get_time() 110 *sec = (dword) tv.tv_sec; diva_os_get_time() 111 *usec = (dword) tv.tv_usec; diva_os_get_time()
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | time.c | 27 static void null_rtc_get_time(struct timespec *tv) null_rtc_get_time() argument 29 tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); null_rtc_get_time() 30 tv->tv_nsec = 0; null_rtc_get_time() 56 struct timespec tv; get_rtc_time() local 58 rtc_sh_get_time(&tv); get_rtc_time() 59 rtc_time_to_tm(tv.tv_sec, tm); get_rtc_time()
|
/linux-4.1.27/drivers/staging/rts5208/ |
H A D | rtsx.h | 151 struct timeval tv; get_current_time() local 156 do_gettimeofday(&tv); get_current_time() 158 timeval_buf[0] = (u8)(tv.tv_sec >> 24); get_current_time() 159 timeval_buf[1] = (u8)(tv.tv_sec >> 16); get_current_time() 160 timeval_buf[2] = (u8)(tv.tv_sec >> 8); get_current_time() 161 timeval_buf[3] = (u8)(tv.tv_sec); get_current_time() 162 timeval_buf[4] = (u8)(tv.tv_usec >> 24); get_current_time() 163 timeval_buf[5] = (u8)(tv.tv_usec >> 16); get_current_time() 164 timeval_buf[6] = (u8)(tv.tv_usec >> 8); get_current_time() 165 timeval_buf[7] = (u8)(tv.tv_usec); get_current_time()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_trans_inode.c | 71 struct timespec tv; xfs_trans_ichgtime() local 76 tv = current_fs_time(inode->i_sb); xfs_trans_ichgtime() 79 !timespec_equal(&inode->i_mtime, &tv)) { xfs_trans_ichgtime() 80 inode->i_mtime = tv; xfs_trans_ichgtime() 81 ip->i_d.di_mtime.t_sec = tv.tv_sec; xfs_trans_ichgtime() 82 ip->i_d.di_mtime.t_nsec = tv.tv_nsec; xfs_trans_ichgtime() 85 !timespec_equal(&inode->i_ctime, &tv)) { xfs_trans_ichgtime() 86 inode->i_ctime = tv; xfs_trans_ichgtime() 87 ip->i_d.di_ctime.t_sec = tv.tv_sec; xfs_trans_ichgtime() 88 ip->i_d.di_ctime.t_nsec = tv.tv_nsec; xfs_trans_ichgtime()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_tv.c | 33 /* tv standard constants */ 46 /* tv pll setting for 27 mhz ref clk */ 55 /* tv pll setting for 14 mhz ref clk */ 166 * Table of all allowed modes for tv output 393 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); radeon_restore_tv_timing_tables() 394 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); radeon_restore_tv_timing_tables() 395 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); 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]); radeon_restore_tv_timing_tables() 400 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) 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]); radeon_restore_tv_timing_tables() 406 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) radeon_restore_tv_timing_tables() 416 WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); radeon_legacy_write_tv_restarts() 417 WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); radeon_legacy_write_tv_restarts() 418 WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); radeon_legacy_write_tv_restarts() 474 h_changed = (p1 != tv_dac->tv.h_code_timing[H_TABLE_POS1] || radeon_legacy_tv_init_restarts() 475 p2 != tv_dac->tv.h_code_timing[H_TABLE_POS2]); radeon_legacy_tv_init_restarts() 477 tv_dac->tv.h_code_timing[H_TABLE_POS1] = p1; radeon_legacy_tv_init_restarts() 478 tv_dac->tv.h_code_timing[H_TABLE_POS2] = p2; radeon_legacy_tv_init_restarts() 502 tv_dac->tv.hrestart = restart % h_total; radeon_legacy_tv_init_restarts() 504 tv_dac->tv.vrestart = restart % v_total; radeon_legacy_tv_init_restarts() 506 tv_dac->tv.frestart = restart % f_total; radeon_legacy_tv_init_restarts() 509 (unsigned)tv_dac->tv.frestart, radeon_legacy_tv_init_restarts() 510 (unsigned)tv_dac->tv.vrestart, radeon_legacy_tv_init_restarts() 511 (unsigned)tv_dac->tv.hrestart); radeon_legacy_tv_init_restarts() 523 tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) | radeon_legacy_tv_init_restarts() 672 tv_dac->tv.timing_cntl = tmp; radeon_legacy_tv_mode_set() 725 tv_dac->tv.tv_uv_adr = 0xc8; radeon_legacy_tv_mode_set() 741 if ((tv_dac->tv.h_code_timing[i] = hor_timing[i]) == 0) radeon_legacy_tv_mode_set() 746 if ((tv_dac->tv.v_code_timing[i] = vert_timing[i]) == 0) radeon_legacy_tv_mode_set() 809 /* tv timings */ radeon_legacy_tv_mode_set() 814 /* tv std */ radeon_legacy_tv_mode_set() 816 WREG32(RADEON_TV_TIMING_CNTL, tv_dac->tv.timing_cntl); radeon_legacy_tv_mode_set()
|
H A D | radeon_cs.c | 167 p->relocs[i].tv.bo = &p->relocs[i].robj->tbo; radeon_cs_parser_relocs() 168 p->relocs[i].tv.shared = !r->write_domain; radeon_cs_parser_relocs() 170 radeon_cs_buckets_add(&buckets, &p->relocs[i].tv.head, radeon_cs_parser_relocs() 238 list_for_each_entry(reloc, &p->validated, tv.head) { radeon_cs_sync_rings() 243 reloc->tv.shared); radeon_cs_sync_rings() 381 struct radeon_bo_list *la = list_entry(a, struct radeon_bo_list, tv.head); cmp_size_smaller_first() 382 struct radeon_bo_list *lb = list_entry(b, struct radeon_bo_list, tv.head); cmp_size_smaller_first()
|
H A D | radeon_gem.c | 537 struct ttm_validate_buffer tv, *entry; radeon_gem_va_update_vm() local 546 tv.bo = &bo_va->bo->tbo; radeon_gem_va_update_vm() 547 tv.shared = true; radeon_gem_va_update_vm() 548 list_add(&tv.head, &list); radeon_gem_va_update_vm()
|
H A D | radeon_vm.c | 144 list[0].tv.bo = &vm->page_directory->tbo; radeon_vm_get_bos() 145 list[0].tv.shared = true; radeon_vm_get_bos() 147 list_add(&list[0].tv.head, head); radeon_vm_get_bos() 156 list[idx].tv.bo = &list[idx].robj->tbo; radeon_vm_get_bos() 157 list[idx].tv.shared = true; radeon_vm_get_bos() 159 list_add(&list[idx++].tv.head, head); radeon_vm_get_bos()
|
H A D | radeon_combios.c | 1586 /* DVI-I - tv dac, int tmds */ radeon_get_legacy_connector_info_from_table() 1624 /* TV - tv dac */ radeon_get_legacy_connector_info_from_table() 1822 /* DVI-I - tv dac, ext tmds */ radeon_get_legacy_connector_info_from_table() 1859 /* DVI-I - tv dac, int tmds */ radeon_get_legacy_connector_info_from_table() 1907 /* VGA - tv dac */ radeon_get_legacy_connector_info_from_table() 1948 /* VGA - tv dac */ radeon_get_legacy_connector_info_from_table() 2023 /* DVI - tv dac, dvo */ radeon_get_legacy_connector_info_from_table() 2046 /* DVI - tv dac, dvo */ radeon_get_legacy_connector_info_from_table() 2162 /* DVI-I - tv dac, int tmds */ radeon_get_legacy_connector_info_from_table()
|
H A D | radeon_drv.c | 227 MODULE_PARM_DESC(tv, "TV enable (0 = disable)"); radeon_unregister_atpx_handler() 228 module_param_named(tv, radeon_tv, int, 0444); radeon_unregister_atpx_handler()
|
H A D | radeon_object.c | 531 list_for_each_entry(lobj, head, tv.head) { list_for_each_entry() 578 list_for_each_entry(lobj, &duplicates, tv.head) {
|
H A D | radeon_mode.h | 398 /* legacy tv dac */ 409 struct radeon_tv_regs tv; member in struct:radeon_encoder_tv_dac 960 /* legacy tv */
|
/linux-4.1.27/arch/um/os-Linux/ |
H A D | time.c | 52 static inline long long timeval_to_ns(const struct timeval *tv) timeval_to_ns() argument 54 return ((long long) tv->tv_sec * UM_NSEC_PER_SEC) + timeval_to_ns() 55 tv->tv_usec * UM_NSEC_PER_USEC; timeval_to_ns() 76 struct timeval tv; os_nsecs() local 78 gettimeofday(&tv, NULL); os_nsecs() 79 return timeval_to_ns(&tv); os_nsecs() 139 struct timeval tv; after_sleep_interval() local 156 tv = ((struct timeval) { .tv_sec = start_usecs / UM_USEC_PER_SEC, after_sleep_interval() 158 interval = ((struct itimerval) { { 0, usec }, tv }); after_sleep_interval()
|
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/ |
H A D | ping_test.c | 95 struct timeval tv; ping_client_prep_rpc() local 113 cfs_fs_timeval(&tv); ping_client_prep_rpc() 114 req->pnr_time_sec = tv.tv_sec; ping_client_prep_rpc() 115 req->pnr_time_usec = tv.tv_usec; ping_client_prep_rpc() 127 struct timeval tv; ping_client_done_rpc() local 164 cfs_fs_timeval(&tv); ping_client_done_rpc() 166 (unsigned)((tv.tv_sec - (unsigned)reqst->pnr_time_sec) * 1000000 ping_client_done_rpc() 167 + (tv.tv_usec - reqst->pnr_time_usec))); ping_client_done_rpc()
|
H A D | brw_test.c | 137 struct timeval tv; brw_inject_one_error() local 142 do_gettimeofday(&tv); brw_inject_one_error() 144 if ((tv.tv_usec & 1) == 0) brw_inject_one_error()
|
H A D | conrpc.c | 481 struct timeval tv; lstcon_rpc_trans_interpreter() local 508 cfs_duration_usec(dur, &tv); lstcon_rpc_trans_interpreter() 512 copy_to_user(&ent->rpe_stamp, &tv, sizeof(tv)) || lstcon_rpc_trans_interpreter()
|
H A D | framework.c | 374 struct timeval tv; sfw_get_stats() local 394 sn->sn_started), &tv); sfw_get_stats() local 396 cnt->running_ms = (__u32)(tv.tv_sec * 1000 + tv.tv_usec / 1000); sfw_get_stats()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
H A D | board-rx51-video.c | 33 .name = "tv", 40 .name = "connector-analog-tv",
|
H A D | board-omap3beagle.c | 254 .name = "tv", 261 .name = "connector-analog-tv",
|
H A D | board-omap3pandora.c | 235 .name = "tv", 242 .name = "connector-analog-tv",
|
H A D | board-overo.c | 156 .name = "tv", overo_init_smsc911x() 163 .name = "connector-analog-tv",
|
H A D | board-cm-t35.c | 255 .name = "tv", 262 .name = "connector-analog-tv",
|
/linux-4.1.27/drivers/media/pci/saa7134/ |
H A 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, 247 .tv = 1, 291 .tv = 1, 297 .tv = 1, 347 .tv = 1, 369 .tv = 1, 395 .tv = 1, 401 .tv = 1, 437 .tv = 1, 442 .tv = 1, 477 .tv = 1, 509 .tv = 1, 536 .tv = 1, 542 .tv = 1, 580 .tv = 1, 595 .tv = 1, 627 .tv = 1, 660 .tv = 1, 694 .tv = 1, 712 .tv = 1, 717 .tv = 1, 731 .tv = 1, 758 .tv = 1, 786 .tv = 1, 828 .tv = 1, 845 .tv = 1, 925 .tv = 1, 951 .tv = 1, 1004 .tv = 1, 1054 .tv = 1, 1073 .tv = 1, 1101 .tv = 1, 1136 .tv = 1, 1163 .tv = 1, 1182 .tv = 1, 1204 .tv = 1, 1209 .tv = 1, 1239 .tv = 1, 1244 .tv = 1, 1275 .tv = 1, 1280 .tv = 1, 1311 .tv = 1, 1316 .tv = 1, 1365 .tv = 1, 1383 .tv = 1, 1401 .tv = 1, 1437 .tv = 1, 1472 .tv = 1, 1491 .tv = 1, 1517 .tv = 1, 1559 .tv = 1, 1589 .tv = 1, 1620 .tv = 1, 1637 .tv = 1, 1677 .tv = 1, 1714 .tv = 1, 1750 .tv = 1, 1779 .tv = 1, 1810 .tv = 1, 1815 .tv = 1, 1839 .tv = 1, 1881 .tv = 1, 1908 .tv = 1, 1940 .tv = 1, 1945 .tv = 1, 1966 .tv = 1, 2001 .tv = 1, 2054 .tv = 1, 2080 .tv = 1, 2103 .tv = 1, 2141 .tv = 1, 2183 .tv = 1, 2218 .tv = 1, 2253 .tv = 1, 2258 .tv = 1, 2292 .tv = 1, 2327 .tv = 1, 2367 .tv = 1, 2397 .tv = 1, 2439 .tv = 1, 2463 .tv = 1, 2577 .tv = 1, 2627 .tv = 1, 2650 .tv = 1, 2683 .tv = 1, 2722 .tv = 1, 2750 .tv = 1, 2775 .tv = 1, 2803 .tv = 1, 2839 .tv = 1, 2867 .tv = 1, 2938 .tv = 1, 2955 .tv = 1, 2988 .tv = 1, 3017 .tv = 1, 3057 .tv = 1, 3092 .tv = 1, 3127 .tv = 1, 3133 .tv = 1, 3173 .tv = 1, 3216 .tv = 1, 3249 .tv = 1, 3277 .tv = 1, 3306 .tv = 1, 3340 .tv = 1, 3383 .tv = 1, 3410 .tv = 1, 3443 .tv = 1, 3475 .tv = 1, 3504 .tv = 1, 3528 .tv = 1, 3533 .tv = 1, 3567 .tv = 1, 3572 .tv = 1, 3605 .tv = 1, 3640 .tv = 1, 3673 .tv = 1, 3698 .tv = 1, 3726 .tv = 1, 3751 .tv = 1, 3769 .tv = 1, 3805 .tv = 1, 3837 .tv = 1, 3870 .tv = 1, 3898 .name = name_tv, /* FIXME: analog tv untested */ 3901 .tv = 1, 3917 .tv = 1, 3951 .tv = 1, 3994 .tv = 1, 4023 .tv = 1, 4048 .tv = 1, 4078 .tv = 1, 4105 .tv = 1, 4137 .tv = 1, 4166 .tv = 1, 4190 .tv = 1, 4216 .tv = 1, 4251 .tv = 1, 4285 .tv = 1, 4316 .tv = 1, 4347 .tv = 1, 4377 .tv = 1, 4409 .tv = 1, 4437 .tv = 1, 4465 .tv = 1, 4493 .tv = 1, 4522 .tv = 1, 4551 .tv = 1, 4580 .tv = 1, 4609 .tv = 1, 4641 .tv = 1, 4678 .tv = 1, 4717 .tv = 1, 4752 .tv = 1, 4782 .tv = 1, 4788 .tv = 1 4837 .tv = 1, 4862 .tv = 1, 4890 .tv = 1, 4917 .tv = 1, 4943 .tv = 1, 4967 .tv = 1, 5014 .tv = 1, 5043 .tv = 1, 5072 .tv = 1, 5102 .tv = 1, 5130 .tv = 1, 5166 .tv = 1, 5191 .tv = 1, 5223 .tv = 1, 5262 .tv = 1, 5303 .tv = 1, 5336 .tv = 1, 5392 .tv = 1, 5421 .tv = 1, 5441 .tv = 1, 5484 .tv = 1, 5534 .tv = 1, 5561 .tv = 1, 5589 .tv = 1, 5612 .tv = 1, 5647 .tv = 1, 5686 .tv = 1, 5715 .tv = 1, 5765 .tv = 1, 5814 .tv = 1, 5846 .tv = 1, 7394 struct tveeprom tv; hauppauge_eeprom() local 7396 tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data); hauppauge_eeprom() 7399 switch (tv.model) { hauppauge_eeprom() 7415 "unknown hauppauge model #%d\n", dev->name, tv.model); hauppauge_eeprom() 7420 dev->name, tv.model); hauppauge_eeprom()
|
H A D | saa7134-tvaudio.c | 4 * tv audio decoder (fm stereo, nicam, ...) 39 MODULE_PARM_DESC(audio_debug,"enable debug messages [tv audio]"); 572 /* find the exact tv audio norm */ tvaudio_thread()
|
/linux-4.1.27/arch/mips/include/asm/mach-cobalt/ |
H A D | cobalt.h | 10 * Copyright (C) 2001, 2002, 2003 Liam Davies (ldavies@agile.tv)
|
H A D | irq.h | 10 * Copyright (C) 2001-2003 Liam Davies (ldavies@agile.tv)
|
/linux-4.1.27/tools/testing/selftests/timers/ |
H A D | leapcrash.c | 95 struct timeval tv; main() local 99 tv.tv_sec = next_leap - 2; main() 100 tv.tv_usec = 0; main() 101 if (settimeofday(&tv, NULL)) { main()
|
H A D | leap-a-day.c | 214 struct timeval tv; main() local 216 tv.tv_sec = next_leap - 10; main() 217 tv.tv_usec = 0; main() 218 settimeofday(&tv, NULL); main() 219 printf("Setting time to %s", ctime(&tv.tv_sec)); main()
|
H A D | rtctest.c | 91 struct timeval tv = {5, 0}; /* 5 second timeout on select */ main() local 97 retval = select(fd+1, &readfds, NULL, NULL, &tv); main()
|
/linux-4.1.27/arch/s390/kernel/vdso64/ |
H A D | gettimeofday.S | 27 1: ltgr %r2,%r2 /* check if tv is NULL */ 48 3: stg %r0,0(%r2) /* store tv->tv_sec */ 52 stg %r0,8(%r2) /* store tv->tv_usec */
|
/linux-4.1.27/arch/arm/vdso/ |
H A D | vgettimeofday.c | 233 register struct timeval *tv asm("r0") = _tv; gettimeofday_fallback() 240 : "r" (tv), "r" (tz), "r" (nr) gettimeofday_fallback() 246 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) __vdso_gettimeofday() argument 256 return gettimeofday_fallback(tv, tz); __vdso_gettimeofday() 258 if (tv) { __vdso_gettimeofday() 259 tv->tv_sec = ts.tv_sec; __vdso_gettimeofday() 260 tv->tv_usec = ts.tv_nsec / 1000; __vdso_gettimeofday()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
H A D | clock.c | 26 * enabled. If function call is delayed, tv must be set with the timestamp 142 mISDN_clock_update(struct mISDNclock *iclock, int samples, struct timeval *tv) mISDN_clock_update() argument 162 if (tv) { /* tv must be set, if function call is delayed */ mISDN_clock_update() 163 iclock_tv.tv_sec = tv->tv_sec; mISDN_clock_update() 164 iclock_tv.tv_usec = tv->tv_usec; mISDN_clock_update() 169 if (tv) { /* tv must be set, if function call is delayed */ mISDN_clock_update() 170 tv_now.tv_sec = tv->tv_sec; mISDN_clock_update() 171 tv_now.tv_usec = tv->tv_usec; mISDN_clock_update()
|
H A D | socket.c | 106 struct timeval tv; mISDN_sock_cmsg() local 109 skb_get_timestamp(skb, &tv); mISDN_sock_cmsg() 110 put_cmsg(msg, SOL_MISDN, MISDN_TIME_STAMP, sizeof(tv), &tv); mISDN_sock_cmsg()
|
/linux-4.1.27/arch/x86/vdso/ |
H A 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) vdso_fallback_gtod() argument 59 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); vdso_fallback_gtod() 150 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) vdso_fallback_gtod() argument 160 : "0" (__NR_gettimeofday), "g" (tv), "c" (tz) vdso_fallback_gtod() 320 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) __vdso_gettimeofday() argument 322 if (likely(tv != NULL)) { __vdso_gettimeofday() 323 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) __vdso_gettimeofday() 324 return vdso_fallback_gtod(tv, tz); __vdso_gettimeofday() 325 tv->tv_usec /= 1000; __vdso_gettimeofday()
|
/linux-4.1.27/kernel/time/ |
H A D | time.c | 84 struct timespec tv; SYSCALL_DEFINE1() local 87 if (get_user(tv.tv_sec, tptr)) SYSCALL_DEFINE1() 90 tv.tv_nsec = 0; SYSCALL_DEFINE1() 92 err = security_settime(&tv, NULL); SYSCALL_DEFINE1() 96 do_settimeofday(&tv); SYSCALL_DEFINE1() 102 SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv, SYSCALL_DEFINE2() 105 if (likely(tv != NULL)) { SYSCALL_DEFINE2() 108 if (copy_to_user(tv, &ktv, sizeof(ktv))) SYSCALL_DEFINE2() 163 int do_sys_settimeofday(const struct timespec *tv, const struct timezone *tz) do_sys_settimeofday() argument 168 if (tv && !timespec_valid(tv)) do_sys_settimeofday() 171 error = security_settime(tv, tz); do_sys_settimeofday() 180 if (!tv) do_sys_settimeofday() 184 if (tv) do_sys_settimeofday() 185 return do_settimeofday(tv); do_sys_settimeofday() 189 SYSCALL_DEFINE2(settimeofday, struct timeval __user *, tv, SYSCALL_DEFINE2() 196 if (tv) { SYSCALL_DEFINE2() 197 if (copy_from_user(&user_tv, tv, sizeof(*tv))) SYSCALL_DEFINE2() 211 return do_sys_settimeofday(tv ? &new_ts : NULL, tz ? &new_tz : NULL); SYSCALL_DEFINE2() 415 struct timeval tv; ns_to_timeval() local 417 tv.tv_sec = ts.tv_sec; ns_to_timeval() 418 tv.tv_usec = (suseconds_t) ts.tv_nsec / 1000; ns_to_timeval() 420 return tv; ns_to_timeval()
|
H A D | timekeeping.c | 888 * @tv: pointer to the timeval to be set 892 void do_gettimeofday(struct timeval *tv) do_gettimeofday() argument 897 tv->tv_sec = now.tv_sec; do_gettimeofday() 898 tv->tv_usec = now.tv_nsec/1000; do_gettimeofday() 944 * @tv: pointer to the timespec variable containing the offset
|
/linux-4.1.27/include/linux/ceph/ |
H A D | decode.h | 138 const struct ceph_timespec *tv) ceph_decode_timespec() 140 ts->tv_sec = (__kernel_time_t)le32_to_cpu(tv->tv_sec); ceph_decode_timespec() 141 ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec); ceph_decode_timespec() 143 static inline void ceph_encode_timespec(struct ceph_timespec *tv, ceph_encode_timespec() argument 146 tv->tv_sec = cpu_to_le32((u32)ts->tv_sec); ceph_encode_timespec() 147 tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec); ceph_encode_timespec() 137 ceph_decode_timespec(struct timespec *ts, const struct ceph_timespec *tv) ceph_decode_timespec() argument
|
/linux-4.1.27/arch/s390/kernel/vdso32/ |
H A D | gettimeofday.S | 28 2: ltr %r2,%r2 /* check if tv is NULL */ 67 8: st %r4,0(%r2) /* store tv->tv_sec */ 73 st %r0,4(%r2) /* store tv->tv_usec */
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
H A D | qxl_release.c | 169 struct qxl_bo_list, tv.head); qxl_release_free_list() 170 bo = to_qxl_bo(entry->tv.bo); qxl_release_free_list() 172 list_del(&entry->tv.head); qxl_release_free_list() 218 list_for_each_entry(entry, &release->bos, tv.head) { qxl_release_list_add() 219 if (entry->tv.bo == &bo->tbo) qxl_release_list_add() 228 entry->tv.bo = &bo->tbo; qxl_release_list_add() 229 entry->tv.shared = false; qxl_release_list_add() 230 list_add_tail(&entry->tv.head, &release->bos); qxl_release_list_add() 272 list_for_each_entry(entry, &release->bos, tv.head) { qxl_release_reserve_list() 273 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); qxl_release_reserve_list() 302 struct qxl_bo_list *entry = list_first_entry(&create_rel->bos, struct qxl_bo_list, tv.head); qxl_alloc_surface_release_reserved() 310 bo = qxl_bo_ref(to_qxl_bo(entry->tv.bo)); qxl_alloc_surface_release_reserved() 411 struct qxl_bo_list *entry = list_first_entry(&release->bos, struct qxl_bo_list, tv.head); qxl_release_map() 412 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); qxl_release_map() 425 struct qxl_bo_list *entry = list_first_entry(&release->bos, struct qxl_bo_list, tv.head); qxl_release_unmap() 426 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); qxl_release_unmap()
|
H A D | qxl_cmd.c | 182 struct qxl_bo_list *entry = list_first_entry(&release->bos, struct qxl_bo_list, tv.head); qxl_push_command_ring_release() 185 cmd.data = qxl_bo_physical_address(qdev, to_qxl_bo(entry->tv.bo), release->release_offset); qxl_push_command_ring_release() 195 struct qxl_bo_list *entry = list_first_entry(&release->bos, struct qxl_bo_list, tv.head); qxl_push_cursor_ring_release() 198 cmd.data = qxl_bo_physical_address(qdev, to_qxl_bo(entry->tv.bo), release->release_offset); qxl_push_cursor_ring_release()
|
/linux-4.1.27/arch/mips/cobalt/ |
H A D | pci.c | 9 * Copyright (C) 2001, 2002, 2003 by Liam Davies (ldavies@agile.tv)
|
H A D | reset.c | 9 * Copyright (C) 2001 by Liam Davies (ldavies@agile.tv)
|
H A D | setup.c | 9 * Copyright (C) 2001, 2002, 2003 by Liam Davies (ldavies@agile.tv)
|
/linux-4.1.27/fs/ |
H A D | compat_binfmt_elf.c | 61 struct timeval tv; cputime_to_compat_timeval() local 62 cputime_to_timeval(cputime, &tv); cputime_to_compat_timeval() 63 value->tv_sec = tv.tv_sec; cputime_to_compat_timeval() 64 value->tv_usec = tv.tv_usec; cputime_to_compat_timeval()
|
H A D | utimes.c | 29 struct timespec tv[2]; SYSCALL_DEFINE2() local 32 if (get_user(tv[0].tv_sec, ×->actime) || SYSCALL_DEFINE2() 33 get_user(tv[1].tv_sec, ×->modtime)) SYSCALL_DEFINE2() 35 tv[0].tv_nsec = 0; SYSCALL_DEFINE2() 36 tv[1].tv_nsec = 0; SYSCALL_DEFINE2() 38 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); SYSCALL_DEFINE2()
|
H A D | compat.c | 78 struct timespec tv[2]; COMPAT_SYSCALL_DEFINE2() local 81 if (get_user(tv[0].tv_sec, &t->actime) || COMPAT_SYSCALL_DEFINE2() 82 get_user(tv[1].tv_sec, &t->modtime)) COMPAT_SYSCALL_DEFINE2() 84 tv[0].tv_nsec = 0; COMPAT_SYSCALL_DEFINE2() 85 tv[1].tv_nsec = 0; COMPAT_SYSCALL_DEFINE2() 87 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); COMPAT_SYSCALL_DEFINE2() 92 struct timespec tv[2]; COMPAT_SYSCALL_DEFINE4() local 95 if (compat_get_timespec(&tv[0], &t[0]) || COMPAT_SYSCALL_DEFINE4() 96 compat_get_timespec(&tv[1], &t[1])) COMPAT_SYSCALL_DEFINE4() 99 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) COMPAT_SYSCALL_DEFINE4() 102 return do_utimes(dfd, filename, t ? tv : NULL, flags); COMPAT_SYSCALL_DEFINE4() 107 struct timespec tv[2]; COMPAT_SYSCALL_DEFINE3() local 110 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || COMPAT_SYSCALL_DEFINE3() 111 get_user(tv[0].tv_nsec, &t[0].tv_usec) || COMPAT_SYSCALL_DEFINE3() 112 get_user(tv[1].tv_sec, &t[1].tv_sec) || COMPAT_SYSCALL_DEFINE3() 113 get_user(tv[1].tv_nsec, &t[1].tv_usec)) COMPAT_SYSCALL_DEFINE3() 115 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || COMPAT_SYSCALL_DEFINE3() 116 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) COMPAT_SYSCALL_DEFINE3() 118 tv[0].tv_nsec *= 1000; COMPAT_SYSCALL_DEFINE3() 119 tv[1].tv_nsec *= 1000; COMPAT_SYSCALL_DEFINE3() 121 return do_utimes(dfd, filename, t ? tv : NULL, 0); COMPAT_SYSCALL_DEFINE3() 1310 struct compat_timeval tv; COMPAT_SYSCALL_DEFINE5() local 1314 if (copy_from_user(&tv, tvp, sizeof(tv))) COMPAT_SYSCALL_DEFINE5() 1319 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), COMPAT_SYSCALL_DEFINE5() 1320 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) COMPAT_SYSCALL_DEFINE5()
|
H A D | select.c | 50 static long __estimate_accuracy(struct timespec *tv) __estimate_accuracy() argument 55 if (tv->tv_sec < 0) __estimate_accuracy() 61 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) __estimate_accuracy() 64 slack = tv->tv_nsec / divfactor; __estimate_accuracy() 65 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); __estimate_accuracy() 73 long select_estimate_accuracy(struct timespec *tv) select_estimate_accuracy() argument 86 now = timespec_sub(*tv, now); select_estimate_accuracy() 626 struct timeval tv; SYSCALL_DEFINE5() local 630 if (copy_from_user(&tv, tvp, sizeof(tv))) SYSCALL_DEFINE5() 635 tv.tv_sec + (tv.tv_usec / USEC_PER_SEC), SYSCALL_DEFINE5() 636 (tv.tv_usec % USEC_PER_SEC) * NSEC_PER_USEC)) SYSCALL_DEFINE5()
|
/linux-4.1.27/arch/cris/arch-v10/kernel/ |
H A D | fasttimer.c | 115 inline void do_gettimeofday_fast(struct fasttime_t *tv) do_gettimeofday_fast() argument 117 tv->tv_jiff = jiffies; do_gettimeofday_fast() 118 tv->tv_usec = GET_JIFFIES_USEC(); do_gettimeofday_fast() 366 struct fasttime_t tv; timer1_handler() local 371 do_gettimeofday_fast(&tv); timer1_handler() 373 tv.tv_jiff, tv.tv_usec)); timer1_handler() 375 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) timer1_handler() 426 struct fasttime_t tv; timer1_handler() local 428 do_gettimeofday_fast(&tv); timer1_handler() 431 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) timer1_handler() 432 us = ((t->tv_expires.tv_jiff - tv.tv_jiff) * timer1_handler() 434 tv.tv_usec); timer1_handler() 501 struct fasttime_t tv; proc_fasttimer_show() local 504 do_gettimeofday_fast(&tv); proc_fasttimer_show() 514 (unsigned long)tv.tv_jiff, proc_fasttimer_show() 515 (unsigned long)tv.tv_usec); proc_fasttimer_show() 688 struct fasttime_t tv, tv0, tv1, tv2; fast_timer_test() local 691 do_gettimeofday_fast(&tv); fast_timer_test() 702 tv.tv_jiff, tv.tv_usec); fast_timer_test()
|
/linux-4.1.27/arch/cris/arch-v32/kernel/ |
H A D | fasttimer.c | 105 inline void do_gettimeofday_fast(struct fasttime_t *tv) do_gettimeofday_fast() argument 107 tv->tv_jiff = jiffies; do_gettimeofday_fast() 108 tv->tv_usec = GET_JIFFIES_USEC(); do_gettimeofday_fast() 358 struct fasttime_t tv; timer_trig_handler() local 361 do_gettimeofday_fast(&tv); timer_trig_handler() 363 "t: %is %06ius\n", tv.tv_jiff, tv.tv_usec)); timer_trig_handler() 365 if (fasttime_cmp(&t->tv_expires, &tv) <= 0) { timer_trig_handler() 408 struct fasttime_t tv; timer_trig_handler() local 410 do_gettimeofday_fast(&tv); timer_trig_handler() 413 if (time_after_eq(t->tv_expires.tv_jiff, tv.tv_jiff)) timer_trig_handler() 414 us = ((t->tv_expires.tv_jiff - tv.tv_jiff) * timer_trig_handler() 416 tv.tv_usec); timer_trig_handler() 475 struct fasttime_t tv; proc_fasttimer_show() local 478 do_gettimeofday_fast(&tv); proc_fasttimer_show() 488 (unsigned long)tv.tv_jiff, proc_fasttimer_show() 489 (unsigned long)tv.tv_usec); proc_fasttimer_show() 661 struct fasttime_t tv, tv0, tv1, tv2; fast_timer_test() local 664 do_gettimeofday_fast(&tv); fast_timer_test() 674 printk(KERN_DEBUG "fast_timer_test() %is %06i\n", tv.tv_jiff, tv.tv_usec); fast_timer_test()
|
/linux-4.1.27/arch/x86/um/vdso/ |
H A D | um_vdso.c | 31 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) __vdso_gettimeofday() argument 36 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : "memory"); __vdso_gettimeofday()
|
/linux-4.1.27/arch/tile/kernel/vdso/ |
H A D | vgettimeofday.c | 130 struct syscall_return_value __vdso_gettimeofday(struct timeval *tv, __vdso_gettimeofday() argument 146 if (unlikely(tv == NULL)) __vdso_gettimeofday() 149 do_realtime(vdso, (struct timespec *)tv); __vdso_gettimeofday() 150 tv->tv_usec /= 1000; __vdso_gettimeofday() 155 int gettimeofday(struct timeval *tv, struct timezone *tz)
|
/linux-4.1.27/kernel/ |
H A D | compat.c | 91 COMPAT_SYSCALL_DEFINE2(gettimeofday, struct compat_timeval __user *, tv, COMPAT_SYSCALL_DEFINE2() 94 if (tv) { COMPAT_SYSCALL_DEFINE2() 97 if (compat_put_timeval(&ktv, tv)) COMPAT_SYSCALL_DEFINE2() 108 COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv, COMPAT_SYSCALL_DEFINE2() 115 if (tv) { COMPAT_SYSCALL_DEFINE2() 116 if (compat_get_timeval(&user_tv, tv)) COMPAT_SYSCALL_DEFINE2() 126 return do_sys_settimeofday(tv ? &new_ts : NULL, tz ? &new_tz : NULL); COMPAT_SYSCALL_DEFINE2() 129 static int __compat_get_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) __compat_get_timeval() argument 132 __get_user(tv->tv_sec, &ctv->tv_sec) || __compat_get_timeval() 133 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; __compat_get_timeval() 136 static int __compat_put_timeval(const struct timeval *tv, struct compat_timeval __user *ctv) __compat_put_timeval() argument 139 __put_user(tv->tv_sec, &ctv->tv_sec) || __compat_put_timeval() 140 __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; __compat_put_timeval() 157 int compat_get_timeval(struct timeval *tv, const void __user *utv) compat_get_timeval() argument 160 return copy_from_user(tv, utv, sizeof(*tv)) ? -EFAULT : 0; compat_get_timeval() 162 return __compat_get_timeval(tv, utv); compat_get_timeval() 166 int compat_put_timeval(const struct timeval *tv, void __user *utv) compat_put_timeval() argument 169 return copy_to_user(utv, tv, sizeof(*tv)) ? -EFAULT : 0; compat_put_timeval() 171 return __compat_put_timeval(tv, utv); compat_put_timeval() 1035 struct timeval tv; COMPAT_SYSCALL_DEFINE1() local 1037 do_gettimeofday(&tv); COMPAT_SYSCALL_DEFINE1() 1038 i = tv.tv_sec; COMPAT_SYSCALL_DEFINE1() 1050 struct timespec tv; COMPAT_SYSCALL_DEFINE1() local 1053 if (get_user(tv.tv_sec, tptr)) COMPAT_SYSCALL_DEFINE1() 1056 tv.tv_nsec = 0; COMPAT_SYSCALL_DEFINE1() 1058 err = security_settime(&tv, NULL); COMPAT_SYSCALL_DEFINE1() 1062 do_settimeofday(&tv); COMPAT_SYSCALL_DEFINE1()
|
/linux-4.1.27/include/linux/ |
H A D | time.h | 113 static inline bool timeval_valid(const struct timeval *tv) timeval_valid() argument 116 if (tv->tv_sec < 0) timeval_valid() 120 if (tv->tv_usec < 0 || tv->tv_usec >= USEC_PER_SEC) timeval_valid() 203 static inline s64 timeval_to_ns(const struct timeval *tv) timeval_to_ns() argument 205 return ((s64) tv->tv_sec * NSEC_PER_SEC) + timeval_to_ns() 206 tv->tv_usec * NSEC_PER_USEC; timeval_to_ns()
|
H A 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);
|
H A D | ktime.h | 93 static inline ktime_t timeval_to_ktime(struct timeval tv) timeval_to_ktime() argument 95 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); timeval_to_ktime()
|
H A D | poll.h | 99 extern long select_estimate_accuracy(struct timespec *tv);
|
H A 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,
|
H A D | plist.h | 13 * Oleg Nesterov <oleg@tv-sign.ru>
|
/linux-4.1.27/drivers/media/rc/keymaps/ |
H A D | rc-medion-x10-or2x.c | 44 { 0x18, KEY_PVR }, /* record symbol inside a tv symbol */ 46 { 0x31, KEY_EPG }, /* a tv schedule symbol */ 47 { 0x1c, KEY_TV }, /* play symbol inside a tv symbol */
|
H A D | rc-asus-pc39.c | 46 { 0x081e, KEY_TV }, /* tv */
|
H A D | rc-asus-ps3-100.c | 18 { 0x081e, KEY_TV }, /* tv */
|
H A D | rc-ati-tv-wonder-hd-600.c | 1 /* ati-tv-wonder-hd-600.h - Keytable for ati_tv_wonder_hd_600 Remote Controller
|
H A D | rc-dntv-live-dvb-t.c | 32 { 0x0b, KEY_TUNER }, /* tv/fm */
|
H A D | rc-dntv-live-dvbt-pro.c | 22 { 0x55, KEY_TV }, /* live tv */
|
H A D | rc-kworld-pc150u.c | 6 * (based on kworld-plus-tv-analog.c by
|
H A D | rc-pctv-sedna.c | 17 http://www.sednacomputer.com/photo/cardbus-tv.jpg
|
H A D | rc-videomate-tv-pvr.c | 1 /* videomate-tv-pvr.h - Keytable for videomate_tv_pvr Remote Controller
|
H A D | rc-encore-enltv.c | 73 { 0x4c, KEY_FAVORITES }, /* tv wall */
|
H A D | rc-kworld-plus-tv-analog.c | 1 /* kworld-plus-tv-analog.h - Keytable for kworld_plus_tv_analog Remote Controller
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-tcpip.c | 258 struct timeval tv; libcfs_sock_write() local 275 tv = (struct timeval) { libcfs_sock_write() 280 (char *)&tv, sizeof(tv)); libcfs_sock_write() 283 (long)tv.tv_sec, (int)tv.tv_usec, rc); libcfs_sock_write() 320 struct timeval tv; libcfs_sock_read() local 335 tv = (struct timeval) { libcfs_sock_read() 340 (char *)&tv, sizeof(tv)); libcfs_sock_read() 343 (long)tv.tv_sec, (int)tv.tv_usec, rc); libcfs_sock_read()
|
H A D | linux-tracefile.c | 197 struct timeval tv; cfs_set_ptldebug_header() local 199 do_gettimeofday(&tv); cfs_set_ptldebug_header() 205 header->ph_sec = (__u32)tv.tv_sec; cfs_set_ptldebug_header() 206 header->ph_usec = tv.tv_usec; cfs_set_ptldebug_header()
|
/linux-4.1.27/drivers/staging/media/lirc/ |
H A D | lirc_parallel.c | 147 struct timeval tv, now; init_lirc_timer() local 151 do_gettimeofday(&tv); init_lirc_timer() 152 tv.tv_sec++; /* wait max. 1 sec. */ init_lirc_timer() 160 } while (count < 1000 && (now.tv_sec < tv.tv_sec init_lirc_timer() 161 || (now.tv_sec == tv.tv_sec init_lirc_timer() 162 && now.tv_usec < tv.tv_usec))); init_lirc_timer() 164 timeelapsed = (now.tv_sec + 1 - tv.tv_sec)*1000000 init_lirc_timer() 165 + (now.tv_usec - tv.tv_usec); init_lirc_timer() 223 struct timeval tv; lirc_lirc_irq_handler() local 247 do_gettimeofday(&tv); lirc_lirc_irq_handler() 249 signal = tv.tv_sec - lasttv.tv_sec; lirc_lirc_irq_handler() 255 tv.tv_usec - lasttv.tv_usec + lirc_lirc_irq_handler()
|
H A D | lirc_serial.c | 609 struct timeval tv; lirc_irq_handler() local 632 do_gettimeofday(&tv); lirc_irq_handler() 663 tv.tv_sec, lasttv.tv_sec, lirc_irq_handler() 664 (unsigned long)tv.tv_usec, lirc_irq_handler() 669 deltv = tv.tv_sec-lasttv.tv_sec; lirc_irq_handler() 670 if (tv.tv_sec < lasttv.tv_sec || lirc_irq_handler() 671 (tv.tv_sec == lasttv.tv_sec && lirc_irq_handler() 672 tv.tv_usec < lasttv.tv_usec)) { lirc_irq_handler() 676 tv.tv_sec, lasttv.tv_sec, lirc_irq_handler() 677 (unsigned long)tv.tv_usec, lirc_irq_handler() 686 tv.tv_sec, lasttv.tv_sec, lirc_irq_handler() 687 (unsigned long)tv.tv_usec, lirc_irq_handler() 697 tv.tv_usec - lirc_irq_handler() 700 lasttv = tv; lirc_irq_handler()
|
H A D | lirc_sasem.c | 570 struct timeval tv; incoming_packet() local 587 do_gettimeofday(&tv); incoming_packet() 588 ms = (tv.tv_sec - context->presstime.tv_sec) * 1000 + incoming_packet() 589 (tv.tv_usec - context->presstime.tv_usec) / 1000; incoming_packet() 605 context->presstime.tv_sec = tv.tv_sec; incoming_packet() 606 context->presstime.tv_usec = tv.tv_usec; incoming_packet() 616 context->presstime.tv_sec = tv.tv_sec; incoming_packet() 617 context->presstime.tv_usec = tv.tv_usec; incoming_packet()
|
/linux-4.1.27/arch/sh/boards/mach-sh03/ |
H A D | rtc.c | 80 void sh03_rtc_gettimeofday(struct timespec *tv) sh03_rtc_gettimeofday() argument 83 tv->tv_sec = get_cmos_time(); sh03_rtc_gettimeofday() 84 tv->tv_nsec = 0; sh03_rtc_gettimeofday()
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
H A D | regs-sdo.h | 1 /* drivers/media/platform/s5p-tv/regs-sdo.h
|
H A D | mixer_drv.c | 508 pr_err("s5p-tv: registration of MIXER driver failed\n"); mxr_init()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | super25.c | 94 struct timeval tv; init_lustre_lite() local 153 do_gettimeofday(&tv); init_lustre_lite() 154 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); init_lustre_lite()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | lustre_handles.c | 196 struct timeval tv; class_handle_init() local 214 do_gettimeofday(&tv); class_handle_init() 215 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); class_handle_init()
|
/linux-4.1.27/drivers/input/misc/ |
H A D | hp_sdc_rtc.c | 436 struct timeval tv; hp_sdc_rtc_proc_show() local 452 if (hp_sdc_rtc_read_rt(&tv)) { hp_sdc_rtc_proc_show() 456 tv.tv_sec, (int)tv.tv_usec/1000); hp_sdc_rtc_proc_show() 459 if (hp_sdc_rtc_read_fhs(&tv)) { hp_sdc_rtc_proc_show() 463 tv.tv_sec, (int)tv.tv_usec/1000); hp_sdc_rtc_proc_show() 466 if (hp_sdc_rtc_read_mt(&tv)) { hp_sdc_rtc_proc_show() 470 tv.tv_sec, (int)tv.tv_usec/1000); hp_sdc_rtc_proc_show() 473 if (hp_sdc_rtc_read_dt(&tv)) { hp_sdc_rtc_proc_show() 477 tv.tv_sec, (int)tv.tv_usec/1000); hp_sdc_rtc_proc_show() 480 if (hp_sdc_rtc_read_ct(&tv)) { hp_sdc_rtc_proc_show() 484 tv.tv_sec, (int)tv.tv_usec/1000); hp_sdc_rtc_proc_show()
|
H A D | dm355evm_keys.c | 78 { KE_KEY, 0x30ec, { KEY_MODE } }, /* "tv/vcr/..." */
|
/linux-4.1.27/include/linux/raid/ |
H A D | pq.h | 171 struct timeval tv; raid6_jiffies() local 172 gettimeofday(&tv, NULL); raid6_jiffies() 173 return tv.tv_sec*1000 + tv.tv_usec/1000; raid6_jiffies()
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
H A D | bttv-input.c | 197 struct timeval tv; bttv_rc5_timer_end() local 202 do_gettimeofday(&tv); bttv_rc5_timer_end() 205 if (tv.tv_sec - ir->base_time.tv_sec > 1) { bttv_rc5_timer_end() 208 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) + bttv_rc5_timer_end() 209 tv.tv_usec - ir->base_time.tv_usec; bttv_rc5_timer_end() 252 struct timeval tv; bttv_rc5_irq() local 262 do_gettimeofday(&tv); bttv_rc5_irq() 265 if (tv.tv_sec - ir->base_time.tv_sec > 1) { bttv_rc5_irq() 268 gap = 1000000 * (tv.tv_sec - ir->base_time.tv_sec) + bttv_rc5_irq() 269 tv.tv_usec - ir->base_time.tv_usec; bttv_rc5_irq() 292 ir->base_time = tv; bttv_rc5_irq()
|
H A D | bttv-cards.c | 353 /* array with description for bt848 / bt878 tv/grabber cards */ 841 /* Audio Routing for "WinFast 2000 XP" (no tv stereo !) 849 Note: There exists another variant "Winfast 2000" with tv stereo !? 3721 struct tveeprom tv; hauppauge_eeprom() local 3723 tveeprom_hauppauge_analog(&btv->i2c_client, &tv, eeprom_data); hauppauge_eeprom() 3724 btv->tuner_type = tv.tuner_type; hauppauge_eeprom() 3725 btv->has_radio = tv.has_radio; hauppauge_eeprom() 3728 btv->c.nr, tv.model); hauppauge_eeprom() 3734 if(tv.model == 64900) { hauppauge_eeprom() 3743 if (tv.model == 61334) hauppauge_eeprom()
|
/linux-4.1.27/arch/xtensa/platforms/iss/include/platform/ |
H A D | simcall.h | 106 struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; simc_poll() local 108 return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv); simc_poll()
|
/linux-4.1.27/net/atm/ |
H A D | mpoa_caches.h | 17 struct timeval tv; member in struct:in_cache_entry 54 struct timeval tv; member in struct:eg_cache_entry
|
H A D | mpoa_caches.c | 119 do_gettimeofday(&(entry->tv)); in_cache_add_entry() 238 if ((now.tv_sec - entry->tv.tv_sec) clear_count_and_expired() 482 do_gettimeofday(&(entry->tv)); eg_cache_add_entry() 497 do_gettimeofday(&(entry->tv)); update_eg_cache_entry() 514 if ((now.tv_sec - entry->tv.tv_sec) clear_expired()
|
H A D | mpoa_proc.c | 158 (now.tv_sec-in_entry->tv.tv_sec), mpc_show() 177 (now.tv_sec-eg_entry->tv.tv_sec)), mpc_show()
|
/linux-4.1.27/net/netfilter/ |
H A D | xt_hl.c | 6 * (C) 2001-2002 Maciej Soltysiak <solt@dns.toxicfilms.tv> 22 MODULE_AUTHOR("Maciej Soltysiak <solt@dns.toxicfilms.tv>");
|
H A D | xt_HL.c | 6 * Maciej Soltysiak <solt@dns.toxicfilms.tv> 24 MODULE_AUTHOR("Maciej Soltysiak <solt@dns.toxicfilms.tv>");
|
H A D | nfnetlink_log.c | 541 struct timeval tv = ktime_to_timeval(skb->tstamp); __build_packet_message() local 542 ts.sec = cpu_to_be64(tv.tv_sec); __build_packet_message() 543 ts.usec = cpu_to_be64(tv.tv_usec); __build_packet_message()
|
H A D | nfnetlink_queue_core.c | 470 struct timeval tv = ktime_to_timeval(entskb->tstamp); nfqnl_build_packet_message() local 471 ts.sec = cpu_to_be64(tv.tv_sec); nfqnl_build_packet_message() 472 ts.usec = cpu_to_be64(tv.tv_usec); nfqnl_build_packet_message()
|
/linux-4.1.27/arch/powerpc/boot/ |
H A D | rs6000.h | 181 char x_tvndx[2]; /* tv index */ 199 char x_tvfill[4]; /* tv fill value */ 200 char x_tvlen[2]; /* length of .tv */ 201 char x_tvran[2][2]; /* tv range */ 202 } x_tv; /* info about .tv section (in auxent of symbol .tv)) */
|
/linux-4.1.27/drivers/media/usb/cx231xx/ |
H A D | cx231xx-pcb-cfg.c | 37 SOURCE_TS_BDA, /* ts1_source, digital tv only */ 108 SOURCE_TS_BDA, /* ts1_source, digital tv only */ 176 MOD_ANALOG | MOD_DIF | MOD_EXTERNAL, /* mode ,analog tv only */ 246 /* mode ,analog tv and digital path */ 315 /* mode ,analog tv and digital path */ 385 /* mode ,analog tv AND DIGITAL path */ 454 MOD_DIGITAL, /* mode ,analog tv AND DIGITAL path */ 523 MOD_ANALOG, /* mode ,analog tv AND DIGITAL path */ 589 /* mode ,analog tv AND DIGITAL path */
|
/linux-4.1.27/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_core.c | 79 static void peak_usb_add_us(struct timeval *tv, u32 delta_us) peak_usb_add_us() argument 86 tv->tv_usec += delta_us; peak_usb_add_us() 87 if (tv->tv_usec >= 1000000) { peak_usb_add_us() 88 tv->tv_usec -= 1000000; peak_usb_add_us() 91 tv->tv_sec += delta_s; peak_usb_add_us() 148 struct timeval *tv) peak_usb_get_ts_tv() 163 *tv = time_ref->tv_host_0; peak_usb_get_ts_tv() 164 peak_usb_add_us(tv, (u32)delta_us); peak_usb_get_ts_tv() 166 *tv = ktime_to_timeval(ktime_get()); peak_usb_get_ts_tv() 177 struct timeval tv; peak_usb_netif_rx() local 179 peak_usb_get_ts_tv(time_ref, ts_low, &tv); peak_usb_netif_rx() 180 hwts->hwtstamp = timeval_to_ktime(tv); peak_usb_netif_rx() 147 peak_usb_get_ts_tv(struct peak_time_ref *time_ref, u32 ts, struct timeval *tv) peak_usb_get_ts_tv() argument
|
H A D | pcan_usb.c | 408 struct timeval tv; pcan_usb_decode_error() local 525 peak_usb_get_ts_tv(&mc->pdev->time_ref, mc->ts16, &tv); pcan_usb_decode_error() 526 hwts->hwtstamp = timeval_to_ktime(tv); pcan_usb_decode_error() 610 struct timeval tv; pcan_usb_decode_data() local 658 peak_usb_get_ts_tv(&mc->pdev->time_ref, mc->ts16, &tv); pcan_usb_decode_data() 660 hwts->hwtstamp = timeval_to_ktime(tv); pcan_usb_decode_data()
|
H A D | pcan_usb_core.h | 151 struct timeval *tv);
|
H A D | pcan_usb_pro.c | 534 struct timeval tv; pcan_usb_pro_handle_canmsg() local 552 peak_usb_get_ts_tv(&usb_if->time_ref, le32_to_cpu(rx->ts32), &tv); pcan_usb_pro_handle_canmsg() 554 hwts->hwtstamp = timeval_to_ktime(tv); pcan_usb_pro_handle_canmsg() 574 struct timeval tv; pcan_usb_pro_handle_error() local 670 peak_usb_get_ts_tv(&usb_if->time_ref, le32_to_cpu(er->ts32), &tv); pcan_usb_pro_handle_error() 672 hwts->hwtstamp = timeval_to_ktime(tv); pcan_usb_pro_handle_error()
|
/linux-4.1.27/arch/um/drivers/ |
H A D | daemon_user.c | 128 struct timeval tv; daemon_user_init() local 140 gettimeofday(&tv, NULL); daemon_user_init() 141 name.usecs = tv.tv_usec; daemon_user_init()
|
/linux-4.1.27/drivers/media/usb/au0828/ |
H A D | au0828-cards.c | 158 struct tveeprom tv; hauppauge_eeprom() local 160 tveeprom_hauppauge_analog(&dev->i2c_client, &tv, eeprom_data); hauppauge_eeprom() 161 dev->board.tuner_type = tv.tuner_type; hauppauge_eeprom() 164 switch (tv.model) { hauppauge_eeprom() 182 __func__, tv.model); hauppauge_eeprom() 187 __func__, tv.model); hauppauge_eeprom()
|
/linux-4.1.27/drivers/input/serio/ |
H A D | hp_sdc_mlc.c | 152 struct timeval tv; hp_sdc_mlc_in() local 163 do_gettimeofday(&tv); hp_sdc_mlc_in() 164 tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - mlc->instart.tv_sec); hp_sdc_mlc_in() 165 if (tv.tv_usec - mlc->instart.tv_usec > mlc->intimeout) { hp_sdc_mlc_in() 167 tv.tv_usec - mlc->instart.tv_usec, hp_sdc_mlc_in()
|
H A D | hil_mlc.c | 277 struct timeval tv; hilse_init_lcv() local 279 do_gettimeofday(&tv); hilse_init_lcv() 281 if (mlc->lcv && (tv.tv_sec - mlc->lcv_tv.tv_sec) < 5) hilse_init_lcv() 284 mlc->lcv_tv = tv; hilse_init_lcv() 734 struct timeval tv; hilse_donode() local 739 do_gettimeofday(&tv); hilse_donode() 740 tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - mlc->instart.tv_sec); hilse_donode() 741 tv.tv_usec -= mlc->instart.tv_usec; hilse_donode() 742 if (tv.tv_usec >= mlc->intimeout) goto sched; hilse_donode() 743 tv.tv_usec = (mlc->intimeout - tv.tv_usec) * HZ / USEC_PER_SEC; hilse_donode() 744 if (!tv.tv_usec) goto sched; hilse_donode() 745 mod_timer(&hil_mlcs_kicker, jiffies + tv.tv_usec); hilse_donode()
|
H A D | hp_sdc.c | 309 struct timeval tv; hp_sdc_tasklet() local 311 do_gettimeofday(&tv); hp_sdc_tasklet() 312 if (tv.tv_sec > hp_sdc.rtv.tv_sec) hp_sdc_tasklet() 313 tv.tv_usec += USEC_PER_SEC; hp_sdc_tasklet() 315 if (tv.tv_usec - hp_sdc.rtv.tv_usec > HP_SDC_MAX_REG_DELAY) { hp_sdc_tasklet() 325 (int)(tv.tv_usec - hp_sdc.rtv.tv_usec)); hp_sdc_tasklet()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | coff.h | 292 char x_tvndx[2]; /* tv index */ 322 char x_tvfill[4]; /* tv fill value */ 323 char x_tvlen[2]; /* length of .tv */ 324 char x_tvran[2][2]; /* tv range */ 325 } x_tv; /* info about .tv section (in auxent of symbol .tv)) */
|
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/ |
H A D | libcfs_time.h | 112 static inline void cfs_fs_timeval(struct timeval *tv) cfs_fs_timeval() argument 117 cfs_fs_time_usec(&time, tv); cfs_fs_timeval()
|
/linux-4.1.27/arch/arm/mach-s3c24xx/ |
H A D | mach-nexcoder.c | 4 * Guillaume GOURAT <guillaume.gourat@nexvision.tv> 156 /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */
|
H A D | mach-otom.c | 119 /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */
|
/linux-4.1.27/net/ipv4/ |
H A D | ip_options.c | 61 struct timespec tv; ip_options_build() local 63 getnstimeofday(&tv); ip_options_build() 64 midtime = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC); ip_options_build() 418 struct timespec tv; ip_options_compile() local 420 getnstimeofday(&tv); ip_options_compile() 421 midtime = (tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC; ip_options_compile()
|
H A D | tcp_probe.c | 190 struct timespec tv tcpprobe_sprint() local 195 (unsigned long)tv.tv_sec, tcpprobe_sprint() 196 (unsigned long)tv.tv_nsec, tcpprobe_sprint()
|
H A D | icmp.c | 910 struct timespec tv; icmp_timestamp() local 921 getnstimeofday(&tv); icmp_timestamp() 922 icmp_param.data.times[1] = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + icmp_timestamp() 923 tv.tv_nsec / NSEC_PER_MSEC); icmp_timestamp()
|
H A D | igmp.c | 215 int tv = prandom_u32() % max_delay; igmp_start_timer() local 218 if (!mod_timer(&im->timer, jiffies+tv+2)) igmp_start_timer() 224 int tv = prandom_u32() % in_dev->mr_maxdelay; igmp_gq_start_timer() local 227 if (!mod_timer(&in_dev->mr_gq_timer, jiffies+tv+2)) igmp_gq_start_timer() 233 int tv = prandom_u32() % delay; igmp_ifc_start_timer() local 235 if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2)) igmp_ifc_start_timer()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
H A D | cx18-driver.c | 325 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) cx18_read_eeprom() argument 330 memset(tv, 0, sizeof(*tv)); cx18_read_eeprom() 347 tveeprom_hauppauge_analog(c, tv, eedata); cx18_read_eeprom() 351 tv->model = 0x718; cx18_read_eeprom() 357 tv->model = 0xffffffff; cx18_read_eeprom() 368 struct tveeprom tv; cx18_process_eeprom() local 370 cx18_read_eeprom(cx, &tv); cx18_process_eeprom() 377 switch (tv.model) { cx18_process_eeprom() 409 "(cardtype=1)\n", tv.model); cx18_process_eeprom() 420 if (tv.tuner_type == TUNER_ABSENT) cx18_process_eeprom() 424 cx->options.tuner = tv.tuner_type; cx18_process_eeprom() 426 cx->options.radio = (tv.has_radio != 0); cx18_process_eeprom() 438 if ((tv.tuner_formats & TVEEPROM_TUNER_FORMAT_ALL) cx18_process_eeprom() 442 } else if (tv.tuner_formats & V4L2_STD_PAL) { cx18_process_eeprom() 445 } else if (tv.tuner_formats & V4L2_STD_NTSC) { cx18_process_eeprom() 448 } else if (tv.tuner_formats & V4L2_STD_SECAM) { cx18_process_eeprom()
|
H A D | cx18-cards.h | 114 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member in struct:cx18_card_tuner_i2c
|
H A D | cx18-cards.c | 39 .tv = { 0x61, 0x60, I2C_CLIENT_END }, 49 .tv = { 0x61, 0x60, I2C_CLIENT_END },
|
H A D | cx18-i2c.c | 130 adap, type, 0, cx->card_i2c->tv); cx18_i2c_register()
|
/linux-4.1.27/drivers/media/v4l2-core/ |
H A D | tuner-core.c | 2 * i2c tv tuner chip device driver 545 * @tv: pointer to be filled if the adapter is TV 555 struct tuner **radio, struct tuner **tv) tuner_lookup() 560 *tv = NULL; tuner_lookup() 575 else if (*tv == NULL && pos->type != TUNER_TDA9887 && tuner_lookup() 577 *tv = pos; tuner_lookup() 601 struct tuner *tv; tuner_probe() local 639 tuner_lookup(t->i2c->adapter, &radio, &tv); tuner_probe() 640 if (tv) tuner_probe() 641 tv->mode_mask &= ~T_RADIO; tuner_probe() 670 tuner_lookup(t->i2c->adapter, &radio, &tv); tuner_probe() 671 if (tv) tuner_probe() 672 tv->mode_mask &= ~T_RADIO; tuner_probe() 687 tuner_lookup(t->i2c->adapter, &radio, &tv); tuner_probe() 688 if (tv == NULL) { tuner_probe() 853 tuner_warn("Tuner has no way to set tv freq\n"); set_tv_freq() 868 tuner_dbg("tv freq set to %d.%02d\n", set_tv_freq() 554 tuner_lookup(struct i2c_adapter *adap, struct tuner **radio, struct tuner **tv) tuner_lookup() argument
|
H A D | v4l2-common.c | 399 void v4l2_get_timestamp(struct timeval *tv) v4l2_get_timestamp() argument 404 tv->tv_sec = ts.tv_sec; v4l2_get_timestamp() 405 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; v4l2_get_timestamp()
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfa_cs.h | 37 struct timeval tv; \ 39 do_gettimeofday(&tv); \ 40 (tv.tv_sec*1000000+tv.tv_usec); \
|
H A D | bfa_port.c | 98 struct timeval tv; bfa_port_get_stats_isr() local 104 do_gettimeofday(&tv); bfa_port_get_stats_isr() 105 port->stats->fc.secs_reset = tv.tv_sec - port->stats_reset_time; bfa_port_get_stats_isr() 126 struct timeval tv; bfa_port_clear_stats_isr() local 134 do_gettimeofday(&tv); bfa_port_clear_stats_isr() 135 port->stats_reset_time = tv.tv_sec; bfa_port_clear_stats_isr() 473 struct timeval tv; bfa_port_attach() local 496 do_gettimeofday(&tv); bfa_port_attach() 497 port->stats_reset_time = tv.tv_sec; bfa_port_attach()
|
H A D | bfa_plog.h | 39 u64 tv; /* timestamp */ member in struct:bfa_plog_rec_s
|
H A D | bfa_svc.c | 310 struct timeval tv; bfa_get_log_time() local 311 do_gettimeofday(&tv); bfa_get_log_time() 314 system_time = tv.tv_sec; bfa_get_log_time() 338 pl_recp->tv = bfa_get_log_time(); bfa_plog_add() 3095 struct timeval tv; bfa_fcport_attach() local 3108 do_gettimeofday(&tv); bfa_fcport_attach() 3109 fcport->stats_reset_time = tv.tv_sec; bfa_fcport_attach() 3361 struct timeval tv; __bfa_cb_fcport_stats_get() local 3363 do_gettimeofday(&tv); __bfa_cb_fcport_stats_get() 3378 tv.tv_sec - fcport->stats_reset_time; __bfa_cb_fcport_stats_get() 3439 struct timeval tv; __bfa_cb_fcport_stats_clr() local 3444 do_gettimeofday(&tv); __bfa_cb_fcport_stats_clr() 3445 fcport->stats_reset_time = tv.tv_sec; __bfa_cb_fcport_stats_clr()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
H A D | regs-vp.h | 3 * Cloned from drivers/media/video/s5p-tv/regs-vp.h
|
H A D | regs-mixer.h | 3 * Cloned from drivers/media/video/s5p-tv/regs-mixer.h
|
H A D | exynos_drm_drv.h | 111 * - this structure is common to analog tv, digital tv and lcd panel.
|
/linux-4.1.27/include/media/ |
H A D | rc-map.h | 114 #define RC_MAP_ATI_TV_WONDER_HD_600 "rc-ati-tv-wonder-hd-600" 161 #define RC_MAP_KWORLD_PLUS_TV_ANALOG "rc-kworld-plus-tv-analog" 190 #define RC_MAP_RC5_TV "rc-rc5-tv" 210 #define RC_MAP_VIDEOMATE_TV_PVR "rc-videomate-tv-pvr"
|
H A D | tuner.h | 145 /* tv card specific */
|
H A D | v4l2-common.h | 190 void v4l2_get_timestamp(struct timeval *tv);
|
H A D | v4l2-dev.h | 130 v4l2_std_id tvnorms; /* Supported tv norms */
|
/linux-4.1.27/arch/sh/boards/mach-dreamcast/ |
H A D | rtc.c | 55 * Adjusts the given @tv to the AICA Epoch and sets the RTC seconds counter.
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-buildid-cache.c | 51 struct timeval tv; build_id_cache__kcore_dir() local 55 if (gettimeofday(&tv, NULL) || !localtime_r(&tv.tv_sec, &tm)) build_id_cache__kcore_dir() 61 scnprintf(dir, sz, "%s%02u", dt, (unsigned)tv.tv_usec / 10000); build_id_cache__kcore_dir()
|
H A D | builtin-kvm.c | 563 struct timeval tv; show_timeofday() local 566 gettimeofday(&tv, NULL); show_timeofday() 567 if (localtime_r(&tv.tv_sec, <ime)) { show_timeofday() 569 pr_info("%s.%06ld", date, tv.tv_usec); show_timeofday()
|
/linux-4.1.27/net/ |
H A D | compat.c | 217 struct timeval *tv = (struct timeval *)data; put_cmsg_compat() local 218 ctv.tv_sec = tv->tv_sec; put_cmsg_compat() 219 ctv.tv_usec = tv->tv_usec; put_cmsg_compat() 434 struct timeval tv; compat_sock_get_timestamp() local 443 tv = ktime_to_timeval(sk->sk_stamp); compat_sock_get_timestamp() 444 if (tv.tv_sec == -1) compat_sock_get_timestamp() 446 if (tv.tv_sec == 0) { compat_sock_get_timestamp() 448 tv = ktime_to_timeval(sk->sk_stamp); compat_sock_get_timestamp() 451 if (put_user(tv.tv_sec, &ctv->tv_sec) || compat_sock_get_timestamp() 452 put_user(tv.tv_usec, &ctv->tv_usec)) compat_sock_get_timestamp()
|
/linux-4.1.27/fs/adfs/ |
H A D | inode.c | 170 adfs_adfs2unix_time(struct timespec *tv, struct inode *inode) adfs_adfs2unix_time() argument 198 *tv = ns_to_timespec(nsec); adfs_adfs2unix_time() 202 *tv = CURRENT_TIME; adfs_adfs2unix_time() 206 tv->tv_sec = tv->tv_nsec = 0; adfs_adfs2unix_time()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-driver.c | 405 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) ivtv_read_eeprom() argument 411 tveeprom_hauppauge_analog(&itv->i2c_client, tv, eedata); ivtv_read_eeprom() 416 struct tveeprom tv; ivtv_process_eeprom() local 419 ivtv_read_eeprom(itv, &tv); ivtv_process_eeprom() 423 switch (tv.model) { ivtv_process_eeprom() 446 IVTV_ERR("Unknown model %d, defaulting to PVR-150\n", tv.model); ivtv_process_eeprom() 451 switch (tv.model) { ivtv_process_eeprom() 480 if (tv.model / 1000 == 23) { ivtv_process_eeprom() 484 .tv = { 0x61, I2C_CLIENT_END }, ivtv_process_eeprom() 496 tv.has_radio = 0; ivtv_process_eeprom() 502 switch (tv.tuner_hauppauge_model) { ivtv_process_eeprom() 511 if (tv.tuner_type == TUNER_ABSENT) ivtv_process_eeprom() 515 itv->options.tuner = tv.tuner_type; ivtv_process_eeprom() 517 itv->options.radio = (tv.has_radio != 0); ivtv_process_eeprom() 519 if (itv->options.newi2c == -1 && tv.has_ir) { ivtv_process_eeprom() 520 itv->options.newi2c = (tv.has_ir & 4) ? 1 : 0; ivtv_process_eeprom() 533 if (tv.tuner_formats & V4L2_STD_PAL) { ivtv_process_eeprom() 536 } else if (tv.tuner_formats & V4L2_STD_NTSC) { ivtv_process_eeprom() 539 } else if (tv.tuner_formats & V4L2_STD_SECAM) { ivtv_process_eeprom()
|
H A D | ivtv-cards.h | 26 #define IVTV_CARD_PVR_350 1 /* encoder, decoder, tv-out */ 32 cx23415 based, but does not have tv-out */ 264 unsigned short tv[4]; /* tv tuner i2c addresses to probe */ member in struct:ivtv_card_tuner_i2c
|
H A D | ivtv-cards.c | 49 .tv = { 0x61, 0x60, I2C_CLIENT_END }, 56 .tv = { 0x61, I2C_CLIENT_END }, 63 .tv = { 0x4b, I2C_CLIENT_END },
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | osf_sys.c | 997 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, SYSCALL_DEFINE2() 1000 if (tv) { SYSCALL_DEFINE2() 1003 if (put_tv32(tv, &ktv)) SYSCALL_DEFINE2() 1013 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, SYSCALL_DEFINE2() 1019 if (tv) { SYSCALL_DEFINE2() 1020 if (get_tv32((struct timeval *)&kts, tv)) SYSCALL_DEFINE2() 1029 return do_sys_settimeofday(tv ? &kts : NULL, tz ? &ktz : NULL); SYSCALL_DEFINE2() 1070 struct timespec tv[2]; SYSCALL_DEFINE2() local 1082 tv[0].tv_sec = ktvs[0].tv_sec; SYSCALL_DEFINE2() 1083 tv[0].tv_nsec = 1000 * ktvs[0].tv_usec; SYSCALL_DEFINE2() 1084 tv[1].tv_sec = ktvs[1].tv_sec; SYSCALL_DEFINE2() 1085 tv[1].tv_nsec = 1000 * ktvs[1].tv_usec; SYSCALL_DEFINE2() 1088 return do_utimes(AT_FDCWD, filename, tvs ? tv : NULL, 0); SYSCALL_DEFINE2()
|
/linux-4.1.27/drivers/s390/block/ |
H A D | dasd_eer.c | 298 struct timeval tv; dasd_eer_write_standard_trigger() local 312 do_gettimeofday(&tv); dasd_eer_write_standard_trigger() 313 header.tv_sec = tv.tv_sec; dasd_eer_write_standard_trigger() 314 header.tv_usec = tv.tv_usec; dasd_eer_write_standard_trigger() 342 struct timeval tv; dasd_eer_write_snss_trigger() local 355 do_gettimeofday(&tv); dasd_eer_write_snss_trigger() 356 header.tv_sec = tv.tv_sec; dasd_eer_write_snss_trigger() 357 header.tv_usec = tv.tv_usec; dasd_eer_write_snss_trigger()
|
/linux-4.1.27/fs/jffs2/ |
H A D | os-linux.h | 35 #define I_SEC(tv) ((tv).tv_sec)
|
/linux-4.1.27/arch/arm64/kernel/vdso/ |
H A D | gettimeofday.S | 51 /* int __kernel_gettimeofday(struct timeval *tv, struct timezone *tz); */ 62 /* If tv is NULL, skip to the timezone code. */
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
H A D | 11n_aggr.c | 176 struct timeval tv; variable in typeref:struct:timeval 207 do_gettimeofday(&tv); variable 208 skb_aggr->tstamp = timeval_to_ktime(tv);
|
/linux-4.1.27/arch/powerpc/kernel/vdso32/ |
H A D | gettimeofday.S | 32 * int __kernel_gettimeofday(struct timeval *tv, struct timezone *tz); 40 mr r10,r3 /* r10 saves tv */ 44 cmplwi r10,0 /* check if tv is NULL */
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
H A D | saa7164-cards.c | 617 struct tveeprom tv; hauppauge_eeprom() local 620 tveeprom_hauppauge_analog(&dev->i2c_bus[0].i2c_client, &tv, hauppauge_eeprom() 624 switch (tv.model) { hauppauge_eeprom() 652 dev->name, tv.model); hauppauge_eeprom() 657 tv.model); hauppauge_eeprom()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A 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/scripts/ |
H A 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*(.*)/) { 1058 my $tv = $typevalue[$i - 1]; 1059 if ($tv =~ m/^(\C):\s*(.*)/) { 1075 my $tv = $typevalue[$i - 1]; 1076 if ($tv =~ m/^(\C):\s*(.*)/) {
|
/linux-4.1.27/drivers/firewire/ |
H A D | nosy.c | 418 struct timeval tv; packet_irq_handler() local 425 do_gettimeofday(&tv); packet_irq_handler() 426 lynx->rcv_buffer[0] = (__force __le32)tv.tv_usec; packet_irq_handler() 447 struct timeval tv; bus_reset_irq_handler() local 449 do_gettimeofday(&tv); bus_reset_irq_handler() 454 packet_buffer_put(&client->buffer, &tv.tv_usec, 4); bus_reset_irq_handler()
|
/linux-4.1.27/net/vmw_vsock/ |
H A D | af_vsock.c | 1408 struct timeval tv; vsock_stream_setsockopt() local 1409 COPY_IN(tv); vsock_stream_setsockopt() 1410 if (tv.tv_sec >= 0 && tv.tv_usec < USEC_PER_SEC && vsock_stream_setsockopt() 1411 tv.tv_sec < (MAX_SCHEDULE_TIMEOUT / HZ - 1)) { vsock_stream_setsockopt() 1412 vsk->connect_timeout = tv.tv_sec * HZ + vsock_stream_setsockopt() 1413 DIV_ROUND_UP(tv.tv_usec, (1000000 / HZ)); vsock_stream_setsockopt() 1486 struct timeval tv; vsock_stream_getsockopt() local 1487 tv.tv_sec = vsk->connect_timeout / HZ; vsock_stream_getsockopt() 1488 tv.tv_usec = vsock_stream_getsockopt() 1490 tv.tv_sec * HZ) * (1000000 / HZ); vsock_stream_getsockopt() 1491 COPY_OUT(tv); vsock_stream_getsockopt()
|
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf.h | 83 struct tveeprom tv; member in struct:mxl111sf_state
|
H A D | mxl111sf.c | 920 tveeprom_hauppauge_analog(&c, &state->tv, (0x84 == eeprom[0xa0]) ? mxl111sf_init() 923 switch (state->tv.model) { mxl111sf_init() 931 __func__, state->tv.model); mxl111sf_init()
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
H A D | lib-eq.c | 344 struct timeval tv; variable in typeref:struct:timeval 348 cfs_duration_usec(cfs_time_sub(cfs_time_current(), now), &tv); 349 tms -= (int)(tv.tv_sec * 1000 + tv.tv_usec / 1000);
|
H A D | router.c | 251 struct timeval tv; lnet_shuffle_seed() local 270 do_gettimeofday(&tv); lnet_shuffle_seed() 271 cfs_srand(tv.tv_sec ^ seed[0], tv.tv_usec ^ seed[1]); lnet_shuffle_seed()
|
/linux-4.1.27/Documentation/misc-devices/mei/ |
H A D | mei-amt-version.c | 175 struct timeval tv; mei_send_msg() local 180 tv.tv_sec = timeout / 1000; mei_send_msg() 181 tv.tv_usec = (timeout % 1000) * 1000000; mei_send_msg() 195 rc = select(me->fd + 1 , &set, NULL, NULL, &tv); mei_send_msg()
|
/linux-4.1.27/Documentation/networking/timestamping/ |
H A D | timestamping.c | 160 struct timeval tv; printpacket() local 261 if (ioctl(sock, SIOCGSTAMP, &tv)) printpacket() 265 (long)tv.tv_sec, printpacket() 266 (long)tv.tv_usec); printpacket()
|
H A D | txtimestamp.c | 109 struct timeval tv; /* avoid dependency on -lrt */ print_timestamp_usr() local 111 gettimeofday(&tv, NULL); print_timestamp_usr() 112 ts.tv_sec = tv.tv_sec; print_timestamp_usr() 113 ts.tv_nsec = tv.tv_usec * 1000; print_timestamp_usr()
|
/linux-4.1.27/drivers/net/hamradio/ |
H A D | baycom_ser_fdx.c | 231 static __inline__ void ser12_rx(struct net_device *dev, struct baycom_state *bc, struct timeval *tv, unsigned char curs) ser12_rx() argument 238 timediff = 1000000 + tv->tv_usec - bc->modem.ser12.pll_time; ser12_rx() 290 struct timeval tv; ser12_interrupt() local 300 do_gettimeofday(&tv); ser12_interrupt() 343 ser12_rx(dev, bc, &tv, msr & 0x10); /* CTS */ ser12_interrupt()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
H A D | stv0299.c | 408 struct timeval tv[10]; stv0299_send_legacy_dish_cmd() local 423 tv[0] = nexttime; stv0299_send_legacy_dish_cmd() 430 do_gettimeofday (&tv[i+1]); stv0299_send_legacy_dish_cmd() 446 printk ("%d: %d\n", i, timeval_usec_diff(tv[i-1] , tv[i])); stv0299_send_legacy_dish_cmd()
|
/linux-4.1.27/net/core/ |
H A D | sock.c | 384 struct timeval tv; sock_set_timeout() local 386 if (optlen < sizeof(tv)) sock_set_timeout() 388 if (copy_from_user(&tv, optval, sizeof(tv))) sock_set_timeout() 390 if (tv.tv_usec < 0 || tv.tv_usec >= USEC_PER_SEC) sock_set_timeout() 393 if (tv.tv_sec < 0) { sock_set_timeout() 405 if (tv.tv_sec == 0 && tv.tv_usec == 0) sock_set_timeout() 407 if (tv.tv_sec < (MAX_SCHEDULE_TIMEOUT/HZ - 1)) sock_set_timeout() 408 *timeo_p = tv.tv_sec*HZ + (tv.tv_usec+(1000000/HZ-1))/(1000000/HZ); sock_set_timeout() 2440 struct timeval tv; sock_get_timestamp() local 2443 tv = ktime_to_timeval(sk->sk_stamp); sock_get_timestamp() 2444 if (tv.tv_sec == -1) sock_get_timestamp() 2446 if (tv.tv_sec == 0) { sock_get_timestamp() 2448 tv = ktime_to_timeval(sk->sk_stamp); sock_get_timestamp() 2450 return copy_to_user(userstamp, &tv, sizeof(tv)) ? -EFAULT : 0; sock_get_timestamp()
|
/linux-4.1.27/drivers/media/tuners/ |
H A D | tuner-simple.c | 2 * i2c tv tuner chip device driver 38 /* tv standard selection for Temic 4046 FM5 53 /* tv tuner system standard selection for Philips FQ1216ME 326 /* tv norm specific stuff for multi-norm tuners */ simple_std_setup() 481 tuner_dbg("tv 0x%02x 0x%02x 0x%02x 0x%02x\n", simple_post_tune() 595 /* tv norm specific stuff for multi-norm tuners */ simple_set_tv_freq() 654 tuner_dbg("tv 0x%02x 0x%02x 0x%02x 0x%02x\n", simple_set_tv_freq()
|
/linux-4.1.27/drivers/scsi/ |
H A D | gdth_proc.c | 151 struct timeval tv; gdth_show_info() local 543 do_gettimeofday(&tv); gdth_show_info() 544 sec = (int)(tv.tv_sec - estr->first_stamp); gdth_show_info()
|
H A D | stex.c | 367 struct timeval tv; stex_gettime() local 369 do_gettimeofday(&tv); stex_gettime() 370 *time = cpu_to_le64(tv.tv_sec); stex_gettime()
|
/linux-4.1.27/arch/um/os-Linux/skas/ |
H A D | process.c | 463 struct timeval tv = { .tv_sec = 0, .tv_usec = UM_USEC_PER_SEC / UM_HZ }; copy_context_skas0() local 478 { .it_value = tv, copy_context_skas0() 479 .it_interval = tv }) }); copy_context_skas0()
|
/linux-4.1.27/fs/gfs2/ |
H A D | dir.c | 829 struct timespec tv = CURRENT_TIME; new_leaf() local 848 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); new_leaf() 849 leaf->lf_sec = cpu_to_be64(tv.tv_sec); new_leaf() 1699 struct timespec tv; gfs2_dir_add() local 1715 tv = CURRENT_TIME; gfs2_dir_add() 1719 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); gfs2_dir_add() 1720 leaf->lf_sec = cpu_to_be64(tv.tv_sec); gfs2_dir_add() 1726 ip->i_inode.i_mtime = ip->i_inode.i_ctime = tv; gfs2_dir_add() 1777 struct timespec tv = CURRENT_TIME; gfs2_dir_del() local 1803 leaf->lf_nsec = cpu_to_be32(tv.tv_nsec); gfs2_dir_del() 1804 leaf->lf_sec = cpu_to_be64(tv.tv_sec); gfs2_dir_del() 1811 dip->i_inode.i_mtime = dip->i_inode.i_ctime = tv; gfs2_dir_del()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bios.h | 151 uint8_t crt, tv, panel; member in struct:nvbios::__anon4148::__anon4149
|
H A D | nouveau_bios.c | 737 /* First entry is normal dac, 2nd tv-out perhaps? */ parse_bit_A_tbl_entry() 1172 * bit 6 a tv bios. parse_bmp_structure() 1194 bios->legacy.i2c_indices.tv = bios->data[legacy_i2c_offset + 1]; parse_bmp_structure() 1279 * always has the same single (crt) entry, even when tv-out olddcb_table() 1769 if (nv04_tv_identify(dev, bios->legacy.i2c_indices.tv) >= 0) fabricate_dcb_encoder_table() 1771 bios->legacy.i2c_indices.tv, fabricate_dcb_encoder_table()
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
H A D | manager.c | 59 mgr->name = "tv"; dss_init_overlay_managers()
|
/linux-4.1.27/arch/mips/pci/ |
H A D | fixup-cobalt.c | 9 * Copyright (C) 2001, 2002, 2003 by Liam Davies (ldavies@agile.tv)
|
/linux-4.1.27/lib/ |
H A D | plist.c | 15 * Oleg Nesterov <oleg@tv-sign.ru>
|
/linux-4.1.27/tools/thermal/tmon/ |
H A D | tmon.h | 51 struct timeval tv; member in struct:thermal_data_record
|
/linux-4.1.27/net/bluetooth/ |
H A D | hci_sock.c | 899 struct timeval tv; hci_sock_cmsg() local 903 skb_get_timestamp(skb, &tv); hci_sock_cmsg() 905 data = &tv; hci_sock_cmsg() 906 len = sizeof(tv); hci_sock_cmsg() 910 ctv.tv_sec = tv.tv_sec; hci_sock_cmsg() 911 ctv.tv_usec = tv.tv_usec; hci_sock_cmsg()
|
/linux-4.1.27/drivers/pci/ |
H A D | xen-pcifront.c | 120 struct timeval tv; do_pci_op() local 137 do_gettimeofday(&tv); do_pci_op() 138 ns_timeout = timeval_to_ns(&tv) + 2 * (s64)NSEC_PER_SEC; do_pci_op() 146 do_gettimeofday(&tv); do_pci_op() 147 ns = timeval_to_ns(&tv); do_pci_op()
|
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/ |
H A D | ft1000_debug.c | 415 struct timeval tv; ft1000_ioctl() local 513 do_gettimeofday(&tv); ft1000_ioctl() 514 get_stat_data.ConTm = (u32)(tv.tv_sec - info->ConTm); ft1000_ioctl()
|
H A D | ft1000_hw.c | 622 struct timeval tv; ft1000_open() local 630 do_gettimeofday(&tv); ft1000_open() 631 pInfo->ConTm = tv.tv_sec; ft1000_open()
|
/linux-4.1.27/arch/ia64/include/asm/ |
H A D | pal.h | 521 tv : 1, /* Target address member in struct:pal_cache_check_info_s 558 tv : 1, /* Target address member in struct:pal_tlb_check_info_s 594 tv : 1, /* Target address member in struct:pal_bus_check_info_s 654 tv : 1, /* Target address member in struct:pal_uarch_check_info_s 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/pvrusb2/ |
H A D | pvrusb2-hdw-internal.h | 301 unsigned int freqValTelevision; /* Current freq for tv mode */ 303 unsigned int freqSlotTelevision; /* Current slot for tv mode */
|
/linux-4.1.27/drivers/clk/ux500/ |
H A D | u8500_clk.c | 151 clk_register_clkdev(clk, NULL, "tv"); u8500_clk_init() 152 clk_register_clkdev(clk, "tv", "mcde"); u8500_clk_init()
|
H A D | u8540_clk.c | 134 clk_register_clkdev(clk, NULL, "tv"); u8540_clk_init() 135 clk_register_clkdev(clk, "tv", "mcde"); u8540_clk_init()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | dcb.c | 76 * always has the same single (crt) entry, even when tv-out dcb_table()
|
/linux-4.1.27/drivers/gpu/drm/omapdrm/ |
H A D | omap_irq.c | 246 * we just need to ignore it while enabling tv-out omap_irq_postinstall()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_fence.c | 875 struct timeval tv; vmw_event_fence_action_seq_passed() local 877 do_gettimeofday(&tv); vmw_event_fence_action_seq_passed() 878 *eaction->tv_sec = tv.tv_sec; vmw_event_fence_action_seq_passed() 879 *eaction->tv_usec = tv.tv_usec; vmw_event_fence_action_seq_passed()
|
/linux-4.1.27/drivers/video/fbdev/intelfb/ |
H A D | intelfb_i2c.c | 170 /* has some LVDS + tv-out */ intelfb_create_i2c_busses()
|
/linux-4.1.27/drivers/video/fbdev/omap2/displays-new/ |
H A D | connector-analog-tv.c | 310 .name = "connector-analog-tv",
|
/linux-4.1.27/arch/arm/mach-lpc32xx/ |
H A D | clock.c | 233 u32 tv, tmp = 0; local_clk_pll_setup() local 244 tv = ffs(PllSetup->pll_p) - 1; local_clk_pll_setup() 245 if ((!is_power_of_2(PllSetup->pll_p)) || (tv > 3)) local_clk_pll_setup() 248 tmp |= LPC32XX_CLKPWR_HCLKPLL_POSTDIV_2POW(tv); local_clk_pll_setup()
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
H A D | cx23885-cards.c | 1039 struct tveeprom tv; hauppauge_eeprom() local 1041 tveeprom_hauppauge_analog(&dev->i2c_bus[0].i2c_client, &tv, hauppauge_eeprom() 1045 switch (tv.model) { hauppauge_eeprom() 1183 dev->name, tv.model); hauppauge_eeprom() 1188 dev->name, tv.model); hauppauge_eeprom()
|
/linux-4.1.27/include/sound/ |
H A D | pcm.h | 1126 * @tv: timespec to fill 1129 struct timespec *tv) snd_pcm_gettime() 1133 ktime_get_ts(tv); snd_pcm_gettime() 1136 getrawmonotonic(tv); snd_pcm_gettime() 1139 getnstimeofday(tv); snd_pcm_gettime() 1128 snd_pcm_gettime(struct snd_pcm_runtime *runtime, struct timespec *tv) snd_pcm_gettime() argument
|
/linux-4.1.27/drivers/media/pci/cx88/ |
H A D | cx88-cards.c | 2857 struct tveeprom tv; hauppauge_eeprom() local 2859 tveeprom_hauppauge_analog(&core->i2c_client, &tv, eeprom_data); hauppauge_eeprom() 2860 core->board.tuner_type = tv.tuner_type; hauppauge_eeprom() 2861 core->tuner_formats = tv.tuner_formats; hauppauge_eeprom() 2862 core->board.radio.type = tv.has_radio ? CX88_RADIO : 0; hauppauge_eeprom() 2863 core->model = tv.model; hauppauge_eeprom() 2866 switch (tv.model) hauppauge_eeprom() 2909 tv.model); hauppauge_eeprom() 2913 info_printk(core, "hauppauge eeprom: model=%d\n", tv.model); hauppauge_eeprom()
|
/linux-4.1.27/drivers/media/pci/zoran/ |
H A D | zoran_device.c | 187 struct timeval tv; get_time() local 189 do_gettimeofday(&tv); get_time() 190 return (1000000 * tv.tv_sec + tv.tv_usec); get_time()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-capture.c | 186 struct timeval *tv; fimc_capture_irq_handler() local 200 tv = &v_buf->vb.v4l2_buf.timestamp; fimc_capture_irq_handler() 201 tv->tv_sec = ts.tv_sec; fimc_capture_irq_handler() 202 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; fimc_capture_irq_handler()
|
H A D | fimc-lite.c | 257 struct timeval *tv; flite_irq_handler() local 298 tv = &vbuf->vb.v4l2_buf.timestamp; flite_irq_handler() 299 tv->tv_sec = ts.tv_sec; flite_irq_handler() 300 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; flite_irq_handler()
|
/linux-4.1.27/drivers/media/platform/s3c-camif/ |
H A D | camif-capture.c | 331 struct timeval *tv; s3c_camif_irq_handler() local 345 tv = &vbuf->vb.v4l2_buf.timestamp; s3c_camif_irq_handler() 346 tv->tv_sec = ts.tv_sec; s3c_camif_irq_handler() 347 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; s3c_camif_irq_handler()
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
H A D | opera1.c | 362 {0x5ba5, KEY_RADIO}, /*tv/f */
|
/linux-4.1.27/drivers/staging/xgifb/ |
H A D | XGI_main.h | 160 {"tv", XGIFB_DISP_TV, -1},
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | msp3400-kthreads.c | 679 /* monitor tv audio mode, the first time don't wait msp3400c_thread() 842 /* monitor tv audio mode, the first time don't wait msp3410d_thread() 1078 /* monitor tv audio mode, the first time don't wait msp34xxg_thread()
|
/linux-4.1.27/drivers/media/platform/vivid/ |
H A D | vivid-ctrls.c | 880 struct timeval tv; vivid_streaming_s_ctrl() local 919 v4l2_get_timestamp(&tv); vivid_streaming_s_ctrl() 920 dev->time_wrap_offset = -tv.tv_sec - 16; vivid_streaming_s_ctrl()
|
/linux-4.1.27/net/ipv6/ |
H A D | mcast.c | 997 unsigned long tv = prandom_u32() % idev->mc_maxdelay; mld_gq_start_timer() local 1000 if (!mod_timer(&idev->mc_gq_timer, jiffies+tv+2)) mld_gq_start_timer() 1013 unsigned long tv = prandom_u32() % delay; mld_ifc_start_timer() local 1015 if (!mod_timer(&idev->mc_ifc_timer, jiffies+tv+2)) mld_ifc_start_timer() 1028 unsigned long tv = prandom_u32() % delay; mld_dad_start_timer() local 1030 if (!mod_timer(&idev->mc_dad_timer, jiffies+tv+2)) mld_dad_start_timer()
|
/linux-4.1.27/drivers/block/ |
H A D | sx8.c | 674 struct timeval tv; carm_fill_sync_time() local 677 do_gettimeofday(&tv); carm_fill_sync_time() 683 st->timestamp = cpu_to_le32(tv.tv_sec); carm_fill_sync_time()
|