Home
last modified time | relevance | path

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

12345678910>>...20

/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun4i_tv.c432 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 …]
/openbmc/linux/fs/
H A Dutimes.c217 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 …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_atomic_state_helper.c553 state->tv.hue = val; in drm_atomic_helper_connector_tv_reset()
588 if (old_conn_state->tv.mode != new_conn_state->tv.mode) in drm_atomic_helper_connector_tv_check()
591 if (old_conn_state->tv.margins.left != new_conn_state->tv.margins.left || in drm_atomic_helper_connector_tv_check()
592 old_conn_state->tv.margins.right != new_conn_state->tv.margins.right || in drm_atomic_helper_connector_tv_check()
593 old_conn_state->tv.margins.top != new_conn_state->tv.margins.top || in drm_atomic_helper_connector_tv_check()
595 old_conn_state->tv.mode != new_conn_state->tv.mode || in drm_atomic_helper_connector_tv_check()
596 old_conn_state->tv.brightness != new_conn_state->tv.brightness || in drm_atomic_helper_connector_tv_check()
597 old_conn_state->tv.contrast != new_conn_state->tv.contrast || in drm_atomic_helper_connector_tv_check()
599 old_conn_state->tv.overscan != new_conn_state->tv.overscan || in drm_atomic_helper_connector_tv_check()
600 old_conn_state->tv.saturation != new_conn_state->tv.saturation || in drm_atomic_helper_connector_tv_check()
[all …]
/openbmc/linux/drivers/usb/misc/
H A Dtrancevibrator.c37 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 …]
/openbmc/linux/kernel/time/
H A Dtime.c83 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 …]
/openbmc/libpldm/src/transport/
H A Dtransport.c103 static void timespec_to_timeval(const struct timespec *ts, struct timeval *tv) in timespec_to_timeval() argument
105 tv->tv_sec = ts->tv_sec; in timespec_to_timeval()
106 tv->tv_usec = ts->tv_nsec / 1000; in timespec_to_timeval()
110 static long timeval_to_msec(const struct timeval *tv) in timeval_to_msec() argument
112 return tv->tv_sec * 1000 + tv->tv_usec / 1000; in timeval_to_msec()
118 static bool timeval_is_valid(const struct timeval *tv) in timeval_is_valid() argument
120 if (tv->tv_sec < 0 || tv->tv_usec < 0 || tv->tv_usec >= 1000000) { in timeval_is_valid()
124 if (tv->tv_sec > (LONG_MAX - tv->tv_usec / 1000) / 1000) { in timeval_is_valid()
131 static int clock_gettimeval(clockid_t clockid, struct timeval *tv) in clock_gettimeval() argument
141 timespec_to_timeval(&now, tv); in clock_gettimeval()
/openbmc/linux/tools/testing/selftests/rcutorture/bin/
H A Dmkinitrd.sh39 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);
/openbmc/linux/drivers/input/misc/
H A Dhp_sdc_rtc.c273 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 …]
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_tv.c400 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 …]
/openbmc/linux/arch/sparc/vdso/
H A Dvclock_gettime.c80 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 …]
/openbmc/linux/drivers/gpu/drm/gud/
H A Dgud_connector.c302 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 …]
/openbmc/linux/tools/testing/selftests/vDSO/
H A Dvdso_test_gettimeofday.c49 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
57 struct timeval tv; in main() local
58 long ret = gtod(&tv, 0); in main()
62 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
H A Dvdso_standalone_test_x86.c102 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()
/openbmc/linux/tools/include/nolibc/
H A Dtime.h18 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()
/openbmc/linux/arch/mips/vdso/
H A Dvgettimeofday.c28 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()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_trans_inode.c60 struct timespec64 tv; in xfs_trans_ichgtime() local
65 tv = current_time(inode); in xfs_trans_ichgtime()
68 inode->i_mtime = tv; in xfs_trans_ichgtime()
70 inode_set_ctime_to_ts(inode, tv); in xfs_trans_ichgtime()
72 ip->i_crtime = tv; in xfs_trans_ichgtime()
/openbmc/pldm/oem/ibm/libpldmresponder/
H A Dutils.cpp66 struct timeval tv; in setupUnixSocket() local
67 tv.tv_sec = 1; in setupUnixSocket()
68 tv.tv_usec = 0; in setupUnixSocket()
75 int retval = select(nfd, &rfd, NULL, NULL, &tv); in setupUnixSocket()
109 struct timeval tv; in writeToUnixSocket() local
110 tv.tv_sec = 1; in writeToUnixSocket()
111 tv.tv_usec = 0; in writeToUnixSocket()
117 int retval = select(nfd, NULL, &wfd, NULL, &tv); in writeToUnixSocket()
/openbmc/linux/tools/testing/selftests/timers/
H A Dleapcrash.c82 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()
H A Dset-tz.c41 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()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_sdvo.c178 } tv; member
2378 *val = sdvo_state->tv.hpos; in intel_sdvo_connector_atomic_get_property()
2380 *val = sdvo_state->tv.vpos; in intel_sdvo_connector_atomic_get_property()
2384 *val = state->tv.contrast; in intel_sdvo_connector_atomic_get_property()
2386 *val = state->tv.hue; in intel_sdvo_connector_atomic_get_property()
2436 sdvo_state->tv.hpos = val; in intel_sdvo_connector_atomic_set_property()
2438 sdvo_state->tv.vpos = val; in intel_sdvo_connector_atomic_set_property()
2442 state->tv.contrast = val; in intel_sdvo_connector_atomic_set_property()
2444 state->tv.hue = val; in intel_sdvo_connector_atomic_set_property()
2530 (memcmp(&old_state->tv, &new_state->tv, sizeof(old_state->tv)) || in intel_sdvo_atomic_check()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/display/
H A Dallwinner,sun4i-a10-tv-encoder.yaml4 $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";
/openbmc/linux/arch/riscv/kernel/vdso/
H A Dvgettimeofday.c20 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
21 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
23 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
/openbmc/linux/arch/loongarch/vdso/
H A Dvgettimeofday.c17 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
18 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
20 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
/openbmc/linux/arch/arm64/kernel/vdso/
H A Dvgettimeofday.c10 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()
/openbmc/linux/arch/alpha/kernel/
H A Dosf_sys.c949 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 …]

12345678910>>...20