| /linux/drivers/gpu/drm/sun4i/ |
| A D | sun4i_tv.c | 432 struct sun4i_tv *tv; in sun4i_tv_bind() local 436 tv = devm_kzalloc(dev, sizeof(*tv), GFP_KERNEL); in sun4i_tv_bind() 437 if (!tv) in sun4i_tv_bind() 439 tv->drv = drv; in sun4i_tv_bind() 440 dev_set_drvdata(dev, tv); in sun4i_tv_bind() 450 if (IS_ERR(tv->regs)) { in sun4i_tv_bind() 452 return PTR_ERR(tv->regs); in sun4i_tv_bind() 456 if (IS_ERR(tv->reset)) { in sun4i_tv_bind() 468 if (IS_ERR(tv->clk)) { in sun4i_tv_bind() 470 ret = PTR_ERR(tv->clk); in sun4i_tv_bind() [all …]
|
| /linux/fs/ |
| A D | utimes.c | 217 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 223 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 224 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 239 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 245 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 246 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 261 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4() 279 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat() 280 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat() 282 tv[0].tv_nsec *= 1000; in do_compat_futimesat() [all …]
|
| /linux/drivers/gpu/drm/ |
| A D | drm_atomic_state_helper.c | 568 state->tv.hue = val; in drm_atomic_helper_connector_tv_reset() 603 if (old_conn_state->tv.mode != new_conn_state->tv.mode) in drm_atomic_helper_connector_tv_check() 606 if (old_conn_state->tv.margins.left != new_conn_state->tv.margins.left || in drm_atomic_helper_connector_tv_check() 607 old_conn_state->tv.margins.right != new_conn_state->tv.margins.right || in drm_atomic_helper_connector_tv_check() 608 old_conn_state->tv.margins.top != new_conn_state->tv.margins.top || in drm_atomic_helper_connector_tv_check() 610 old_conn_state->tv.mode != new_conn_state->tv.mode || in drm_atomic_helper_connector_tv_check() 611 old_conn_state->tv.brightness != new_conn_state->tv.brightness || in drm_atomic_helper_connector_tv_check() 612 old_conn_state->tv.contrast != new_conn_state->tv.contrast || in drm_atomic_helper_connector_tv_check() 614 old_conn_state->tv.overscan != new_conn_state->tv.overscan || in drm_atomic_helper_connector_tv_check() 615 old_conn_state->tv.saturation != new_conn_state->tv.saturation || in drm_atomic_helper_connector_tv_check() [all …]
|
| /linux/drivers/usb/misc/ |
| A D | trancevibrator.c | 37 struct trancevibrator *tv = usb_get_intfdata(intf); in speed_show() local 39 return sprintf(buf, "%d\n", tv->speed); in speed_show() 46 struct trancevibrator *tv = usb_get_intfdata(intf); in speed_store() local 56 old = tv->speed; in speed_store() 57 tv->speed = temp; in speed_store() 59 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in speed_store() 62 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), in speed_store() 65 tv->speed, /* speed value */ in speed_store() 68 tv->speed = old; in speed_store() 69 dev_dbg(&tv->udev->dev, "retval = %d\n", retval); in speed_store() [all …]
|
| /linux/kernel/time/ |
| A D | time.c | 83 struct timespec64 tv; in SYSCALL_DEFINE1() local 89 tv.tv_nsec = 0; in SYSCALL_DEFINE1() 121 struct timespec64 tv; in SYSCALL_DEFINE1() local 127 tv.tv_nsec = 0; in SYSCALL_DEFINE1() 174 if (tv && !timespec64_valid_settod(tv)) in do_sys_settimeofday64() 190 if (!tv) in do_sys_settimeofday64() 194 if (tv) in do_sys_settimeofday64() 205 if (tv) { in SYSCALL_DEFINE2() 227 if (tv) { in COMPAT_SYSCALL_DEFINE2() 249 if (tv) { in COMPAT_SYSCALL_DEFINE2() [all …]
|
| /linux/drivers/input/misc/ |
| A D | hp_sdc_rtc.c | 273 struct timespec64 tv; in hp_sdc_rtc_proc_show() local 287 if (hp_sdc_rtc_read_rt(&tv)) { in hp_sdc_rtc_proc_show() 291 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 294 if (hp_sdc_rtc_read_fhs(&tv)) { in hp_sdc_rtc_proc_show() 298 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 301 if (hp_sdc_rtc_read_mt(&tv)) { in hp_sdc_rtc_proc_show() 305 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 308 if (hp_sdc_rtc_read_dt(&tv)) { in hp_sdc_rtc_proc_show() 312 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 315 if (hp_sdc_rtc_read_ct(&tv)) { in hp_sdc_rtc_proc_show() [all …]
|
| /linux/tools/testing/selftests/rcutorture/bin/ |
| A D | mkinitrd.sh | 39 struct timeval tv; 54 if (gettimeofday(&tv, NULL)) 56 tv.tv_sec -= tvb.tv_sec; 57 if (tv.tv_sec > 1) 59 tv.tv_usec += tv.tv_sec * 1000 * 1000; 60 tv.tv_usec -= tvb.tv_usec; 61 } while (tv.tv_usec < 1000);
|
| /linux/drivers/gpu/drm/radeon/ |
| A D | radeon_legacy_tv.c | 400 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() 402 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 406 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() 408 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 501 (unsigned)tv_dac->tv.frestart, in radeon_legacy_tv_init_restarts() 502 (unsigned)tv_dac->tv.vrestart, in radeon_legacy_tv_init_restarts() 503 (unsigned)tv_dac->tv.hrestart); in radeon_legacy_tv_init_restarts() 515 tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) | in radeon_legacy_tv_init_restarts() 664 tv_dac->tv.timing_cntl = tmp; in radeon_legacy_tv_mode_set() 711 tv_dac->tv.tv_uv_adr = 0xc8; in radeon_legacy_tv_mode_set() [all …]
|
| /linux/drivers/gpu/drm/gud/ |
| A D | gud_connector.c | 302 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check() 303 old_state->tv.margins.right != new_state->tv.margins.right || in gud_connector_atomic_check() 304 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check() 305 old_state->tv.margins.bottom != new_state->tv.margins.bottom || in gud_connector_atomic_check() 306 old_state->tv.legacy_mode != new_state->tv.legacy_mode || in gud_connector_atomic_check() 307 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check() 308 old_state->tv.contrast != new_state->tv.contrast || in gud_connector_atomic_check() 309 old_state->tv.flicker_reduction != new_state->tv.flicker_reduction || in gud_connector_atomic_check() 310 old_state->tv.overscan != new_state->tv.overscan || in gud_connector_atomic_check() 311 old_state->tv.saturation != new_state->tv.saturation || in gud_connector_atomic_check() [all …]
|
| /linux/arch/sparc/vdso/ |
| A D | vclock_gettime.c | 80 register long o0 __asm__("o0") = (long) tv; in vdso_fallback_gettimeofday() 312 if (likely(tv != NULL)) { in __vdso_gettimeofday() 315 struct __kernel_old_timeval tv; in __vdso_gettimeofday() member 316 } *tstv = (union tstv_t *) tv; in __vdso_gettimeofday() 326 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday() 327 tstv->tv.tv_usec /= 1000; in __vdso_gettimeofday() 348 if (likely(tv != NULL)) { in __vdso_gettimeofday_stick() 351 struct __kernel_old_timeval tv; in __vdso_gettimeofday_stick() member 352 } *tstv = (union tstv_t *) tv; in __vdso_gettimeofday_stick() 362 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday_stick() [all …]
|
| /linux/tools/testing/selftests/vDSO/ |
| A D | vdso_test_gettimeofday.c | 38 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 46 struct timeval tv; in main() local 47 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main() 51 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
|
| A D | vdso_standalone_test_x86.c | 102 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in c_main() 108 struct timeval tv; in c_main() local 109 long ret = gtod(&tv, 0); in c_main() 113 to_base10(buf + 31, tv.tv_sec); in c_main() 114 to_base10(buf + 38, tv.tv_usec); in c_main()
|
| /linux/fs/xfs/libxfs/ |
| A D | xfs_trans_inode.c | 60 struct timespec64 tv; in xfs_trans_ichgtime() local 65 tv = current_time(inode); in xfs_trans_ichgtime() 68 inode_set_mtime_to_ts(inode, tv); in xfs_trans_ichgtime() 70 inode_set_ctime_to_ts(inode, tv); in xfs_trans_ichgtime() 72 inode_set_atime_to_ts(inode, tv); in xfs_trans_ichgtime() 74 ip->i_crtime = tv; in xfs_trans_ichgtime()
|
| /linux/tools/include/nolibc/ |
| A D | time.h | 18 struct timeval tv; in time() local 21 sys_gettimeofday(&tv, NULL); in time() 24 *tptr = tv.tv_sec; in time() 25 return tv.tv_sec; in time()
|
| /linux/tools/testing/selftests/damon/ |
| A D | debugfs_target_ids_pid_leak.c | 33 struct timeval tv; in msec_timestamp() local 35 gettimeofday(&tv, NULL); in msec_timestamp() 36 return tv.tv_sec * 1000UL + tv.tv_usec / 1000; in msec_timestamp()
|
| /linux/arch/mips/vdso/ |
| A D | vgettimeofday.c | 29 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 32 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday() 65 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 68 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
|
| /linux/tools/testing/selftests/timers/ |
| A D | leapcrash.c | 82 struct timeval tv; in main() local 86 tv.tv_sec = next_leap - 2; in main() 87 tv.tv_usec = 0; in main() 88 if (settimeofday(&tv, NULL)) { in main()
|
| A D | set-tz.c | 41 struct timeval tv; in get_tz_min() local 44 gettimeofday(&tv, &tz); in get_tz_min() 51 struct timeval tv; in get_tz_dst() local 54 gettimeofday(&tv, &tz); in get_tz_dst()
|
| /linux/drivers/gpu/drm/i915/display/ |
| A D | intel_sdvo.c | 176 } tv; member 2399 *val = sdvo_state->tv.hpos; in intel_sdvo_connector_atomic_get_property() 2401 *val = sdvo_state->tv.vpos; in intel_sdvo_connector_atomic_get_property() 2405 *val = state->tv.contrast; in intel_sdvo_connector_atomic_get_property() 2407 *val = state->tv.hue; in intel_sdvo_connector_atomic_get_property() 2457 sdvo_state->tv.hpos = val; in intel_sdvo_connector_atomic_set_property() 2459 sdvo_state->tv.vpos = val; in intel_sdvo_connector_atomic_set_property() 2463 state->tv.contrast = val; in intel_sdvo_connector_atomic_set_property() 2465 state->tv.hue = val; in intel_sdvo_connector_atomic_set_property() 2526 (memcmp(&old_state->tv, &new_state->tv, sizeof(old_state->tv)) || in intel_sdvo_atomic_check() [all …]
|
| /linux/arch/alpha/kernel/ |
| A D | osf_sys.c | 949 struct timeval32 tv; in get_tv32() local 952 o->tv_sec = tv.tv_sec; in get_tv32() 985 if (tv) { in SYSCALL_DEFINE2() 989 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2() 1005 if (tv) { in SYSCALL_DEFINE2() 1006 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2() 1027 if (tv[0].tv_nsec < 0 || tv[0].tv_nsec >= 1000000000 || in SYSCALL_DEFINE2() 1028 tv[1].tv_nsec < 0 || tv[1].tv_nsec >= 1000000000) in SYSCALL_DEFINE2() 1040 struct timespec64 tv; in SYSCALL_DEFINE5() local 1046 if (tv.tv_sec < 0 || tv.tv_nsec < 0) in SYSCALL_DEFINE5() [all …]
|
| /linux/Documentation/devicetree/bindings/display/ |
| A D | allwinner,sun4i-a10-tv-encoder.yaml | 4 $id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-tv-encoder.yaml# 15 const: allwinner,sun4i-a10-tv-encoder 43 tve0: tv-encoder@1c0a000 { 44 compatible = "allwinner,sun4i-a10-tv-encoder";
|
| /linux/arch/parisc/kernel/vdso64/ |
| A D | vdso64_generic.c | 11 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 15 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 18 return syscall2(__NR_gettimeofday, (long)tv, (long)tz); in __vdso_gettimeofday()
|
| /linux/arch/arm64/kernel/vdso/ |
| A D | vgettimeofday.c | 10 int __kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 19 int __kernel_gettimeofday(struct __kernel_old_timeval *tv, in __kernel_gettimeofday() argument 22 return __cvdso_gettimeofday(tv, tz); in __kernel_gettimeofday()
|
| /linux/drivers/gpu/drm/qxl/ |
| A D | qxl_release.c | 127 struct qxl_bo_list, tv.head); in qxl_release_free_list() 128 bo = to_qxl_bo(entry->tv.bo); in qxl_release_free_list() 130 list_del(&entry->tv.head); in qxl_release_free_list() 175 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_list_add() 176 if (entry->tv.bo == &bo->tbo) in qxl_release_list_add() 185 entry->tv.bo = &bo->tbo; in qxl_release_list_add() 186 entry->tv.num_shared = 0; in qxl_release_list_add() 187 list_add_tail(&entry->tv.head, &release->bos); in qxl_release_list_add() 229 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_reserve_list() 230 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); in qxl_release_reserve_list()
|
| /linux/arch/parisc/kernel/vdso32/ |
| A D | vdso32_generic.c | 13 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 18 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 21 return syscall2(__NR_gettimeofday, (long)tv, (long)tz); in __vdso_gettimeofday()
|