| /linux/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[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/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 = DRM_MODE_ROTATE_0, 230 .rotation = DRM_MODE_ROTATE_0, [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()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_rect.c | 254 unsigned int rotation) in drm_rect_rotate() argument 258 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate() 261 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate() 266 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate() 272 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate() 328 unsigned int rotation) in drm_rect_rotate_inv() argument 332 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate_inv() 360 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate_inv() 363 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate_inv() 368 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate_inv()
|
| /linux/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, par); in atyfb_fillrect() [all …]
|
| /linux/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,
|
| H A D | drm_mipi_dbi.h | 117 unsigned int rotation; member 171 unsigned int rotation, size_t tx_buf_size); 174 const struct drm_display_mode *mode, unsigned int rotation);
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | skl_universal_plane.c | 331 unsigned int rotation) in skl_plane_max_width() argument 369 unsigned int rotation) in glk_plane_max_width() argument 397 unsigned int rotation) in adl_plane_min_width() argument 404 unsigned int rotation) in icl_plane_min_width() argument 412 unsigned int rotation) in xe3_plane_max_width() argument 422 unsigned int rotation) in icl_hdr_plane_max_width() argument 432 unsigned int rotation) in icl_sdr_plane_max_width() argument 439 unsigned int rotation) in skl_plane_max_height() argument 463 unsigned int rotation) in icl_plane_max_height() argument 471 u64 modifier, unsigned int rotation, in plane_max_stride() argument [all …]
|
| H A D | intel_fb.c | 1014 unsigned int rotation, in intel_adjust_aligned_offset() argument 1030 if (drm_rotation_90_or_270(rotation)) { in intel_adjust_aligned_offset() 1058 plane_state->hw.rotation, in intel_plane_adjust_aligned_offset() 1082 unsigned int rotation, in intel_compute_aligned_offset() argument 1095 if (drm_rotation_90_or_270(rotation)) { in intel_compute_aligned_offset() 1139 unsigned int rotation = plane_state->hw.rotation; in intel_plane_compute_aligned_offset() local 1144 pitch, rotation, alignment); in intel_plane_compute_aligned_offset() 1297 …atic int intel_fb_pitch(const struct intel_framebuffer *fb, int color_plane, unsigned int rotation) in intel_fb_pitch() argument 1299 if (drm_rotation_90_or_270(rotation)) in intel_fb_pitch() 1311 unsigned int rotation = plane_state->hw.rotation; in intel_plane_needs_remap() local [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A 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 …]
|
| H A D | exynos_drm_scaler.c | 264 unsigned int rotation, in scaler_set_hv_ratio() argument 270 if (drm_rotation_90_or_270(rotation)) { in scaler_set_hv_ratio() 286 unsigned int rotation) in scaler_set_rotation() argument 290 if (rotation & DRM_MODE_ROTATE_90) in scaler_set_rotation() 292 else if (rotation & DRM_MODE_ROTATE_180) in scaler_set_rotation() 294 else if (rotation & DRM_MODE_ROTATE_270) in scaler_set_rotation() 296 if (rotation & DRM_MODE_REFLECT_X) in scaler_set_rotation() 298 if (rotation & DRM_MODE_REFLECT_Y) in scaler_set_rotation() 393 scaler_set_hv_ratio(scaler, task->transform.rotation, src_pos, dst_pos); in scaler_commit() 394 scaler_set_rotation(scaler, task->transform.rotation); in scaler_commit()
|
| H A 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()
|
| H A D | exynos_drm_gsc.c | 113 bool rotation; member 521 static void gsc_src_set_transf(struct gsc_context *ctx, unsigned int rotation) in gsc_src_set_transf() argument 523 unsigned int degree = rotation & DRM_MODE_ROTATE_MASK; in gsc_src_set_transf() 531 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf() 533 if (rotation & DRM_MODE_REFLECT_Y) in gsc_src_set_transf() 538 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf() 540 if (rotation & DRM_MODE_REFLECT_Y) in gsc_src_set_transf() 545 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf() 547 if (rotation & DRM_MODE_REFLECT_Y) in gsc_src_set_transf() 552 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf() [all …]
|
| /linux/Documentation/devicetree/bindings/display/ |
| H A D | ilitek,ili9225.txt | 15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <270>;
|
| H A D | multi-inno,mi0283qt.txt | 17 - rotation: panel rotation in degrees counter clockwise (0,90,180,270) 24 rotation = <90>;
|
| /linux/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()
|
| /linux/drivers/gpu/drm/amd/display/dc/dce/ |
| H A 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() 486 enum dc_rotation_angle rotation, in program_size_and_rotation() argument 498 if (rotation == ROTATION_ANGLE_90 || rotation == ROTATION_ANGLE_270) { in program_size_and_rotation() 522 GRPH_ROTATION_ANGLE, rotation_angles[rotation]); in program_size_and_rotation() 528 enum dc_rotation_angle rotation, /* not used in DCE6 */ in dce60_program_size() argument 655 enum dc_rotation_angle rotation, in dce_mi_program_surface_config() argument 663 program_size_and_rotation(dce_mi, rotation, plane_size); in dce_mi_program_surface_config() [all …]
|
| /linux/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()
|
| H A D | omapfb-main.c | 761 const struct fb_fix_screeninfo *fix, int rotation) in calc_rotation_offset_dma() argument 772 const struct fb_fix_screeninfo *fix, int rotation) in calc_rotation_offset_vrfb() argument 776 if (rotation == FB_ROTATE_UD) in calc_rotation_offset_vrfb() 779 else if (rotation == FB_ROTATE_CW) in calc_rotation_offset_vrfb() 785 if (rotation == FB_ROTATE_UR) in calc_rotation_offset_vrfb() 788 else if (rotation == FB_ROTATE_UD) in calc_rotation_offset_vrfb() 791 else if (rotation == FB_ROTATE_CW) in calc_rotation_offset_vrfb() 794 else if (rotation == FB_ROTATE_CCW) in calc_rotation_offset_vrfb() 804 int rotation, u32 *paddr) in omapfb_calc_addr() argument 810 data_start_p = omapfb_get_region_rot_paddr(ofbi, rotation); in omapfb_calc_addr() [all …]
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_vout_vrfb.c | 240 enum dss_rotation rotation; in omap_vout_prepare_vrfb() local 307 rotation = calc_rotation(vout); in omap_vout_prepare_vrfb() 309 vout->vrfb_context[vb->index].paddr[rotation]; in omap_vout_prepare_vrfb() 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/drivers/media/platform/sunxi/sun8i-rotate/ |
| H A D | Kconfig | 4 tristate "Allwinner DE2 rotation driver" 13 Support for the Allwinner DE2 rotation unit.
|
| /linux/drivers/iio/orientation/ |
| H A D | Kconfig | 27 device rotation. The output of a device rotation sensor
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_disp_ovl.c | 353 if (state->rotation & ~mtk_ovl_supported_rotations(dev)) in mtk_ovl_layer_check() 362 if (state->fb->format->is_yuv && (state->rotation & ~DRM_MODE_ROTATE_0)) in mtk_ovl_layer_check() 502 unsigned int rotation = pending->rotation; in mtk_ovl_layer_config() local 539 if (rotation & DRM_MODE_ROTATE_180) in mtk_ovl_layer_config() 540 rotation ^= DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y; in mtk_ovl_layer_config() 542 if (rotation & DRM_MODE_REFLECT_Y) { in mtk_ovl_layer_config() 547 if (rotation & DRM_MODE_REFLECT_X) { in mtk_ovl_layer_config()
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-dpr.c | 532 void dcss_dpr_set_rotation(struct dcss_dpr *dpr, int ch_num, u32 rotation) in dcss_dpr_set_rotation() argument 538 ch->frame_ctrl |= rotation & DRM_MODE_REFLECT_X ? HFLIP_EN : 0; in dcss_dpr_set_rotation() 539 ch->frame_ctrl |= rotation & DRM_MODE_REFLECT_Y ? VFLIP_EN : 0; in dcss_dpr_set_rotation() 541 if (rotation & DRM_MODE_ROTATE_90) in dcss_dpr_set_rotation() 543 else if (rotation & DRM_MODE_ROTATE_180) in dcss_dpr_set_rotation() 545 else if (rotation & DRM_MODE_ROTATE_270) in dcss_dpr_set_rotation()
|
| /linux/Documentation/arch/arm/omap/ |
| H A D | dss.rst | 168 rotate_type 0 = DMA rotation, 1 = VRFB rotation 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 342 2 - 180 degree rotation 343 3 - 270 degree rotation 346 - Default mirror for all framebuffers. Only works with DMA rotation.
|