Home
last modified time | relevance | path

Searched refs:drm_rect_width (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.1.9/include/drm/
Ddrm_rect.h74 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1
88 drm_rect_width(r) >> 16, ((drm_rect_width(r) & 0xffff) * 15625) >> 10, \
184 static inline int drm_rect_width(const struct drm_rect *r) in drm_rect_width() function
210 return drm_rect_width(r) > 0 && drm_rect_height(r) > 0; in drm_rect_visible()
237 drm_rect_width(src) >> 16, in drm_rect_fp_to_int()
/linux-6.1.9/drivers/gpu/drm/vkms/
Dvkms_formats.c50 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in ARGB8888_to_argb_u16()
72 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in XRGB8888_to_argb_u16()
89 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in ARGB16161616_to_argb_u16()
106 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in XRGB16161616_to_argb_u16()
122 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in RGB565_to_argb_u16()
155 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_ARGB8888()
182 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_XRGB8888()
199 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_ARGB16161616()
216 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_XRGB16161616()
233 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in argb_u16_to_RGB565()
/linux-6.1.9/drivers/gpu/drm/armada/
Darmada_plane.c123 st->src_hw |= drm_rect_width(&new_plane_state->src) >> 16; in armada_drm_plane_atomic_check()
127 st->dst_hw |= drm_rect_width(&new_plane_state->dst) & 0x0000ffff; in armada_drm_plane_atomic_check()
211 if (drm_rect_width(&old_state->src) != drm_rect_width(&new_state->src) || in armada_drm_primary_plane_atomic_update()
212 drm_rect_width(&old_state->dst) != drm_rect_width(&new_state->dst)) { in armada_drm_primary_plane_atomic_update()
214 if (drm_rect_width(&new_state->src) >> 16 != in armada_drm_primary_plane_atomic_update()
215 drm_rect_width(&new_state->dst)) in armada_drm_primary_plane_atomic_update()
Darmada_overlay.c164 if (drm_rect_width(&old_state->src) != drm_rect_width(&new_state->src) || in armada_drm_overlay_plane_atomic_update()
165 drm_rect_width(&old_state->dst) != drm_rect_width(&new_state->dst)) { in armada_drm_overlay_plane_atomic_update()
167 if (drm_rect_width(&new_state->src) >> 16 != in armada_drm_overlay_plane_atomic_update()
168 drm_rect_width(&new_state->dst)) in armada_drm_overlay_plane_atomic_update()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_rect.c99 u32 new_src_w = clip_scaled(drm_rect_width(src), in drm_rect_clip_scaled()
100 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
115 u32 new_src_w = clip_scaled(drm_rect_width(src), in drm_rect_clip_scaled()
116 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
173 int src_w = drm_rect_width(src); in drm_rect_calc_hscale()
174 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale()
Ddrm_plane_helper.c121 .src_w = drm_rect_width(src), in drm_plane_helper_check_update()
125 .crtc_w = drm_rect_width(dst), in drm_plane_helper_check_update()
Ddrm_format_helper.c50 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm()
69 dst_pitch = drm_rect_width(clip) * dst_pixsize; in __drm_fb_xfrm()
93 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm_toio()
190 size_t len_i = DIV_ROUND_UP(drm_rect_width(clip) * bpp_i, 8); in drm_fb_memcpy()
744 unsigned int linepixels = drm_rect_width(clip); in drm_fb_xrgb8888_to_mono()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_cursor.c72 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
118 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
203 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
231 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
265 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_update_arm()
364 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
375 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
393 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
448 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
457 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
[all …]
Dskl_scaler.c191 width = drm_rect_width(&crtc_state->pch_pfit.dst); in skl_update_scaler_crtc()
200 drm_rect_width(&crtc_state->pipe_src), in skl_update_scaler_crtc()
234 drm_rect_width(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane()
236 drm_rect_width(&plane_state->uapi.dst), in skl_update_scaler_plane()
407 int width = drm_rect_width(dst); in skl_pfit_enable()
424 drm_rect_width(&crtc_state->pipe_src) << 16, in skl_pfit_enable()
466 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_program_plane_scaler()
Dintel_atomic_plane.c149 src_w = drm_rect_width(src) >> 16; in intel_adjusted_rate()
151 dst_w = drm_rect_width(dst); in intel_adjusted_rate()
234 width = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_plane_relative_data_rate()
387 drm_rect_width(&new->uapi.src) != drm_rect_width(&cur->uapi.src) || in intel_wm_need_update()
389 drm_rect_width(&new->uapi.dst) != drm_rect_width(&cur->uapi.dst) || in intel_wm_need_update()
398 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_plane_is_scaled()
400 int dst_w = drm_rect_width(&plane_state->uapi.dst); in intel_plane_is_scaled()
Dintel_sprite.c81 src_w = drm_rect_width(src) >> 16; in intel_plane_check_src_coordinates()
433 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in vlv_sprite_update_noarm()
628 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in ivb_sprite_min_cdclk()
629 dst_w = drm_rect_width(&plane_state->uapi.dst); in ivb_sprite_min_cdclk()
847 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in ivb_sprite_update_noarm()
849 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in ivb_sprite_update_noarm()
1174 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in g4x_sprite_update_noarm()
1176 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in g4x_sprite_update_noarm()
1305 crtc_w = drm_rect_width(dst); in g4x_sprite_check_scaling()
1309 src_w = drm_rect_width(src) >> 16; in g4x_sprite_check_scaling()
Dintel_panel.c330 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in pch_panel_fitting()
458 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in i965_scale_aspect()
479 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in i9xx_scale_aspect()
536 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in gmch_panel_fitting()
Di9xx_plane.c238 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
291 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
428 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_noarm()
465 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_arm()
Dskl_universal_plane.c1109 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_update_noarm()
1199 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in icl_plane_update_noarm()
1415 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_plane_check_dst_coordinates()
1416 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in skl_plane_check_dst_coordinates()
1445 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_check_nv12_rotation()
1563 const int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_calc_main_surface_offset()
1613 const int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_check_main_surface()
1689 int w = drm_rect_width(&plane_state->uapi.src) >> 17; in skl_check_nv12_aux_surface()
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c156 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
203 dst_width = drm_rect_width(&pipe_cfg->dst_rect); in _dpu_plane_calc_clk()
291 drm_rect_width(&pipe_cfg->src_rect)); in _dpu_plane_set_qos_lut()
429 ot_params.width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
641 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
643 u32 dst_width = drm_rect_width(&pipe_cfg->dst_rect); in _dpu_plane_setup_scaler()
714 drm_rect_width(&pipe_cfg.dst_rect); in _dpu_plane_color_fill()
812 drm_rect_width(&src[i]) > width_threshold) in dpu_plane_validate_multirect_v2()
920 if (drm_rect_width(fb_rect) > MAX_IMG_WIDTH || in dpu_plane_validate_src()
925 if (drm_rect_width(src) < min_src_size || in dpu_plane_validate_src()
[all …]
Ddpu_hw_wb.c122 if (drm_rect_height(&data->roi) && drm_rect_width(&data->roi)) in dpu_hw_wb_setup_format()
123 outsize = (drm_rect_height(&data->roi) << 16) | drm_rect_width(&data->roi); in dpu_hw_wb_setup_format()
145 out_size = (drm_rect_height(&wb->roi) << 16) | drm_rect_width(&wb->roi); in dpu_hw_wb_roi()
/linux-6.1.9/drivers/gpu/drm/gud/
Dgud_pipe.c70 width = drm_rect_width(rect); in gud_xrgb8888_to_r124()
117 width = drm_rect_width(rect); in gud_xrgb8888_to_color()
167 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(rect)); in gud_prep_flush()
223 req->width = cpu_to_le32(drm_rect_width(rect)); in gud_prep_flush()
395 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(&damage)); in gud_flush_work()
/linux-6.1.9/drivers/gpu/drm/tests/
Ddrm_plane_helper_test.c41 drm_rect_width(&plane_state->src) != src_w || in check_src_eq()
66 drm_rect_width(&plane_state->dst) != crtc_w || in check_crtc_eq()
/linux-6.1.9/drivers/gpu/drm/imx/
Dipuv3-plane.c36 return ALIGN(drm_rect_width(&state->src) >> 16, 8); in ipu_src_rect_width()
408 if (drm_rect_width(&new_state->dst) < 13) in ipu_plane_atomic_check()
429 (drm_rect_width(&new_state->dst) != drm_rect_width(&old_state->dst) || in ipu_plane_atomic_check()
620 width = drm_rect_width(&new_state->src) >> 16; in ipu_plane_atomic_update()
/linux-6.1.9/drivers/gpu/drm/rockchip/
Drockchip_drm_vop2.c486 u32 width = drm_rect_width(src) >> 16; in vop2_afbc_transform_offset()
969 if (drm_rect_width(src) >> 16 < 4 || drm_rect_height(src) >> 16 < 4 || in vop2_plane_atomic_check()
970 drm_rect_width(dest) < 4 || drm_rect_width(dest) < 4) { in vop2_plane_atomic_check()
972 drm_rect_width(src) >> 16, drm_rect_height(src) >> 16, in vop2_plane_atomic_check()
973 drm_rect_width(dest), drm_rect_height(dest)); in vop2_plane_atomic_check()
978 if (drm_rect_width(src) >> 16 > vop2_data->max_input.width || in vop2_plane_atomic_check()
981 drm_rect_width(src) >> 16, in vop2_plane_atomic_check()
1142 actual_w = drm_rect_width(src) >> 16; in vop2_plane_atomic_update()
1144 dsp_w = drm_rect_width(dest); in vop2_plane_atomic_update()
1152 actual_w = dsp_w * actual_w / drm_rect_width(dest); in vop2_plane_atomic_update()
[all …]
/linux-6.1.9/drivers/gpu/drm/sun4i/
Dsun8i_ui_layer.c113 src_w = drm_rect_width(&state->src) >> 16; in sun8i_ui_layer_update_coord()
115 dst_w = drm_rect_width(&state->dst); in sun8i_ui_layer_update_coord()
Dsun8i_vi_layer.c120 src_w = drm_rect_width(&state->src) >> 16; in sun8i_vi_layer_update_coord()
122 dst_w = drm_rect_width(&state->dst); in sun8i_vi_layer_update_coord()
/linux-6.1.9/drivers/gpu/drm/imx/dcss/
Ddcss-plane.c303 src_w = drm_rect_width(&src) >> 16; in dcss_plane_atomic_update()
305 dst_w = drm_rect_width(&dst); in dcss_plane_atomic_update()
/linux-6.1.9/drivers/gpu/drm/rcar-du/
Drcar_du_vsp.c160 cfg.src.width = drm_rect_width(&state->state.src) >> 16; in rcar_du_vsp_plane_setup()
165 cfg.dst.width = drm_rect_width(&state->state.dst); in rcar_du_vsp_plane_setup()
/linux-6.1.9/drivers/gpu/drm/tegra/
Dplane.c241 src_w = drm_rect_width(&state->src) >> 16; in tegra_plane_calculate_memory_bandwidth()
243 dst_w = drm_rect_width(&state->dst); in tegra_plane_calculate_memory_bandwidth()

12