| /linux/drivers/gpu/drm/ |
| H A D | drm_rect.c | 241 * @rotation: Transformation to be applied 243 * Apply @rotation to the coordinates of rectangle @r. 245 * @width and @height combined with @rotation define 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() 307 * @rotation: Transformation whose inverse is to be applied 309 * Apply the inverse of @rotation to the coordinates [all …]
|
| H A D | drm_client_modeset.c | 948 * drm_client_rotation() - Check the initial rotation value 950 * @rotation: Returned rotation value 953 * to match the rotation needed on its connector. 958 * True if the plane can do the rotation, false otherwise. 960 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation) in drm_client_rotation() argument 973 *rotation = DRM_MODE_ROTATE_180; in drm_client_rotation() 976 *rotation = DRM_MODE_ROTATE_90; in drm_client_rotation() 979 *rotation = DRM_MODE_ROTATE_270; in drm_client_rotation() 982 *rotation = DRM_MODE_ROTATE_0; in drm_client_rotation() 986 * The panel already defined the default rotation in drm_client_rotation() [all …]
|
| /linux/include/video/ |
| H A D | imx-ipu-image-convert.h | 5 * i.MX Queued image conversion support, with tiling and rotation. 49 * @rot_mode: rotation mode 58 * and rotation mode meet IPU restrictions. 62 * @rot_mode: rotation mode 64 * Returns: 0 if the formats and rotation mode meet IPU restrictions, 77 * @rot_mode: rotation mode 84 * on failure. The input/output formats and rotation mode must already meet 149 * @rot_mode: rotation mode 155 * As with ipu_image_convert_prepare(), the input/output formats and rotation
|
| /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 …]
|
| /linux/Documentation/arch/arm/omap/ |
| H A D | dss.rst | 167 rotate Rotation 0-3 for 0, 90, 180, 270 degrees 168 rotate_type 0 = DMA rotation, 1 = VRFB rotation 201 rotate Rotation 0-3 for 0, 90, 180, 270 degrees 304 Rotation and mirroring currently only supports RGB565 and RGB8888 modes. VRFB 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 [all …]
|
| /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/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fimc.c | 33 * FIMC supports image rotation and image effect functions. 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() [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()
|
| /linux/drivers/iio/orientation/ |
| H A D | Kconfig | 24 tristate "HID Device Rotation" 27 device rotation. The output of a device rotation sensor
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_vout_vrfb.c | 206 /* If rotation is enabled, allocate memory for VRFB space also */ in omap_vout_vrfb_buffer_setup() 240 enum dss_rotation rotation; in omap_vout_prepare_vrfb() local 247 /* If rotation is enabled, copy input buffer into VRFB in omap_vout_prepare_vrfb() 307 rotation = calc_rotation(vout); in omap_vout_prepare_vrfb() 309 vout->vrfb_context[vb->index].paddr[rotation]; in omap_vout_prepare_vrfb() 316 * the VRFB 32 pixels alignment with rotation. 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()
|
| H A D | omap_vout.c | 20 * 20-APR-2006 Khasim Modified VRFB based Rotation, 23 * to the virtual space of desired rotation angle 172 * Convert V4L2 rotation to DSS rotation 177 enum dss_rotation *rotation, bool mirror) in v4l2_rot_to_dss_rot() argument 183 *rotation = dss_rotation_90_degree; in v4l2_rot_to_dss_rot() 186 *rotation = dss_rotation_180_degree; in v4l2_rot_to_dss_rot() 189 *rotation = dss_rotation_270_degree; in v4l2_rot_to_dss_rot() 192 *rotation = dss_rotation_0_degree; in v4l2_rot_to_dss_rot() 299 * rotation value selected. in omapvid_setup_overlay() 323 info.rotation = 0; in omapvid_setup_overlay() [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/imx/dcss/ |
| H A D | dcss-plane.c | 107 unsigned int rotation) in dcss_plane_can_rotate() argument 126 return !!(rotation & supported_rotation); in dcss_plane_can_rotate() 191 new_plane_state->rotation)) { in dcss_plane_atomic_check() 192 DRM_DEBUG_KMS("requested rotation is not allowed!\n"); in dcss_plane_atomic_check() 265 state->rotation != old_state->rotation || in dcss_plane_needs_setup() 319 new_state->rotation); in dcss_plane_atomic_update() 323 is_rotation_90_or_270 = new_state->rotation & (DRM_MODE_ROTATE_90 | in dcss_plane_atomic_update()
|
| /linux/drivers/gpu/drm/arm/ |
| H A D | malidp_planes.c | 281 if (state->rotation & MALIDP_ROTATED_MASK) { in malidp_se_check_scaling() 362 * current format, AFBC state and rotation. 365 unsigned int rotation) in malidp_partial_prefetch_supported() argument 369 /* rotation and horizontal flip not supported for partial prefetch */ in malidp_partial_prefetch_supported() 370 if (rotation & (DRM_MODE_ROTATE_90 | DRM_MODE_ROTATE_180 | in malidp_partial_prefetch_supported() 447 ms->base.rotation)) { in malidp_mmu_prefetch_select_mode() 499 bool rotated = new_plane_state->rotation & MALIDP_ROTATED_MASK; in malidp_de_plane_check() 559 /* validate the rotation constraints for each layer */ in malidp_de_plane_check() 560 if (new_plane_state->rotation != DRM_MODE_ROTATE_0) { in malidp_de_plane_check() 581 if (new_plane_state->rotation & MALIDP_ROTATED_MASK) { in malidp_de_plane_check() [all …]
|
| H A D | malidp_crtc.c | 289 if (pstate->rotation & MALIDP_ROTATED_MASK) { in malidp_crtc_atomic_check_scaling() 350 * check if there is enough rotation memory available for planes in malidp_crtc_atomic_check() 356 * The rotation memory allocation algorithm (for each plane): in malidp_crtc_atomic_check() 361 * if secondary rotation memory bank is available, otherwise it can in malidp_crtc_atomic_check() 378 if ((pstate->rotation & MALIDP_ROTATED_MASK) || fb->modifier) in malidp_crtc_atomic_check() 384 * if we have more than 1 plane using rotation memory, use the second in malidp_crtc_atomic_check() 385 * block of rotation memory as well in malidp_crtc_atomic_check() 390 /* now validate the rotation memory requirements */ in malidp_crtc_atomic_check() 396 if ((pstate->rotation & MALIDP_ROTATED_MASK) || fb->modifier) { in malidp_crtc_atomic_check()
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fb.c | 156 if (drm_rotation_90_or_270(state->rotation)) in omap_framebuffer_update_scanout() 166 orient = drm_rotation_to_tiler(state->rotation); in omap_framebuffer_update_scanout() 190 info->rotation = state->rotation ?: DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout() 194 switch (state->rotation & DRM_MODE_ROTATE_MASK) { in omap_framebuffer_update_scanout() 202 "rotation '%d' ignored for non-tiled fb\n", in omap_framebuffer_update_scanout() 203 state->rotation); in omap_framebuffer_update_scanout() 209 info->rotation = DRM_MODE_ROTATE_0; in omap_framebuffer_update_scanout()
|
| /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/samples/hid/ |
| H A D | hid_surface_dial.c | 6 * - a resolution (-r) of 3600 will report 3600 "ticks" in one full rotation 8 * - any other resolution will report N "ticks" in a full rotation with haptic 58 "- a resolution (-r) of 3600 will report 3600 'ticks' in one full rotation\n" in usage() 60 "- any other resolution will report N 'ticks' in a full rotation with haptic\n" in usage()
|
| /linux/Documentation/hwmon/ |
| H A D | lm80.rst | 40 The LM80 implements one temperature sensor, two fan rotation speed sensors, 52 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is 53 triggered if the rotation speed has dropped below a programmable limit. Fan
|
| H A D | gl518sm.rst | 39 The GL518SM implements one temperature sensor, two fan rotation speed 49 Rotation speeds are reported in RPM (rotations per minute). An alarm is 50 triggered if the rotation speed has dropped below a programmable limit. In
|
| H A D | lm78.rst | 42 The LM7* implements one temperature sensor, three fan rotation speed sensors, 53 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is 54 triggered if the rotation speed has dropped below a programmable limit. Fan
|
| /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.
|