Lines Matching defs:mode
216 * resources like the mode and planes when setting ACTIVE to 0.
228 * ID of a blob containing the DRM mode info. To disable the CRTC,
339 * This function cleans up @crtc and removes it from the DRM mode setting
421 drm_mode_convert_to_umode(&crtc_resp->mode, &crtc->state->mode);
431 drm_mode_convert_to_umode(&crtc_resp->mode, &crtc->mode);
439 crtc_resp->mode.flags &= ~DRM_MODE_FLAG_PIC_AR_MASK;
516 * @mode: mode that framebuffer will be displayed under
521 const struct drm_display_mode *mode,
527 drm_mode_get_hv_timing(mode, &hdisplay, &vdisplay);
561 struct drm_display_mode *mode = NULL;
594 /* If we have a mode we need a framebuffer. */
595 /* If we pass -1, set the mode with the currently bound fb */
623 mode = drm_mode_create(dev);
624 if (!mode) {
629 (crtc_req->mode.flags & DRM_MODE_FLAG_PIC_AR_MASK) != DRM_MODE_FLAG_PIC_AR_NONE) {
636 ret = drm_mode_convert_umode(dev, mode, &crtc_req->mode);
638 DRM_DEBUG_KMS("Invalid mode (ret=%d, status=%s)\n",
639 ret, drm_get_mode_status_name(mode->status));
640 drm_mode_debug_printmodeline(mode);
667 mode, fb);
673 if (crtc_req->count_connectors == 0 && mode) {
674 DRM_DEBUG_KMS("Count connectors is 0 but mode set\n");
679 if (crtc_req->count_connectors > 0 && (!mode || !fb)) {
680 DRM_DEBUG_KMS("Count connectors is %d but no mode or fb set\n",
730 set.mode = mode;
751 drm_mode_destroy(dev, mode);
756 mode = NULL;