| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/ |
| D | drm_blend.c | 98 * rotation: 99 * Rotation is set up with drm_plane_create_rotation_property(). It adds a 100 * rotation and reflection step between the source and destination rectangles. 148 * drm_plane_create_rotation_property - create a new rotation property 150 * @rotation: initial value of the rotation property 155 * Since a rotation by 180° degress is the same as reflecting both along the x 156 * and the y axis the rotation property is somewhat redundant. Drivers can use 160 * drm_property_create_bitmask()) called "rotation" and has the following 176 * Rotation is the specified amount in degrees in counter clockwise direction, 178 * rotation. After reflection, the rotation is applied to the image sampled from [all …]
|
| D | drm_rect.c | 343 * @rotation: Transformation to be applied 345 * Apply @rotation to the coordinates of rectangle @r. 347 * @width and @height combined with @rotation define 356 unsigned int rotation) in drm_rect_rotate() argument 360 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate() 363 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate() 368 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate() 374 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate() 409 * @rotation: Transformation whose inverse is to be applied 411 * Apply the inverse of @rotation to the coordinates [all …]
|
| /kernel/linux/linux-4.19/drivers/media/platform/omap/ |
| D | omap_voutdef.h | 58 /* Enum for Rotation 59 * DSS understands rotation in 0, 1, 2, 3 context 69 /* Enum for choosing rotation type for vout 70 * DSS2 doesn't understand no rotation as an 72 * rotation in the case where VRFB is not built in 156 enum dss_rotation rotation; member 189 * Return true if rotation is 90 or 270 193 return (vout->rotation == dss_rotation_90_degree || in is_rotation_90_or_270() 194 vout->rotation == dss_rotation_270_degree); in is_rotation_90_or_270() 198 * Return true if rotation is enabled [all …]
|
| /kernel/linux/linux-5.10/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. 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 …]
|
| 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 | 886 * drm_client_rotation() - Check the initial rotation value 888 * @rotation: Returned rotation value 891 * to match the rotation needed on its connector. 896 * True if the plane can do the rotation, false otherwise. 898 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument 911 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation() 914 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation() 917 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation() 920 *rotation = DRM_MODE_ROTATE_0; in drm_client_rotation() 924 * The panel already defined the default rotation in drm_client_rotation() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/tinydrm/core/ |
| D | tinydrm-pipe.c | 142 unsigned int rotation) in tinydrm_rotate_mode() argument 144 if (rotation == 0 || rotation == 180) { in tinydrm_rotate_mode() 146 } else if (rotation == 90 || rotation == 270) { in tinydrm_rotate_mode() 166 * @rotation: Initial @mode rotation in degrees Counter Clock Wise 169 * has one fixed &drm_display_mode which is rotated according to @rotation. 181 unsigned int rotation) in tinydrm_display_pipe_init() argument 189 ret = tinydrm_rotate_mode(&mode_copy, rotation); in tinydrm_display_pipe_init() 191 DRM_ERROR("Illegal rotation value %u\n", rotation); in tinydrm_display_pipe_init()
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-4.19/include/video/ |
| D | imx-ipu-image-convert.h | 4 * i.MX Queued image conversion support, with tiling and rotation. 70 * @rot_mode: rotation mode 79 * and rotation mode meet IPU restrictions. 83 * @rot_mode: rotation mode 85 * Returns 0 if the formats and rotation mode meet IPU restrictions, 98 * @rot_mode: rotation mode 103 * on failure. The input/output formats and rotation mode must already meet 168 * @rot_mode: rotation mode 174 * As with ipu_image_convert_prepare(), the input/output formats and rotation 195 * @rot_mode: rotation mode [all …]
|
| /kernel/linux/linux-4.19/Documentation/arm/OMAP/ |
| D | DSS | 166 rotate Rotation 0-3 for 0, 90, 180, 270 degrees 167 rotate_type 0 = DMA rotation, 1 = VRFB rotation 198 rotate Rotation 0-3 for 0, 90, 180, 270 degrees 296 Rotation and mirroring currently only supports RGB565 and RGB8888 modes. VRFB 299 VRFB rotation requires much more memory than non-rotated framebuffer, so you 300 probably need to increase your vram setting before using VRFB rotation. Also, 328 - Use VRFB rotation for all framebuffers. 331 - Default rotation applied to all framebuffers. 332 0 - 0 degree rotation 333 1 - 90 degree rotation [all …]
|
| /kernel/linux/linux-4.19/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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/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() 201 u32 sx = area->sx, dx = area->dx, width = area->width, rotation = 0; in atyfb_copyarea() local 233 rotation = rotation24bpp(dx, direction); in atyfb_copyarea() 241 aty_st_le32(DST_CNTL, direction | rotation, par); in atyfb_copyarea() 248 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() local 270 rotation = rotation24bpp(dx, DST_X_LEFT_TO_RIGHT); in atyfb_fillrect() 281 DST_X_LEFT_TO_RIGHT | rotation, par); in atyfb_fillrect() [all …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/tinydrm/ |
| D | ili9225.c | 110 switch (mipi->rotation) { in ili9225_fb_dirty() 209 switch (mipi->rotation) { in ili9225_pipe_enable() 313 unsigned int rotation) in ili9225_init() argument 338 rotation); in ili9225_init() 343 mipi->rotation = rotation; in ili9225_init() 347 DRM_DEBUG_KMS("preferred_depth=%u, rotation = %u\n", in ili9225_init() 348 tdev->drm->mode_config.preferred_depth, rotation); in ili9225_init() 395 u32 rotation = 0; in ili9225_probe() local 414 device_property_read_u32(dev, "rotation", &rotation); in ili9225_probe() 424 &ili9225_driver, &ili9225_mode, rotation); in ili9225_probe()
|
| D | st7586.c | 203 switch (mipi->rotation) { in st7586_pipe_enable() 252 unsigned int rotation) in st7586_init() argument 274 mode, rotation); in st7586_init() 279 mipi->rotation = rotation; in st7586_init() 283 DRM_DEBUG_KMS("preferred_depth=%u, rotation = %u\n", in st7586_init() 284 tdev->drm->mode_config.preferred_depth, rotation); in st7586_init() 332 u32 rotation = 0; in st7586_probe() local 351 device_property_read_u32(dev, "rotation", &rotation); in st7586_probe() 370 &st7586_mode, rotation); in st7586_probe()
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
| D | mtk_disp_ovl.c | 156 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/ |
| 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 …]
|
| /kernel/linux/linux-4.19/include/drm/ |
| D | drm_blend.h | 34 static inline bool drm_rotation_90_or_270(unsigned int rotation) in drm_rotation_90_or_270() argument 36 return rotation & (DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_270); in drm_rotation_90_or_270() 43 unsigned int rotation, 45 unsigned int drm_rotation_simplify(unsigned int rotation,
|
| /kernel/linux/linux-5.10/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,
|
| /kernel/linux/linux-4.19/drivers/iio/orientation/ |
| D | Kconfig | 25 tristate "HID Device Rotation" 28 device rotation. The output of a device rotation sensor
|
| /kernel/linux/linux-5.10/drivers/iio/orientation/ |
| D | Kconfig | 24 tristate "HID Device Rotation" 27 device rotation. The output of a device rotation sensor
|