Lines Matching full:rotation

101  * rotation:
102 * Rotation is set up with drm_plane_create_rotation_property(). It adds a
103 * rotation and reflection step between the source and destination rectangles.
239 * drm_plane_create_rotation_property - create a new rotation property
241 * @rotation: initial value of the rotation property
246 * Since a rotation by 180° degress is the same as reflecting both along the x
247 * and the y axis the rotation property is somewhat redundant. Drivers can use
251 * drm_property_create_bitmask()) called "rotation" and has the following
267 * Rotation is the specified amount in degrees in counter clockwise direction,
269 * rotation. After reflection, the rotation is applied to the image sampled from
273 unsigned int rotation, in drm_plane_create_rotation_property() argument
287 WARN_ON(!is_power_of_2(rotation & DRM_MODE_ROTATE_MASK)); in drm_plane_create_rotation_property()
288 WARN_ON(rotation & ~supported_rotations); in drm_plane_create_rotation_property()
290 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property()
296 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property()
299 plane->state->rotation = rotation; in drm_plane_create_rotation_property()
308 * drm_rotation_simplify() - Try to simplify the rotation
309 * @rotation: Rotation to be simplified
312 * Attempt to simplify the rotation to a form that is supported.
316 * drm_rotation_simplify(rotation, DRM_MODE_ROTATE_0 |
325 unsigned int drm_rotation_simplify(unsigned int rotation, in drm_rotation_simplify() argument
328 if (rotation & ~supported_rotations) { in drm_rotation_simplify()
329 rotation ^= DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y; in drm_rotation_simplify()
330 rotation = (rotation & DRM_MODE_REFLECT_MASK) | in drm_rotation_simplify()
331 BIT((ffs(rotation & DRM_MODE_ROTATE_MASK) + 1) in drm_rotation_simplify()
335 return rotation; in drm_rotation_simplify()