Lines Matching defs:rotation
911 * drm_client_rotation() - Check the initial rotation value
913 * @rotation: Returned rotation value
916 * to match the rotation needed on its connector.
921 * True if the plane can do the rotation, false otherwise.
923 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation)
936 *rotation = DRM_MODE_ROTATE_180;
939 *rotation = DRM_MODE_ROTATE_90;
942 *rotation = DRM_MODE_ROTATE_270;
945 *rotation = DRM_MODE_ROTATE_0;
949 * The panel already defined the default rotation
966 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK);
970 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK;
974 *rotation = (1 << sum_rot) | sum_rest;
978 * TODO: support 90 / 270 degree hardware rotation,
982 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 &&
983 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) ||
990 if (!(*rotation & valid_mask))
1025 plane_state->rotation = DRM_MODE_ROTATE_0;
1038 unsigned int rotation;
1040 if (drm_client_rotation(mode_set, &rotation)) {
1045 plane_state->rotation = rotation;