| /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/drivers/gpu/drm/ |
| H A D | drm_atomic_state_helper.c | 498 state->tv.margins.left = cmdline->tv_margins.left; in drm_atomic_helper_connector_tv_margins_reset() 499 state->tv.margins.right = cmdline->tv_margins.right; in drm_atomic_helper_connector_tv_margins_reset() 500 state->tv.margins.top = cmdline->tv_margins.top; in drm_atomic_helper_connector_tv_margins_reset() 501 state->tv.margins.bottom = cmdline->tv_margins.bottom; in drm_atomic_helper_connector_tv_margins_reset() 523 state->tv.mode = val; in drm_atomic_helper_connector_tv_reset() 526 state->tv.mode = cmdline->tv_mode; in drm_atomic_helper_connector_tv_reset() 532 state->tv.select_subconnector = val; in drm_atomic_helper_connector_tv_reset() 538 state->tv.subconnector = val; in drm_atomic_helper_connector_tv_reset() 544 state->tv.brightness = val; in drm_atomic_helper_connector_tv_reset() 550 state->tv.contrast = val; in drm_atomic_helper_connector_tv_reset() [all …]
|
| H A D | drm_atomic_uapi.c | 834 state->tv.select_subconnector = val; in drm_atomic_connector_set_property() 836 state->tv.subconnector = val; in drm_atomic_connector_set_property() 838 state->tv.margins.left = val; in drm_atomic_connector_set_property() 840 state->tv.margins.right = val; in drm_atomic_connector_set_property() 842 state->tv.margins.top = val; in drm_atomic_connector_set_property() 844 state->tv.margins.bottom = val; in drm_atomic_connector_set_property() 846 state->tv.legacy_mode = val; in drm_atomic_connector_set_property() 848 state->tv.mode = val; in drm_atomic_connector_set_property() 850 state->tv.brightness = val; in drm_atomic_connector_set_property() 852 state->tv.contrast = val; in drm_atomic_connector_set_property() [all …]
|
| /linux/crypto/ |
| H A D | hkdf.c | 464 static int hkdf_test(const char *shash, const struct hkdf_testvec *tv) in hkdf_test() argument 474 tv->test, shash, PTR_ERR(tfm)); in hkdf_test() 486 if (tv->prk_size != prk_size) { in hkdf_test() 488 tv->test, driver, tv->prk_size, prk_size); in hkdf_test() 493 err = hkdf_extract(tfm, tv->ikm, tv->ikm_size, in hkdf_test() 494 tv->salt, tv->salt_size, prk); in hkdf_test() 497 tv->test, driver, err); in hkdf_test() 501 if (memcmp(prk, tv->prk, tv->prk_size)) { in hkdf_test() 503 tv->test, driver); in hkdf_test() 505 16, 1, prk, tv->prk_size, false); in hkdf_test() [all …]
|
| /linux/drivers/usb/misc/ |
| H A 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/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 | 23 int sys_gettimeofday(struct timeval *tv, struct timezone *tz) in sys_gettimeofday() argument 26 return my_syscall2(__NR_gettimeofday, tv, tz); in sys_gettimeofday() 34 if (!ret && tv) { in sys_gettimeofday() 35 tv->tv_sec = tp.tv_sec; in sys_gettimeofday() 36 tv->tv_usec = tp.tv_nsec / 1000; in sys_gettimeofday() 44 int gettimeofday(struct timeval *tv, struct timezone *tz) in gettimeofday() argument 46 return __sysret(sys_gettimeofday(tv, tz)); in gettimeofday()
|
| /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/tools/testing/selftests/vDSO/ |
| H A D | vdso_standalone_test_x86.c | 38 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 46 struct timeval tv; in main() local 47 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main() 51 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
|
| H A D | vdso_test_gettimeofday.c | 38 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz); in main() 46 struct timeval tv; in main() local 47 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main() 51 (long long)tv.tv_sec, (long long)tv.tv_usec); in main()
|
| H A D | vdso_test_abi.c | 35 typedef long (*vdso_gettimeofday_t)(struct timeval *tv, struct timezone *tz); 68 struct timeval tv; in vdso_test_gettimeofday() local 69 long ret = VDSO_CALL(vdso_gettimeofday, 2, &tv, 0); in vdso_test_gettimeofday() 73 (long long)tv.tv_sec, (long long)tv.tv_usec); in vdso_test_gettimeofday()
|
| /linux/arch/mips/vdso/ |
| H A D | vgettimeofday.c | 29 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 32 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday() 65 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, in __vdso_gettimeofday() argument 68 return __cvdso_gettimeofday(tv, tz); in __vdso_gettimeofday()
|
| /linux/arch/alpha/kernel/ |
| H A 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() 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/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/drivers/media/usb/au0828/ |
| H A 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/tools/perf/bench/ |
| H A D | mem-functions.c | 76 struct timeval tv; member 152 BUG_ON(gettimeofday(&t->tv, NULL)); in clock_get() 162 timersub(&e->tv, &s->tv, &t.tv); in clock_diff() 172 timeradd(&a->tv, &b->tv, &a->tv); in clock_accum() 215 result_bps = (double)p->size_total/timeval2double(&rt.tv); in __bench_mem_function() 224 result_bps = (double)p->size_total/timeval2double(&rt.tv); in __bench_mem_function()
|
| /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/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() 282 const struct timespec64 tv) in xfs_inode_to_disk_ts() argument 288 return cpu_to_be64(xfs_inode_encode_bigtime(tv)); in xfs_inode_to_disk_ts() [all …]
|
| /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 …]
|