Lines Matching refs:adjusted_mode

117 	struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;  in is_cmrr_frac_required()  local
123 drm_mode_vrefresh(adjusted_mode) * FIXED_POINT_PRECISION; in is_cmrr_frac_required()
125 adjusted_mode->crtc_clock * 1000 / adjusted_mode->crtc_htotal; in is_cmrr_frac_required()
127 pixel_clock_per_line * FIXED_POINT_PRECISION / adjusted_mode->crtc_vtotal; in is_cmrr_frac_required()
140 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in cmrr_get_vtotal() local
142 desired_refresh_rate = drm_mode_vrefresh(adjusted_mode); in cmrr_get_vtotal()
149 crtc_state->cmrr.cmrr_n = mul_u32_u32(desired_refresh_rate * adjusted_mode->crtc_htotal, in cmrr_get_vtotal()
151 vtotal = DIV_ROUND_UP_ULL(mul_u32_u32(adjusted_mode->crtc_clock * 1000, multiplier_n), in cmrr_get_vtotal()
153 adjusted_pixel_rate = mul_u32_u32(adjusted_mode->crtc_clock * 1000, multiplier_m); in cmrr_get_vtotal()
168 struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; in intel_vrr_compute_config() local
179 if (adjusted_mode->flags & DRM_MODE_FLAG_INTERLACE) in intel_vrr_compute_config()
183 intel_vrr_is_in_range(connector, drm_mode_vrefresh(adjusted_mode)); in intel_vrr_compute_config()
190 vmin = DIV_ROUND_UP(adjusted_mode->crtc_clock * 1000, in intel_vrr_compute_config()
191 adjusted_mode->crtc_htotal * info->monitor_range.max_vfreq); in intel_vrr_compute_config()
192 vmax = adjusted_mode->crtc_clock * 1000 / in intel_vrr_compute_config()
193 (adjusted_mode->crtc_htotal * info->monitor_range.min_vfreq); in intel_vrr_compute_config()
195 vmin = max_t(int, vmin, adjusted_mode->crtc_vtotal); in intel_vrr_compute_config()
196 vmax = max_t(int, vmax, adjusted_mode->crtc_vtotal); in intel_vrr_compute_config()
236 (crtc_state->hw.adjusted_mode.crtc_vtotal - in intel_vrr_compute_config()
237 crtc_state->hw.adjusted_mode.vsync_start); in intel_vrr_compute_config()
239 (crtc_state->hw.adjusted_mode.crtc_vtotal - in intel_vrr_compute_config()
240 crtc_state->hw.adjusted_mode.vsync_end); in intel_vrr_compute_config()
249 crtc_state->vrr.vmin + 1 - adjusted_mode->crtc_vblank_start; in intel_vrr_compute_config()
252 min(255, crtc_state->vrr.vmin - adjusted_mode->crtc_vblank_start - in intel_vrr_compute_config()