/openbmc/linux/include/drm/ |
H A D | drm_rect.h | 74 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1 89 drm_rect_height(r) >> 16, ((drm_rect_height(r) & 0xffff) * 15625) >> 10, \ 196 static inline int drm_rect_height(const struct drm_rect *r) in drm_rect_height() function 210 return drm_rect_width(r) > 0 && drm_rect_height(r) > 0; in drm_rect_visible() 238 drm_rect_height(src) >> 16); in drm_rect_fp_to_int()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_rect.c | 107 u32 new_src_h = clip_scaled(drm_rect_height(src), in drm_rect_clip_scaled() 108 drm_rect_height(dst), &diff); in drm_rect_clip_scaled() 123 u32 new_src_h = clip_scaled(drm_rect_height(src), in drm_rect_clip_scaled() 124 drm_rect_height(dst), &diff); in drm_rect_clip_scaled() 208 int src_h = drm_rect_height(src); in drm_rect_calc_vscale() 209 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale()
|
H A D | drm_plane_helper.c | 113 .src_h = drm_rect_height(src), in drm_plane_helper_check_update() 117 .crtc_h = drm_rect_height(dst), in drm_plane_helper_check_update()
|
H A D | drm_format_helper.c | 51 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm() 94 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm_toio() 182 unsigned int i, y, lines = drm_rect_height(clip); in drm_fb_memcpy() 1011 unsigned int lines = drm_rect_height(clip); in drm_fb_xrgb8888_to_mono()
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | skl_scaler.c | 115 int pipe_src_h = drm_rect_height(&crtc_state->pipe_src); in skl_update_scaler() 244 height = drm_rect_height(&crtc_state->pch_pfit.dst); in skl_update_scaler_crtc() 253 drm_rect_height(&crtc_state->pipe_src), in skl_update_scaler_crtc() 287 drm_rect_height(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane() 289 drm_rect_height(&plane_state->uapi.dst), in skl_update_scaler_plane() 717 int height = drm_rect_height(dst); in skl_pfit_enable() 734 drm_rect_height(&crtc_state->pipe_src) << 16); in skl_pfit_enable() 776 u32 crtc_h = drm_rect_height(&plane_state->uapi.dst); in skl_program_plane_scaler()
|
H A D | intel_atomic_plane.c | 151 src_h = drm_rect_height(src) >> 16; in intel_adjusted_rate() 153 dst_h = drm_rect_height(dst); in intel_adjusted_rate() 237 height = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_plane_relative_data_rate() 395 drm_rect_height(&new->uapi.src) != drm_rect_height(&cur->uapi.src) || in intel_wm_need_update() 397 drm_rect_height(&new->uapi.dst) != drm_rect_height(&cur->uapi.dst)) in intel_wm_need_update() 406 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_plane_is_scaled() 408 int dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_is_scaled() 976 src_h = drm_rect_height(src) >> 16; in intel_plane_check_src_coordinates()
|
H A D | intel_cursor.c | 73 int height = drm_rect_height(&plane_state->uapi.dst); in intel_cursor_size_ok() 119 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface() 232 drm_rect_height(&plane_state->uapi.dst)); in i845_check_cursor() 266 unsigned int height = drm_rect_height(&plane_state->uapi.dst); in i845_cursor_update_arm() 394 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_size_ok() 449 drm_rect_height(&plane_state->uapi.dst)); in i9xx_check_cursor() 498 int height = drm_rect_height(&plane_state->uapi.dst); in i9xx_cursor_update_arm()
|
H A D | intel_panel.c | 399 int pipe_src_h = drm_rect_height(&crtc_state->pipe_src); in pch_panel_fitting() 527 int pipe_src_h = drm_rect_height(&crtc_state->pipe_src); in i965_scale_aspect() 548 int pipe_src_h = drm_rect_height(&crtc_state->pipe_src); in i9xx_scale_aspect() 606 int pipe_src_h = drm_rect_height(&crtc_state->pipe_src); in gmch_panel_fitting()
|
H A D | intel_sprite.c | 370 u32 crtc_h = drm_rect_height(&plane_state->uapi.dst); in vlv_sprite_update_noarm() 784 u32 crtc_h = drm_rect_height(&plane_state->uapi.dst); in ivb_sprite_update_noarm() 786 u32 src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in ivb_sprite_update_noarm() 1111 u32 crtc_h = drm_rect_height(&plane_state->uapi.dst); in g4x_sprite_update_noarm() 1113 u32 src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in g4x_sprite_update_noarm() 1243 crtc_h = drm_rect_height(dst); in g4x_sprite_check_scaling() 1247 src_h = drm_rect_height(src) >> 16; in g4x_sprite_check_scaling()
|
H A D | i9xx_plane.c | 294 int src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface() 431 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_plane_update_noarm() 468 int crtc_h = drm_rect_height(&plane_state->uapi.dst); in i9xx_plane_update_arm()
|
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_plane.c | 130 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_calc_bw() 131 dst_height = drm_rect_height(&pipe_cfg->dst_rect); in _dpu_plane_calc_bw() 171 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_calc_clk() 173 dst_height = drm_rect_height(&pipe_cfg->dst_rect); in _dpu_plane_calc_clk() 356 ot_params.height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit() 538 u32 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler() 540 u32 dst_height = drm_rect_height(&pipe_cfg->dst_rect); in _dpu_plane_setup_scaler() 598 drm_rect_height(&pipe_cfg.dst_rect); in _dpu_plane_color_fill_pipe() 757 drm_rect_height(&pipe_cfg->src_rect) < min_src_size) { in dpu_plane_atomic_check_pipe() 768 drm_rect_height(&pipe_cfg->src_rect) & 0x1)) { in dpu_plane_atomic_check_pipe() [all …]
|
H A D | dpu_hw_wb.c | 107 if (drm_rect_height(&data->roi) && drm_rect_width(&data->roi)) in dpu_hw_wb_setup_format() 108 outsize = (drm_rect_height(&data->roi) << 16) | drm_rect_width(&data->roi); in dpu_hw_wb_setup_format() 130 out_size = (drm_rect_height(&wb->roi) << 16) | drm_rect_width(&wb->roi); in dpu_hw_wb_roi()
|
H A D | dpu_hw_sspp.c | 438 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_sspp_setup_rects() 441 dst_size = (drm_rect_height(&cfg->dst_rect) << 16) | in dpu_hw_sspp_setup_rects()
|
/openbmc/linux/drivers/gpu/drm/armada/ |
H A D | armada_plane.c | 113 st->src_hw = drm_rect_height(&new_plane_state->src) >> 17; in armada_drm_plane_atomic_check() 115 st->dst_hw = drm_rect_height(&new_plane_state->dst) >> 1; in armada_drm_plane_atomic_check() 117 st->src_hw = drm_rect_height(&new_plane_state->src) >> 16; in armada_drm_plane_atomic_check() 119 st->dst_hw = drm_rect_height(&new_plane_state->dst); in armada_drm_plane_atomic_check()
|
/openbmc/linux/drivers/gpu/drm/gud/ |
H A D | gud_pipe.c | 69 height = drm_rect_height(rect); in gud_xrgb8888_to_r124() 116 len = drm_format_info_min_pitch(format, 0, width) * drm_rect_height(rect); in gud_xrgb8888_to_color() 163 len = pitch * drm_rect_height(rect); in gud_prep_flush() 209 req->height = cpu_to_le32(drm_rect_height(rect)); in gud_prep_flush() 332 lines = drm_rect_height(damage); in gud_flush_damage() 337 for (i = 0; i < DIV_ROUND_UP(drm_rect_height(damage), lines); i++) { in gud_flush_damage()
|
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | ipuv3-plane.c | 418 if (drm_rect_height(&new_state->dst) < 2) in ipu_plane_atomic_check() 430 drm_rect_height(&new_state->dst) != drm_rect_height(&old_state->dst) || in ipu_plane_atomic_check() 621 height = drm_rect_height(&new_state->src) >> 16; in ipu_plane_atomic_update()
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun8i_ui_layer.c | 114 src_h = drm_rect_height(&state->src) >> 16; in sun8i_ui_layer_update_coord() 116 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord()
|
H A D | sun8i_vi_layer.c | 121 src_h = drm_rect_height(&state->src) >> 16; in sun8i_vi_layer_update_coord() 123 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord()
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop2.c | 498 u32 height = drm_rect_height(src) >> 16; in vop2_afbc_transform_offset() 986 if (drm_rect_width(src) >> 16 < 4 || drm_rect_height(src) >> 16 < 4 || in vop2_plane_atomic_check() 989 drm_rect_width(src) >> 16, drm_rect_height(src) >> 16, in vop2_plane_atomic_check() 990 drm_rect_width(dest), drm_rect_height(dest)); in vop2_plane_atomic_check() 996 drm_rect_height(src) >> 16 > vop2_data->max_input.height) { in vop2_plane_atomic_check() 999 drm_rect_height(src) >> 16, in vop2_plane_atomic_check() 1160 actual_h = drm_rect_height(src) >> 16; in vop2_plane_atomic_update() 1172 dsp_h = drm_rect_height(dest); in vop2_plane_atomic_update() 1180 actual_h = dsp_h * actual_h / drm_rect_height(dest); in vop2_plane_atomic_update() 1284 actual_w = drm_rect_height(src) >> 16; in vop2_plane_atomic_update()
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-plane.c | 304 src_h = drm_rect_height(&src) >> 16; in dcss_plane_atomic_update() 306 dst_h = drm_rect_height(&dst); in dcss_plane_atomic_update()
|
/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_vsp.c | 238 cfg.src.height = drm_rect_height(&state->state.src) >> 16; in rcar_du_vsp_plane_setup() 243 cfg.dst.height = drm_rect_height(&state->state.dst); in rcar_du_vsp_plane_setup()
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_rect_test.c | 22 KUNIT_EXPECT_EQ(test, drm_rect_height(r), drm_rect_height(expected)); in drm_rect_compare()
|
/openbmc/linux/drivers/gpu/drm/vkms/ |
H A D | vkms_plane.c | 126 drm_rect_height(&frame_info->rotated), frame_info->rotation); in vkms_plane_atomic_update()
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | plane.c | 242 src_h = drm_rect_height(&state->src) >> 16; in tegra_plane_calculate_memory_bandwidth() 244 dst_h = drm_rect_height(&state->dst); in tegra_plane_calculate_memory_bandwidth()
|
H A D | dc.c | 748 window.src.h = drm_rect_height(&new_state->src) >> 16; in tegra_plane_atomic_update() 752 window.dst.h = drm_rect_height(&new_state->dst); in tegra_plane_atomic_update() 988 value = (drm_rect_height(&src) & tegra->vmask) << 16 | in __tegra_cursor_atomic_update() 2050 window.src.h = drm_rect_height(&plane->state->src) >> 16; in tegra_crtc_update_memory_bandwidth() 2051 window.dst.h = drm_rect_height(&plane->state->dst); in tegra_crtc_update_memory_bandwidth() 2053 old_window.src.h = drm_rect_height(&old_plane_state->src) >> 16; in tegra_crtc_update_memory_bandwidth() 2054 old_window.dst.h = drm_rect_height(&old_plane_state->dst); in tegra_crtc_update_memory_bandwidth()
|