| /Linux-v4.19/drivers/gpu/drm/sun4i/ |
| D | sun4i_tv.c | 345 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_disable() local 350 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_disable() 359 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_enable() local 366 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_enable() 375 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder); in sun4i_tv_mode_set() local 379 regmap_update_bits(tv->regs, SUN4I_TVE_EN_REG, in sun4i_tv_mode_set() 387 regmap_write(tv->regs, SUN4I_TVE_CFG0_REG, in sun4i_tv_mode_set() 396 regmap_write(tv->regs, SUN4I_TVE_DAC0_REG, in sun4i_tv_mode_set() 407 regmap_write(tv->regs, SUN4I_TVE_NOTCH_REG, in sun4i_tv_mode_set() 411 regmap_write(tv->regs, SUN4I_TVE_CHROMA_FREQ_REG, in sun4i_tv_mode_set() [all …]
|
| /Linux-v4.19/fs/ |
| D | utimes.c | 26 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local 29 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2() 30 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2() 32 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2() 33 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2() 35 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2() 236 struct timespec64 tv[2]; in COMPAT_SYSCALL_DEFINE2() local 239 if (get_user(tv[0].tv_sec, &t->actime) || in COMPAT_SYSCALL_DEFINE2() 240 get_user(tv[1].tv_sec, &t->modtime)) in COMPAT_SYSCALL_DEFINE2() 242 tv[0].tv_nsec = 0; in COMPAT_SYSCALL_DEFINE2() [all …]
|
| /Linux-v4.19/kernel/time/ |
| D | time.c | 86 struct timespec64 tv; in SYSCALL_DEFINE1() local 89 if (get_user(tv.tv_sec, tptr)) in SYSCALL_DEFINE1() 92 tv.tv_nsec = 0; in SYSCALL_DEFINE1() 94 err = security_settime64(&tv, NULL); in SYSCALL_DEFINE1() 98 do_settimeofday64(&tv); in SYSCALL_DEFINE1() 124 struct timespec64 tv; in COMPAT_SYSCALL_DEFINE1() local 127 if (get_user(tv.tv_sec, tptr)) in COMPAT_SYSCALL_DEFINE1() 130 tv.tv_nsec = 0; in COMPAT_SYSCALL_DEFINE1() 132 err = security_settime64(&tv, NULL); in COMPAT_SYSCALL_DEFINE1() 136 do_settimeofday64(&tv); in COMPAT_SYSCALL_DEFINE1() [all …]
|
| /Linux-v4.19/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 54 old = tv->speed; in speed_store() 55 tv->speed = temp; in speed_store() 57 dev_dbg(&tv->udev->dev, "speed = %d\n", tv->speed); in speed_store() 60 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), in speed_store() 63 tv->speed, /* speed value */ in speed_store() 66 tv->speed = old; in speed_store() 67 dev_dbg(&tv->udev->dev, "retval = %d\n", retval); in speed_store()
|
| /Linux-v4.19/arch/x86/entry/vdso/ |
| D | vclock_gettime.c | 28 extern int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz); 52 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument 56 asm ("syscall" : "=a" (ret), "=m" (*tv), "=m" (*tz) : in vdso_fallback_gtod() 57 "0" (__NR_gettimeofday), "D" (tv), "S" (tz) : in vdso_fallback_gtod() 80 notrace static long vdso_fallback_gtod(struct timeval *tv, struct timezone *tz) in vdso_fallback_gtod() argument 89 : "=a" (ret), "=m" (*tv), "=m" (*tz) in vdso_fallback_gtod() 90 : "0" (__NR_gettimeofday), [tv] "g" (tv), "c" (tz) in vdso_fallback_gtod() 299 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 301 if (likely(tv != NULL)) { in __vdso_gettimeofday() 302 if (unlikely(do_realtime((struct timespec *)tv) == VCLOCK_NONE)) in __vdso_gettimeofday() [all …]
|
| /Linux-v4.19/drivers/gpu/drm/radeon/ |
| D | radeon_legacy_tv.c | 394 WREG32(RADEON_TV_UV_ADR, tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 395 h_table = radeon_get_htiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 396 v_table = radeon_get_vtiming_tables_addr(tv_dac->tv.tv_uv_adr); in radeon_restore_tv_timing_tables() 399 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() 401 if (tv_dac->tv.h_code_timing[i] == 0 || tv_dac->tv.h_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 405 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() 407 if (tv_dac->tv.v_code_timing[i] == 0 || tv_dac->tv.v_code_timing[i + 1] == 0) in radeon_restore_tv_timing_tables() 417 WREG32(RADEON_TV_FRESTART, tv_dac->tv.frestart); in radeon_legacy_write_tv_restarts() 418 WREG32(RADEON_TV_HRESTART, tv_dac->tv.hrestart); in radeon_legacy_write_tv_restarts() 419 WREG32(RADEON_TV_VRESTART, tv_dac->tv.vrestart); in radeon_legacy_write_tv_restarts() [all …]
|
| /Linux-v4.19/arch/sh/kernel/ |
| D | time.c | 26 static void null_rtc_get_time(struct timespec *tv) in null_rtc_get_time() argument 28 tv->tv_sec = mktime(2000, 1, 1, 0, 0, 0); in null_rtc_get_time() 29 tv->tv_nsec = 0; in null_rtc_get_time() 54 struct timespec tv; in rtc_generic_get_time() local 56 rtc_sh_get_time(&tv); in rtc_generic_get_time() 57 rtc_time_to_tm(tv.tv_sec, tm); in rtc_generic_get_time()
|
| /Linux-v4.19/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-v4.19/arch/sparc/vdso/ |
| D | vclock_gettime.c | 92 vdso_fallback_gettimeofday(struct timeval *tv, struct timezone *tz) in vdso_fallback_gettimeofday() argument 95 register long o0 __asm__("o0") = (long) tv; in vdso_fallback_gettimeofday() 241 __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 246 if (likely(tv != NULL)) { in __vdso_gettimeofday() 249 struct timeval tv; in __vdso_gettimeofday() member 250 } *tstv = (union tstv_t *) tv; in __vdso_gettimeofday() 260 tstv->tv.tv_usec = tstv->ts.tv_nsec; in __vdso_gettimeofday() 261 tstv->tv.tv_usec /= 1000; in __vdso_gettimeofday() 270 return vdso_fallback_gettimeofday(tv, tz); in __vdso_gettimeofday()
|
| /Linux-v4.19/include/linux/ |
| D | time32.h | 173 static inline bool timeval_valid(const struct timeval *tv) in timeval_valid() argument 176 if (tv->tv_sec < 0) in timeval_valid() 180 if (tv->tv_usec < 0 || tv->tv_usec >= USEC_PER_SEC) in timeval_valid() 195 static inline s64 timeval_to_ns(const struct timeval *tv) in timeval_to_ns() argument 197 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 198 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
|
| /Linux-v4.19/drivers/gpu/drm/i915/ |
| D | intel_sdvo.c | 185 } tv; member 1037 format_map = 1 << conn_state->tv.mode; in intel_sdvo_set_tv_format() 1222 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props() 1225 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props() 1228 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props() 1231 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props() 1234 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props() 1237 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props() 1240 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props() 1243 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props() [all …]
|
| D | intel_tv.c | 837 int format = conn_state->tv.mode; in intel_tv_mode_find() 1091 xpos += conn_state->tv.margins.left; in intel_tv_pre_enable() 1092 ypos += conn_state->tv.margins.top; in intel_tv_pre_enable() 1093 xsize -= (conn_state->tv.margins.left + in intel_tv_pre_enable() 1094 conn_state->tv.margins.right); in intel_tv_pre_enable() 1095 ysize -= (conn_state->tv.margins.top + in intel_tv_pre_enable() 1096 conn_state->tv.margins.bottom); in intel_tv_pre_enable() 1249 connector->state->tv.mode = i; in intel_tv_find_better_format() 1408 if (old_state->tv.mode != new_state->tv.mode || in intel_tv_atomic_check() 1409 old_state->tv.margins.left != new_state->tv.margins.left || in intel_tv_atomic_check() [all …]
|
| /Linux-v4.19/drivers/input/misc/ |
| D | hp_sdc_rtc.c | 436 struct timespec64 tv; in hp_sdc_rtc_proc_show() local 452 if (hp_sdc_rtc_read_rt(&tv)) { in hp_sdc_rtc_proc_show() 456 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 459 if (hp_sdc_rtc_read_fhs(&tv)) { in hp_sdc_rtc_proc_show() 463 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 466 if (hp_sdc_rtc_read_mt(&tv)) { in hp_sdc_rtc_proc_show() 470 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 473 if (hp_sdc_rtc_read_dt(&tv)) { in hp_sdc_rtc_proc_show() 477 (s64)tv.tv_sec, (long)tv.tv_nsec/1000000L); in hp_sdc_rtc_proc_show() 480 if (hp_sdc_rtc_read_ct(&tv)) { in hp_sdc_rtc_proc_show() [all …]
|
| /Linux-v4.19/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-v4.19/arch/mips/vdso/ |
| D | gettimeofday.c | 27 register struct timeval *tv asm("a0") = _tv; in gettimeofday_fallback() 35 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback() 222 int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 230 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 232 if (tv) { in __vdso_gettimeofday() 233 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 234 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
|
| /Linux-v4.19/kernel/ |
| D | compat.c | 96 static int __compat_get_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) in __compat_get_timeval() argument 99 __get_user(tv->tv_sec, &ctv->tv_sec) || in __compat_get_timeval() 100 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_get_timeval() 103 static int __compat_put_timeval(const struct timeval *tv, struct compat_timeval __user *ctv) in __compat_put_timeval() argument 106 __put_user(tv->tv_sec, &ctv->tv_sec) || in __compat_put_timeval() 107 __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_put_timeval() 124 int compat_get_timeval(struct timeval *tv, const void __user *utv) in compat_get_timeval() argument 127 return copy_from_user(tv, utv, sizeof(*tv)) ? -EFAULT : 0; in compat_get_timeval() 129 return __compat_get_timeval(tv, utv); in compat_get_timeval() 133 int compat_put_timeval(const struct timeval *tv, void __user *utv) in compat_put_timeval() argument [all …]
|
| /Linux-v4.19/arch/arm/vdso/ |
| D | vgettimeofday.c | 233 register struct timeval *tv asm("r0") = _tv; in gettimeofday_fallback() 240 : "r" (tv), "r" (tz), "r" (nr) in gettimeofday_fallback() 246 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 256 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 258 if (tv) { in __vdso_gettimeofday() 259 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 260 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
|
| /Linux-v4.19/arch/nds32/kernel/vdso/ |
| D | gettimeofday.c | 234 register struct timeval *tv asm("$r0") = _tv; in gettimeofday_fallback() 241 :"r"(tv), "r"(tz), "i"(__NR_gettimeofday) in gettimeofday_fallback() 247 notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz) in __vdso_gettimeofday() argument 256 return gettimeofday_fallback(tv, tz); in __vdso_gettimeofday() 260 if (tv) { in __vdso_gettimeofday() 261 tv->tv_sec = ts.tv_sec; in __vdso_gettimeofday() 262 tv->tv_usec = ts.tv_nsec / 1000; in __vdso_gettimeofday()
|
| /Linux-v4.19/drivers/gpu/drm/qxl/ |
| D | qxl_release.c | 163 struct qxl_bo_list, tv.head); in qxl_release_free_list() 164 bo = to_qxl_bo(entry->tv.bo); in qxl_release_free_list() 166 list_del(&entry->tv.head); in qxl_release_free_list() 209 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_list_add() 210 if (entry->tv.bo == &bo->tbo) in qxl_release_list_add() 219 entry->tv.bo = &bo->tbo; in qxl_release_list_add() 220 entry->tv.shared = false; in qxl_release_list_add() 221 list_add_tail(&entry->tv.head, &release->bos); in qxl_release_list_add() 263 list_for_each_entry(entry, &release->bos, tv.head) { in qxl_release_reserve_list() 264 struct qxl_bo *bo = to_qxl_bo(entry->tv.bo); in qxl_release_reserve_list()
|
| /Linux-v4.19/fs/xfs/ |
| D | xfs_trans_inode.c | 61 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()
|
| /Linux-v4.19/arch/alpha/kernel/ |
| D | osf_sys.c | 949 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() 1006 SYSCALL_DEFINE2(osf_gettimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 1009 if (tv) { in SYSCALL_DEFINE2() 1013 if (put_tv32(tv, &kts)) in SYSCALL_DEFINE2() 1023 SYSCALL_DEFINE2(osf_settimeofday, struct timeval32 __user *, tv, in SYSCALL_DEFINE2() argument 1029 if (tv) { in SYSCALL_DEFINE2() 1030 if (get_tv32(&kts, tv)) in SYSCALL_DEFINE2() [all …]
|
| /Linux-v4.19/drivers/media/usb/au0828/ |
| D | au0828-cards.c | 154 struct tveeprom tv; in hauppauge_eeprom() local 156 tveeprom_hauppauge_analog(&tv, eeprom_data); in hauppauge_eeprom() 157 dev->board.tuner_type = tv.tuner_type; in hauppauge_eeprom() 160 switch (tv.model) { in hauppauge_eeprom() 178 __func__, tv.model); in hauppauge_eeprom() 183 __func__, tv.model); in hauppauge_eeprom()
|
| /Linux-v4.19/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() 169 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 203 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
|