| /linux/drivers/gpu/drm/sun4i/ |
| H A D | sun4i_tv.c | 266 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/kernel/time/ |
| H A 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/drivers/input/misc/ |
| H A D | hp_sdc_rtc.c | 273 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/tools/include/nolibc/sys/ |
| H A D | time.h | 19 * int gettimeofday(struct timeval *tv, struct timezone *tz); 23 int _sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument 31 if (!ret && tv) { in sys_gettimeofday() 32 tv->tv_sec = tp.tv_sec; in sys_gettimeofday() 33 tv->tv_usec = (uint32_t)tp.tv_nsec / 1000; in sys_gettimeofday() 40 int gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() 42 return __sysret(_sys_gettimeofday(tv, tz)); 44 gettimeofday(struct timeval * tv,struct timezone * tz) gettimeofday() argument
|
| /linux/tools/testing/selftests/rcutorture/bin/ |
| H A D | mkinitrd.sh | 39 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/drivers/gpu/drm/radeon/ |
| H A D | radeon_legacy_tv.c | 395 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/drivers/gpu/drm/gud/ |
| H A D | gud_connector.c | 87 connector_state->tv.brightness = gconn->backlight->props.brightness; in gud_connector_backlight_update_status_work() 301 if (old_state->tv.margins.left != new_state->tv.margins.left || in gud_connector_atomic_check() 302 old_state->tv.margins.right != new_state->tv.margins.right || in gud_connector_atomic_check() 303 old_state->tv.margins.top != new_state->tv.margins.top || in gud_connector_atomic_check() 304 old_state->tv.margins.bottom != new_state->tv.margins.bottom || in gud_connector_atomic_check() 305 old_state->tv.legacy_mode != new_state->tv.legacy_mode || in gud_connector_atomic_check() 306 old_state->tv.brightness != new_state->tv.brightness || in gud_connector_atomic_check() 307 old_state->tv.contrast != new_state->tv.contrast || in gud_connector_atomic_check() 308 old_state->tv.flicker_reduction != new_state->tv.flicker_reduction || in gud_connector_atomic_check() 309 old_state->tv.overscan != new_state->tv.overscan || in gud_connector_atomic_check() [all …]
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | vdso_standalone_test_x86.c | 36 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 44 struct timeval tv; in main() 45 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main() 49 (long long)tv.tv_sec, (long long)tv.tv_usec); in main() 46 struct timeval tv; main() local
|
| H A D | vdso_test_gettimeofday.c | 36 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 44 struct timeval tv; in main() 45 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main() 49 (long long)tv.tv_sec, (long long)tv.tv_usec); in main() 46 struct timeval tv; main() local
|
| H A D | vdso_test_abi.c | 35 typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz); 69 struct timeval tv; in vdso_test_gettimeofday() 70 long ret = VDSO_CALL(vdso_gettimeofday, 2, &tv, 0); in vdso_test_gettimeofday() 74 (long long)tv.tv_sec, (long long)tv.tv_usec); in vdso_test_gettimeofday() 68 struct timeval tv; vdso_test_gettimeofday() local
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_sdvo.c | 177 } tv; member 1223 format_map = 1 << conn_state->tv.legacy_mode; in intel_sdvo_set_tv_format() 1475 UPDATE_PROPERTY(sdvo_state->tv.overscan_h, OVERSCAN_H); in intel_sdvo_update_props() 1478 UPDATE_PROPERTY(sdvo_state->tv.overscan_v, OVERSCAN_V); in intel_sdvo_update_props() 1481 UPDATE_PROPERTY(sdvo_state->tv.hpos, HPOS); in intel_sdvo_update_props() 1484 UPDATE_PROPERTY(sdvo_state->tv.vpos, VPOS); in intel_sdvo_update_props() 1487 UPDATE_PROPERTY(conn_state->tv.saturation, SATURATION); in intel_sdvo_update_props() 1490 UPDATE_PROPERTY(conn_state->tv.contrast, CONTRAST); in intel_sdvo_update_props() 1493 UPDATE_PROPERTY(conn_state->tv.hue, HUE); in intel_sdvo_update_props() 1496 UPDATE_PROPERTY(conn_state->tv.brightness, BRIGHTNESS); in intel_sdvo_update_props() [all …]
|
| H A D | intel_tv.c | 953 int format = conn_state->tv.legacy_mode; in intel_tv_mode_find() 1184 conn_state->tv.margins.top - in intel_tv_vert_scaling() 1185 conn_state->tv.margins.bottom != in intel_tv_vert_scaling() 1245 top = conn_state->tv.margins.top; in intel_tv_compute_config() 1246 bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config() 1265 tv_conn_state->margins.top = conn_state->tv.margins.top; in intel_tv_compute_config() 1266 tv_conn_state->margins.bottom = conn_state->tv.margins.bottom; in intel_tv_compute_config() 1340 conn_state->tv.margins.left, in intel_tv_compute_config() 1341 conn_state->tv.margins.right); in intel_tv_compute_config() 1555 xpos = conn_state->tv.margins.left; in intel_tv_pre_enable() [all …]
|
| /linux/tools/testing/selftests/timers/ |
| H A 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()
|
| H A 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/arch/parisc/kernel/vdso64/ |
| H A D | vdso64_generic.c | 11 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 15 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 18 return syscall2(__NR_gettimeofday, (long)tv, (long)tz); in __vdso_gettimeofday()
|
| /linux/arch/arm64/kernel/vdso/ |
| H A D | vgettimeofday.c | 10 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/arch/parisc/kernel/vdso32/ |
| H A D | vdso32_generic.c | 13 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 18 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 21 return syscall2(__NR_gettimeofday, (long)tv, (long)tz); in __vdso_gettimeofday()
|
| /linux/fs/ |
| H A D | select.c | 53 static long __estimate_accuracy(struct timespec64 *tv) in __estimate_accuracy() argument 58 if (tv->tv_sec < 0) in __estimate_accuracy() 64 if (tv->tv_sec > MAX_SLACK / (NSEC_PER_SEC/divfactor)) in __estimate_accuracy() 67 slack = tv->tv_nsec / divfactor; in __estimate_accuracy() 68 slack += tv->tv_sec * (NSEC_PER_SEC/divfactor); in __estimate_accuracy() 76 u64 select_estimate_accuracy(struct timespec64 *tv) in select_estimate_accuracy() argument 86 now = timespec64_sub(*tv, now); in select_estimate_accuracy() 704 struct __kernel_old_timeval tv; in kern_select() local 708 if (copy_from_user(&tv, tvp, sizeof(tv))) in kern_select() 719 if (tv.tv_sec < 0 || tv.tv_usec < 0) in kern_select() [all …]
|
| /linux/tools/perf/bench/ |
| H A D | mem-functions.c | 79 struct timeval tv; 157 BUG_ON(gettimeofday(&t->tv, NULL)); in clock_diff() 167 timersub(&e->tv, &s->tv, &t.tv); in clock_accum() 177 timeradd(&a->tv, &b->tv, &a->tv); in timeval2double() 221 result_bps = (double)p->size_total/timeval2double(&rt.tv); in __bench_mem_function() 235 result_bps = (double)p->size_total/timeval2double(&rt.tv); in __bench_mem_function() 76 struct timeval tv; global() member [all...] |
| /linux/tools/testing/selftests/rtc/ |
| H A D | rtctest.c | 200 struct timeval tv = { .tv_sec = 2 }; in TEST_F() local 206 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 223 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 272 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 292 struct timeval tv = { .tv_sec = ALARM_DELTA + 2 }; in TEST_F() local 342 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F() 357 struct timeval tv = { .tv_sec = 62 }; variable 404 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); 424 struct timeval tv = { .tv_sec = 62 }; variable 472 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv);
|
| /linux/tools/power/acpi/tools/acpidbg/ |
| H A D | acpidbg.c | 269 struct timeval tv; in acpi_aml_loop() local 283 tv.tv_sec = ACPI_AML_SEC_TICK; in acpi_aml_loop() 284 tv.tv_usec = 0; in acpi_aml_loop() 306 ret = select(maxfd+1, &rfds, &wfds, NULL, &tv); in acpi_aml_loop() 339 struct timeval tv; in acpi_aml_readable() local 343 tv.tv_sec = 0; in acpi_aml_readable() 344 tv.tv_usec = ACPI_AML_USEC_PEEK; in acpi_aml_readable() 347 ret = select(maxfd+1, &rfds, NULL, NULL, &tv); in acpi_aml_readable()
|
| /linux/drivers/media/pci/ivtv/ |
| H A D | ivtv-driver.c | 362 void ivtv_read_eeprom(struct ivtv *itv, struct tveeprom *tv) in ivtv_read_eeprom() argument 368 tveeprom_hauppauge_analog(tv, eedata); in ivtv_read_eeprom() 373 struct tveeprom tv; in ivtv_process_eeprom() local 376 ivtv_read_eeprom(itv, &tv); in ivtv_process_eeprom() 380 switch (tv.model) { in ivtv_process_eeprom() 403 IVTV_ERR("Unknown model %d, defaulting to PVR-150\n", tv.model); in ivtv_process_eeprom() 408 switch (tv.model) { in ivtv_process_eeprom() 437 if (tv.model / 1000 == 23) { in ivtv_process_eeprom() 441 .tv = { 0x61, I2C_CLIENT_END }, in ivtv_process_eeprom() 453 tv.has_radio = 0; in ivtv_process_eeprom() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | psock_snd.c | 253 struct timeval tv = { .tv_usec = 100 * 1000 }; in setup_rx() local 261 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) in setup_rx() 292 struct timeval tv = { .tv_usec = 100 * 1000 }; in setup_sniffer() local 299 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) in setup_sniffer()
|
| /linux/drivers/media/pci/cx18/ |
| H A D | cx18-driver.c | 310 void cx18_read_eeprom(struct cx18 *cx, struct tveeprom *tv) in cx18_read_eeprom() argument 315 memset(tv, 0, sizeof(*tv)); in cx18_read_eeprom() 332 tveeprom_hauppauge_analog(tv, eedata); in cx18_read_eeprom() 336 tv->model = 0x718; in cx18_read_eeprom() 342 tv->model = 0xffffffff; in cx18_read_eeprom() 353 struct tveeprom tv; in cx18_process_eeprom() local 355 cx18_read_eeprom(cx, &tv); in cx18_process_eeprom() 362 switch (tv.model) { in cx18_process_eeprom() 394 tv.model); in cx18_process_eeprom() 405 if (tv.tuner_type == TUNER_ABSENT) in cx18_process_eeprom() [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_inode_buf.c | 149 struct timespec64 tv; in xfs_inode_decode_bigtime() local 152 tv.tv_sec = xfs_bigtime_to_unix(div_u64_rem(ts, NSEC_PER_SEC, &n)); in xfs_inode_decode_bigtime() 153 tv.tv_nsec = n; in xfs_inode_decode_bigtime() 155 return tv; in xfs_inode_decode_bigtime() 164 struct timespec64 tv; in xfs_inode_from_disk_ts() local 171 tv.tv_sec = (int)be32_to_cpu(lts->t_sec); in xfs_inode_from_disk_ts() 172 tv.tv_nsec = (int)be32_to_cpu(lts->t_nsec); in xfs_inode_from_disk_ts() 174 return tv; in xfs_inode_from_disk_ts() 286 const struct timespec64 tv) in xfs_inode_to_disk_ts() argument 292 return cpu_to_be64(xfs_inode_encode_bigtime(tv)); in xfs_inode_to_disk_ts() [all …]
|