/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/ |
H A 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[ in inv_mpu_magn_set_orient() [all...] |
/kernel/linux/linux-6.6/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_magn.c | 275 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[ in inv_mpu_magn_set_orient() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_blend.c | 101 * rotation: 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 262 * rotation. After reflection, the rotation i 265 drm_plane_create_rotation_property(struct drm_plane *plane, unsigned int rotation, unsigned int supported_rotations) drm_plane_create_rotation_property() argument 318 drm_rotation_simplify(unsigned int rotation, unsigned int supported_rotations) drm_rotation_simplify() argument [all...] |
H A 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() 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 t 253 drm_rect_rotate(struct drm_rect *r, int width, int height, unsigned int rotation) drm_rect_rotate() argument 327 drm_rect_rotate_inv(struct drm_rect *r, int width, int height, unsigned int rotation) drm_rect_rotate_inv() argument [all...] |
H A 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 propert in of_drm_get_panel_orientation() [all...] |
H A D | drm_client_modeset.c | 898 * drm_client_rotation() - Check the initial rotation value 900 * @rotation: Returned rotation value 903 * to match the rotation needed on its connector. 908 * True if the plane can do the rotation, false otherwise. 910 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument 923 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation() 926 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation() 929 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation() 932 *rotation in drm_client_rotation() 1025 unsigned int rotation; drm_client_modeset_commit_atomic() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_blend.c | 101 * rotation: 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 269 * rotation. After reflection, the rotation i 272 drm_plane_create_rotation_property(struct drm_plane *plane, unsigned int rotation, unsigned int supported_rotations) drm_plane_create_rotation_property() argument 325 drm_rotation_simplify(unsigned int rotation, unsigned int supported_rotations) drm_rotation_simplify() argument [all...] |
H A 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() 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 t 253 drm_rect_rotate(struct drm_rect *r, int width, int height, unsigned int rotation) drm_rect_rotate() argument 327 drm_rect_rotate_inv(struct drm_rect *r, int width, int height, unsigned int rotation) drm_rect_rotate_inv() argument [all...] |
H A D | drm_client_modeset.c | 895 * drm_client_rotation() - Check the initial rotation value 897 * @rotation: Returned rotation value 900 * to match the rotation needed on its connector. 905 * True if the plane can do the rotation, false otherwise. 907 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument 920 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation() 923 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation() 926 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation() 929 *rotation in drm_client_rotation() 1022 unsigned int rotation; drm_client_modeset_commit_atomic() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tests/ |
H A D | drm_plane_helper_test.c | 41 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 [all...] |
H A D | drm_rect_test.c | 431 unsigned int rotation; member 440 .rotation = DRM_MODE_REFLECT_X, 447 .rotation = DRM_MODE_REFLECT_Y, 454 .rotation = DRM_MODE_ROTATE_0, 461 .rotation = DRM_MODE_ROTATE_90, 468 .rotation = DRM_MODE_ROTATE_180, 475 .rotation = DRM_MODE_ROTATE_270, 494 drm_rect_rotate(&r, params->width, params->height, params->rotation); in drm_test_rect_rotate() 504 drm_rect_rotate_inv(&r, params->width, params->height, params->rotation); in drm_test_rect_rotate_inv()
|
/kernel/linux/linux-5.10/include/drm/ |
H A 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-6.6/include/drm/ |
H A 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-5.10/drivers/media/platform/omap/ |
H A D | omap_voutdef.h | 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 195 return vout->rotation || vou in is_rotation_enabled() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap/ |
H A D | omap_voutdef.h | 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 195 return vout->rotation || vou in is_rotation_enabled() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | skl_universal_plane.c | 325 unsigned int rotation) in skl_plane_max_width() 364 unsigned int rotation) in glk_plane_max_width() 392 unsigned int rotation) in icl_plane_min_width() 432 unsigned int rotation) in icl_hdr_plane_max_width() 442 unsigned int rotation) in icl_sdr_plane_max_width() 449 unsigned int rotation) in skl_plane_max_height() 456 unsigned int rotation) in icl_plane_max_height() 464 unsigned int rotation) in skl_plane_max_stride() 491 if (drm_rotation_90_or_270(rotation)) in skl_plane_max_stride() 590 int color_plane, unsigned int rotation) in skl_plane_stride_mult() 323 skl_plane_max_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) skl_plane_max_width() argument 362 glk_plane_max_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) glk_plane_max_width() argument 390 icl_plane_min_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) icl_plane_min_width() argument 430 icl_hdr_plane_max_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) icl_hdr_plane_max_width() argument 440 icl_sdr_plane_max_width(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) icl_sdr_plane_max_width() argument 447 skl_plane_max_height(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) skl_plane_max_height() argument 454 icl_plane_max_height(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) icl_plane_max_height() argument 462 skl_plane_max_stride(struct intel_plane *plane, u32 pixel_format, u64 modifier, unsigned int rotation) skl_plane_max_stride() argument 589 skl_plane_stride_mult(const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) skl_plane_stride_mult() argument 608 unsigned int rotation = plane_state->hw.rotation; skl_plane_stride() local 903 unsigned int rotation = plane_state->hw.rotation; skl_plane_ctl() local 1348 unsigned int rotation = plane_state->hw.rotation; skl_plane_check_fb() local 1460 unsigned int rotation = plane_state->hw.rotation; skl_plane_check_nv12_rotation() local 1491 intel_plane_min_width(struct intel_plane *plane, const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) intel_plane_min_width() argument 1502 intel_plane_max_width(struct intel_plane *plane, const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) intel_plane_max_width() argument 1513 intel_plane_max_height(struct intel_plane *plane, const struct drm_framebuffer *fb, int color_plane, unsigned int rotation) intel_plane_max_height() argument 1626 const unsigned int rotation = plane_state->hw.rotation; skl_check_main_surface() local 1697 unsigned int rotation = plane_state->hw.rotation; skl_check_nv12_aux_surface() local [all...] |
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/ |
H A 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, pa in atyfb_fillrect() 291 u32 pix_width, rotation = 0, src, mix; atyfb_imageblit() local [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/aty/ |
H A 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, pa in atyfb_fillrect() 291 u32 pix_width, rotation = 0, src, mix; atyfb_imageblit() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_fimc.c | 33 * FIMC supports image rotation and image effect functions. 418 static void fimc_src_set_transf(struct fimc_context *ctx, unsigned int rotation) in fimc_src_set_transf() argument 420 unsigned int degree = rotation & DRM_MODE_ROTATE_MASK; in fimc_src_set_transf() 423 DRM_DEV_DEBUG_KMS(ctx->dev, "rotation[%x]\n", rotation); in fimc_src_set_transf() 434 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 436 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() 441 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() 443 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf() 449 if (rotation in fimc_src_set_transf() 691 fimc_dst_set_transf(struct fimc_context *ctx, unsigned int rotation) fimc_dst_set_transf() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/ |
H A 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 in fimc_src_set_transf() 689 fimc_dst_set_transf(struct fimc_context *ctx, unsigned int rotation) fimc_dst_set_transf() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
H A 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 in mtk_ovl_layer_config() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_kms.h | 158 u32 rotation = drm_rotation_simplify(rot, in has_flip_h() local 163 if (rotation & DRM_MODE_ROTATE_90) in has_flip_h() 164 return !!(rotation & DRM_MODE_REFLECT_Y); in has_flip_h() 166 return !!(rotation & DRM_MODE_REFLECT_X); in has_flip_h()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_kms.h | 161 u32 rotation = drm_rotation_simplify(rot, in has_flip_h() local 166 if (rotation & DRM_MODE_ROTATE_90) in has_flip_h() 167 return !!(rotation & DRM_MODE_REFLECT_Y); in has_flip_h() 169 return !!(rotation & DRM_MODE_REFLECT_X); in has_flip_h()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/video/fbdev/omap2/omapfb/ |
H A D | omapfb-sysfs.c | 272 ofbi->rotation[t-1] = ofbi->rotation[t]; in store_overlays() 296 ofbi->rotation[ofbi->num_overlays] = 0; in store_overlays() 333 t == 0 ? "" : ",", ofbi->rotation[t]); in show_overlays_rotate() 351 u8 rotation[OMAPFB_MAX_OVL_PER_FB]; in store_overlays_rotate() local 376 if (ofbi->rotation[num_ovls] != rot) in store_overlays_rotate() 379 rotation[num_ovls++] = rot; in store_overlays_rotate() 392 ofbi->rotation[i] = rotation[i]; in store_overlays_rotate()
|