Lines Matching refs:fixed_mode
61 const struct drm_display_mode *fixed_mode, *best_mode = NULL; in intel_panel_fixed_mode() local
65 list_for_each_entry(fixed_mode, &connector->panel.fixed_modes, head) { in intel_panel_fixed_mode()
67 abs(drm_mode_vrefresh(fixed_mode) - vrefresh) < in intel_panel_fixed_mode()
69 best_mode = fixed_mode; in intel_panel_fixed_mode()
100 const struct drm_display_mode *fixed_mode, *best_mode = NULL; in intel_panel_downclock_mode() local
105 list_for_each_entry(fixed_mode, &connector->panel.fixed_modes, head) { in intel_panel_downclock_mode()
106 int vrefresh = drm_mode_vrefresh(fixed_mode); in intel_panel_downclock_mode()
108 if (is_alt_drrs_mode(fixed_mode, adjusted_mode) && in intel_panel_downclock_mode()
111 best_mode = fixed_mode; in intel_panel_downclock_mode()
122 const struct drm_display_mode *fixed_mode, *best_mode = adjusted_mode; in intel_panel_highest_mode() local
125 list_for_each_entry(fixed_mode, &connector->panel.fixed_modes, head) { in intel_panel_highest_mode()
126 if (fixed_mode->clock > best_mode->clock) in intel_panel_highest_mode()
127 best_mode = fixed_mode; in intel_panel_highest_mode()
135 const struct drm_display_mode *fixed_mode; in intel_panel_get_modes() local
138 list_for_each_entry(fixed_mode, &connector->panel.fixed_modes, head) { in intel_panel_get_modes()
141 mode = drm_mode_duplicate(connector->base.dev, fixed_mode); in intel_panel_get_modes()
163 const struct drm_display_mode *fixed_mode = in intel_panel_compute_config() local
166 if (!fixed_mode) in intel_panel_compute_config()
175 if (abs(drm_mode_vrefresh(adjusted_mode) - drm_mode_vrefresh(fixed_mode)) > 1) { in intel_panel_compute_config()
179 drm_mode_vrefresh(adjusted_mode), drm_mode_vrefresh(fixed_mode)); in intel_panel_compute_config()
184 drm_mode_copy(adjusted_mode, fixed_mode); in intel_panel_compute_config()
214 struct drm_display_mode *scan, *fixed_mode = NULL; in intel_panel_add_edid_preferred_mode() local
222 fixed_mode = scan; in intel_panel_add_edid_preferred_mode()
227 if (!fixed_mode) in intel_panel_add_edid_preferred_mode()
228 fixed_mode = list_first_entry(&connector->base.probed_modes, in intel_panel_add_edid_preferred_mode()
229 typeof(*fixed_mode), head); in intel_panel_add_edid_preferred_mode()
234 fixed_mode->type & DRM_MODE_TYPE_PREFERRED ? "preferred" : "first", in intel_panel_add_edid_preferred_mode()
235 DRM_MODE_ARG(fixed_mode)); in intel_panel_add_edid_preferred_mode()
237 fixed_mode->type |= DRM_MODE_TYPE_PREFERRED; in intel_panel_add_edid_preferred_mode()
239 list_move_tail(&fixed_mode->head, &connector->panel.fixed_modes); in intel_panel_add_edid_preferred_mode()
267 struct drm_display_mode *fixed_mode, in intel_panel_add_fixed_mode() argument
273 if (!fixed_mode) in intel_panel_add_fixed_mode()
276 fixed_mode->type |= DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; in intel_panel_add_fixed_mode()
278 info->width_mm = fixed_mode->width_mm; in intel_panel_add_fixed_mode()
279 info->height_mm = fixed_mode->height_mm; in intel_panel_add_fixed_mode()
283 DRM_MODE_ARG(fixed_mode)); in intel_panel_add_fixed_mode()
285 list_add_tail(&fixed_mode->head, &connector->panel.fixed_modes); in intel_panel_add_fixed_mode()
633 const struct drm_display_mode *fixed_mode = in intel_panel_mode_valid() local
636 if (!fixed_mode) in intel_panel_mode_valid()
639 if (mode->hdisplay != fixed_mode->hdisplay) in intel_panel_mode_valid()
642 if (mode->vdisplay != fixed_mode->vdisplay) in intel_panel_mode_valid()
645 if (drm_mode_vrefresh(mode) != drm_mode_vrefresh(fixed_mode)) in intel_panel_mode_valid()
668 struct drm_display_mode *fixed_mode, *next; in intel_panel_fini() local
674 list_for_each_entry_safe(fixed_mode, next, &panel->fixed_modes, head) { in intel_panel_fini()
675 list_del(&fixed_mode->head); in intel_panel_fini()
676 drm_mode_destroy(connector->base.dev, fixed_mode); in intel_panel_fini()