Home
last modified time | relevance | path

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

123456789

/linux-6.1.9/drivers/gpu/drm/sun4i/
Dsun4i_tv.c339 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() local
344 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_disable()
354 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_enable() local
364 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_enable()
372 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, in sun4i_tv_enable()
381 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, in sun4i_tv_enable()
392 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, in sun4i_tv_enable()
396 regmap_write(tv->regs, SUN4I_TVE_CHROMA_FREQ_REG, in sun4i_tv_enable()
400 regmap_write(tv->regs, SUN4I_TVE_PORCH_REG, in sun4i_tv_enable()
405 regmap_write(tv->regs, SUN4I_TVE_LINE_REG, in sun4i_tv_enable()
[all …]
/linux-6.1.9/fs/
Dutimes.c216 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
219 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
220 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
222 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
223 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
225 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
238 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
241 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
242 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
244 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
[all …]
/linux-6.1.9/drivers/usb/misc/
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 …]
/linux-6.1.9/kernel/time/
Dtime.c83 struct timespec64 tv; in SYSCALL_DEFINE1() local
86 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
89 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
91 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1()
95 do_settimeofday64(&tv); in SYSCALL_DEFINE1()
121 struct timespec64 tv; in SYSCALL_DEFINE1() local
124 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1()
127 tv.tv_nsec = 0; in SYSCALL_DEFINE1()
129 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1()
133 do_settimeofday64(&tv); in SYSCALL_DEFINE1()
[all …]
/linux-6.1.9/tools/testing/selftests/rcutorture/bin/
Dmkinitrd.sh40 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-6.1.9/drivers/input/misc/
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-6.1.9/drivers/gpu/drm/gud/
Dgud_connector.c88 connector_state->tv.brightness = gconn->backlight->props.brightness; in gud_connector_backlight_update_status_work()
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.mode != new_state->tv.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()
[all …]
/linux-6.1.9/arch/sparc/vdso/
Dvclock_gettime.c77 notrace static long vdso_fallback_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in vdso_fallback_gettimeofday() argument
80 register long o0 __asm__("o0") = (long) tv; in vdso_fallback_gettimeofday()
307 __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument
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()
336 return vdso_fallback_gettimeofday(tv, tz); in __vdso_gettimeofday()
343 __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz) in __vdso_gettimeofday_stick() argument
[all …]
/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_legacy_tv.c396 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
397 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
398 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables()
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()
419 WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); in radeon_legacy_write_tv_restarts()
420 WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); in radeon_legacy_write_tv_restarts()
421 WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); in radeon_legacy_write_tv_restarts()
[all …]
/linux-6.1.9/tools/testing/selftests/vDSO/
Dvdso_test_gettimeofday.c46 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()
Dvdso_standalone_test_x86.c88 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()
Dvdso_test_abi.c31 typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz);
51 struct timeval tv; in vdso_test_gettimeofday() local
52 long ret = vdso_gettimeofday(&tv, 0); in vdso_test_gettimeofday()
56 (long long)tv.tv_sec, (long long)tv.tv_usec); in vdso_test_gettimeofday()
/linux-6.1.9/tools/include/nolibc/
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()
/linux-6.1.9/arch/mips/vdso/
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()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_sdvo.c179 } tv; member
1193 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format()
1409 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props()
1412 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props()
1415 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props()
1418 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props()
1421 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props()
1424 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props()
1427 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props()
1430 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props()
[all …]
Dintel_tv.c950 int format = conn_state->tv.mode; in intel_tv_mode_find()
1178 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1179 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1238 top = conn_state->tv.margins.top; in intel_tv_compute_config()
1239 bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config()
1258 tv_conn_state->margins.top = conn_state->tv.margins.top; in intel_tv_compute_config()
1259 tv_conn_state->margins.bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config()
1333 conn_state->tv.margins.left, in intel_tv_compute_config()
1334 conn_state->tv.margins.right); in intel_tv_compute_config()
1554 xpos = conn_state->tv.margins.left; in intel_tv_pre_enable()
[all …]
/linux-6.1.9/tools/testing/selftests/timers/
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()
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()
/linux-6.1.9/arch/alpha/kernel/
Dosf_sys.c949 struct timeval32 tv; in get_tv32() local
950 if (copy_from_user(&tv, i, sizeof(struct timeval32))) in get_tv32()
952 o->tv_sec = tv.tv_sec; in get_tv32()
953 o->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in get_tv32()
982 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
985 if (tv) { in SYSCALL_DEFINE2()
989 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2()
999 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
1005 if (tv) { in SYSCALL_DEFINE2()
1006 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/display/
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";
/linux-6.1.9/arch/riscv/kernel/vdso/
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()
/linux-6.1.9/arch/loongarch/vdso/
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()
/linux-6.1.9/drivers/gpu/drm/qxl/
Dqxl_release.c127 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-6.1.9/fs/xfs/libxfs/
Dxfs_trans_inode.c61 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()
/linux-6.1.9/tools/testing/selftests/rtc/
Drtctest.c156 struct timeval tv = { .tv_sec = 2 }; in TEST_F() local
162 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
179 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local
212 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
232 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local
266 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
281 struct timeval tv = { .tv_sec = 62 }; variable
314 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
334 struct timeval tv = { .tv_sec = 62 }; variable
368 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);

123456789