Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/gpu/drm/tinydrm/
Dst7586.c63 struct drm_clip_rect *clip) in st7586_xrgb8888_to_gray332() argument
65 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
73 tinydrm_xrgb8888_to_gray8(buf, vaddr, fb, clip); in st7586_xrgb8888_to_gray332()
76 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332()
77 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332()
89 struct drm_clip_rect *clip) in st7586_buf_copy() argument
103 st7586_xrgb8888_to_gray332(dst, src, fb, clip); in st7586_buf_copy()
119 struct drm_clip_rect clip; in st7586_fb_dirty() local
126 tinydrm_merge_clips(&clip, clips, num_clips, flags, fb->width, in st7586_fb_dirty()
130 clip.x1 = rounddown(clip.x1, 3); in st7586_fb_dirty()
[all …]
Dili9225.c84 struct drm_clip_rect clip; in ili9225_fb_dirty() local
94 full = tinydrm_merge_clips(&clip, clips, num_clips, flags, in ili9225_fb_dirty()
98 clip.x1, clip.x2, clip.y1, clip.y2); in ili9225_fb_dirty()
103 ret = mipi_dbi_buf_copy(mipi->tx_buf, fb, &clip, swap); in ili9225_fb_dirty()
112 x1 = clip.x1; in ili9225_fb_dirty()
113 x2 = clip.x2 - 1; in ili9225_fb_dirty()
114 y1 = clip.y1; in ili9225_fb_dirty()
115 y2 = clip.y2 - 1; in ili9225_fb_dirty()
120 x1 = clip.y1; in ili9225_fb_dirty()
121 x2 = clip.y2 - 1; in ili9225_fb_dirty()
[all …]
Dmipi-dbi.c168 struct drm_clip_rect *clip, bool swap) in mipi_dbi_buf_copy() argument
186 tinydrm_swab16(dst, src, fb, clip); in mipi_dbi_buf_copy()
188 tinydrm_memcpy(dst, src, fb, clip); in mipi_dbi_buf_copy()
191 tinydrm_xrgb8888_to_rgb565(dst, src, fb, clip, swap); in mipi_dbi_buf_copy()
217 struct drm_clip_rect clip; in mipi_dbi_fb_dirty() local
225 full = tinydrm_merge_clips(&clip, clips, num_clips, flags, in mipi_dbi_fb_dirty()
229 clip.x1, clip.x2, clip.y1, clip.y2); in mipi_dbi_fb_dirty()
234 ret = mipi_dbi_buf_copy(mipi->tx_buf, fb, &clip, swap); in mipi_dbi_fb_dirty()
242 (clip.x1 >> 8) & 0xFF, clip.x1 & 0xFF, in mipi_dbi_fb_dirty()
243 (clip.x2 >> 8) & 0xFF, (clip.x2 - 1) & 0xFF); in mipi_dbi_fb_dirty()
[all …]
Drepaper.c533 struct drm_clip_rect clip; in repaper_fb_dirty() local
538 clip.x1 = 0; in repaper_fb_dirty()
539 clip.x2 = fb->width; in repaper_fb_dirty()
540 clip.y1 = 0; in repaper_fb_dirty()
541 clip.y2 = fb->height; in repaper_fb_dirty()
562 tinydrm_xrgb8888_to_gray8(buf, cma_obj->vaddr, fb, &clip); in repaper_fb_dirty()
/Linux-v4.19/drivers/gpu/drm/tinydrm/core/
Dtinydrm-helpers.c119 struct drm_clip_rect *clip) in tinydrm_memcpy() argument
123 void *src = vaddr + (clip->y1 * pitch) + (clip->x1 * cpp); in tinydrm_memcpy()
124 size_t len = (clip->x2 - clip->x1) * cpp; in tinydrm_memcpy()
127 for (y = clip->y1; y < clip->y2; y++) { in tinydrm_memcpy()
143 struct drm_clip_rect *clip) in tinydrm_swab16() argument
145 size_t len = (clip->x2 - clip->x1) * sizeof(u16); in tinydrm_swab16()
157 for (y = clip->y1; y < clip->y2; y++) { in tinydrm_swab16()
159 src += clip->x1; in tinydrm_swab16()
162 for (x = clip->x1; x < clip->x2; x++) in tinydrm_swab16()
183 struct drm_clip_rect *clip, bool swap) in tinydrm_xrgb8888_to_rgb565() argument
[all …]
/Linux-v4.19/drivers/media/pci/bt8xx/
Dbtcx-risc.c190 unsigned int clip,skip; in btcx_calc_skips() local
195 for (clip = 0; clip < nclips; clip++) { in btcx_calc_skips()
198 if (clips[clip].c.left + clips[clip].c.width <= 0) in btcx_calc_skips()
200 if (clips[clip].c.left > (signed)width) in btcx_calc_skips()
204 if (line > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
206 if (line < clips[clip].c.top) { in btcx_calc_skips()
207 if (maxline > clips[clip].c.top-1) in btcx_calc_skips()
208 maxline = clips[clip].c.top-1; in btcx_calc_skips()
211 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
212 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips()
[all …]
/Linux-v4.19/drivers/gpu/drm/
Ddrm_rect.c53 static u32 clip_scaled(u32 src, u32 dst, u32 clip) in clip_scaled() argument
55 u64 tmp = mul_u32_u32(src, dst - clip); in clip_scaled()
81 const struct drm_rect *clip) in drm_rect_clip_scaled() argument
85 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
91 dst->x1 = clip->x1; in drm_rect_clip_scaled()
93 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
99 dst->y1 = clip->y1; in drm_rect_clip_scaled()
101 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
107 dst->x2 = clip->x2; in drm_rect_clip_scaled()
109 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
[all …]
Ddrm_fb_helper.c746 struct drm_clip_rect *clip) in drm_fb_helper_dirty_blit_real() argument
750 size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp; in drm_fb_helper_dirty_blit_real()
753 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_helper_dirty_blit_real()
756 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_helper_dirty_blit_real()
767 struct drm_clip_rect *clip = &helper->dirty_clip; in drm_fb_helper_dirty_work() local
772 clip_copy = *clip; in drm_fb_helper_dirty_work()
773 clip->x1 = clip->y1 = ~0; in drm_fb_helper_dirty_work()
774 clip->x2 = clip->y2 = 0; in drm_fb_helper_dirty_work()
1002 struct drm_clip_rect *clip = &helper->dirty_clip; in drm_fb_helper_dirty() local
1009 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_dirty()
[all …]
/Linux-v4.19/include/drm/tinydrm/
Dtinydrm-helpers.h45 struct drm_clip_rect *clip);
47 struct drm_clip_rect *clip);
50 struct drm_clip_rect *clip, bool swap);
52 struct drm_clip_rect *clip);
Dmipi-dbi.h83 struct drm_clip_rect *clip, bool swap);
/Linux-v4.19/Documentation/devicetree/bindings/input/rmi4/
Drmi_2d_sensor.txt23 - syna,clip-x-low: Sets a minimum value for X.
24 - syna,clip-y-low: Sets a minimum value for Y.
25 - syna,clip-x-high: Sets a maximum value for X.
26 - syna,clip-y-high: Sets a maximum value for Y.
/Linux-v4.19/include/drm/
Ddrm_rect.h176 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
178 const struct drm_rect *clip);
/Linux-v4.19/drivers/staging/media/davinci_vpfe/
Ddm365_ipipeif.c292 ipipeif_write(params.if_5_1.clip, in ipipeif_hw_setup()
364 ipipeif_write(params.if_5_1.clip, ipipeif_base_addr, in ipipeif_hw_setup()
409 ipipeif->config.if_5_1.clip = config->if_5_1.clip; in ipipeif_set_config()
445 config->if_5_1.clip = ipipeif->config.if_5_1.clip; in ipipeif_get_config()
746 .clip = 4095, in ipipeif_set_default_config()
Ddm365_ipipeif_user.h59 unsigned short clip; member
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_util.h62 uint16_t clip; member
221 uint16_t clip; member
/Linux-v4.19/net/atm/
DMakefile10 obj-$(CONFIG_ATM_CLIP) += clip.o
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c184 struct drm_clip_rect clip; in vmw_fb_dirty_flush() local
249 clip.x1 = dst_x1; in vmw_fb_dirty_flush()
250 clip.x2 = dst_x2; in vmw_fb_dirty_flush()
251 clip.y1 = dst_y1; in vmw_fb_dirty_flush()
252 clip.y2 = dst_y2; in vmw_fb_dirty_flush()
260 &clip, 1)); in vmw_fb_dirty_flush()
/Linux-v4.19/Documentation/media/uapi/v4l/
Ddev-overlay.rst98 4. The framebuffer has an alpha channel that can be used to clip or
195 clip lists are not supported the driver ignores this field. Its
201 contain the number of clipping rectangles in the list. When clip
203 after calling :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` are undefined. When clip lists are
228 Applications need not create a clip list or bit mask. When they pass
315 regions need to be refreshed. The driver should clip out more pixels
321 ``height = y2 - y1``, so one cannot pass X11 clip lists directly.
Dvidioc-g-fbuf.rst236 - The device supports clipping using a list of clip rectangles.
300 clip rectangles or a bitmap. These methods are negotiated with the
305 - Use the alpha channel of the framebuffer to clip or blend
321 framebuffer to clip or blend framebuffer pixels with video images,
/Linux-v4.19/drivers/gpu/drm/nouveau/
Dnouveau_fbcon.h38 struct nvif_object clip; member
Dnv04_fbcon.c178 &nfbdev->clip); in nv04_fbcon_accel_init()
241 OUT_RING(chan, nfbdev->clip.handle); in nv04_fbcon_accel_init()
/Linux-v4.19/drivers/video/fbdev/
Dcg6.c192 u32 clip; member
333 sbus_writel(0, &fbc->clip); in cg6_fillrect()
371 sbus_writel(0, &fbc->clip); in cg6_copyarea()
417 sbus_writel(0, &fbc->clip); in cg6_imageblit()
712 sbus_writel(0, &fbc->clip); in cg6_chip_init()
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_draw.c93 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
356 drawable->clip.type = SPICE_CLIP_TYPE_RECTS; in qxl_draw_dirty_fb()
357 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb()
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c483 struct rect clip = { 0 }; in calculate_viewport() local
504 clip.x = stream->src.x > plane_state->clip_rect.x ? in calculate_viewport()
507 clip.width = stream->src.x + stream->src.width < in calculate_viewport()
509 stream->src.x + stream->src.width - clip.x : in calculate_viewport()
510 plane_state->clip_rect.x + plane_state->clip_rect.width - clip.x ; in calculate_viewport()
512 clip.y = stream->src.y > plane_state->clip_rect.y ? in calculate_viewport()
515 clip.height = stream->src.y + stream->src.height < in calculate_viewport()
517 stream->src.y + stream->src.height - clip.y : in calculate_viewport()
518 plane_state->clip_rect.y + plane_state->clip_rect.height - clip.y ; in calculate_viewport()
523 data->viewport.x = surf_src.x + (clip.x - plane_state->dst_rect.x) * in calculate_viewport()
[all …]
/Linux-v4.19/drivers/gpu/drm/sti/
DNOTES13 - The TV OUT pre-formats (convert, clip, round) the compositor output data

12