/linux-6.6.21/drivers/iio/imu/inv_mpu6050/ |
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[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()
|
/linux-6.6.21/drivers/gpu/drm/tests/ |
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 = DRM_MODE_ROTATE_0, 230 .rotation = DRM_MODE_ROTATE_0, [all …]
|
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()
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_blend.c | 273 unsigned int rotation, in drm_plane_create_rotation_property() argument 287 WARN_ON(!is_power_of_2(rotation & DRM_MODE_ROTATE_MASK)); in drm_plane_create_rotation_property() 288 WARN_ON(rotation & ~supported_rotations); in drm_plane_create_rotation_property() 296 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property() 299 plane->state->rotation = rotation; in drm_plane_create_rotation_property() 325 unsigned int drm_rotation_simplify(unsigned int rotation, in drm_rotation_simplify() argument 328 if (rotation & ~supported_rotations) { in drm_rotation_simplify() 329 rotation ^= DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y; in drm_rotation_simplify() 330 rotation = (rotation & DRM_MODE_REFLECT_MASK) | in drm_rotation_simplify() 331 BIT((ffs(rotation & DRM_MODE_ROTATE_MASK) + 1) in drm_rotation_simplify() [all …]
|
D | drm_rect.c | 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() 329 unsigned int rotation) in drm_rect_rotate_inv() argument 333 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate_inv() 361 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate_inv() 364 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate_inv() 369 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate_inv()
|
D | drm_panel.c | 347 int rotation, ret; in of_drm_get_panel_orientation() local 349 ret = of_property_read_u32(np, "rotation", &rotation); in of_drm_get_panel_orientation() 359 if (rotation == 0) in of_drm_get_panel_orientation() 361 else if (rotation == 90) in of_drm_get_panel_orientation() 363 else if (rotation == 180) in of_drm_get_panel_orientation() 365 else if (rotation == 270) in of_drm_get_panel_orientation()
|
D | drm_client_modeset.c | 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 = DRM_MODE_ROTATE_0; in drm_client_rotation() 950 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK); in drm_client_rotation() 954 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK; in drm_client_rotation() 958 *rotation = (1 << sum_rot) | sum_rest; in drm_client_rotation() 966 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 && in drm_client_rotation() 967 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) || in drm_client_rotation() [all …]
|
/linux-6.6.21/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,
|
/linux-6.6.21/drivers/media/platform/ti/omap/ |
D | omap_voutdef.h | 154 enum dss_rotation rotation; member 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() 195 return vout->rotation || vout->mirror; in is_rotation_enabled() 204 return vout->rotation; in calc_rotation() 206 switch (vout->rotation) { in calc_rotation()
|
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/i915/display/ |
D | skl_universal_plane.c | 325 unsigned int rotation) in skl_plane_max_width() argument 364 unsigned int rotation) in glk_plane_max_width() argument 392 unsigned int rotation) in icl_plane_min_width() argument 432 unsigned int rotation) in icl_hdr_plane_max_width() argument 442 unsigned int rotation) in icl_sdr_plane_max_width() argument 449 unsigned int rotation) in skl_plane_max_height() argument 456 unsigned int rotation) in icl_plane_max_height() argument 464 unsigned int rotation) in skl_plane_max_stride() argument 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() argument [all …]
|
/linux-6.6.21/drivers/gpu/drm/ci/ |
D | testlist.txt | 335 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 …]
|
/linux-6.6.21/drivers/gpu/drm/sprd/ |
D | sprd_dpu.c | 259 u32 rotation = 0; in drm_rotation_to_dpu() local 261 switch (state->rotation) { in drm_rotation_to_dpu() 264 rotation = BIT_DPU_LAY_ROTATION_0; in drm_rotation_to_dpu() 267 rotation = BIT_DPU_LAY_ROTATION_90; in drm_rotation_to_dpu() 270 rotation = BIT_DPU_LAY_ROTATION_180; in drm_rotation_to_dpu() 273 rotation = BIT_DPU_LAY_ROTATION_270; in drm_rotation_to_dpu() 276 rotation = BIT_DPU_LAY_ROTATION_180_M; in drm_rotation_to_dpu() 279 rotation = BIT_DPU_LAY_ROTATION_90_M; in drm_rotation_to_dpu() 282 rotation = BIT_DPU_LAY_ROTATION_0_M; in drm_rotation_to_dpu() 285 rotation = BIT_DPU_LAY_ROTATION_270_M; in drm_rotation_to_dpu() [all …]
|
/linux-6.6.21/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 | multi-inno,mi0283qt.txt | 17 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <90>;
|
/linux-6.6.21/drivers/gpu/drm/arm/display/komeda/ |
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()
|
/linux-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimc.c | 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() 456 if (rotation & DRM_MODE_REFLECT_X) in fimc_src_set_transf() [all …]
|
D | exynos_drm_rotator.c | 161 unsigned int rotation) in rotator_dst_set_transf() argument 169 if (rotation & DRM_MODE_REFLECT_X) in rotator_dst_set_transf() 171 if (rotation & DRM_MODE_REFLECT_Y) in rotator_dst_set_transf() 176 if (rotation & DRM_MODE_ROTATE_90) in rotator_dst_set_transf() 178 else if (rotation & DRM_MODE_ROTATE_180) in rotator_dst_set_transf() 180 else if (rotation & DRM_MODE_ROTATE_270) in rotator_dst_set_transf() 233 rotator_dst_set_transf(rot, task->transform.rotation); in rotator_commit()
|
/linux-6.6.21/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 635 enum dc_rotation_angle rotation, in dce_mi_program_surface_config() argument 643 program_size_and_rotation(dce_mi, rotation, plane_size); in dce_mi_program_surface_config() [all …]
|
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/tiny/ |
D | hx8357d.c | 163 switch (dbidev->rotation) { in yx240qv29_enable() 223 u32 rotation = 0; in hx8357d_probe() local 241 device_property_read_u32(dev, "rotation", &rotation); in hx8357d_probe() 247 ret = mipi_dbi_dev_init(dbidev, &hx8357d_pipe_funcs, &yx350hv15_mode, rotation); in hx8357d_probe()
|
D | ili9163.c | 81 switch (dbidev->rotation) { in yx240qv29_enable() 143 u32 rotation = 0; in ili9163_probe() local 172 device_property_read_u32(dev, "rotation", &rotation); in ili9163_probe() 178 ret = mipi_dbi_dev_init(dbidev, &ili9163_pipe_funcs, &yx240qv29_mode, rotation); in ili9163_probe()
|
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/ |
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()
|
/linux-6.6.21/drivers/gpu/drm/mediatek/ |
D | mtk_disp_ovl.c | 299 unsigned int rotation = 0; in mtk_ovl_layer_check() local 301 rotation = drm_rotation_simplify(state->rotation, in mtk_ovl_layer_check() 305 rotation &= ~DRM_MODE_ROTATE_0; in mtk_ovl_layer_check() 308 if ((rotation & DRM_MODE_ROTATE_MASK) != 0) in mtk_ovl_layer_check() 315 if (state->fb->format->is_yuv && rotation != 0) in mtk_ovl_layer_check() 318 state->rotation = rotation; in mtk_ovl_layer_check() 431 if (pending->rotation & DRM_MODE_REFLECT_Y) { in mtk_ovl_layer_config() 436 if (pending->rotation & DRM_MODE_REFLECT_X) { in mtk_ovl_layer_config()
|