/Linux-v5.4/drivers/gpu/drm/sun4i/ |
D | sun4i_tv.c | 343 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() local 348 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_disable() 357 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() 373 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_mode_set() local 377 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_mode_set() 385 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, in sun4i_tv_mode_set() 394 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, in sun4i_tv_mode_set() 405 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, in sun4i_tv_mode_set() 409 regmap_write(tv->regs, SUN4I_TVE_CHROMA_FREQ_REG, in sun4i_tv_mode_set() [all …]
|
/Linux-v5.4/fs/ |
D | utimes.c | 206 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 209 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 210 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 212 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 213 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 215 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 228 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 231 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2() 232 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2() 234 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() [all …]
|
/Linux-v5.4/drivers/usb/misc/ |
D | trancevibrator.c | 37 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.4/kernel/time/ |
D | time.c | 83 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.4/arch/sparc/vdso/ |
D | vclock_gettime.c | 77 notrace static long vdso_fallback_gettimeofday(struct 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 timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 312 if (likely(tv != NULL)) { in __vdso_gettimeofday() 315 struct 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 timeval *tv, struct timezone *tz) in __vdso_gettimeofday_stick() argument [all …]
|
/Linux-v5.4/tools/testing/selftests/rcutorture/bin/ |
D | mkinitrd.sh | 89 struct timeval tv; 100 if (gettimeofday(&tv, NULL)) 102 tv.tv_sec -= tvb.tv_sec; 103 if (tv.tv_sec > 1) 105 tv.tv_usec += tv.tv_sec * 1000 * 1000; 106 tv.tv_usec -= tvb.tv_usec; 107 } while (tv.tv_usec < 1000);
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | radeon_legacy_tv.c | 396 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.4/tools/testing/selftests/vDSO/ |
D | vdso_test.c | 48 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 56 struct timeval tv; in main() local 57 long ret = gtod(&tv, 0); in main() 61 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
|
D | vdso_standalone_test_x86.c | 90 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in c_main() 96 struct timeval tv; in c_main() local 97 long ret = gtod(&tv, 0); in c_main() 101 to_base10(buf + 31, tv.tv_sec); in c_main() 102 to_base10(buf + 38, tv.tv_usec); in c_main()
|
/Linux-v5.4/kernel/ |
D | compat.c | 29 static int __compat_get_timeval(struct timeval *tv, const struct old_timeval32 __user *ctv) in __compat_get_timeval() argument 32 __get_user(tv->tv_sec, &ctv->tv_sec) || in __compat_get_timeval() 33 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_get_timeval() 36 static int __compat_put_timeval(const struct timeval *tv, struct old_timeval32 __user *ctv) in __compat_put_timeval() argument 39 __put_user(tv->tv_sec, &ctv->tv_sec) || in __compat_put_timeval() 40 __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_put_timeval() 57 int compat_get_timeval(struct timeval *tv, const void __user *utv) in compat_get_timeval() argument 60 return copy_from_user(tv, utv, sizeof(*tv)) ? -EFAULT : 0; in compat_get_timeval() 62 return __compat_get_timeval(tv, utv); in compat_get_timeval() 66 int compat_put_timeval(const struct timeval *tv, void __user *utv) in compat_put_timeval() argument [all …]
|
/Linux-v5.4/fs/xfs/libxfs/ |
D | xfs_trans_inode.c | 58 struct timespec64 tv; in xfs_trans_ichgtime() local 63 tv = current_time(inode); in xfs_trans_ichgtime() 66 inode->i_mtime = tv; in xfs_trans_ichgtime() 68 inode->i_ctime = tv; in xfs_trans_ichgtime() 70 ip->i_d.di_crtime.t_sec = (int32_t)tv.tv_sec; in xfs_trans_ichgtime() 71 ip->i_d.di_crtime.t_nsec = (int32_t)tv.tv_nsec; in xfs_trans_ichgtime()
|
/Linux-v5.4/drivers/input/misc/ |
D | hp_sdc_rtc.c | 436 struct timespec64 tv; in hp_sdc_rtc_proc_show() local 450 if (hp_sdc_rtc_read_rt(&tv)) { in hp_sdc_rtc_proc_show() 454 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 457 if (hp_sdc_rtc_read_fhs(&tv)) { in hp_sdc_rtc_proc_show() 461 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 464 if (hp_sdc_rtc_read_mt(&tv)) { in hp_sdc_rtc_proc_show() 468 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 471 if (hp_sdc_rtc_read_dt(&tv)) { in hp_sdc_rtc_proc_show() 475 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 478 if (hp_sdc_rtc_read_ct(&tv)) { in hp_sdc_rtc_proc_show() [all …]
|
/Linux-v5.4/arch/mips/vdso/ |
D | vgettimeofday.c | 20 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 23 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday() 46 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 49 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
|
/Linux-v5.4/include/linux/ |
D | time32.h | 185 static inline bool timeval_valid(const struct timeval *tv) in timeval_valid() argument 188 if (tv->tv_sec < 0) in timeval_valid() 192 if (tv->tv_usec < 0 || tv->tv_usec >= USEC_PER_SEC) in timeval_valid() 205 static inline s64 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument 207 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 208 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
|
/Linux-v5.4/drivers/gpu/drm/i915/display/ |
D | intel_sdvo.c | 175 } tv; member 1182 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format() 1380 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props() 1383 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props() 1386 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props() 1389 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props() 1392 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props() 1395 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props() 1398 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props() 1401 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props() [all …]
|
D | intel_tv.c | 945 int format = conn_state->tv.mode; in intel_tv_mode_find() 1177 conn_state->tv.margins.top - in intel_tv_vert_scaling() 1178 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.4/tools/testing/selftests/timers/ |
D | leapcrash.c | 82 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()
|
D | set-tz.c | 41 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.4/arch/arm/vdso/ |
D | vgettimeofday.c | 222 register struct timeval *tv asm("r0") = _tv; in gettimeofday_fallback() 229 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback() 235 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 245 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 247 if (tv) { in __vdso_gettimeofday() 248 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 249 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
|
/Linux-v5.4/tools/testing/selftests/rtc/ |
D | rtctest.c | 90 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.4/arch/nds32/kernel/vdso/ |
D | gettimeofday.c | 236 register struct timeval *tv asm("$r0") = _tv; in gettimeofday_fallback() 243 :"r"(tv), "r"(tz), "i"(__NR_gettimeofday) in gettimeofday_fallback() 249 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 258 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 262 if (tv) { in __vdso_gettimeofday() 263 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 264 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
|
/Linux-v5.4/drivers/gpu/drm/qxl/ |
D | qxl_release.c | 167 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.4/arch/alpha/kernel/ |
D | osf_sys.c | 948 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() 1005 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 1008 if (tv) { in SYSCALL_DEFINE2() 1012 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2() 1022 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 1028 if (tv) { in SYSCALL_DEFINE2() 1029 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2() [all …]
|
/Linux-v5.4/drivers/media/usb/au0828/ |
D | au0828-cards.c | 144 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.4/drivers/gpu/drm/ |
D | drm_atomic_uapi.c | 694 state->tv.subconnector = val; in drm_atomic_connector_set_property() 696 state->tv.margins.left = val; in drm_atomic_connector_set_property() 698 state->tv.margins.right = val; in drm_atomic_connector_set_property() 700 state->tv.margins.top = val; in drm_atomic_connector_set_property() 702 state->tv.margins.bottom = val; in drm_atomic_connector_set_property() 704 state->tv.mode = val; in drm_atomic_connector_set_property() 706 state->tv.brightness = val; in drm_atomic_connector_set_property() 708 state->tv.contrast = val; in drm_atomic_connector_set_property() 710 state->tv.flicker_reduction = val; in drm_atomic_connector_set_property() 712 state->tv.overscan = val; in drm_atomic_connector_set_property() [all …]
|