Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 142) sorted by relevance

123456

/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_magn.c275 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()
/drivers/gpu/drm/
Ddrm_blend.c273 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 …]
Ddrm_rect.c255 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()
Ddrm_panel.c280 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()
292 if (rotation == 0) in of_drm_get_panel_orientation()
294 else if (rotation == 90) in of_drm_get_panel_orientation()
296 else if (rotation == 180) in of_drm_get_panel_orientation()
298 else if (rotation == 270) in of_drm_get_panel_orientation()
Ddrm_client_modeset.c905 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument
918 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation()
921 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation()
924 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation()
927 *rotation = DRM_MODE_ROTATE_0; in drm_client_rotation()
948 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK); in drm_client_rotation()
952 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK; in drm_client_rotation()
956 *rotation = (1 << sum_rot) | sum_rest; in drm_client_rotation()
964 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 && in drm_client_rotation()
965 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) || in drm_client_rotation()
[all …]
Ddrm_mipi_dbi.c436 unsigned int rotation) in mipi_dbi_rotate_mode() argument
438 if (rotation == 0 || rotation == 180) { in mipi_dbi_rotate_mode()
440 } else if (rotation == 90 || rotation == 270) { in mipi_dbi_rotate_mode()
490 unsigned int rotation, size_t tx_buf_size) in mipi_dbi_dev_init_with_formats() argument
511 ret = mipi_dbi_rotate_mode(&dbidev->mode, rotation); in mipi_dbi_dev_init_with_formats()
513 DRM_ERROR("Illegal rotation value %u\n", rotation); in mipi_dbi_dev_init_with_formats()
535 dbidev->rotation = rotation; in mipi_dbi_dev_init_with_formats()
537 DRM_DEBUG_KMS("rotation = %u\n", rotation); in mipi_dbi_dev_init_with_formats()
562 const struct drm_display_mode *mode, unsigned int rotation) in mipi_dbi_dev_init() argument
570 rotation, bufsize); in mipi_dbi_dev_init()
/drivers/gpu/drm/i915/display/
Dskl_universal_plane.c361 unsigned int rotation) in skl_plane_max_width() argument
400 unsigned int rotation) in glk_plane_max_width() argument
428 unsigned int rotation) in icl_plane_min_width() argument
468 unsigned int rotation) in icl_plane_max_width() argument
475 unsigned int rotation) in skl_plane_max_height() argument
482 unsigned int rotation) in icl_plane_max_height() argument
490 unsigned int rotation) in skl_plane_max_stride() argument
517 if (drm_rotation_90_or_270(rotation)) in skl_plane_max_stride()
616 int color_plane, unsigned int rotation) in skl_plane_stride_mult() argument
624 else if (drm_rotation_90_or_270(rotation)) in skl_plane_stride_mult()
[all …]
Dintel_fb.c210 unsigned int rotation, in intel_adjust_aligned_offset() argument
226 if (drm_rotation_90_or_270(rotation)) { in intel_adjust_aligned_offset()
256 state->hw.rotation, in intel_plane_adjust_aligned_offset()
280 unsigned int rotation, in intel_compute_aligned_offset() argument
293 if (drm_rotation_90_or_270(rotation)) { in intel_compute_aligned_offset()
337 unsigned int rotation = state->hw.rotation; in intel_plane_compute_aligned_offset() local
347 pitch, rotation, alignment); in intel_plane_compute_aligned_offset()
499 …atic int intel_fb_pitch(const struct intel_framebuffer *fb, int color_plane, unsigned int rotation) in intel_fb_pitch() argument
501 if (drm_rotation_90_or_270(rotation)) in intel_fb_pitch()
513 unsigned int rotation = plane_state->hw.rotation; in intel_plane_needs_remap() local
[all …]
Di9xx_plane.c161 unsigned int rotation = plane_state->hw.rotation; in i9xx_plane_ctl() local
219 if (rotation & DRM_MODE_ROTATE_180) in i9xx_plane_ctl()
222 if (rotation & DRM_MODE_REFLECT_X) in i9xx_plane_ctl()
296 unsigned int rotation = plane_state->hw.rotation; in i9xx_check_plane_surface() local
300 if (rotation & DRM_MODE_ROTATE_180) { in i9xx_check_plane_surface()
303 } else if (rotation & DRM_MODE_REFLECT_X) { in i9xx_check_plane_surface()
688 unsigned int rotation) in hsw_primary_max_stride() argument
700 unsigned int rotation) in ilk_primary_max_stride() argument
715 unsigned int rotation) in i965_plane_max_stride() argument
730 unsigned int rotation) in i9xx_plane_max_stride() argument
[all …]
/drivers/video/fbdev/aty/
Dmach64_accel.c30 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 …]
/drivers/media/platform/omap/
Domap_voutdef.h154 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()
/drivers/gpu/drm/mediatek/
Dmtk_disp_ovl.c207 unsigned int rotation = 0; in mtk_ovl_layer_check() local
209 rotation = drm_rotation_simplify(state->rotation, in mtk_ovl_layer_check()
213 rotation &= ~DRM_MODE_ROTATE_0; in mtk_ovl_layer_check()
216 if ((rotation & DRM_MODE_ROTATE_MASK) != 0) in mtk_ovl_layer_check()
223 if (state->fb->format->is_yuv && rotation != 0) in mtk_ovl_layer_check()
226 state->rotation = rotation; in mtk_ovl_layer_check()
325 if (pending->rotation & DRM_MODE_REFLECT_Y) { in mtk_ovl_layer_config()
330 if (pending->rotation & DRM_MODE_REFLECT_X) { in mtk_ovl_layer_config()
/drivers/gpu/drm/exynos/
Dexynos_drm_fimc.c416 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 …]
Dexynos_drm_scaler.c263 unsigned int rotation, in scaler_set_hv_ratio() argument
269 if (drm_rotation_90_or_270(rotation)) { in scaler_set_hv_ratio()
285 unsigned int rotation) in scaler_set_rotation() argument
289 if (rotation & DRM_MODE_ROTATE_90) in scaler_set_rotation()
291 else if (rotation & DRM_MODE_ROTATE_180) in scaler_set_rotation()
293 else if (rotation & DRM_MODE_ROTATE_270) in scaler_set_rotation()
295 if (rotation & DRM_MODE_REFLECT_X) in scaler_set_rotation()
297 if (rotation & DRM_MODE_REFLECT_Y) in scaler_set_rotation()
392 scaler_set_hv_ratio(scaler, task->transform.rotation, src_pos, dst_pos); in scaler_commit()
393 scaler_set_rotation(scaler, task->transform.rotation); in scaler_commit()
Dexynos_drm_gsc.c112 bool rotation; member
520 static void gsc_src_set_transf(struct gsc_context *ctx, unsigned int rotation) in gsc_src_set_transf() argument
522 unsigned int degree = rotation & DRM_MODE_ROTATE_MASK; in gsc_src_set_transf()
530 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf()
532 if (rotation & DRM_MODE_REFLECT_Y) in gsc_src_set_transf()
537 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf()
539 if (rotation & DRM_MODE_REFLECT_Y) in gsc_src_set_transf()
544 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf()
546 if (rotation & DRM_MODE_REFLECT_Y) in gsc_src_set_transf()
551 if (rotation & DRM_MODE_REFLECT_X) in gsc_src_set_transf()
[all …]
Dexynos_drm_rotator.c161 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()
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.c122 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 …]
/drivers/gpu/drm/arm/display/komeda/
Dkomeda_kms.h158 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()
/drivers/video/fbdev/omap2/omapfb/
Domapfb-sysfs.c271 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()
Domapfb-main.c761 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 …]
/drivers/gpu/drm/omapdrm/
Domap_fb.c150 if (drm_rotation_90_or_270(state->rotation)) in omap_framebuffer_update_scanout()
160 orient = drm_rotation_to_tiler(state->rotation); in omap_framebuffer_update_scanout()
184 info->rotation = state->rotation ?: DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout()
188 switch (state->rotation & DRM_MODE_ROTATE_MASK) { in omap_framebuffer_update_scanout()
197 state->rotation); in omap_framebuffer_update_scanout()
203 info->rotation = DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout()
/drivers/gpu/drm/tiny/
Dhx8357d.c163 switch (dbidev->rotation) { in yx240qv29_enable()
225 u32 rotation = 0; in hx8357d_probe() local
243 device_property_read_u32(dev, "rotation", &rotation); in hx8357d_probe()
249 ret = mipi_dbi_dev_init(dbidev, &hx8357d_pipe_funcs, &yx350hv15_mode, rotation); in hx8357d_probe()
Dili9341.c117 switch (dbidev->rotation) { in yx240qv29_enable()
182 u32 rotation = 0; in ili9341_probe() local
205 device_property_read_u32(dev, "rotation", &rotation); in ili9341_probe()
211 ret = mipi_dbi_dev_init(dbidev, &ili9341_pipe_funcs, &yx240qv29_mode, rotation); in ili9341_probe()
/drivers/media/platform/vsp1/
Dvsp1_wpf.c44 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()
98 unsigned int rotation; in vsp1_wpf_s_ctrl() local
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()
120 if (rotation == 180 || rotation == 270) in vsp1_wpf_s_ctrl()
/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c104 unsigned int rotation) in dcss_plane_can_rotate() argument
123 return !!(rotation & supported_rotation); in dcss_plane_can_rotate()
188 new_plane_state->rotation)) { in dcss_plane_atomic_check()
262 state->rotation != old_state->rotation || in dcss_plane_needs_setup()
316 new_state->rotation); in dcss_plane_atomic_update()
320 is_rotation_90_or_270 = new_state->rotation & (DRM_MODE_ROTATE_90 | in dcss_plane_atomic_update()

123456