Home
last modified time | relevance | path

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

12345678

/Linux-v5.10/drivers/gpu/drm/sun4i/
Dsun4i_tv.c344 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() local
349 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_disable()
358 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_enable() local
365 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_enable()
374 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_mode_set() local
378 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_mode_set()
386 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, in sun4i_tv_mode_set()
395 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, in sun4i_tv_mode_set()
406 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, in sun4i_tv_mode_set()
410 regmap_write(tv->regs, SUN4I_TVE_CHROMA_FREQ_REG, in sun4i_tv_mode_set()
[all …]
/Linux-v5.10/fs/
Dutimes.c215 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
218 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
219 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
221 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
222 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
224 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
237 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
240 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
241 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
243 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/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()
/Linux-v5.10/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-v5.10/drivers/gpu/drm/i915/display/
Dintel_sdvo.c176 } tv; member
1192 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format()
1402 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props()
1405 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props()
1408 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props()
1411 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props()
1414 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props()
1417 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props()
1420 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props()
1423 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props()
[all …]
Dintel_tv.c948 int format = conn_state->tv.mode; in intel_tv_mode_find()
1176 conn_state->tv.margins.top - in intel_tv_vert_scaling()
1177 conn_state->tv.margins.bottom != in intel_tv_vert_scaling()
1226 top = conn_state->tv.margins.top; in intel_tv_compute_config()
1227 bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config()
1246 tv_conn_state->margins.top = conn_state->tv.margins.top; in intel_tv_compute_config()
1247 tv_conn_state->margins.bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config()
1321 conn_state->tv.margins.left, in intel_tv_compute_config()
1322 conn_state->tv.margins.right); in intel_tv_compute_config()
1542 xpos = conn_state->tv.margins.left; in intel_tv_pre_enable()
[all …]
/Linux-v5.10/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-v5.10/drivers/staging/media/zoran/
DTODO4 mplayer tv:///dev/video0 -tv driver=v4l2
7 mplayer tv:///dev/video0 -tv driver=v4l2:outfmt=mjpeg
/Linux-v5.10/tools/testing/selftests/rtc/
Drtctest.c90 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-v5.10/arch/nds32/kernel/vdso/
Dgettimeofday.c233 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-v5.10/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-v5.10/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_d.di_crtime = tv; in xfs_trans_ichgtime()
Dxfs_inode_buf.c162 struct timespec64 tv; in xfs_inode_decode_bigtime() local
165 tv.tv_sec = xfs_bigtime_to_unix(div_u64_rem(ts, NSEC_PER_SEC, &n)); in xfs_inode_decode_bigtime()
166 tv.tv_nsec = n; in xfs_inode_decode_bigtime()
168 return tv; in xfs_inode_decode_bigtime()
177 struct timespec64 tv; in xfs_inode_from_disk_ts() local
184 tv.tv_sec = (int)be32_to_cpu(lts->t_sec); in xfs_inode_from_disk_ts()
185 tv.tv_nsec = (int)be32_to_cpu(lts->t_nsec); in xfs_inode_from_disk_ts()
187 return tv; in xfs_inode_from_disk_ts()
285 const struct timespec64 tv) in xfs_inode_to_disk_ts() argument
291 return cpu_to_be64(xfs_inode_encode_bigtime(tv)); in xfs_inode_to_disk_ts()
[all …]
/Linux-v5.10/arch/alpha/kernel/
Dosf_sys.c948 struct timeval32 tv; in get_tv32() local
949 if (copy_from_user(&tv, i, sizeof(struct timeval32))) in get_tv32()
951 o->tv_sec = tv.tv_sec; in get_tv32()
952 o->tv_nsec = tv.tv_usec * NSEC_PER_USEC; in get_tv32()
981 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
984 if (tv) { in SYSCALL_DEFINE2()
988 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2()
998 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument
1004 if (tv) { in SYSCALL_DEFINE2()
1005 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2()
[all …]
/Linux-v5.10/drivers/gpu/drm/qxl/
Dqxl_release.c167 struct qxl_bo_list, tv.head); in qxl_release_free_list()
168 bo = to_qxl_bo(entry->tv.bo); in qxl_release_free_list()
170 list_del(&entry->tv.head); in qxl_release_free_list()
213 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_list_add()
214 if (entry->tv.bo == &bo->tbo) in qxl_release_list_add()
223 entry->tv.bo = &bo->tbo; in qxl_release_list_add()
224 entry->tv.num_shared = 0; in qxl_release_list_add()
225 list_add_tail(&entry->tv.head, &release->bos); in qxl_release_list_add()
267 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_reserve_list()
268 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); in qxl_release_reserve_list()
/Linux-v5.10/drivers/media/usb/au0828/
Dau0828-cards.c144 struct tveeprom tv; in hauppauge_eeprom() local
146 tveeprom_hauppauge_analog(&tv, eeprom_data); in hauppauge_eeprom()
147 dev->board.tuner_type = tv.tuner_type; in hauppauge_eeprom()
150 switch (tv.model) { in hauppauge_eeprom()
168 __func__, tv.model); in hauppauge_eeprom()
173 __func__, tv.model); in hauppauge_eeprom()
/Linux-v5.10/drivers/gpu/drm/
Ddrm_atomic_uapi.c697 state->tv.subconnector = val; in drm_atomic_connector_set_property()
699 state->tv.margins.left = val; in drm_atomic_connector_set_property()
701 state->tv.margins.right = val; in drm_atomic_connector_set_property()
703 state->tv.margins.top = val; in drm_atomic_connector_set_property()
705 state->tv.margins.bottom = val; in drm_atomic_connector_set_property()
707 state->tv.mode = val; in drm_atomic_connector_set_property()
709 state->tv.brightness = val; in drm_atomic_connector_set_property()
711 state->tv.contrast = val; in drm_atomic_connector_set_property()
713 state->tv.flicker_reduction = val; in drm_atomic_connector_set_property()
715 state->tv.overscan = val; in drm_atomic_connector_set_property()
[all …]

12345678