• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/drm2/

Lines Matching refs:mode

77 	struct drm_display_mode *mode;
82 list_for_each_entry(mode, &connector->modes, head) {
83 if ((mode->flags & DRM_MODE_FLAG_INTERLACE) &&
85 mode->status = MODE_NO_INTERLACE;
86 if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) &&
88 mode->status = MODE_NO_DBLESCAN;
101 * Caller must hold mode config lock.
109 * callback for drivers that use the crtc helpers for output mode filtering and
119 struct drm_display_mode *mode;
128 list_for_each_entry(mode, &connector->modes, head)
129 mode->status = MODE_UNVERIFIED;
180 list_for_each_entry(mode, &connector->modes, head) {
181 if (mode->status == MODE_OK)
182 mode->status = connector_funcs->mode_valid(connector,
183 mode);
192 list_for_each_entry(mode, &connector->modes, head)
193 mode->vrefresh = drm_mode_vrefresh(mode);
199 list_for_each_entry(mode, &connector->modes, head) {
200 drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V);
201 drm_mode_debug_printmodeline(mode);
213 * Caller must hold mode config lock.
236 * Caller must hold mode config lock.
271 * Caller must hold mode config lock.
365 * drm_crtc_helper_set_mode - internal helper to set a mode
367 * @mode: mode to use
373 * Caller must hold mode config lock.
375 * Try to set @mode on @crtc. Give @crtc and its associated connectors a chance
376 * to fixup or reject the mode prior to trying to set it. This is an internal
381 * drm_crtc_helper_set_config() helper function to drive the mode setting
385 * True if the mode was set successfully, or false otherwise.
388 struct drm_display_mode *mode,
404 adjusted_mode = drm_mode_duplicate(dev, mode);
409 saved_mode = crtc->mode;
413 /* Update crtc values up front so the driver can rely on them for mode
416 crtc->mode = *mode;
420 /* Pass our mode to the connectors and the CRTC to give them a chance to
422 * a chance to reject the mode entirely.
429 if (!(ret = encoder_funcs->mode_fixup(encoder, mode,
436 if (!(ret = crtc_funcs->mode_fixup(crtc, mode, adjusted_mode))) {
442 /* Prepare the encoders and CRTCs before setting the mode. */
459 ret = !crtc_funcs->mode_set(crtc, mode, adjusted_mode, x, y, old_fb);
470 mode->base.id, mode->name);
472 encoder_funcs->mode_set(encoder, mode, adjusted_mode);
488 /* Store real post-adjustment hardware mode. */
502 crtc->mode = saved_mode;
538 * @set: mode set configuration
541 * Caller must hold mode config lock.
546 * kernel mode setting with the crtc helper functions and the assorted
558 bool mode_changed = false; /* if true do a full mode set */
580 if (!set->mode)
636 save_set.mode = &set->crtc->mode;
644 /* If we have no fb then treat it as a full mode set */
646 DRM_DEBUG_KMS("crtc has no fb, full mode set\n");
662 if (set->mode && !drm_mode_equal(set->mode, &set->crtc->mode)) {
663 DRM_DEBUG_KMS("modes are different, full mode set\n");
664 drm_mode_debug_printmodeline(&set->crtc->mode);
665 drm_mode_debug_printmodeline(set->mode);
688 DRM_DEBUG_KMS("encoder changed, full mode switch\n");
726 DRM_DEBUG_KMS("crtc changed, full mode switch\n");
747 DRM_DEBUG_KMS("attempting to set mode from"
749 drm_mode_debug_printmodeline(set->mode);
752 if (!drm_crtc_helper_set_mode(set->crtc, set->mode,
755 DRM_ERROR("failed to set mode on [CRTC:%d]\n",
808 !drm_crtc_helper_set_mode(save_set.crtc, save_set.mode, save_set.x,
848 * @mode: DPMS mode
855 void drm_helper_connector_dpms(struct drm_connector *connector, int mode)
861 if (mode == connector->dpms)
865 connector->dpms = mode;
868 if (mode < old_dpms) {
884 if (mode > old_dpms) {
935 ret = drm_crtc_helper_set_mode(crtc, &crtc->mode,
939 DRM_ERROR("failed to set mode on crtc %p\n", crtc);