Home
last modified time | relevance | path

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

123456

/linux/drivers/gpu/drm/
H A Ddrm_atomic_state_helper.c581 state->tv.margins.left = cmdline->tv_margins.left; in drm_atomic_helper_connector_tv_margins_reset()
582 state->tv.margins.right = cmdline->tv_margins.right; in drm_atomic_helper_connector_tv_margins_reset()
583 state->tv.margins.top = cmdline->tv_margins.top; in drm_atomic_helper_connector_tv_margins_reset()
584 state->tv.margins.bottom = cmdline->tv_margins.bottom; in drm_atomic_helper_connector_tv_margins_reset()
606 state->tv.mode = val; in drm_atomic_helper_connector_tv_reset()
609 state->tv.mode = cmdline->tv_mode; in drm_atomic_helper_connector_tv_reset()
615 state->tv.select_subconnector = val; in drm_atomic_helper_connector_tv_reset()
621 state->tv.subconnector = val; in drm_atomic_helper_connector_tv_reset()
627 state->tv.brightness = val; in drm_atomic_helper_connector_tv_reset()
633 state->tv.contrast = val; in drm_atomic_helper_connector_tv_reset()
[all …]
H A Ddrm_atomic_uapi.c879 state->tv.select_subconnector = val; in drm_atomic_connector_set_property()
881 state->tv.subconnector = val; in drm_atomic_connector_set_property()
883 state->tv.margins.left = val; in drm_atomic_connector_set_property()
885 state->tv.margins.right = val; in drm_atomic_connector_set_property()
887 state->tv.margins.top = val; in drm_atomic_connector_set_property()
889 state->tv.margins.bottom = val; in drm_atomic_connector_set_property()
891 state->tv.legacy_mode = val; in drm_atomic_connector_set_property()
893 state->tv.mode = val; in drm_atomic_connector_set_property()
895 state->tv.brightness = val; in drm_atomic_connector_set_property()
897 state->tv.contrast = val; in drm_atomic_connector_set_property()
[all …]
/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 …]
/linux/tools/include/nolibc/sys/
H A Dtime.h19 * int gettimeofday(struct timeval *tv, struct timezone *tz);
23 int _sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument
31 if (!ret && tv) { in sys_gettimeofday()
32 tv->tv_sec = tp.tv_sec; in sys_gettimeofday()
33 tv->tv_usec = (uint32_t)tp.tv_nsec / 1000; in sys_gettimeofday()
40 int gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday()
42 return __sysret(_sys_gettimeofday(tv, tz));
44 gettimeofday(struct timeval * tv,struct timezone * tz) gettimeofday() argument
/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);
/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_tv.c395 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
396 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
397 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
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()
418 WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); in radeon_legacy_write_tv_restarts()
419 WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); in radeon_legacy_write_tv_restarts()
420 WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); in radeon_legacy_write_tv_restarts()
[all …]
/linux/drivers/gpu/drm/gud/
H A Dgud_connector.c87 connector_state->tv.brightness = gconn->backlight->props.brightness; in gud_connector_backlight_update_status_work()
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.legacy_mode != new_state->tv.legacy_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()
[all …]
/linux/tools/testing/selftests/vDSO/
H A Dvdso_standalone_test_x86.c36 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
44 struct timeval tv; in main()
45 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main()
49 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
46 struct timeval tv; main() local
H A Dvdso_test_gettimeofday.c36 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main()
44 struct timeval tv; in main()
45 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main()
49 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
46 struct timeval tv; main() local
H A Dvdso_test_abi.c35 typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz);
69 struct timeval tv; in vdso_test_gettimeofday()
70 long ret = VDSO_CALL(vdso_gettimeofday, 2, &tv, 0); in vdso_test_gettimeofday()
74 (long long)tv.tv_sec, (long long)tv.tv_usec); in vdso_test_gettimeofday()
68 struct timeval tv; vdso_test_gettimeofday() local
/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()
H A Dleap-a-day.c253 struct timeval tv; in main()
255 tv.tv_sec = next_leap - 10; in main()
256 tv.tv_usec = 0; in main()
257 settimeofday(&tv, NULL); in main()
258 printf("Setting time to %s", ctime(&tv.tv_sec)); in main()
250 struct timeval tv; main() local
/linux/arch/parisc/kernel/vdso64/
H A Dvdso64_generic.c11 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/
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()
/linux/arch/parisc/kernel/vdso32/
H A Dvdso32_generic.c13 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()
/linux/tools/perf/bench/
H A Dmem-functions.c79 struct timeval tv;
157 BUG_ON(gettimeofday(&t->tv, NULL)); in clock_diff()
167 timersub(&e->tv, &s->tv, &t.tv); in clock_accum()
177 timeradd(&a->tv, &b->tv, &a->tv); in timeval2double()
221 result_bps = (double)p->size_total/timeval2double(&rt.tv); in __bench_mem_function()
235 result_bps = (double)p->size_total/timeval2double(&rt.tv); in __bench_mem_function()
76 struct timeval tv; global() member
[all...]
/linux/tools/testing/selftests/rtc/
H A Drtctest.c200 struct timeval tv = { .tv_sec = 2 }; in TEST_F() local
206 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
223 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local
272 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
292 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local
342 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
357 struct timeval tv = { .tv_sec = 62 }; variable
404 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
424 struct timeval tv = { .tv_sec = 62 }; variable
472 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
/linux/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c269 struct timeval tv; in acpi_aml_loop() local
283 tv.tv_sec = ACPI_AML_SEC_TICK; in acpi_aml_loop()
284 tv.tv_usec = 0; in acpi_aml_loop()
306 ret = select(maxfd+1, &rfds, &wfds, NULL, &tv); in acpi_aml_loop()
339 struct timeval tv; in acpi_aml_readable() local
343 tv.tv_sec = 0; in acpi_aml_readable()
344 tv.tv_usec = ACPI_AML_USEC_PEEK; in acpi_aml_readable()
347 ret = select(maxfd+1, &rfds, NULL, NULL, &tv); in acpi_aml_readable()
/linux/fs/xfs/libxfs/
H A Dxfs_inode_buf.c150 struct timespec64 tv; in xfs_inode_decode_bigtime() local
153 tv.tv_sec = xfs_bigtime_to_unix(div_u64_rem(ts, NSEC_PER_SEC, &n)); in xfs_inode_decode_bigtime()
154 tv.tv_nsec = n; in xfs_inode_decode_bigtime()
156 return tv; in xfs_inode_decode_bigtime()
165 struct timespec64 tv; in xfs_inode_from_disk_ts() local
172 tv.tv_sec = (int)be32_to_cpu(lts->t_sec); in xfs_inode_from_disk_ts()
173 tv.tv_nsec = (int)be32_to_cpu(lts->t_nsec); in xfs_inode_from_disk_ts()
175 return tv; in xfs_inode_from_disk_ts()
287 const struct timespec64 tv) in xfs_inode_to_disk_ts() argument
293 return cpu_to_be64(xfs_inode_encode_bigtime(tv)); in xfs_inode_to_disk_ts()
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dsctp_collision.c13 struct timeval tv = {25, 0}; in main() local
50 ret = setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in main()
H A Dconntrack_reverse_clash.c49 static const struct timeval tv = { in udp_socket() local
57 setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)); in udp_socket()
H A Dnf_queue.c216 struct timeval tv; in open_queue() local
252 memset(&tv, 0, sizeof(tv)); in open_queue()
253 tv.tv_sec = opts.timeout; in open_queue()
256 &tv, sizeof(tv))) { in open_queue()
/linux/arch/riscv/kernel/vdso/
H A Dvgettimeofday.c18 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
20 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
/linux/arch/loongarch/vdso/
H A Dvgettimeofday.c15 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
17 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()

123456