Home
last modified time | relevance | path

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

123456789

/linux-6.6.21/drivers/gpu/drm/sun4i/
Dsun4i_tv.c266 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() local
271 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_disable()
281 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_enable() local
286 struct drm_connector *connector = &tv->connector; in sun4i_tv_enable()
290 sun4i_tv_find_tv_by_mode(conn_state->tv.mode); in sun4i_tv_enable()
295 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_enable()
303 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, in sun4i_tv_enable()
312 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, in sun4i_tv_enable()
323 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, in sun4i_tv_enable()
327 regmap_write(tv->regs, SUN4I_TVE_CHROMA_FREQ_REG, in sun4i_tv_enable()
[all …]
/linux-6.6.21/fs/
Dutimes.c217 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
220 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
221 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
223 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
224 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
226 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
239 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
242 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
243 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
245 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
[all …]
/linux-6.6.21/drivers/gpu/drm/
Ddrm_atomic_state_helper.c477 state->tv.margins.left = cmdline->tv_margins.left; in drm_atomic_helper_connector_tv_margins_reset()
478 state->tv.margins.right = cmdline->tv_margins.right; in drm_atomic_helper_connector_tv_margins_reset()
479 state->tv.margins.top = cmdline->tv_margins.top; in drm_atomic_helper_connector_tv_margins_reset()
480 state->tv.margins.bottom = cmdline->tv_margins.bottom; in drm_atomic_helper_connector_tv_margins_reset()
502 state->tv.mode = val; in drm_atomic_helper_connector_tv_reset()
505 state->tv.mode = cmdline->tv_mode; in drm_atomic_helper_connector_tv_reset()
511 state->tv.select_subconnector = val; in drm_atomic_helper_connector_tv_reset()
517 state->tv.subconnector = val; in drm_atomic_helper_connector_tv_reset()
523 state->tv.brightness = val; in drm_atomic_helper_connector_tv_reset()
529 state->tv.contrast = val; in drm_atomic_helper_connector_tv_reset()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/tools/testing/selftests/rcutorture/bin/
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-6.6.21/drivers/gpu/drm/radeon/
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-6.6.21/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.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()
[all …]
/linux-6.6.21/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.6.21/tools/testing/selftests/vDSO/
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()
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()
/linux-6.6.21/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.6.21/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.6.21/fs/xfs/libxfs/
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()
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_sdvo.c178 } tv; member
1215 format_map = 1 << conn_state->tv.legacy_mode; in intel_sdvo_set_tv_format()
1449 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props()
1452 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props()
1455 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props()
1458 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props()
1461 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props()
1464 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props()
1467 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props()
1470 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props()
[all …]
Dintel_tv.c952 int format = conn_state->tv.legacy_mode; in intel_tv_mode_find()
1186 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1187 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1247 top = conn_state->tv.margins.top; in intel_tv_compute_config()
1248 bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config()
1267 tv_conn_state->margins.top = conn_state->tv.margins.top; in intel_tv_compute_config()
1268 tv_conn_state->margins.bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config()
1342 conn_state->tv.margins.left, in intel_tv_compute_config()
1343 conn_state->tv.margins.right); in intel_tv_compute_config()
1563 xpos = conn_state->tv.margins.left; in intel_tv_pre_enable()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/arch/arm64/kernel/vdso/
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-6.6.21/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.6.21/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.6.21/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()

123456789