Lines Matching defs:rotation
895 * drm_client_rotation() - Check the initial rotation value
897 * @rotation: Returned rotation value
900 * to match the rotation needed on its connector.
905 * True if the plane can do the rotation, false otherwise.
907 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation)
920 *rotation = DRM_MODE_ROTATE_180;
923 *rotation = DRM_MODE_ROTATE_90;
926 *rotation = DRM_MODE_ROTATE_270;
929 *rotation = DRM_MODE_ROTATE_0;
933 * The panel already defined the default rotation
950 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK);
954 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK;
958 *rotation = (1 << sum_rot) | sum_rest;
962 * TODO: support 90 / 270 degree hardware rotation,
966 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 &&
967 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) ||
974 if (!(*rotation & valid_mask))
1009 plane_state->rotation = DRM_MODE_ROTATE_0;
1022 unsigned int rotation;
1024 if (drm_client_rotation(mode_set, &rotation)) {
1029 plane_state->rotation = rotation;