/Linux-v5.15/drivers/media/platform/omap/ |
D | omap_voutdef.h | 59 /* 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 …]
|
D | omap_vout_vrfb.c | 206 /* If rotation is enabled, allocate memory for VRFB space also */ in omap_vout_vrfb_buffer_setup() 240 enum dss_rotation rotation; in omap_vout_prepare_vrfb() local 247 /* If rotation is enabled, copy input buffer into VRFB in omap_vout_prepare_vrfb() 307 rotation = calc_rotation(vout); in omap_vout_prepare_vrfb() 309 vout->vrfb_context[vb->index].paddr[rotation]; in omap_vout_prepare_vrfb() 316 * the VRFB 32 pixels alignment with rotation. 320 enum dss_rotation rotation; in omap_vout_calculate_vrfb_offset() local 328 rotation = calc_rotation(vout); in omap_vout_calculate_vrfb_offset() 360 switch (rotation) { in omap_vout_calculate_vrfb_offset()
|
/Linux-v5.15/drivers/gpu/drm/ |
D | drm_blend.c | 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 [all …]
|
D | drm_rect.c | 242 * @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 …]
|
D | drm_panel.c | 266 * 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 …]
|
D | drm_client_modeset.c | 887 * drm_client_rotation() - Check the initial rotation value 889 * @rotation: Returned rotation value 892 * to match the rotation needed on its connector. 897 * True if the plane can do the rotation, false otherwise. 899 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument 912 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation() 915 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation() 918 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation() 921 *rotation = DRM_MODE_ROTATE_0; in drm_client_rotation() 925 * The panel already defined the default rotation in drm_client_rotation() [all …]
|
/Linux-v5.15/include/video/ |
D | imx-ipu-image-convert.h | 5 * 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 …]
|
/Linux-v5.15/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_magn.c | 274 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()
|
/Linux-v5.15/drivers/gpu/drm/i915/display/ |
D | skl_universal_plane.c | 361 unsigned int rotation) in skl_plane_max_width() argument 400 unsigned int rotation) in glk_plane_max_width() argument 428 unsigned int rotation) in icl_plane_min_width() argument 468 unsigned int rotation) in icl_plane_max_width() argument 475 unsigned int rotation) in skl_plane_max_height() argument 482 unsigned int rotation) in icl_plane_max_height() argument 490 unsigned int rotation) in skl_plane_max_stride() argument 517 if (drm_rotation_90_or_270(rotation)) in skl_plane_max_stride() 616 int color_plane, unsigned int rotation) in skl_plane_stride_mult() argument 624 else if (drm_rotation_90_or_270(rotation)) in skl_plane_stride_mult() [all …]
|
D | intel_fb.c | 209 unsigned int rotation, in intel_adjust_aligned_offset() argument 225 if (drm_rotation_90_or_270(rotation)) { in intel_adjust_aligned_offset() 255 state->hw.rotation, in intel_plane_adjust_aligned_offset() 279 unsigned int rotation, in intel_compute_aligned_offset() argument 292 if (drm_rotation_90_or_270(rotation)) { in intel_compute_aligned_offset() 336 unsigned int rotation = state->hw.rotation; in intel_plane_compute_aligned_offset() local 346 pitch, rotation, alignment); in intel_plane_compute_aligned_offset() 498 …atic int intel_fb_pitch(const struct intel_framebuffer *fb, int color_plane, unsigned int rotation) in intel_fb_pitch() argument 500 if (drm_rotation_90_or_270(rotation)) in intel_fb_pitch() 512 unsigned int rotation = plane_state->hw.rotation; in intel_plane_needs_remap() local [all …]
|
/Linux-v5.15/Documentation/arm/omap/ |
D | dss.rst | 167 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 …]
|
/Linux-v5.15/drivers/video/fbdev/aty/ |
D | mach64_accel.c | 30 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 …]
|
/Linux-v5.15/drivers/media/platform/vsp1/ |
D | vsp1_wpf.c | 44 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 …]
|
/Linux-v5.15/include/drm/ |
D | drm_blend.h | 38 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,
|
D | drm_mipi_dbi.h | 103 * @rotation: initial rotation in degrees Counter Clock Wise 105 unsigned int rotation; member 146 unsigned int rotation, size_t tx_buf_size); 149 const struct drm_display_mode *mode, unsigned int rotation);
|
/Linux-v5.15/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimc.c | 33 * FIMC supports image rotation and image effect functions. 416 static void fimc_src_set_transf(struct fimc_context *ctx, unsigned int rotation) in fimc_src_set_transf() argument 418 unsigned int degree = rotation & DRM_MODE_ROTATE_MASK; in fimc_src_set_transf() 421 DRM_DEV_DEBUG_KMS(ctx->dev, "rotation[%x]\n", rotation); in fimc_src_set_transf() 432 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 434 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() 439 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 441 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() 447 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 449 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() [all …]
|
/Linux-v5.15/drivers/iio/orientation/ |
D | Kconfig | 24 tristate "HID Device Rotation" 27 device rotation. The output of a device rotation sensor
|
/Linux-v5.15/drivers/gpu/drm/mediatek/ |
D | mtk_disp_ovl.c | 195 unsigned int rotation = 0; in mtk_ovl_layer_check() local 197 rotation = drm_rotation_simplify(state->rotation, in mtk_ovl_layer_check() 201 rotation &= ~DRM_MODE_ROTATE_0; in mtk_ovl_layer_check() 203 /* We can only do reflection, not rotation */ in mtk_ovl_layer_check() 204 if ((rotation & DRM_MODE_ROTATE_MASK) != 0) in mtk_ovl_layer_check() 211 if (state->fb->format->is_yuv && rotation != 0) in mtk_ovl_layer_check() 214 state->rotation = rotation; in mtk_ovl_layer_check() 313 if (pending->rotation & DRM_MODE_REFLECT_Y) { in mtk_ovl_layer_config() 318 if (pending->rotation & DRM_MODE_REFLECT_X) { in mtk_ovl_layer_config()
|
/Linux-v5.15/Documentation/devicetree/bindings/display/ |
D | ilitek,ili9225.txt | 15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <270>;
|
D | himax,hx8357d.txt | 15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <90>;
|
D | ilitek,ili9341.txt | 15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 25 rotation = <270>;
|
D | multi-inno,mi0283qt.txt | 17 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <90>;
|
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_mem_input.c | 122 static bool is_vert_scan(enum dc_rotation_angle rotation) in is_vert_scan() argument 124 switch (rotation) { in is_vert_scan() 137 enum dc_rotation_angle rotation) in dce_mi_program_pte_vm() argument 146 unsigned int min_pte_before_flip = is_vert_scan(rotation) ? in dce_mi_program_pte_vm() 487 enum dc_rotation_angle rotation, in program_size_and_rotation() argument 499 if (rotation == ROTATION_ANGLE_90 || rotation == ROTATION_ANGLE_270) { in program_size_and_rotation() 523 GRPH_ROTATION_ANGLE, rotation_angles[rotation]); in program_size_and_rotation() 529 enum dc_rotation_angle rotation, /* not used in DCE6 */ in dce60_program_size() argument 533 /* DCE6 has no HW rotation, skip rotation_angles declaration */ in dce60_program_size() 535 /* DCE6 has no HW rotation, skip ROTATION_ANGLE_* processing */ in dce60_program_size() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/media/ |
D | video-interface-devices.yaml | 25 rotation: 29 The camera rotation is expressed as the angular difference in degrees 114 The camera rotation property is then defined as the angular difference in 121 0 degrees camera rotation: 157 90 degrees camera rotation: 181 180 degrees camera rotation: 199 270 degrees camera rotation: 248 The two reference systems are aligned, the resulting camera rotation is 249 0 degrees, no rotation correction needs to be applied to the resulting 299 A software rotation correction of 180 degrees should be applied to
|
/Linux-v5.15/drivers/gpu/drm/imx/dcss/ |
D | dcss-plane.c | 104 unsigned int rotation) in dcss_plane_can_rotate() argument 123 return !!(rotation & supported_rotation); in dcss_plane_can_rotate() 188 new_plane_state->rotation)) { in dcss_plane_atomic_check() 189 DRM_DEBUG_KMS("requested rotation is not allowed!\n"); in dcss_plane_atomic_check() 262 state->rotation != old_state->rotation || in dcss_plane_needs_setup() 316 new_state->rotation); in dcss_plane_atomic_update() 320 is_rotation_90_or_270 = new_state->rotation & (DRM_MODE_ROTATE_90 | in dcss_plane_atomic_update()
|