Home
last modified time | relevance | path

Searched full:rotation (Results 1 – 25 of 872) sorted by relevance

12345678910>>...35

/kernel/linux/linux-6.6/drivers/media/platform/ti/omap/
Domap_voutdef.h59 /* Enum for Rotation
60 * DSS understands rotation in 0, 1, 2, 3 context
70 /* Enum for choosing rotation type for vout
71 * DSS2 doesn't understand no rotation as an
73 * rotation in the case where VRFB is not built in
154 enum dss_rotation rotation; member
182 * Return true if rotation is 90 or 270
186 return (vout->rotation == dss_rotation_90_degree || in is_rotation_90_or_270()
187 vout->rotation == dss_rotation_270_degree); in is_rotation_90_or_270()
191 * Return true if rotation is enabled
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/omap/
Domap_voutdef.h59 /* Enum for Rotation
60 * DSS understands rotation in 0, 1, 2, 3 context
70 /* Enum for choosing rotation type for vout
71 * DSS2 doesn't understand no rotation as an
73 * rotation in the case where VRFB is not built in
154 enum dss_rotation rotation; member
182 * Return true if rotation is 90 or 270
186 return (vout->rotation == dss_rotation_90_degree || in is_rotation_90_or_270()
187 vout->rotation == dss_rotation_270_degree); in is_rotation_90_or_270()
191 * Return true if rotation is enabled
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/
Ddrm_blend.c101 * 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
[all …]
Ddrm_rect.c242 * @rotation: Transformation to be applied
244 * Apply @rotation to the coordinates of rectangle @r.
246 * @width and @height combined with @rotation define
255 unsigned int rotation) in drm_rect_rotate() argument
259 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate()
262 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate()
267 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate()
273 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate()
308 * @rotation: Transformation whose inverse is to be applied
310 * Apply the inverse of @rotation to the coordinates
[all …]
Ddrm_panel.c341 * the "rotation" binding from a device tree node
345 * Looks up the rotation of a panel in the device tree. The orientation of the
346 * panel is expressed as a property name "rotation" in the device tree. The
347 * rotation in the device tree is counter clockwise.
349 * Return: 0 when a valid rotation value (0, 90, 180, or 270) is read or the
350 * rotation property doesn't exist. Return a negative error code on failure.
355 int rotation, ret; in of_drm_get_panel_orientation() local
357 ret = of_property_read_u32(np, "rotation", &rotation); in of_drm_get_panel_orientation()
359 /* Don't return an error if there's no rotation property. */ in of_drm_get_panel_orientation()
367 if (rotation == 0) in of_drm_get_panel_orientation()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_blend.c101 * 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.
232 * drm_plane_create_rotation_property - create a new rotation property
234 * @rotation: initial value of the rotation property
239 * Since a rotation by 180° degress is the same as reflecting both along the x
240 * and the y axis the rotation property is somewhat redundant. Drivers can use
244 * drm_property_create_bitmask()) called "rotation" and has the following
260 * Rotation is the specified amount in degrees in counter clockwise direction,
262 * rotation. After reflection, the rotation is applied to the image sampled from
[all …]
Ddrm_rect.c242 * @rotation: Transformation to be applied
244 * Apply @rotation to the coordinates of rectangle @r.
246 * @width and @height combined with @rotation define
255 unsigned int rotation) in drm_rect_rotate() argument
259 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate()
262 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate()
267 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate()
273 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate()
308 * @rotation: Transformation whose inverse is to be applied
310 * Apply the inverse of @rotation to the coordinates
[all …]
Ddrm_panel.c266 * the "rotation" binding from a device tree node
270 * Looks up the rotation of a panel in the device tree. The orientation of the
271 * panel is expressed as a property name "rotation" in the device tree. The
272 * rotation in the device tree is counter clockwise.
274 * Return: 0 when a valid rotation value (0, 90, 180, or 270) is read or the
275 * rotation property doesn't exist. Return a negative error code on failure.
280 int rotation, ret; in of_drm_get_panel_orientation() local
282 ret = of_property_read_u32(np, "rotation", &rotation); in of_drm_get_panel_orientation()
284 /* Don't return an error if there's no rotation property. */ in of_drm_get_panel_orientation()
292 if (rotation == 0) in of_drm_get_panel_orientation()
[all …]
/kernel/linux/linux-6.6/include/video/
Dimx-ipu-image-convert.h5 * i.MX Queued image conversion support, with tiling and rotation.
61 * @rot_mode: rotation mode
70 * and rotation mode meet IPU restrictions.
74 * @rot_mode: rotation mode
76 * Returns 0 if the formats and rotation mode meet IPU restrictions,
89 * @rot_mode: rotation mode
94 * on failure. The input/output formats and rotation mode must already meet
159 * @rot_mode: rotation mode
165 * As with ipu_image_convert_prepare(), the input/output formats and rotation
186 * @rot_mode: rotation mode
[all …]
/kernel/linux/linux-5.10/include/video/
Dimx-ipu-image-convert.h5 * i.MX Queued image conversion support, with tiling and rotation.
61 * @rot_mode: rotation mode
70 * and rotation mode meet IPU restrictions.
74 * @rot_mode: rotation mode
76 * Returns 0 if the formats and rotation mode meet IPU restrictions,
89 * @rot_mode: rotation mode
94 * on failure. The input/output formats and rotation mode must already meet
159 * @rot_mode: rotation mode
165 * As with ipu_image_convert_prepare(), the input/output formats and rotation
186 * @rot_mode: rotation mode
[all …]
/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_magn.c274 st->magn_orient.rotation[0] = st->orientation.rotation[3]; in inv_mpu_magn_set_orient()
275 st->magn_orient.rotation[1] = st->orientation.rotation[4]; in inv_mpu_magn_set_orient()
276 st->magn_orient.rotation[2] = st->orientation.rotation[5]; in inv_mpu_magn_set_orient()
278 st->magn_orient.rotation[3] = st->orientation.rotation[0]; in inv_mpu_magn_set_orient()
279 st->magn_orient.rotation[4] = st->orientation.rotation[1]; in inv_mpu_magn_set_orient()
280 st->magn_orient.rotation[5] = st->orientation.rotation[2]; in inv_mpu_magn_set_orient()
283 orient = st->orientation.rotation[6 + i]; in inv_mpu_magn_set_orient()
297 st->magn_orient.rotation[6 + i] = str; in inv_mpu_magn_set_orient()
/kernel/linux/linux-6.6/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_magn.c275 st->magn_orient.rotation[0] = st->orientation.rotation[3]; in inv_mpu_magn_set_orient()
276 st->magn_orient.rotation[1] = st->orientation.rotation[4]; in inv_mpu_magn_set_orient()
277 st->magn_orient.rotation[2] = st->orientation.rotation[5]; in inv_mpu_magn_set_orient()
279 st->magn_orient.rotation[3] = st->orientation.rotation[0]; in inv_mpu_magn_set_orient()
280 st->magn_orient.rotation[4] = st->orientation.rotation[1]; in inv_mpu_magn_set_orient()
281 st->magn_orient.rotation[5] = st->orientation.rotation[2]; in inv_mpu_magn_set_orient()
284 orient = st->orientation.rotation[i]; in inv_mpu_magn_set_orient()
303 st->magn_orient.rotation[i] = str; in inv_mpu_magn_set_orient()
/kernel/linux/linux-6.6/drivers/gpu/drm/ci/
Dtestlist.txt335 kms_ccs@pipe-A-bad-rotation-90-y_tiled_ccs
336 kms_ccs@pipe-A-bad-rotation-90-yf_tiled_ccs
337 kms_ccs@pipe-A-bad-rotation-90-y_tiled_gen12_rc_ccs
338 kms_ccs@pipe-A-bad-rotation-90-y_tiled_gen12_rc_ccs_cc
339 kms_ccs@pipe-A-bad-rotation-90-y_tiled_gen12_mc_ccs
340 kms_ccs@pipe-A-bad-rotation-90-4_tiled_dg2_rc_ccs
341 kms_ccs@pipe-A-bad-rotation-90-4_tiled_dg2_mc_ccs
342 kms_ccs@pipe-A-bad-rotation-90-4_tiled_dg2_rc_ccs_cc
343 kms_ccs@pipe-A-bad-rotation-90-4_tiled_mtl_rc_ccs
344 kms_ccs@pipe-A-bad-rotation-90-4_tiled_mtl_mc_ccs
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/
Ddrm_plane_helper_test.c41 unsigned int rotation; member
67 mock->rotation = params->rotation; in drm_plane_helper_init()
144 .rotation = DRM_MODE_ROTATE_0,
158 .rotation = DRM_MODE_ROTATE_90 | DRM_MODE_REFLECT_X,
170 .rotation = DRM_MODE_ROTATE_0,
182 .rotation = DRM_MODE_ROTATE_0,
194 .rotation = DRM_MODE_ROTATE_0,
206 .rotation = DRM_MODE_ROTATE_0,
218 .rotation = DRM_MODE_ROTATE_0,
230 .rotation = DRM_MODE_ROTATE_0,
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
Dskl_universal_plane.c322 unsigned int rotation) in skl_plane_max_width() argument
361 unsigned int rotation) in glk_plane_max_width() argument
389 unsigned int rotation) in icl_plane_min_width() argument
429 unsigned int rotation) in icl_hdr_plane_max_width() argument
439 unsigned int rotation) in icl_sdr_plane_max_width() argument
446 unsigned int rotation) in skl_plane_max_height() argument
453 unsigned int rotation) in icl_plane_max_height() argument
461 unsigned int rotation) in skl_plane_max_stride() argument
488 if (drm_rotation_90_or_270(rotation)) in skl_plane_max_stride()
587 int color_plane, unsigned int rotation) in skl_plane_stride_mult() argument
[all …]
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/
Dvsp1_wpf.c44 static int vsp1_wpf_set_rotation(struct vsp1_rwpf *wpf, unsigned int rotation) in vsp1_wpf_set_rotation() argument
56 rotate = rotation == 90 || rotation == 270; in vsp1_wpf_set_rotation()
60 /* Changing rotation isn't allowed when buffers are allocated. */ in vsp1_wpf_set_rotation()
98 unsigned int rotation; in vsp1_wpf_s_ctrl() local
102 /* Update the rotation. */ in vsp1_wpf_s_ctrl()
103 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl()
104 ret = vsp1_wpf_set_rotation(wpf, rotation); in vsp1_wpf_s_ctrl()
110 * rotation by 180° flipping the image in both directions. Store the in vsp1_wpf_s_ctrl()
120 if (rotation == 180 || rotation == 270) in vsp1_wpf_s_ctrl()
147 * controls (horizontal flip, vertical flip and rotation). in wpf_init_controls()
[all …]
/kernel/linux/linux-5.10/Documentation/arm/omap/
Ddss.rst167 rotate Rotation 0-3 for 0, 90, 180, 270 degrees
168 rotate_type 0 = DMA rotation, 1 = VRFB rotation
201 rotate Rotation 0-3 for 0, 90, 180, 270 degrees
304 Rotation and mirroring currently only supports RGB565 and RGB8888 modes. VRFB
307 VRFB rotation requires much more memory than non-rotated framebuffer, so you
308 probably need to increase your vram setting before using VRFB rotation. Also,
336 - Use VRFB rotation for all framebuffers.
339 - Default rotation applied to all framebuffers.
340 0 - 0 degree rotation
341 1 - 90 degree rotation
[all …]
/kernel/linux/linux-6.6/Documentation/arch/arm/omap/
Ddss.rst167 rotate Rotation 0-3 for 0, 90, 180, 270 degrees
168 rotate_type 0 = DMA rotation, 1 = VRFB rotation
201 rotate Rotation 0-3 for 0, 90, 180, 270 degrees
304 Rotation and mirroring currently only supports RGB565 and RGB8888 modes. VRFB
307 VRFB rotation requires much more memory than non-rotated framebuffer, so you
308 probably need to increase your vram setting before using VRFB rotation. Also,
336 - Use VRFB rotation for all framebuffers.
339 - Default rotation applied to all framebuffers.
340 0 - 0 degree rotation
341 1 - 90 degree rotation
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/
Dmach64_accel.c30 u32 rotation; in rotation24bpp() local
32 rotation = (dx / 4) % 6; in rotation24bpp()
34 rotation = ((dx + 2) / 4) % 6; in rotation24bpp()
37 return ((rotation << 8) | DST_24_ROTATION_ENABLE); in rotation24bpp()
203 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local
235 rotation = rotation24bpp(dx, direction); in atyfb_copyarea()
243 aty_st_le32(DST_CNTL, direction | rotation, par); in atyfb_copyarea()
250 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local
272 rotation = rotation24bpp(dx, DST_X_LEFT_TO_RIGHT); in atyfb_fillrect()
283 DST_X_LEFT_TO_RIGHT | rotation, par); in atyfb_fillrect()
[all …]
/kernel/linux/linux-6.6/drivers/video/fbdev/aty/
Dmach64_accel.c30 u32 rotation; in rotation24bpp() local
32 rotation = (dx / 4) % 6; in rotation24bpp()
34 rotation = ((dx + 2) / 4) % 6; in rotation24bpp()
37 return ((rotation << 8) | DST_24_ROTATION_ENABLE); in rotation24bpp()
203 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local
235 rotation = rotation24bpp(dx, direction); in atyfb_copyarea()
243 aty_st_le32(DST_CNTL, direction | rotation, par); in atyfb_copyarea()
250 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local
272 rotation = rotation24bpp(dx, DST_X_LEFT_TO_RIGHT); in atyfb_fillrect()
283 DST_X_LEFT_TO_RIGHT | rotation, par); in atyfb_fillrect()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_disp_ovl.c156 unsigned int rotation = 0; in mtk_ovl_layer_check() local
158 rotation = drm_rotation_simplify(state->rotation, in mtk_ovl_layer_check()
162 rotation &= ~DRM_MODE_ROTATE_0; in mtk_ovl_layer_check()
164 /* We can only do reflection, not rotation */ in mtk_ovl_layer_check()
165 if ((rotation & DRM_MODE_ROTATE_MASK) != 0) in mtk_ovl_layer_check()
172 if (state->fb->format->is_yuv && rotation != 0) in mtk_ovl_layer_check()
175 state->rotation = rotation; in mtk_ovl_layer_check()
272 if (pending->rotation & DRM_MODE_REFLECT_Y) { in mtk_ovl_layer_config()
277 if (pending->rotation & DRM_MODE_REFLECT_X) { in mtk_ovl_layer_config()
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
Dvsp1_wpf.c44 static int vsp1_wpf_set_rotation(struct vsp1_rwpf *wpf, unsigned int rotation) in vsp1_wpf_set_rotation() argument
56 rotate = rotation == 90 || rotation == 270; in vsp1_wpf_set_rotation()
60 /* Changing rotation isn't allowed when buffers are allocated. */ in vsp1_wpf_set_rotation()
98 unsigned int rotation; in vsp1_wpf_s_ctrl() local
102 /* Update the rotation. */ in vsp1_wpf_s_ctrl()
103 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl()
104 ret = vsp1_wpf_set_rotation(wpf, rotation); in vsp1_wpf_s_ctrl()
110 * rotation by 180° flipping the image in both directions. Store the in vsp1_wpf_s_ctrl()
120 if (rotation == 180 || rotation == 270) in vsp1_wpf_s_ctrl()
147 * controls (horizontal flip, vertical flip and rotation). in wpf_init_controls()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_blend.h38 static inline bool drm_rotation_90_or_270(unsigned int rotation) in drm_rotation_90_or_270() argument
40 return rotation & (DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_270); in drm_rotation_90_or_270()
47 unsigned int rotation,
49 unsigned int drm_rotation_simplify(unsigned int rotation,
/kernel/linux/linux-6.6/include/drm/
Ddrm_blend.h38 static inline bool drm_rotation_90_or_270(unsigned int rotation) in drm_rotation_90_or_270() argument
40 return rotation & (DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_270); in drm_rotation_90_or_270()
47 unsigned int rotation,
49 unsigned int drm_rotation_simplify(unsigned int rotation,
/kernel/linux/linux-6.6/drivers/iio/orientation/
DKconfig24 tristate "HID Device Rotation"
27 device rotation. The output of a device rotation sensor

12345678910>>...35