Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/tests/
A Ddrm_damage_helper_test.c123 struct drm_rect clip; in drm_test_damage_iter_no_damage() local
141 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src() local
162 struct drm_rect clip; in drm_test_damage_iter_no_damage_src_moved() local
181 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src_moved() local
201 struct drm_rect clip; in drm_test_damage_iter_no_damage_not_visible() local
219 struct drm_rect clip; in drm_test_damage_iter_no_damage_no_crtc() local
237 struct drm_rect clip; in drm_test_damage_iter_no_damage_no_fb() local
257 struct drm_rect clip; in drm_test_damage_iter_simple_damage() local
280 struct drm_rect clip; in drm_test_damage_iter_single_damage() local
302 struct drm_rect clip; in drm_test_damage_iter_single_damage_intersect_src() local
[all …]
A Ddrm_format_helper_test.c101 struct drm_rect clip; member
623 &params->clip, 0); in drm_test_fb_xrgb8888_to_gray8()
656 &params->clip, 0); in drm_test_fb_xrgb8888_to_rgb332()
689 &params->clip, 0); in drm_test_fb_xrgb8888_to_rgb565()
743 &params->clip, 0); in drm_test_fb_xrgb8888_to_xrgb1555()
790 &params->clip, 0); in drm_test_fb_xrgb8888_to_argb1555()
837 &params->clip, 0); in drm_test_fb_xrgb8888_to_rgba5551()
884 &params->clip, 0); in drm_test_fb_xrgb8888_to_rgb888()
1244 struct drm_rect clip; member
1474 struct drm_rect clip; member
[all …]
A 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()
44 drm_rect_init(&clip, 1, 1, 1, 1); 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()
73 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
87 drm_rect_init(&clip, 0, 0, 2, 2); in drm_test_rect_clip_scaled_not_clipped()
101 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_clipped() local
107 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_clipped()
121 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_clipped()
[all …]
/linux/drivers/gpu/drm/
A Ddrm_format_helper.c116 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
129 const struct drm_rect *clip) in drm_fb_clip_offset() argument
143 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm()
185 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm_toio()
267 const struct drm_rect *clip) in drm_fb_memcpy() argument
345 const struct drm_rect *clip, bool cached, in drm_fb_swab() argument
774 const struct drm_rect *clip, in drm_fb_xrgb8888_to_abgr8888() argument
805 const struct drm_rect *clip, in drm_fb_xrgb8888_to_xbgr8888() argument
858 const struct drm_rect *clip, in drm_fb_xrgb8888_to_xrgb2101010() argument
913 const struct drm_rect *clip, in drm_fb_xrgb8888_to_argb2101010() argument
[all …]
A 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()
157 offset += clip->x1 / 4; in drm_fbdev_ttm_damage_blit_real()
161 offset += clip->x1 / 2; in drm_fbdev_ttm_damage_blit_real()
165 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_ttm_damage_blit_real()
173 for (y = clip->y1; y < clip->y2; y++) { in drm_fbdev_ttm_damage_blit_real()
181 struct drm_clip_rect *clip) in drm_fbdev_ttm_damage_blit() argument
216 struct drm_clip_rect *clip) in drm_fbdev_ttm_helper_fb_dirty() argument
[all …]
A Ddrm_panic.c316 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, fg_color); in drm_panic_blit_pixel()
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()
404 struct drm_rect *clip, in drm_panic_fill_pixel() argument
411 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, color); in drm_panic_fill_pixel()
431 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_fill()
436 drm_rect_width(clip), color); in drm_panic_fill()
474 struct drm_rect *clip, in draw_txt_rectangle() argument
[all …]
A 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()
A 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()
A 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()
A 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()
A 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()
A Ddrm_fb_helper.c371 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()
611 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_add_damage_clip()
612 clip->y1 = min_t(u32, clip->y1, y); in drm_fb_helper_add_damage_clip()
613 clip->x2 = max_t(u32, clip->x2, x + width); in drm_fb_helper_add_damage_clip()
[all …]
/linux/include/drm/
A Ddrm_format_helper.h71 const struct drm_rect *clip);
75 const struct drm_rect *clip);
78 const struct drm_rect *clip, bool cached,
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);
101 const struct drm_rect *clip, struct drm_format_conv_state *state);
104 const struct drm_rect *clip,
108 const struct drm_rect *clip,
[all …]
A Ddrm_rect.h256 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
258 const struct drm_rect *clip);
/linux/drivers/gpu/drm/tiny/
A 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/drivers/gpu/drm/msm/
A 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/drivers/media/platform/mediatek/mdp3/
A 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
A Dmdp_sm_mt8183.h46 u32 clip; member
67 u32 clip; member
81 u32 clip; member
99 u32 clip; member
/linux/drivers/gpu/drm/omapdrm/
A 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/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/
A 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()
/linux/drivers/gpu/drm/vmwgfx/
A 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()
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()
625 rect->bottom = clip->y2; in vmw_sou_surface_clip_rect()
1242 dirty.clip = vmw_sou_bo_clip; in vmw_kms_sou_do_bo_dirty()
[all …]
/linux/drivers/gpu/drm/udl/
A 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/drivers/gpu/drm/i915/display/
A 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/drivers/gpu/drm/qxl/
A 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()
/linux/Documentation/devicetree/bindings/input/
A Dsyna,rmi4.yaml104 syna,clip-x-low:
109 syna,clip-y-low:
114 syna,clip-x-high:
119 syna,clip-y-high:

Completed in 57 milliseconds

123