Lines Matching refs:rotation
923 * drm_client_rotation() - Check the initial rotation value
925 * @rotation: Returned rotation value
928 * to match the rotation needed on its connector.
933 * True if the plane can do the rotation, false otherwise.
935 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation)
948 *rotation = DRM_MODE_ROTATE_180;
951 *rotation = DRM_MODE_ROTATE_90;
954 *rotation = DRM_MODE_ROTATE_270;
957 *rotation = DRM_MODE_ROTATE_0;
961 * The panel already defined the default rotation
978 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK);
982 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK;
986 *rotation = (1 << sum_rot) | sum_rest;
990 * TODO: support 90 / 270 degree hardware rotation,
994 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 &&
995 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) ||
1002 if (!(*rotation & valid_mask))
1037 plane_state->rotation = DRM_MODE_ROTATE_0;
1050 unsigned int rotation;
1052 if (drm_client_rotation(mode_set, &rotation)) {
1057 plane_state->rotation = rotation;