/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_drrs.c | 67 enum drrs_refresh_rate refresh_rate) in intel_drrs_set_refresh_rate_pipeconf() argument 79 bit, refresh_rate == DRRS_REFRESH_RATE_LOW ? bit : 0); in intel_drrs_set_refresh_rate_pipeconf() 84 enum drrs_refresh_rate refresh_rate) in intel_drrs_set_refresh_rate_m_n() argument 87 refresh_rate == DRRS_REFRESH_RATE_LOW ? in intel_drrs_set_refresh_rate_m_n() 97 enum drrs_refresh_rate refresh_rate) in intel_drrs_set_state() argument 101 if (refresh_rate == crtc->drrs.refresh_rate) in intel_drrs_set_state() 105 intel_drrs_set_refresh_rate_pipeconf(crtc, refresh_rate); in intel_drrs_set_state() 107 intel_drrs_set_refresh_rate_m_n(crtc, refresh_rate); in intel_drrs_set_state() 109 crtc->drrs.refresh_rate = refresh_rate; in intel_drrs_set_state() 319 crtc->drrs.refresh_rate == DRRS_REFRESH_RATE_LOW ? in intel_drrs_debugfs_status_show()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 517 int refresh_rate = 0; in get_refresh_rate() local 533 refresh_rate = ((timing->pix_clk_100hz * 100) / (h_v_total)) + 1; in get_refresh_rate() 534 return refresh_rate; in get_refresh_rate() 548 int refresh_rate = 0; in dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch() local 590 refresh_rate = get_refresh_rate(fpo_candidate_stream); in dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch() 591 if (refresh_rate < minimum_refreshrate_supported) in dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch() 644 uint64_t refresh_rate = 0; in dcn32_subvp_drr_admissable() local 654 refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t)100 + in dcn32_subvp_drr_admissable() 656 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in dcn32_subvp_drr_admissable() 657 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total); in dcn32_subvp_drr_admissable() [all …]
|
/openbmc/qemu/include/hw/display/ |
H A D | edid.h | 14 uint32_t refresh_rate; member 30 DEFINE_PROP_UINT32("refresh_rate", _state, _edid_info.refresh_rate, 0)
|
/openbmc/qemu/hw/display/ |
H A D | edid-generate.c | 63 static void generate_timings(Timings *timings, uint32_t refresh_rate, in generate_timings() argument 75 timings->clock = ((uint64_t)refresh_rate * in generate_timings() 390 uint32_t refresh_rate = info->refresh_rate ? info->refresh_rate : 75000; in qemu_edid_generate() local 417 generate_timings(&timings, refresh_rate, info->prefx, info->prefy); in qemu_edid_generate()
|
H A D | virtio-gpu-base.c | 64 .refresh_rate = g->req_state[scanout].refresh_rate, in virtio_gpu_base_generate_edid() 99 g->req_state[idx].refresh_rate = info->refresh_rate; in virtio_gpu_ui_info()
|
H A D | xenfb.c | 787 uint32_t refresh_rate; in xenfb_ui_info() local 795 refresh_rate = info->refresh_rate; in xenfb_ui_info() 796 if (!refresh_rate) { in xenfb_ui_info() 797 refresh_rate = 75; in xenfb_ui_info() 801 xenfb_send_refresh_period(xenfb, 1000 * 1000 / refresh_rate); in xenfb_ui_info()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_stream.c | 310 uint32_t refresh_rate; in is_subvp_high_refresh_candidate() local 313 refresh_rate = (stream->timing.pix_clk_100hz * (uint64_t)100 + in is_subvp_high_refresh_candidate() 315 refresh_rate = div_u64(refresh_rate, stream->timing.v_total); in is_subvp_high_refresh_candidate() 316 refresh_rate = div_u64(refresh_rate, stream->timing.h_total); in is_subvp_high_refresh_candidate() 324 if ((refresh_rate >= 120 && refresh_rate <= 175 && in is_subvp_high_refresh_candidate()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dsc/ |
H A D | dc_dsc.c | 1115 struct fixed31_32 refresh_rate; in dc_dsc_stream_bandwidth_overhead_in_kbps() local 1121 refresh_rate = dc_fixpt_from_int(timing->pix_clk_100hz); in dc_dsc_stream_bandwidth_overhead_in_kbps() 1122 refresh_rate = dc_fixpt_div_int(refresh_rate, timing->h_total); in dc_dsc_stream_bandwidth_overhead_in_kbps() 1123 refresh_rate = dc_fixpt_div_int(refresh_rate, timing->v_total); in dc_dsc_stream_bandwidth_overhead_in_kbps() 1124 refresh_rate = dc_fixpt_mul_int(refresh_rate, 100); in dc_dsc_stream_bandwidth_overhead_in_kbps() 1130 max_dsc_overhead = dc_fixpt_mul(max_dsc_overhead, refresh_rate); in dc_dsc_stream_bandwidth_overhead_in_kbps()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_mem_input.c | 680 uint32_t refresh_rate; in get_dmif_switch_time_us() local 700 refresh_rate = pixels_per_second / pixels_per_frame; in get_dmif_switch_time_us() 702 if (!refresh_rate) { in get_dmif_switch_time_us() 704 ASSERT(refresh_rate); in get_dmif_switch_time_us() 708 frame_time = us_in_sec / refresh_rate; in get_dmif_switch_time_us()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | dcn32_fpu.c | 683 unsigned int refresh_rate = 0; in dcn32_assign_subvp_pipe() local 689 refresh_rate = (pipe->stream->timing.pix_clk_100hz * 100 + in dcn32_assign_subvp_pipe() 703 (refresh_rate < 120 || dcn32_allow_subvp_high_refresh_rate(dc, context, pipe)) && in dcn32_assign_subvp_pipe() 1047 uint64_t refresh_rate = 0; in subvp_subvp_admissable() local 1057 refresh_rate = (pipe->stream->timing.pix_clk_100hz * (uint64_t)100 + in subvp_subvp_admissable() 1059 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.v_total); in subvp_subvp_admissable() 1060 refresh_rate = div_u64(refresh_rate, pipe->stream->timing.h_total); in subvp_subvp_admissable() 1062 if ((uint32_t)refresh_rate < min_refresh) in subvp_subvp_admissable() 1063 min_refresh = (uint32_t)refresh_rate; in subvp_subvp_admissable() 1064 if ((uint32_t)refresh_rate > max_refresh) in subvp_subvp_admissable() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | rs780_dpm.h | 49 int refresh_rate; member
|
H A D | rs780_dpm.c | 59 pi->refresh_rate = 60; in rs780_get_pm_mode_parameters() 67 pi->refresh_rate = drm_mode_vrefresh(&crtc->mode); in rs780_get_pm_mode_parameters() 366 WREG32(FVTHROT_TARGET_REG, 30000000 / pi->refresh_rate); in rs780_program_at() 367 WREG32(FVTHROT_CB1, 1000000 * 5 / pi->refresh_rate); in rs780_program_at() 368 WREG32(FVTHROT_CB2, 1000000 * 10 / pi->refresh_rate); in rs780_program_at() 369 WREG32(FVTHROT_CB3, 1000000 * 30 / pi->refresh_rate); in rs780_program_at() 370 WREG32(FVTHROT_CB4, 1000000 * 50 / pi->refresh_rate); in rs780_program_at()
|
/openbmc/linux/drivers/gpu/drm/amd/display/include/ |
H A D | audio_types.h | 43 uint32_t refresh_rate; member
|
/openbmc/u-boot/arch/arm/mach-keystone/ |
H A D | ddr3_spd.c | 132 u32 refresh_rate; member 273 spd->refresh_rate = spd->t_refprd; in ddrtimingcalculation() 397 spd_cb->emif_cfg.sdrfc = (spd->refresh_rate - 1) & 0xffff; in init_ddr3param()
|
/openbmc/u-boot/arch/x86/include/asm/arch-quark/ |
H A D | mrc.h | 124 uint8_t refresh_rate; member
|
/openbmc/linux/include/video/ |
H A D | uvesafb.h | 18 u16 refresh_rate; member
|
/openbmc/linux/drivers/video/fbdev/sis/ |
H A D | sis_main.c | 735 ivideo->refresh_rate = sisfb_vrate[i].refresh; in sisfb_search_refresh_rate() 741 ivideo->refresh_rate = sisfb_vrate[i-1].refresh; in sisfb_search_refresh_rate() 1252 ivideo->refresh_rate = (unsigned int) (hrate * 2 / vtotal); in sisfb_do_set_var() 1254 ivideo->refresh_rate = 60; in sisfb_do_set_var() 1288 if(sisfb_search_refresh_rate(ivideo, ivideo->refresh_rate, ivideo->sisfb_mode_idx) == 0) { in sisfb_do_set_var() 1290 ivideo->refresh_rate = 60; in sisfb_do_set_var() 1331 ivideo->current_refresh_rate = ivideo->refresh_rate; in sisfb_do_set_var() 1332 ivideo->sisfb_lastrates[ivideo->mode_no] = ivideo->refresh_rate; in sisfb_do_set_var() 1470 int refresh_rate, search_idx, tidx; in sisfb_check_var() local 1550 refresh_rate = 60; in sisfb_check_var() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_optc.c | 507 void optc2_get_last_used_drr_vtotal(struct timing_generator *optc, uint32_t *refresh_rate) in optc2_get_last_used_drr_vtotal() argument 511 REG_GET(OTG_DRR_CONTROL, OTG_V_TOTAL_LAST_USED_BY_DRR, refresh_rate); in optc2_get_last_used_drr_vtotal()
|
H A D | dcn20_optc.h | 85 uint32_t *refresh_rate);
|
/openbmc/linux/drivers/gpu/drm/ast/ |
H A D | ast_mode.c | 115 u32 refresh_rate_index = 0, refresh_rate; in ast_get_vbios_mode_info() local 179 refresh_rate = drm_mode_vrefresh(mode); in ast_get_vbios_mode_info() 185 while (loop->refresh_rate != 0xff) { in ast_get_vbios_mode_info() 198 if (loop->refresh_rate <= refresh_rate in ast_get_vbios_mode_info() 199 && (!best || loop->refresh_rate > best->refresh_rate)) in ast_get_vbios_mode_info()
|
/openbmc/linux/drivers/video/fbdev/via/ |
H A D | share.h | 305 int refresh_rate; member
|
/openbmc/linux/drivers/auxdisplay/ |
H A D | ht16k33.c | 83 uint32_t refresh_rate; member 242 schedule_delayed_work(&priv->work, HZ / fbdev->refresh_rate); in ht16k33_fb_queue() 635 &fbdev->refresh_rate); in ht16k33_fbdev_probe()
|
/openbmc/u-boot/arch/x86/cpu/quark/ |
H A D | dram.c | 90 mrc_params->refresh_rate = fdtdec_get_int(blob, node, in mrc_configure_params()
|
/openbmc/qemu/ui/ |
H A D | gtk.c | 729 static void gd_set_ui_refresh_rate(VirtualConsole *vc, int refresh_rate) in gd_set_ui_refresh_rate() argument 738 info.refresh_rate = refresh_rate; in gd_set_ui_refresh_rate() 783 int refresh_rate; in gd_update_monitor_refresh_rate() local 788 refresh_rate = gdk_monitor_get_refresh_rate(monitor); /* [mHz] */ in gd_update_monitor_refresh_rate() 790 refresh_rate = 0; in gd_update_monitor_refresh_rate() 793 gd_set_ui_refresh_rate(vc, refresh_rate); in gd_update_monitor_refresh_rate() 796 vc->gfx.dcl.update_interval = refresh_rate ? in gd_update_monitor_refresh_rate() 797 MIN(1000 * 1000 / refresh_rate, GUI_REFRESH_INTERVAL_DEFAULT) : in gd_update_monitor_refresh_rate()
|
/openbmc/linux/drivers/iio/temperature/ |
H A D | mlx90632.c | 86 #define MLX90632_REFRESH_RATE_STATUS(refresh_rate) (refresh_rate << 8) argument 928 int *refresh_rate) in mlx90632_get_refresh_rate() argument 937 *refresh_rate = MLX90632_REFRESH_RATE(meas1); in mlx90632_get_refresh_rate()
|