/drivers/gpu/drm/ |
D | drm_blend.c | 141 unsigned int rotation, in drm_plane_create_rotation_property() argument 155 WARN_ON(!is_power_of_2(rotation & DRM_MODE_ROTATE_MASK)); in drm_plane_create_rotation_property() 156 WARN_ON(rotation & ~supported_rotations); in drm_plane_create_rotation_property() 164 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property() 167 plane->state->rotation = rotation; in drm_plane_create_rotation_property() 193 unsigned int drm_rotation_simplify(unsigned int rotation, in drm_rotation_simplify() argument 196 if (rotation & ~supported_rotations) { in drm_rotation_simplify() 197 rotation ^= DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y; in drm_rotation_simplify() 198 rotation = (rotation & DRM_MODE_REFLECT_MASK) | in drm_rotation_simplify() 199 BIT((ffs(rotation & DRM_MODE_ROTATE_MASK) + 1) in drm_rotation_simplify() [all …]
|
D | drm_rect.c | 309 unsigned int rotation) in drm_rect_rotate() argument 313 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate() 316 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate() 321 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate() 327 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate() 383 unsigned int rotation) in drm_rect_rotate_inv() argument 387 switch (rotation & DRM_MODE_ROTATE_MASK) { in drm_rect_rotate_inv() 415 if (rotation & (DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y)) { in drm_rect_rotate_inv() 418 if (rotation & DRM_MODE_REFLECT_X) { in drm_rect_rotate_inv() 423 if (rotation & DRM_MODE_REFLECT_Y) { in drm_rect_rotate_inv()
|
D | drm_plane_helper.c | 134 unsigned int rotation = state->rotation; in drm_plane_helper_check_state() local 156 drm_rect_rotate(src, fb->width << 16, fb->height << 16, rotation); in drm_plane_helper_check_state() 170 drm_rect_rotate_inv(src, fb->width << 16, fb->height << 16, rotation); in drm_plane_helper_check_state() 226 unsigned int rotation, in drm_plane_helper_check_update() argument 245 .rotation = rotation, in drm_plane_helper_check_update()
|
/drivers/gpu/drm/tinydrm/core/ |
D | tinydrm-pipe.c | 160 unsigned int rotation) in tinydrm_rotate_mode() argument 162 if (rotation == 0 || rotation == 180) { in tinydrm_rotate_mode() 164 } else if (rotation == 90 || rotation == 270) { in tinydrm_rotate_mode() 199 unsigned int rotation) in tinydrm_display_pipe_init() argument 211 ret = tinydrm_rotate_mode(mode_copy, rotation); in tinydrm_display_pipe_init() 213 DRM_ERROR("Illegal rotation value %u\n", rotation); in tinydrm_display_pipe_init()
|
/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 …]
|
/drivers/media/platform/omap/ |
D | omap_voutdef.h | 156 enum dss_rotation rotation; member 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() 202 return vout->rotation || vout->mirror; in is_rotation_enabled() 211 return vout->rotation; in calc_rotation() 213 switch (vout->rotation) { in calc_rotation()
|
D | omap_vout_vrfb.c | 243 enum dss_rotation rotation; in omap_vout_prepare_vrfb() local 311 rotation = calc_rotation(vout); in omap_vout_prepare_vrfb() 313 vout->vrfb_context[vb->i].paddr[rotation]; in omap_vout_prepare_vrfb() 324 enum dss_rotation rotation; in omap_vout_calculate_vrfb_offset() local 332 rotation = calc_rotation(vout); in omap_vout_calculate_vrfb_offset() 364 switch (rotation) { in omap_vout_calculate_vrfb_offset()
|
/drivers/gpu/drm/tinydrm/ |
D | st7586.c | 217 switch (mipi->rotation) { in st7586_pipe_enable() 269 unsigned int rotation) in st7586_init() argument 289 mode, rotation); in st7586_init() 294 mipi->rotation = rotation; in st7586_init() 299 tdev->drm->mode_config.preferred_depth, rotation); in st7586_init() 349 u32 rotation = 0; in st7586_probe() local 368 device_property_read_u32(dev, "rotation", &rotation); in st7586_probe() 387 &st7586_mode, rotation); in st7586_probe()
|
D | mi0283qt.c | 71 switch (mipi->rotation) { in mi0283qt_init() 169 u32 rotation = 0; in mi0283qt_probe() local 196 device_property_read_u32(dev, "rotation", &rotation); in mi0283qt_probe() 203 &mi0283qt_driver, &mi0283qt_mode, rotation); in mi0283qt_probe()
|
/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-sysfs.c | 286 ofbi->rotation[t-1] = ofbi->rotation[t]; in store_overlays() 310 ofbi->rotation[ofbi->num_overlays] = 0; in store_overlays() 348 t == 0 ? "" : ",", ofbi->rotation[t]); in show_overlays_rotate() 366 u8 rotation[OMAPFB_MAX_OVL_PER_FB]; in store_overlays_rotate() local 392 if (ofbi->rotation[num_ovls] != rot) in store_overlays_rotate() 395 rotation[num_ovls++] = rot; in store_overlays_rotate() 408 ofbi->rotation[i] = rotation[i]; in store_overlays_rotate()
|
D | omapfb-main.c | 772 const struct fb_fix_screeninfo *fix, int rotation) in calc_rotation_offset_dma() argument 783 const struct fb_fix_screeninfo *fix, int rotation) in calc_rotation_offset_vrfb() argument 787 if (rotation == FB_ROTATE_UD) in calc_rotation_offset_vrfb() 790 else if (rotation == FB_ROTATE_CW) in calc_rotation_offset_vrfb() 796 if (rotation == FB_ROTATE_UR) in calc_rotation_offset_vrfb() 799 else if (rotation == FB_ROTATE_UD) in calc_rotation_offset_vrfb() 802 else if (rotation == FB_ROTATE_CW) in calc_rotation_offset_vrfb() 805 else if (rotation == FB_ROTATE_CCW) in calc_rotation_offset_vrfb() 815 int rotation, u32 *paddr) in omapfb_calc_addr() argument 821 data_start_p = omapfb_get_region_rot_paddr(ofbi, rotation); in omapfb_calc_addr() [all …]
|
/drivers/media/platform/vsp1/ |
D | vsp1_wpf.c | 48 static int vsp1_wpf_set_rotation(struct vsp1_rwpf *wpf, unsigned int rotation) in vsp1_wpf_set_rotation() argument 60 rotate = rotation == 90 || rotation == 270; in vsp1_wpf_set_rotation() 102 unsigned int rotation; in vsp1_wpf_s_ctrl() local 107 rotation = wpf->flip.ctrls.rotate ? wpf->flip.ctrls.rotate->val : 0; in vsp1_wpf_s_ctrl() 108 ret = vsp1_wpf_set_rotation(wpf, rotation); in vsp1_wpf_s_ctrl() 124 if (rotation == 180 || rotation == 270) in vsp1_wpf_s_ctrl()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_fb.c | 175 if (drm_rotation_90_or_270(state->rotation)) in omap_framebuffer_update_scanout() 185 orient = drm_rotation_to_tiler(state->rotation); in omap_framebuffer_update_scanout() 209 info->rotation = state->rotation ?: DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout() 213 switch (state->rotation & DRM_MODE_ROTATE_MASK) { in omap_framebuffer_update_scanout() 222 state->rotation); in omap_framebuffer_update_scanout() 228 info->rotation = DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout()
|
D | omap_crtc.c | 35 unsigned int rotation; member 475 omap_crtc_state->rotation = pri_state->rotation; in omap_crtc_atomic_check() 542 plane_state->rotation = val; in omap_crtc_atomic_set_property() 560 *val = omap_state->rotation; in omap_crtc_atomic_get_property() 598 state->rotation = current_state->rotation; in omap_crtc_duplicate_state()
|
D | omap_plane.c | 68 info.rotation = DRM_MODE_ROTATE_0; in omap_plane_atomic_update() 101 plane->state->rotation = DRM_MODE_ROTATE_0; in omap_plane_atomic_disable() 137 if (state->rotation != DRM_MODE_ROTATE_0 && in omap_plane_atomic_check()
|
/drivers/gpu/drm/i915/ |
D | intel_atomic_plane.c | 58 state->base.rotation = DRM_MODE_ROTATE_0; in intel_create_plane_state() 138 if (state->fb && drm_rotation_90_or_270(state->rotation)) { in intel_plane_atomic_check_with_state() 167 state->rotation & DRM_MODE_ROTATE_180 && in intel_plane_atomic_check_with_state() 168 state->rotation & DRM_MODE_REFLECT_X) { in intel_plane_atomic_check_with_state()
|
D | intel_sprite.c | 240 unsigned int rotation = plane_state->base.rotation; in skl_update_plane() local 241 u32 stride = skl_plane_stride(fb, 0, rotation); in skl_update_plane() 242 u32 aux_stride = skl_plane_stride(fb, 1, rotation); in skl_update_plane() 433 unsigned int rotation = plane_state->base.rotation; in vlv_sprite_ctl() local 481 if (rotation & DRM_MODE_ROTATE_180) in vlv_sprite_ctl() 484 if (rotation & DRM_MODE_REFLECT_X) in vlv_sprite_ctl() 595 unsigned int rotation = plane_state->base.rotation; in ivb_sprite_ctl() local 634 if (rotation & DRM_MODE_ROTATE_180) in ivb_sprite_ctl() 754 unsigned int rotation = plane_state->base.rotation; in g4x_sprite_ctl() local 790 if (rotation & DRM_MODE_ROTATE_180) in g4x_sprite_ctl() [all …]
|
/drivers/gpu/drm/arm/ |
D | malidp_planes.c | 84 state->base.rotation = DRM_MODE_ROTATE_0; in malidp_plane_reset() 224 if (state->rotation != DRM_MODE_ROTATE_0 && in malidp_de_plane_check() 230 if (state->rotation & MALIDP_ROTATED_MASK) { in malidp_de_plane_check() 318 if (plane->state->rotation & DRM_MODE_ROTATE_MASK) in malidp_de_plane_update() 319 val |= ilog2(plane->state->rotation & DRM_MODE_ROTATE_MASK) << in malidp_de_plane_update() 321 if (plane->state->rotation & DRM_MODE_REFLECT_X) in malidp_de_plane_update() 323 if (plane->state->rotation & DRM_MODE_REFLECT_Y) in malidp_de_plane_update()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dispc.c | 1485 bool five_taps, u8 rotation, in dispc_ovl_set_scale_param() argument 1500 bool ilace, enum omap_color_mode color_mode, u8 rotation) in dispc_ovl_set_accu_uv() argument 1538 switch (rotation) { in dispc_ovl_set_accu_uv() 1591 u8 rotation) in dispc_ovl_set_scaling_common() argument 1599 rotation, DISPC_COLOR_COMPONENT_RGB_Y); in dispc_ovl_set_scaling_common() 1645 u8 rotation) in dispc_ovl_set_scaling_uv() argument 1663 out_height, ilace, color_mode, rotation); in dispc_ovl_set_scaling_uv() 1681 if (rotation == OMAP_DSS_ROT_0 || in dispc_ovl_set_scaling_uv() 1682 rotation == OMAP_DSS_ROT_180) { in dispc_ovl_set_scaling_uv() 1692 if (rotation != OMAP_DSS_ROT_0) in dispc_ovl_set_scaling_uv() [all …]
|
/drivers/iio/orientation/ |
D | Kconfig | 28 device rotation. The output of a device rotation sensor
|
/drivers/iio/ |
D | industrialio-core.c | 498 .rotation = { 526 mtx->rotation[0], mtx->rotation[1], mtx->rotation[2], in iio_show_mount_matrix() 527 mtx->rotation[3], mtx->rotation[4], mtx->rotation[5], in iio_show_mount_matrix() 528 mtx->rotation[6], mtx->rotation[7], mtx->rotation[8]); in iio_show_mount_matrix() 551 propname, matrix->rotation, in of_iio_read_mount_matrix() 552 ARRAY_SIZE(iio_mount_idmatrix.rotation)); in of_iio_read_mount_matrix() 554 if (err == ARRAY_SIZE(iio_mount_idmatrix.rotation)) in of_iio_read_mount_matrix()
|
/drivers/gpu/ipu-v3/ |
D | ipu-ic.c | 151 bool rotation; member 343 if (ic->rotation) in ipu_ic_task_enable() 623 ic->rotation = true; in ipu_ic_task_idma_init() 663 if (ic->rotation) in ipu_ic_enable() 687 if (ic->rotation) in ipu_ic_disable() 690 ic->rotation = ic->graphics = false; in ipu_ic_disable()
|
/drivers/gpu/drm/omapdrm/dss/ |
D | dispc.c | 1642 bool five_taps, u8 rotation, in dispc_ovl_set_scale_param() argument 1657 bool ilace, u32 fourcc, u8 rotation) in dispc_ovl_set_accu_uv() argument 1696 switch (rotation & DRM_MODE_ROTATE_MASK) { in dispc_ovl_set_accu_uv() 1747 u8 rotation) in dispc_ovl_set_scaling_common() argument 1755 rotation, DISPC_COLOR_COMPONENT_RGB_Y); in dispc_ovl_set_scaling_common() 1801 u8 rotation) in dispc_ovl_set_scaling_uv() argument 1818 out_height, ilace, fourcc, rotation); in dispc_ovl_set_scaling_uv() 1836 if (!drm_rotation_90_or_270(rotation)) { in dispc_ovl_set_scaling_uv() 1846 if ((rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0) in dispc_ovl_set_scaling_uv() 1862 rotation, DISPC_COLOR_COMPONENT_UV); in dispc_ovl_set_scaling_uv() [all …]
|
/drivers/gpu/drm/msm/mdp/mdp5/ |
D | mdp5_plane.c | 357 unsigned int rotation; in mdp5_plane_atomic_check_with_state() local 370 rotation = drm_rotation_simplify(state->rotation, in mdp5_plane_atomic_check_with_state() 375 if (rotation & DRM_MODE_REFLECT_X) in mdp5_plane_atomic_check_with_state() 378 if (rotation & DRM_MODE_REFLECT_Y) in mdp5_plane_atomic_check_with_state() 895 unsigned int rotation; in mdp5_plane_mode_set() local 975 rotation = drm_rotation_simplify(pstate->rotation, in mdp5_plane_mode_set() 979 hflip = !!(rotation & DRM_MODE_REFLECT_X); in mdp5_plane_mode_set() 980 vflip = !!(rotation & DRM_MODE_REFLECT_Y); in mdp5_plane_mode_set()
|
/drivers/video/fbdev/ |
D | goldfishfb.c | 52 int rotation; member 128 if (fb->rotation != fb->fb.var.rotate) { in goldfish_fb_set_par() 130 fb->rotation = fb->fb.var.rotate; in goldfish_fb_set_par() 131 writel(fb->rotation, fb->reg_base + FB_SET_ROTATION); in goldfish_fb_set_par()
|