Home
last modified time | relevance | path

Searched refs:clip (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.12.1/drivers/gpu/drm/tests/
Ddrm_damage_helper_test.c123 struct drm_rect clip; in drm_test_damage_iter_no_damage() local
130 drm_atomic_for_each_plane_damage(&iter, &clip) in drm_test_damage_iter_no_damage()
134 check_damage_clip(test, &clip, 0, 0, 2048, 2048); in drm_test_damage_iter_no_damage()
141 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src() local
150 drm_atomic_for_each_plane_damage(&iter, &clip) in drm_test_damage_iter_no_damage_fractional_src()
155 check_damage_clip(test, &clip, 3, 3, 1028, 772); in drm_test_damage_iter_no_damage_fractional_src()
162 struct drm_rect clip; in drm_test_damage_iter_no_damage_src_moved() local
170 drm_atomic_for_each_plane_damage(&iter, &clip) in drm_test_damage_iter_no_damage_src_moved()
174 check_damage_clip(test, &clip, 10, 10, 1034, 778); in drm_test_damage_iter_no_damage_src_moved()
181 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src_moved() local
[all …]
Ddrm_format_helper_test.c101 struct drm_rect clip; member
123 .clip = DRM_RECT_INIT(0, 0, 1, 1),
186 .clip = DRM_RECT_INIT(1, 1, 1, 1),
256 .clip = DRM_RECT_INIT(1, 1, 2, 4),
401 .clip = DRM_RECT_INIT(0, 0, 3, 3),
541 const struct drm_rect *clip, int plane) in conversion_buf_size() argument
549 dst_pitch = drm_format_info_min_pitch(dst_fi, plane, drm_rect_width(clip)); in conversion_buf_size()
551 return dst_pitch * drm_rect_height(clip); in conversion_buf_size()
623 &params->clip, 0); in drm_test_fb_xrgb8888_to_gray8()
637 drm_fb_xrgb8888_to_gray8(&dst, dst_pitch, &src, &fb, &params->clip, &fmtcnv_state); in drm_test_fb_xrgb8888_to_gray8()
[all …]
Ddrm_rect_test.c27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
36 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
37 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
44 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
45 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
59 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
61 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
73 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
75 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
[all …]
/linux-6.12.1/drivers/gpu/drm/
Ddrm_format_helper.c114 static unsigned int clip_offset(const struct drm_rect *clip, unsigned int pitch, unsigned int cpp) in clip_offset() argument
116 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
129 const struct drm_rect *clip) in drm_fb_clip_offset() argument
131 return clip_offset(clip, pitch, format->cpp[0]); in drm_fb_clip_offset()
138 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm() argument
142 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm()
143 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm()
161 dst_pitch = drm_rect_width(clip) * dst_pixsize; in __drm_fb_xfrm()
162 vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]); in __drm_fb_xfrm()
180 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm_toio() argument
[all …]
Ddrm_fbdev_ttm.c142 struct drm_clip_rect *clip, in drm_fbdev_ttm_damage_blit_real() argument
146 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real()
147 size_t len = clip->x2 - clip->x1; in drm_fbdev_ttm_damage_blit_real()
153 offset += clip->x1 / 8; in drm_fbdev_ttm_damage_blit_real()
154 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_ttm_damage_blit_real()
157 offset += clip->x1 / 4; in drm_fbdev_ttm_damage_blit_real()
158 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_ttm_damage_blit_real()
161 offset += clip->x1 / 2; in drm_fbdev_ttm_damage_blit_real()
162 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fbdev_ttm_damage_blit_real()
165 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_ttm_damage_blit_real()
[all …]
Ddrm_panic.c307 static void drm_panic_blit_pixel(struct drm_scanout_buffer *sb, struct drm_rect *clip, in drm_panic_blit_pixel() argument
313 for (y = 0; y < drm_rect_height(clip); y++) in drm_panic_blit_pixel()
314 for (x = 0; x < drm_rect_width(clip); x++) in drm_panic_blit_pixel()
316 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, fg_color); in drm_panic_blit_pixel()
332 static void drm_panic_blit(struct drm_scanout_buffer *sb, struct drm_rect *clip, in drm_panic_blit() argument
340 return drm_panic_blit_pixel(sb, clip, sbuf8, spitch, scale, fg_color); in drm_panic_blit()
343 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_blit()
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()
[all …]
Ddrm_rect.c55 static u32 clip_scaled(int src, int dst, int *clip) in clip_scaled() argument
63 *clip = min(*clip, dst); in clip_scaled()
65 tmp = mul_u32_u32(src, dst - *clip); in clip_scaled()
92 const struct drm_rect *clip) in drm_rect_clip_scaled() argument
96 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
104 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
112 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
120 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
Ddrm_fb_dma_helper.c129 struct drm_rect clip; in drm_fb_dma_sync_non_coherent() local
141 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_fb_dma_sync_non_coherent()
143 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
145 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
Ddrm_damage_helper.c315 struct drm_rect clip; in drm_atomic_helper_damage_merged() local
324 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged()
325 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
326 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
327 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
328 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
Ddrm_fbdev_shmem.c187 struct drm_clip_rect *clip) in drm_fbdev_shmem_helper_fb_dirty() argument
193 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in drm_fbdev_shmem_helper_fb_dirty()
197 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in drm_fbdev_shmem_helper_fb_dirty()
Ddrm_fbdev_dma.c216 struct drm_clip_rect *clip) in drm_fbdev_dma_helper_fb_dirty() argument
222 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in drm_fbdev_dma_helper_fb_dirty()
226 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in drm_fbdev_dma_helper_fb_dirty()
Ddrm_fb_helper.c362 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_fb_dirty() local
371 clip_copy = *clip; in drm_fb_helper_fb_dirty()
372 clip->x1 = clip->y1 = ~0; in drm_fb_helper_fb_dirty()
373 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty()
388 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_fb_dirty()
389 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_fb_dirty()
390 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_fb_dirty()
391 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty()
607 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_add_damage_clip() local
611 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_add_damage_clip()
[all …]
/linux-6.12.1/include/drm/
Ddrm_format_helper.h71 const struct drm_rect *clip);
75 const struct drm_rect *clip);
78 const struct drm_rect *clip, bool cached,
82 const struct drm_rect *clip, struct drm_format_conv_state *state);
85 const struct drm_rect *clip, struct drm_format_conv_state *state,
89 const struct drm_rect *clip, struct drm_format_conv_state *state);
92 const struct drm_rect *clip, struct drm_format_conv_state *state);
95 const struct drm_rect *clip, struct drm_format_conv_state *state);
98 const struct drm_rect *clip, struct drm_format_conv_state *state);
101 const struct drm_rect *clip, struct drm_format_conv_state *state);
[all …]
Ddrm_rect.h256 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
258 const struct drm_rect *clip);
/linux-6.12.1/drivers/gpu/drm/tiny/
Dst7586.c67 struct drm_rect *clip, in st7586_xrgb8888_to_gray332() argument
70 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
81 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, clip, fmtcnv_state); in st7586_xrgb8888_to_gray332()
84 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332()
85 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332()
97 struct drm_rect *clip, struct drm_format_conv_state *fmtcnv_state) in st7586_buf_copy() argument
105 st7586_xrgb8888_to_gray332(dst, src->vaddr, fb, clip, fmtcnv_state); in st7586_buf_copy()
/linux-6.12.1/drivers/gpu/drm/msm/
Dmsm_fbdev.c143 struct drm_clip_rect *clip) in msm_fbdev_fb_dirty() argument
149 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in msm_fbdev_fb_dirty()
153 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in msm_fbdev_fb_dirty()
/linux-6.12.1/drivers/media/platform/mediatek/mdp3/
Dmdp_sm_mt8195.h46 u32 clip; member
107 u32 clip; member
120 u32 clip; member
153 u32 clip; member
204 u32 clip; member
230 u32 clip; member
Dmdp_sm_mt8183.h46 u32 clip; member
67 u32 clip; member
81 u32 clip; member
99 u32 clip; member
/linux-6.12.1/drivers/gpu/drm/omapdrm/
Domap_fbdev.c257 static int omap_fbdev_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in omap_fbdev_dirty() argument
259 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in omap_fbdev_dirty()
263 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in omap_fbdev_dirty()
/linux-6.12.1/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/
Dia_css_bnr.host.c40 to->clip = uDIGIT_FITTING(16384U, 16, SH_CSS_BAYER_BITS); in ia_css_bnr_encode()
65 "bnr_clip", bnr->clip); in ia_css_bnr_dump()
Dia_css_bnr_param.h28 s32 clip; member
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_scrn.c496 void *cmd, struct drm_rect *clip, in vmw_sou_bo_populate_clip() argument
505 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip()
506 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip()
507 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip()
508 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip()
551 bo_update.base.clip = vmw_sou_bo_populate_clip; in vmw_sou_plane_update_bo()
613 void *cmd, struct drm_rect *clip, in vmw_sou_surface_clip_rect() argument
622 rect->left = clip->x1; in vmw_sou_surface_clip_rect()
623 rect->top = clip->y1; in vmw_sou_surface_clip_rect()
624 rect->right = clip->x2; in vmw_sou_surface_clip_rect()
[all …]
/linux-6.12.1/drivers/gpu/drm/udl/
Dudl_modeset.c205 const struct drm_rect *clip) in udl_handle_damage() argument
224 for (i = clip->y1; i < clip->y2; i++) { in udl_handle_damage()
226 const int byte_offset = line_offset + (clip->x1 << log_bpp); in udl_handle_damage()
227 const int dev_byte_offset = (fb->width * i + clip->x1) << log_bpp; in udl_handle_damage()
228 const int byte_width = drm_rect_width(clip) << log_bpp; in udl_handle_damage()
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dintel_fbdev.c285 static int intelfb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in intelfb_dirty() argument
287 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in intelfb_dirty()
291 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in intelfb_dirty()
/linux-6.12.1/drivers/gpu/drm/qxl/
Dqxl_draw.c100 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
225 drawable->clip.type = SPICE_CLIP_TYPE_RECTS; in qxl_draw_dirty_fb()
226 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb()

123