| /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 | 497 state->tv.margins.left = cmdline->tv_margins.left; in drm_atomic_helper_connector_tv_margins_reset() 498 state->tv.margins.right = cmdline->tv_margins.right; in drm_atomic_helper_connector_tv_margins_reset() 499 state->tv.margins.top = cmdline->tv_margins.top; in drm_atomic_helper_connector_tv_margins_reset() 500 state->tv.margins.bottom = cmdline->tv_margins.bottom; in drm_atomic_helper_connector_tv_margins_reset() 522 state->tv.mode = val; in drm_atomic_helper_connector_tv_reset() 525 state->tv.mode = cmdline->tv_mode; in drm_atomic_helper_connector_tv_reset() 531 state->tv.select_subconnector = val; in drm_atomic_helper_connector_tv_reset() 537 state->tv.subconnector = val; in drm_atomic_helper_connector_tv_reset() 543 state->tv.brightness = val; in drm_atomic_helper_connector_tv_reset() 549 state->tv.contrast = val; in drm_atomic_helper_connector_tv_reset() [all …]
|
| H A D | drm_atomic_uapi.c | 850 state->tv.select_subconnector = val; in drm_atomic_connector_set_property() 852 state->tv.subconnector = val; in drm_atomic_connector_set_property() 854 state->tv.margins.left = val; in drm_atomic_connector_set_property() 856 state->tv.margins.right = val; in drm_atomic_connector_set_property() 858 state->tv.margins.top = val; in drm_atomic_connector_set_property() 860 state->tv.margins.bottom = val; in drm_atomic_connector_set_property() 862 state->tv.legacy_mode = val; in drm_atomic_connector_set_property() 864 state->tv.mode = val; in drm_atomic_connector_set_property() 866 state->tv.brightness = val; in drm_atomic_connector_set_property() 868 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 | 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 | 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); 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/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/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 …]
|