Home
last modified time | relevance | path

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

123456789

/kernel/linux/linux-5.10/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_magn.c274 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[1]; in inv_mpu_magn_set_orient()
280 st->magn_orient.rotation[5] = st->orientation.rotation[2]; in inv_mpu_magn_set_orient()
283 orient = st->orientation.rotation[6 + i]; in inv_mpu_magn_set_orient()
297 st->magn_orient.rotation[6 + i] = str; in inv_mpu_magn_set_orient()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_blend.c266 unsigned int rotation, in drm_plane_create_rotation_property() argument
280 WARN_ON(!is_power_of_2(rotation & DRM_MODE_ROTATE_MASK)); in drm_plane_create_rotation_property()
281 WARN_ON(rotation & ~supported_rotations); in drm_plane_create_rotation_property()
289 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property()
292 plane->state->rotation = rotation; in drm_plane_create_rotation_property()
318 unsigned int drm_rotation_simplify(unsigned int rotation, in drm_rotation_simplify() argument
321 if (rotation & ~supported_rotations) { in drm_rotation_simplify()
322 rotation ^= DRM_MODE_REFLECT_X | DRM_MODE_REFLECT_Y; in drm_rotation_simplify()
323 rotation = (rotation & DRM_MODE_REFLECT_MASK) | in drm_rotation_simplify()
324 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.c898 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument
911 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation()
914 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation()
917 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation()
920 *rotation = DRM_MODE_ROTATE_0; in drm_client_rotation()
941 panel_rot = ilog2(*rotation & DRM_MODE_ROTATE_MASK); in drm_client_rotation()
945 panel_rest = *rotation & ~DRM_MODE_ROTATE_MASK; in drm_client_rotation()
949 *rotation = (1 << sum_rot) | sum_rest; in drm_client_rotation()
957 if (((*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_0 && in drm_client_rotation()
958 (*rotation & DRM_MODE_ROTATE_MASK) != DRM_MODE_ROTATE_180) || in drm_client_rotation()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_blend.h38 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,
Ddrm_mipi_dbi.h105 unsigned int rotation; member
146 unsigned int rotation, size_t tx_buf_size);
149 const struct drm_display_mode *mode, unsigned int rotation);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_disp_ovl.c156 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()
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 & DRM_MODE_REFLECT_Y) { in mtk_ovl_layer_config()
277 if (pending->rotation & DRM_MODE_REFLECT_X) { in mtk_ovl_layer_config()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/
Dilitek,ili9225.txt15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270)
24 rotation = <270>;
Dilitek,ili9341.txt15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270)
25 rotation = <270>;
Dhimax,hx8357d.txt15 - rotation: panel rotation in degrees counter clockwise (0,90,180,270)
24 rotation = <90>;
Dmulti-inno,mi0283qt.txt17 - rotation: panel rotation in degrees counter clockwise (0,90,180,270)
24 rotation = <90>;
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dexynos_drm_fimc.c418 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 & DRM_MODE_REFLECT_X) in fimc_src_set_transf()
451 if (rotation & DRM_MODE_REFLECT_Y) in fimc_src_set_transf()
458 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()
390 scaler_set_hv_ratio(scaler, task->transform.rotation, src_pos, dst_pos); in scaler_commit()
391 scaler_set_rotation(scaler, task->transform.rotation); in scaler_commit()
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()
228 rotator_dst_set_transf(rot, task->transform.rotation); in rotator_commit()
Dexynos_drm_gsc.c114 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 …]
/kernel/linux/linux-5.10/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
633 enum dc_rotation_angle rotation, in dce_mi_program_surface_config() argument
641 program_size_and_rotation(dce_mi, rotation, plane_size); in dce_mi_program_surface_config()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/tiny/
Dhx8357d.c163 switch (dbidev->rotation) { in yx240qv29_enable()
226 u32 rotation = 0; in hx8357d_probe() local
246 device_property_read_u32(dev, "rotation", &rotation); in hx8357d_probe()
252 ret = mipi_dbi_dev_init(dbidev, &hx8357d_pipe_funcs, &yx350hv15_mode, rotation); in hx8357d_probe()
Dili9341.c117 switch (dbidev->rotation) { in yx240qv29_enable()
183 u32 rotation = 0; in ili9341_probe() local
210 device_property_read_u32(dev, "rotation", &rotation); in ili9341_probe()
216 ret = mipi_dbi_dev_init(dbidev, &ili9341_pipe_funcs, &yx240qv29_mode, rotation); in ili9341_probe()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c104 unsigned int rotation) in dcss_plane_can_rotate() argument
124 return !!(rotation & supported_rotation); in dcss_plane_can_rotate()
187 state->rotation)) { in dcss_plane_atomic_check()
261 state->rotation != old_state->rotation; in dcss_plane_needs_setup()
312 state->rotation); in dcss_plane_atomic_update()
316 is_rotation_90_or_270 = state->rotation & (DRM_MODE_ROTATE_90 | in dcss_plane_atomic_update()

123456789