Lines Matching defs:mode
54 * drm_atomic_set_mode_for_crtc - set mode for CRTC
56 * @mode: kernel-internal mode to use for the CRTC, or NULL to disable
58 * Set a mode (originating from the kernel) on the desired CRTC state and update
65 const struct drm_display_mode *mode)
71 if (mode && memcmp(&state->mode, mode, sizeof(*mode)) == 0)
77 if (mode) {
80 drm_mode_convert_to_umode(&umode, mode);
86 drm_mode_copy(&state->mode, mode);
91 mode->name, crtc->base.id, crtc->name, state);
93 memset(&state->mode, 0, sizeof(state->mode));
104 * drm_atomic_set_mode_prop_for_crtc - set mode for CRTC
106 * @blob: pointer to blob property to use for mode
108 * Set a mode (originating from a blob property) on the desired CRTC state.
110 * and release the reference held on the state's existing mode property, if any
127 memset(&state->mode, 0, sizeof(state->mode));
133 DRM_DEBUG_ATOMIC("[CRTC:%d:%s] bad mode blob length: %zu\n",
140 &state->mode, blob->data);
142 DRM_DEBUG_ATOMIC("[CRTC:%d:%s] invalid mode (ret=%d, status=%s):\n",
144 ret, drm_get_mode_status_name(state->mode.status));
145 drm_mode_debug_printmodeline(&state->mode);
152 state->mode.name, crtc->base.id, crtc->name,
433 struct drm_property_blob *mode =
435 ret = drm_atomic_set_mode_prop_for_crtc(state, mode);
436 drm_property_blob_put(mode);
709 state->tv.mode = val;
814 *val = state->tv.mode;
923 int mode)
937 if (mode != DRM_MODE_DPMS_ON)
938 mode = DRM_MODE_DPMS_OFF;
939 connector->dpms = mode;
1226 * Having this flag means user mode pends on event which will never