Home | History | Annotate | Download | only in drm

Lines Matching refs:rotation

890  * drm_client_rotation() - Check the initial rotation value
892 * @rotation: Returned rotation value
895 * to match the rotation needed on its connector.
900 * True if the plane can do the rotation, false otherwise.
902 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation)
915 *rotation = DRM_MODE_ROTATE_180;
918 *rotation = DRM_MODE_ROTATE_90;
921 *rotation = DRM_MODE_ROTATE_270;
924 *rotation = DRM_MODE_ROTATE_0;
928 * The panel already defined the default rotation
945 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK);
949 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK;
953 *rotation = (1 << sum_rot) | sum_rest;
957 * TODO: support 90 / 270 degree hardware rotation,
961 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 &&
962 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) ||
969 if (!(*rotation & valid_mask))
1004 plane_state->rotation = DRM_MODE_ROTATE_0;
1017 unsigned int rotation;
1019 if (drm_client_rotation(mode_set, &rotation)) {
1024 plane_state->rotation = rotation;