/linux/drivers/gpu/drm/sun4i/ |
A D | sun4i_tv.c | 540 struct sun4i_tv *tv; in sun4i_tv_bind() local 544 tv = devm_kzalloc(dev, sizeof(*tv), GFP_KERNEL); in sun4i_tv_bind() 545 if (!tv) in sun4i_tv_bind() 547 tv->drv = drv; in sun4i_tv_bind() 548 dev_set_drvdata(dev, tv); in sun4i_tv_bind() 558 if (IS_ERR(tv->regs)) { in sun4i_tv_bind() 560 return PTR_ERR(tv->regs); in sun4i_tv_bind() 564 if (IS_ERR(tv->reset)) { in sun4i_tv_bind() 576 if (IS_ERR(tv->clk)) { in sun4i_tv_bind() 578 ret = PTR_ERR(tv->clk); in sun4i_tv_bind() [all …]
|
/linux/fs/ |
A D | utimes.c | 216 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 222 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 223 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 238 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 244 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 245 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 260 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4() 278 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat() 279 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat() 281 tv[0].tv_nsec *= 1000; in do_compat_futimesat() [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/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/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 | 40 struct timeval tv; 51 if (gettimeofday(&tv, NULL)) 53 tv.tv_sec -= tvb.tv_sec; 54 if (tv.tv_sec > 1) 56 tv.tv_usec += tv.tv_sec * 1000 * 1000; 57 tv.tv_usec -= tvb.tv_usec; 58 } while (tv.tv_usec < 1000);
|
/linux/drivers/gpu/drm/gud/ |
A D | gud_connector.c | 301 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check() 302 old_state->tv.margins.right != new_state->tv.margins.right || in gud_connector_atomic_check() 303 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check() 304 old_state->tv.margins.bottom != new_state->tv.margins.bottom || in gud_connector_atomic_check() 305 old_state->tv.mode != new_state->tv.mode || in gud_connector_atomic_check() 306 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check() 307 old_state->tv.contrast != new_state->tv.contrast || in gud_connector_atomic_check() 308 old_state->tv.flicker_reduction != new_state->tv.flicker_reduction || in gud_connector_atomic_check() 309 old_state->tv.overscan != new_state->tv.overscan || in gud_connector_atomic_check() 310 old_state->tv.saturation != new_state->tv.saturation || in gud_connector_atomic_check() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_legacy_tv.c | 401 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() 403 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 407 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() 409 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 495 tv_dac->tv.hrestart = restart % h_total; in radeon_legacy_tv_init_restarts() 502 (unsigned)tv_dac->tv.frestart, in radeon_legacy_tv_init_restarts() 503 (unsigned)tv_dac->tv.vrestart, in radeon_legacy_tv_init_restarts() 504 (unsigned)tv_dac->tv.hrestart); in radeon_legacy_tv_init_restarts() 516 tv_dac->tv.timing_cntl = (tv_dac->tv.timing_cntl & ~RADEON_H_INC_MASK) | in radeon_legacy_tv_init_restarts() 665 tv_dac->tv.timing_cntl = tmp; in radeon_legacy_tv_mode_set() [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 | 46 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 54 struct timeval tv; in main() local 55 long ret = gtod(&tv, 0); in main() 59 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
|
A D | vdso_standalone_test_x86.c | 88 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in c_main() 94 struct timeval tv; in c_main() local 95 long ret = gtod(&tv, 0); in c_main() 99 to_base10(buf + 31, tv.tv_sec); in c_main() 100 to_base10(buf + 38, tv.tv_usec); in c_main()
|
A D | vdso_test_abi.c | 31 typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz); 47 struct timeval tv; in vdso_test_gettimeofday() local 48 long ret = vdso_gettimeofday(&tv, 0); in vdso_test_gettimeofday() 52 (long long)tv.tv_sec, (long long)tv.tv_usec); in vdso_test_gettimeofday()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_sdvo.c | 178 } tv; member 2366 *val = sdvo_state->tv.hpos; in intel_sdvo_connector_atomic_get_property() 2368 *val = sdvo_state->tv.vpos; in intel_sdvo_connector_atomic_get_property() 2372 *val = state->tv.contrast; in intel_sdvo_connector_atomic_get_property() 2374 *val = state->tv.hue; in intel_sdvo_connector_atomic_get_property() 2424 sdvo_state->tv.hpos = val; in intel_sdvo_connector_atomic_set_property() 2426 sdvo_state->tv.vpos = val; in intel_sdvo_connector_atomic_set_property() 2430 state->tv.contrast = val; in intel_sdvo_connector_atomic_set_property() 2432 state->tv.hue = val; in intel_sdvo_connector_atomic_set_property() 2518 (memcmp(&old_state->tv, &new_state->tv, sizeof(old_state->tv)) || in intel_sdvo_atomic_check() [all …]
|
A D | intel_tv.c | 1177 conn_state->tv.margins.top - in intel_tv_vert_scaling() 1848 if (old_state->tv.mode != new_state->tv.mode || in intel_tv_atomic_check() 1849 old_state->tv.margins.left != new_state->tv.margins.left || in intel_tv_atomic_check() 1850 old_state->tv.margins.right != new_state->tv.margins.right || in intel_tv_atomic_check() 1851 old_state->tv.margins.top != new_state->tv.margins.top || in intel_tv_atomic_check() 1852 old_state->tv.margins.bottom != new_state->tv.margins.bottom) { in intel_tv_atomic_check() 1967 state->tv.margins.left = 54; in intel_tv_init() 1968 state->tv.margins.top = 36; in intel_tv_init() 1969 state->tv.margins.right = 46; in intel_tv_init() 1990 state->tv.mode); in intel_tv_init() [all …]
|
/linux/arch/mips/vdso/ |
A D | vgettimeofday.c | 28 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 31 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday() 64 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 67 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
|
/linux/tools/testing/selftests/rtc/ |
A D | rtctest.c | 90 struct timeval tv = { .tv_sec = 2 }; in TEST_F() local 96 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 113 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 146 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 166 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 200 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 215 struct timeval tv = { .tv_sec = 62 }; variable 248 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); 268 struct timeval tv = { .tv_sec = 62 }; variable 302 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
|
/linux/arch/alpha/kernel/ |
A D | osf_sys.c | 948 struct timeval32 tv; in get_tv32() local 951 o->tv_sec = tv.tv_sec; in get_tv32() 984 if (tv) { in SYSCALL_DEFINE2() 988 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2() 1004 if (tv) { in SYSCALL_DEFINE2() 1005 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2() 1028 if (tv[0].tv_nsec < 0 || tv[0].tv_nsec >= 1000000000 || in SYSCALL_DEFINE2() 1029 tv[1].tv_nsec < 0 || tv[1].tv_nsec >= 1000000000) in SYSCALL_DEFINE2() 1041 struct timespec64 tv; in SYSCALL_DEFINE5() local 1047 if (tv.tv_sec < 0 || tv.tv_nsec < 0) in SYSCALL_DEFINE5() [all …]
|
/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/arch/nds32/kernel/vdso/ |
A D | gettimeofday.c | 233 register struct __kernel_old_timeval *tv asm("$r0") = _tv; in gettimeofday_fallback() 240 :"r"(tv), "r"(tz), "i"(__NR_gettimeofday) in gettimeofday_fallback() 246 notrace int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 255 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 259 if (tv) { in __vdso_gettimeofday() 260 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 261 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_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/drivers/staging/media/zoran/ |
A D | TODO | 4 mplayer tv:///dev/video0 -tv driver=v4l2 7 mplayer tv:///dev/video0 -tv driver=v4l2:outfmt=mjpeg
|
/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/fs/xfs/libxfs/ |
A D | xfs_trans_inode.c | 61 struct timespec64 tv; in xfs_trans_ichgtime() local 66 tv = current_time(inode); in xfs_trans_ichgtime() 69 inode->i_mtime = tv; in xfs_trans_ichgtime() 71 inode->i_ctime = tv; in xfs_trans_ichgtime() 73 ip->i_crtime = tv; in xfs_trans_ichgtime()
|
A D | xfs_inode_buf.c | 143 struct timespec64 tv; in xfs_inode_decode_bigtime() local 147 tv.tv_nsec = n; in xfs_inode_decode_bigtime() 149 return tv; in xfs_inode_decode_bigtime() 158 struct timespec64 tv; in xfs_inode_from_disk_ts() local 165 tv.tv_sec = (int)be32_to_cpu(lts->t_sec); in xfs_inode_from_disk_ts() 166 tv.tv_nsec = (int)be32_to_cpu(lts->t_nsec); in xfs_inode_from_disk_ts() 168 return tv; in xfs_inode_from_disk_ts() 267 const struct timespec64 tv) in xfs_inode_to_disk_ts() argument 273 return cpu_to_be64(xfs_inode_encode_bigtime(tv)); in xfs_inode_to_disk_ts() 276 lts->t_sec = cpu_to_be32(tv.tv_sec); in xfs_inode_to_disk_ts() [all …]
|