Home
last modified time | relevance | path

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

123

/linux-6.12.1/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.12.1/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.c166 if (drm_rect_width(&old_state->src) != drm_rect_width(&new_state->src) || in armada_drm_overlay_plane_atomic_update()
167 drm_rect_width(&old_state->dst) != drm_rect_width(&new_state->dst)) { in armada_drm_overlay_plane_atomic_update()
169 if (drm_rect_width(&new_state->src) >> 16 != in armada_drm_overlay_plane_atomic_update()
170 drm_rect_width(&new_state->dst)) in armada_drm_overlay_plane_atomic_update()
/linux-6.12.1/drivers/gpu/drm/
Ddrm_rect.c98 u32 new_src_w = clip_scaled(drm_rect_width(src), in drm_rect_clip_scaled()
99 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
114 u32 new_src_w = clip_scaled(drm_rect_width(src), in drm_rect_clip_scaled()
115 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
172 int src_w = drm_rect_width(src); in drm_rect_calc_hscale()
173 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale()
Ddrm_panic.c314 for (x = 0; x < drm_rect_width(clip); x++) in drm_panic_blit_pixel()
348 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit()
352 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit()
356 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit()
410 for (x = 0; x < drm_rect_width(clip); x++) in drm_panic_fill_pixel()
436 drm_rect_width(clip), color); in drm_panic_fill()
440 drm_rect_width(clip), color); in drm_panic_fill()
444 drm_rect_width(clip), color); in drm_panic_fill()
484 size_t line_len = min(msg[i].len, drm_rect_width(clip) / font->width); in draw_txt_rectangle()
491 rec.x1 += (drm_rect_width(clip) - (line_len * font->width)) / 2; in draw_txt_rectangle()
[all …]
Ddrm_plane_helper.c112 .src_w = drm_rect_width(src), in drm_plane_helper_check_update()
116 .crtc_w = drm_rect_width(dst), in drm_plane_helper_check_update()
Ddrm_format_helper.c142 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm()
161 dst_pitch = drm_rect_width(clip) * dst_pixsize; in __drm_fb_xfrm()
184 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm_toio()
282 size_t len_i = DIV_ROUND_UP(drm_rect_width(clip) * bpp_i, 8); in drm_fb_memcpy()
1121 unsigned int linepixels = drm_rect_width(clip); in drm_fb_xrgb8888_to_mono()
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_cursor.c86 int width = drm_rect_width(&plane_state->uapi.dst); in intel_cursor_size_ok()
132 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_cursor_check_surface()
224 int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_size_ok()
252 drm_rect_width(&plane_state->uapi.dst), in i845_check_cursor()
286 unsigned int width = drm_rect_width(&plane_state->uapi.dst); in i845_cursor_update_arm()
407 switch (drm_rect_width(&plane_state->uapi.dst)) { in i9xx_cursor_ctl()
418 MISSING_CASE(drm_rect_width(&plane_state->uapi.dst)); in i9xx_cursor_ctl()
436 int width = drm_rect_width(&plane_state->uapi.dst); in i9xx_cursor_size_ok()
491 drm_rect_width(&plane_state->uapi.dst), in i9xx_check_cursor()
500 drm_rect_width(&plane_state->uapi.dst) * fb->format->cpp[0]) { in i9xx_check_cursor()
[all …]
Dskl_scaler.c114 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in skl_update_scaler()
244 width = drm_rect_width(&crtc_state->pch_pfit.dst); in skl_update_scaler_crtc()
253 drm_rect_width(&crtc_state->pipe_src), in skl_update_scaler_crtc()
287 drm_rect_width(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane()
289 drm_rect_width(&plane_state->uapi.dst), in skl_update_scaler_plane()
717 int width = drm_rect_width(dst); in skl_pfit_enable()
734 drm_rect_width(&crtc_state->pipe_src) << 16, in skl_pfit_enable()
776 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_program_plane_scaler()
Dintel_atomic_plane.c163 src_w = drm_rect_width(src) >> 16; in intel_adjusted_rate()
165 dst_w = drm_rect_width(dst); in intel_adjusted_rate()
249 width = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_plane_relative_data_rate()
407 drm_rect_width(&new->uapi.src) != drm_rect_width(&cur->uapi.src) || in intel_wm_need_update()
409 drm_rect_width(&new->uapi.dst) != drm_rect_width(&cur->uapi.dst) || in intel_wm_need_update()
418 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_plane_is_scaled()
420 int dst_w = drm_rect_width(&plane_state->uapi.dst); in intel_plane_is_scaled()
1016 src_w = drm_rect_width(src) >> 16; in intel_plane_check_src_coordinates()
Dintel_sprite.c390 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in vlv_sprite_update_noarm()
587 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in ivb_sprite_min_cdclk()
588 dst_w = drm_rect_width(&plane_state->uapi.dst); in ivb_sprite_min_cdclk()
807 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in ivb_sprite_update_noarm()
809 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in ivb_sprite_update_noarm()
1144 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in g4x_sprite_update_noarm()
1146 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in g4x_sprite_update_noarm()
1278 crtc_w = drm_rect_width(dst); in g4x_sprite_check_scaling()
1282 src_w = drm_rect_width(src) >> 16; in g4x_sprite_check_scaling()
Dintel_panel.c392 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in pch_panel_fitting()
520 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in i965_scale_aspect()
541 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in i9xx_scale_aspect()
599 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in gmch_panel_fitting()
Dskl_universal_plane.c1281 u32 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_update_noarm()
1403 val |= (drm_rect_width(&plane_state->uapi.src) >> 16) - 1; in icl_plane_update_sel_fetch_noarm()
1422 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in icl_plane_update_noarm()
1668 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_plane_check_dst_coordinates()
1669 int pipe_src_w = drm_rect_width(&crtc_state->pipe_src); in skl_plane_check_dst_coordinates()
1698 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_plane_check_nv12_rotation()
1816 int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_calc_main_surface_offset()
1866 int w = drm_rect_width(&plane_state->uapi.src) >> 16; in skl_check_main_surface()
1942 int w = drm_rect_width(&plane_state->uapi.src) >> 17; in skl_check_nv12_aux_surface()
Di9xx_plane.c242 src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
295 int src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in i9xx_check_plane_surface()
432 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_noarm()
474 int crtc_w = drm_rect_width(&plane_state->uapi.dst); in i9xx_plane_update_arm()
/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c129 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
172 dst_width = drm_rect_width(&pipe_cfg->dst_rect); in _dpu_plane_calc_clk()
271 drm_rect_width(&pipe_cfg->src_rect)); in _dpu_plane_set_qos_lut()
373 ot_params.width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
538 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
540 u32 dst_width = drm_rect_width(&pipe_cfg->dst_rect); in _dpu_plane_setup_scaler()
597 drm_rect_width(&pipe_cfg.dst_rect); in _dpu_plane_color_fill_pipe()
722 if (drm_rect_width(&src) > sblk->rotation_cfg->rot_maxheight) { in dpu_plane_check_inline_rotation()
757 if (drm_rect_width(&pipe_cfg->src_rect) < min_src_size || in dpu_plane_atomic_check_pipe()
768 drm_rect_width(&pipe_cfg->src_rect) & 0x1 || in dpu_plane_atomic_check_pipe()
[all …]
Ddpu_hw_wb.c110 if (drm_rect_height(&data->roi) && drm_rect_width(&data->roi)) in dpu_hw_wb_setup_format()
111 outsize = (drm_rect_height(&data->roi) << 16) | drm_rect_width(&data->roi); in dpu_hw_wb_setup_format()
133 out_size = (drm_rect_height(&wb->roi) << 16) | drm_rect_width(&wb->roi); in dpu_hw_wb_roi()
/linux-6.12.1/drivers/gpu/drm/gud/
Dgud_pipe.c69 width = drm_rect_width(rect); in gud_xrgb8888_to_r124()
116 width = drm_rect_width(rect); in gud_xrgb8888_to_color()
164 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(rect)); in gud_prep_flush()
210 req->width = cpu_to_le32(drm_rect_width(rect)); in gud_prep_flush()
335 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(damage)); in gud_flush_damage()
/linux-6.12.1/drivers/gpu/drm/vkms/
Dvkms_formats.c132 int limit = min_t(size_t, drm_rect_width(&frame_info->dst), stage_buffer->n_pixels); in vkms_compose_row()
224 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), src_buffer->n_pixels); in vkms_writeback_row()
Dvkms_composer.c47 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in pre_mul_alpha_blend()
76 if (pos >= 0 && pos < drm_rect_width(&frame_info->rotated)) in check_limit()
/linux-6.12.1/drivers/gpu/drm/imx/ipuv3/
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.12.1/drivers/gpu/drm/renesas/rz-du/
Drzg2l_du_vsp.c135 cfg.src.width = drm_rect_width(&state->state.src) >> 16; in rzg2l_du_vsp_plane_setup()
140 cfg.dst.width = drm_rect_width(&state->state.dst); in rzg2l_du_vsp_plane_setup()
/linux-6.12.1/drivers/gpu/drm/sun4i/
Dsun8i_ui_layer.c64 src_w = drm_rect_width(&state->src) >> 16; in sun8i_ui_layer_update_coord()
66 dst_w = drm_rect_width(&state->dst); in sun8i_ui_layer_update_coord()
/linux-6.12.1/drivers/gpu/drm/rockchip/
Drockchip_drm_vop2.c585 u32 width = drm_rect_width(src) >> 16; in vop2_afbc_transform_offset()
1095 if (drm_rect_width(src) >> 16 < 4 || drm_rect_height(src) >> 16 < 4 || in vop2_plane_atomic_check()
1096 drm_rect_width(dest) < 4 || drm_rect_width(dest) < 4) { in vop2_plane_atomic_check()
1098 drm_rect_width(src) >> 16, drm_rect_height(src) >> 16, in vop2_plane_atomic_check()
1099 drm_rect_width(dest), drm_rect_height(dest)); in vop2_plane_atomic_check()
1104 if (drm_rect_width(src) >> 16 > vop2_data->max_input.width || in vop2_plane_atomic_check()
1107 drm_rect_width(src) >> 16, in vop2_plane_atomic_check()
1269 actual_w = drm_rect_width(src) >> 16; in vop2_plane_atomic_update()
1271 dsp_w = drm_rect_width(dest); in vop2_plane_atomic_update()
1279 actual_w = dsp_w * actual_w / drm_rect_width(dest); in vop2_plane_atomic_update()
[all …]
/linux-6.12.1/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.12.1/drivers/gpu/drm/renesas/rcar-du/
Drcar_du_vsp.c237 cfg.src.width = drm_rect_width(&state->state.src) >> 16; in rcar_du_vsp_plane_setup()
242 cfg.dst.width = drm_rect_width(&state->state.dst); in rcar_du_vsp_plane_setup()

123