| /Linux-v5.4/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()
|
| D | omap_vout.c | 20 * 20-APR-2006 Khasim Modified VRFB based Rotation, 23 * to the virtual space of desired rotation angle 172 * Convert V4L2 rotation to DSS rotation 177 enum dss_rotation *rotation, bool mirror) in v4l2_rot_to_dss_rot() argument 183 *rotation = dss_rotation_90_degree; in v4l2_rot_to_dss_rot() 186 *rotation = dss_rotation_180_degree; in v4l2_rot_to_dss_rot() 189 *rotation = dss_rotation_270_degree; in v4l2_rot_to_dss_rot() 192 *rotation = dss_rotation_0_degree; in v4l2_rot_to_dss_rot() 299 * rotation value selected. in omapvid_setup_overlay() 323 info.rotation = 0; in omapvid_setup_overlay() [all …]
|
| /Linux-v5.4/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. 219 * drm_plane_create_rotation_property - create a new rotation property 221 * @rotation: initial value of the rotation property 226 * Since a rotation by 180° degress is the same as reflecting both along the x 227 * and the y axis the rotation property is somewhat redundant. Drivers can use 231 * drm_property_create_bitmask()) called "rotation" and has the following 247 * Rotation is the specified amount in degrees in counter clockwise direction, 249 * rotation. After reflection, the rotation is applied to the image sampled from [all …]
|
| D | drm_rect.c | 232 * @rotation: Transformation to be applied 234 * Apply @rotation to the coordinates of rectangle @r. 236 * @width and @height combined with @rotation define 245 unsigned int rotation) in drm_rect_rotate() argument 249 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate() 252 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate() 257 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate() 263 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate() 298 * @rotation: Transformation whose inverse is to be applied 300 * Apply the inverse of @rotation to the coordinates [all …]
|
| D | drm_client_modeset.c | 812 * drm_client_rotation() - Check the initial rotation value 814 * @rotation: Returned rotation value 817 * to match the rotation needed on its connector. 822 * True if the plane can do the rotation, false otherwise. 824 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument 837 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation() 840 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation() 843 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation() 846 *rotation = DRM_MODE_ROTATE_0; in drm_client_rotation() 850 * The panel already defined the default rotation in drm_client_rotation() [all …]
|
| D | drm_mipi_dbi.c | 446 unsigned int rotation) in mipi_dbi_rotate_mode() argument 448 if (rotation == 0 || rotation == 180) { in mipi_dbi_rotate_mode() 450 } else if (rotation == 90 || rotation == 270) { in mipi_dbi_rotate_mode() 480 * @rotation: Initial rotation in degrees Counter Clock Wise 484 * has one fixed &drm_display_mode which is rotated according to @rotation. 500 unsigned int rotation, size_t tx_buf_size) in mipi_dbi_dev_init_with_formats() argument 517 ret = mipi_dbi_rotate_mode(&dbidev->mode, rotation); in mipi_dbi_dev_init_with_formats() 519 DRM_ERROR("Illegal rotation value %u\n", rotation); in mipi_dbi_dev_init_with_formats() 541 dbidev->rotation = rotation; in mipi_dbi_dev_init_with_formats() 543 DRM_DEBUG_KMS("rotation = %u\n", rotation); in mipi_dbi_dev_init_with_formats() [all …]
|
| /Linux-v5.4/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.4/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.4/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.4/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.4/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 | 108 * @rotation: initial rotation in degrees Counter Clock Wise 110 unsigned int rotation; member 139 unsigned int rotation, size_t tx_buf_size); 142 const struct drm_display_mode *mode, unsigned int rotation);
|
| /Linux-v5.4/drivers/iio/orientation/ |
| D | Kconfig | 26 tristate "HID Device Rotation" 29 device rotation. The output of a device rotation sensor
|
| /Linux-v5.4/drivers/gpu/drm/exynos/ |
| D | exynos_drm_fimc.c | 33 * FIMC supports image rotation and image effect functions. 417 static void fimc_src_set_transf(struct fimc_context *ctx, unsigned int rotation) in fimc_src_set_transf() argument 419 unsigned int degree = rotation & DRM_MODE_ROTATE_MASK; in fimc_src_set_transf() 422 DRM_DEV_DEBUG_KMS(ctx->dev, "rotation[%x]\n", rotation); in fimc_src_set_transf() 433 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 435 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() 440 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 442 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() 448 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 450 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() [all …]
|
| /Linux-v5.4/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 | sitronix,st7735r.txt | 15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 33 rotation = <270>;
|
| D | multi-inno,mi0283qt.txt | 17 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <90>;
|
| /Linux-v5.4/drivers/gpu/drm/tiny/ |
| D | mi0283qt.c | 117 * As a result, we need to always apply the rotation value in mi0283qt_enable() 120 switch (dbidev->rotation) { in mi0283qt_enable() 187 u32 rotation = 0; in mi0283qt_probe() local 224 device_property_read_u32(dev, "rotation", &rotation); in mi0283qt_probe() 230 ret = mipi_dbi_dev_init(dbidev, &mi0283qt_pipe_funcs, &mi0283qt_mode, rotation); in mi0283qt_probe()
|
| D | st7735r.c | 76 switch (dbidev->rotation) { in jd_t18003_t01_pipe_enable() 157 u32 rotation = 0; in st7735r_probe() local 190 device_property_read_u32(dev, "rotation", &rotation); in st7735r_probe() 199 ret = mipi_dbi_dev_init(dbidev, &jd_t18003_t01_pipe_funcs, &jd_t18003_t01_mode, rotation); in st7735r_probe()
|
| /Linux-v5.4/drivers/gpu/drm/omapdrm/ |
| D | omap_fb.c | 151 if (drm_rotation_90_or_270(state->rotation)) in omap_framebuffer_update_scanout() 161 orient = drm_rotation_to_tiler(state->rotation); in omap_framebuffer_update_scanout() 185 info->rotation = state->rotation ?: DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout() 189 switch (state->rotation & DRM_MODE_ROTATE_MASK) { in omap_framebuffer_update_scanout() 197 "rotation '%d' ignored for non-tiled fb\n", in omap_framebuffer_update_scanout() 198 state->rotation); in omap_framebuffer_update_scanout() 204 info->rotation = DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout()
|
| /Linux-v5.4/drivers/gpu/drm/arm/ |
| D | malidp_planes.c | 289 if (state->rotation & MALIDP_ROTATED_MASK) { in malidp_se_check_scaling() 374 * current format, AFBC state and rotation. 377 unsigned int rotation) in malidp_partial_prefetch_supported() argument 381 /* rotation and horizontal flip not supported for partial prefetch */ in malidp_partial_prefetch_supported() 382 if (rotation & (DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_180 | in malidp_partial_prefetch_supported() 459 ms->base.rotation)) { in malidp_mmu_prefetch_select_mode() 509 bool rotated = state->rotation & MALIDP_ROTATED_MASK; in malidp_de_plane_check() 569 /* validate the rotation constraints for each layer */ in malidp_de_plane_check() 570 if (state->rotation != DRM_MODE_ROTATE_0) { in malidp_de_plane_check() 591 if (state->rotation & MALIDP_ROTATED_MASK) { in malidp_de_plane_check() [all …]
|
| /Linux-v5.4/drivers/video/fbdev/omap2/omapfb/ |
| D | omapfb-sysfs.c | 271 ofbi->rotation[t-1] = ofbi->rotation[t]; in store_overlays() 295 ofbi->rotation[ofbi->num_overlays] = 0; in store_overlays() 332 t == 0 ? "" : ",", ofbi->rotation[t]); in show_overlays_rotate() 350 u8 rotation[OMAPFB_MAX_OVL_PER_FB]; in store_overlays_rotate() local 375 if (ofbi->rotation[num_ovls] != rot) in store_overlays_rotate() 378 rotation[num_ovls++] = rot; in store_overlays_rotate() 391 ofbi->rotation[i] = rotation[i]; in store_overlays_rotate()
|