Home
last modified time | relevance | path

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

123

/linux/drivers/gpu/drm/
A Ddrm_format_helper.c23 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
40 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy()
41 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy()
69 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy_dstclip()
70 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy_dstclip()
114 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_swab()
124 for (x = clip->x1; x < clip->x2; x++) { in drm_fb_swab()
224 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565()
227 unsigned y, lines = clip->y2 - clip->y1; in drm_fb_xrgb8888_to_rgb565()
269 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565_dstclip()
[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()
93 const struct drm_rect *clip) in drm_rect_clip_scaled() argument
97 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
105 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
113 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
121 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
A Ddrm_fb_cma_helper.c123 struct drm_rect clip; in drm_fb_cma_sync_non_coherent() local
135 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_fb_cma_sync_non_coherent()
137 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_cma_sync_non_coherent()
139 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_cma_sync_non_coherent()
A Ddrm_damage_helper.c310 struct drm_rect clip; in drm_atomic_helper_damage_merged() local
319 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged()
320 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
321 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
322 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
323 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
A Ddrm_fb_helper.c382 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_helper_damage_blit_real()
387 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_helper_damage_blit_real()
441 clip->x1 = clip->y1 = ~0; in drm_fb_helper_damage_work()
442 clip->x2 = clip->y2 = 0; in drm_fb_helper_damage_work()
469 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_damage_work()
470 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_damage_work()
471 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_damage_work()
674 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_damage()
675 clip->y1 = min_t(u32, clip->y1, y); in drm_fb_helper_damage()
676 clip->x2 = max_t(u32, clip->x2, x + width); in drm_fb_helper_damage()
[all …]
/linux/drivers/gpu/drm/selftests/
A Dtest-drm_damage_helper.c121 struct drm_rect clip; in igt_damage_iter_no_damage() local
142 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src() local
165 struct drm_rect clip; in igt_damage_iter_no_damage_src_moved() local
187 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src_moved() local
210 struct drm_rect clip; in igt_damage_iter_no_damage_not_visible() local
233 struct drm_rect clip; in igt_damage_iter_no_damage_no_crtc() local
255 struct drm_rect clip; in igt_damage_iter_no_damage_no_fb() local
281 struct drm_rect clip; in igt_damage_iter_simple_damage() local
307 struct drm_rect clip; in igt_damage_iter_single_damage() local
332 struct drm_rect clip; in igt_damage_iter_single_damage_intersect_src() local
[all …]
A Dtest-drm_rect.c16 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_div_by_zero() local
25 drm_rect_init(&clip, 1, 1, 1, 1); in igt_drm_rect_clip_scaled_div_by_zero()
32 drm_rect_init(&clip, 1, 1, 1, 1); in igt_drm_rect_clip_scaled_div_by_zero()
42 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_not_clipped() local
48 drm_rect_init(&clip, 0, 0, 1, 1); in igt_drm_rect_clip_scaled_not_clipped()
64 drm_rect_init(&clip, 0, 0, 1, 1); in igt_drm_rect_clip_scaled_not_clipped()
80 drm_rect_init(&clip, 0, 0, 2, 2); in igt_drm_rect_clip_scaled_not_clipped()
98 struct drm_rect src, dst, clip; in igt_drm_rect_clip_scaled_clipped() local
104 drm_rect_init(&clip, 0, 0, 1, 1); in igt_drm_rect_clip_scaled_clipped()
120 drm_rect_init(&clip, 1, 1, 1, 1); in igt_drm_rect_clip_scaled_clipped()
[all …]
/linux/drivers/media/pci/bt8xx/
A Dbtcx-risc.c177 unsigned int clip,skip; in btcx_calc_skips() local
182 for (clip = 0; clip < nclips; clip++) { in btcx_calc_skips()
185 if (clips[clip].c.left + clips[clip].c.width <= 0) in btcx_calc_skips()
191 if (line > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
193 if (line < clips[clip].c.top) { in btcx_calc_skips()
194 if (maxline > clips[clip].c.top-1) in btcx_calc_skips()
195 maxline = clips[clip].c.top-1; in btcx_calc_skips()
198 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
199 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips()
207 skips[skip].end = clips[clip].c.left + clips[clip].c.width; in btcx_calc_skips()
[all …]
/linux/include/drm/
A Ddrm_format_helper.h13 struct drm_rect *clip);
16 struct drm_rect *clip);
18 struct drm_rect *clip, bool cached);
20 struct drm_rect *clip);
23 struct drm_rect *clip, bool swab);
26 struct drm_rect *clip, bool swab);
28 struct drm_rect *clip);
31 struct drm_rect *clip);
33 struct drm_rect *clip);
A Ddrm_rect.h225 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
227 const struct drm_rect *clip);
/linux/drivers/gpu/drm/udl/
A Dudl_modeset.c259 clip->x1 = x1; in udl_aligned_damage_clip()
260 clip->y1 = y; in udl_aligned_damage_clip()
261 clip->x2 = x2; in udl_aligned_damage_clip()
262 clip->y2 = y + height; in udl_aligned_damage_clip()
275 struct drm_rect clip; in udl_handle_damage() local
283 ret = udl_aligned_damage_clip(&clip, x, y, width, height); in udl_handle_damage()
286 else if ((clip.x2 > fb->width) || (clip.y2 > fb->height)) in udl_handle_damage()
300 for (i = clip.y1; i < clip.y2; i++) { in udl_handle_damage()
302 const int byte_offset = line_offset + (clip.x1 << log_bpp); in udl_handle_damage()
303 const int dev_byte_offset = (fb->width * i + clip.x1) << log_bpp; in udl_handle_damage()
[all …]
/linux/drivers/gpu/drm/tiny/
A Dst7586.c66 struct drm_rect *clip) in st7586_xrgb8888_to_gray332() argument
68 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
76 drm_fb_xrgb8888_to_gray8(buf, vaddr, fb, clip); in st7586_xrgb8888_to_gray332()
79 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332()
80 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332()
92 struct drm_rect *clip) in st7586_buf_copy() argument
102 st7586_xrgb8888_to_gray332(dst, src, fb, clip); in st7586_buf_copy()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_stdu.c1225 box->x = clip->x1; in vmw_stdu_bo_populate_clip()
1226 box->y = clip->y1; in vmw_stdu_bo_populate_clip()
1228 box->w = drm_rect_width(clip); in vmw_stdu_bo_populate_clip()
1229 box->h = drm_rect_height(clip); in vmw_stdu_bo_populate_clip()
1435 struct drm_rect clip; in vmw_stdu_surface_update_proxy() local
1454 box->x = clip.x1; in vmw_stdu_surface_update_proxy()
1455 box->y = clip.y1; in vmw_stdu_surface_update_proxy()
1498 box->x = clip->x1; in vmw_stdu_surface_populate_clip()
1499 box->y = clip->y1; in vmw_stdu_surface_populate_clip()
1501 box->w = drm_rect_width(clip); in vmw_stdu_surface_populate_clip()
[all …]
A Dvmwgfx_scrn.c507 void *cmd, struct drm_rect *clip, in vmw_sou_bo_populate_clip() argument
516 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip()
517 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip()
518 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip()
519 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip()
632 rect->left = clip->x1; in vmw_sou_surface_clip_rect()
633 rect->top = clip->y1; in vmw_sou_surface_clip_rect()
634 rect->right = clip->x2; in vmw_sou_surface_clip_rect()
635 rect->bottom = clip->y2; in vmw_sou_surface_clip_rect()
1269 dirty.clip = vmw_sou_bo_clip; in vmw_kms_sou_do_bo_dirty()
[all …]
A Dvmwgfx_fb.c184 struct drm_clip_rect clip; in vmw_fb_dirty_flush() local
248 clip.x1 = dst_x1; in vmw_fb_dirty_flush()
249 clip.x2 = dst_x2; in vmw_fb_dirty_flush()
250 clip.y1 = dst_y1; in vmw_fb_dirty_flush()
251 clip.y2 = dst_y2; in vmw_fb_dirty_flush()
258 &clip, 1)); in vmw_fb_dirty_flush()
A Dvmwgfx_kms.c2481 dirty->clip(dirty); in vmw_kms_helper_dirty()
2745 struct drm_rect clip; in vmw_du_helper_plane_update() local
2817 uint32_t fb_x = clip.x1; in vmw_du_helper_plane_update()
2818 uint32_t fb_y = clip.y1; in vmw_du_helper_plane_update()
2820 vmw_du_translate_to_crtc(state, &clip); in vmw_du_helper_plane_update()
2821 if (update->clip) { in vmw_du_helper_plane_update()
2822 curr_size = update->clip(update, cmd_next, &clip, fb_x, in vmw_du_helper_plane_update()
2827 bb.x1 = min_t(int, bb.x1, clip.x1); in vmw_du_helper_plane_update()
2828 bb.y1 = min_t(int, bb.y1, clip.y1); in vmw_du_helper_plane_update()
2829 bb.x2 = max_t(int, bb.x2, clip.x2); in vmw_du_helper_plane_update()
[all …]
A Dvmwgfx_kms.h107 uint32_t (*clip)(struct vmw_du_update_plane *update, void *cmd, member
108 struct drm_rect *clip, uint32_t src_x, uint32_t src_y);
186 void (*clip)(struct vmw_kms_dirty *); member
/linux/Documentation/devicetree/bindings/input/rmi4/
A 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/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()
64 "bnr_clip", bnr->clip); in ia_css_bnr_dump()
A Dia_css_bnr_param.h28 s32 clip; member
/linux/drivers/gpu/drm/i915/display/
A Dintel_psr.c1447 const struct drm_rect *clip; in intel_psr2_program_plane_sel_fetch() local
1460 clip = &plane_state->psr2_sel_fetch_area; in intel_psr2_program_plane_sel_fetch()
1468 y = (plane_state->uapi.src.y1 >> 16) + clip->y1; in intel_psr2_program_plane_sel_fetch()
1474 val = (drm_rect_height(clip) - 1) << 16; in intel_psr2_program_plane_sel_fetch()
1494 struct drm_rect *clip, bool full_update) in psr2_man_trk_ctl_calc() argument
1509 if (clip->y1 == -1) in psr2_man_trk_ctl_calc()
1516 drm_WARN_ON(crtc_state->uapi.crtc->dev, clip->y1 % 4 || clip->y2 % 4); in psr2_man_trk_ctl_calc()
1623 struct drm_rect clip; in intel_psr2_sel_fetch_update() local
1670 drm_atomic_for_each_plane_damage(&iter, &clip) { in intel_psr2_sel_fetch_update()
1671 if (drm_rect_intersect(&clip, &src)) in intel_psr2_sel_fetch_update()
[all …]
A Dintel_atomic_plane.c558 struct drm_rect clip = {}; in intel_atomic_plane_check_clipping() local
579 clip.x2 = crtc_state->pipe_src_w; in intel_atomic_plane_check_clipping()
580 clip.y2 = crtc_state->pipe_src_h; in intel_atomic_plane_check_clipping()
591 plane_state->uapi.visible = drm_rect_clip_scaled(src, dst, &clip); in intel_atomic_plane_check_clipping()
596 !drm_rect_equals(dst, &clip)) { in intel_atomic_plane_check_clipping()
599 drm_rect_debug_print("clip: ", &clip, false); in intel_atomic_plane_check_clipping()
/linux/drivers/gpu/drm/qxl/
A Dqxl_draw.c99 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
224 drawable->clip.type = SPICE_CLIP_TYPE_RECTS; in qxl_draw_dirty_fb()
225 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb()
/linux/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_hw_util.h54 uint16_t clip; member
206 uint16_t clip; member
/linux/Documentation/userspace-api/media/v4l/
A Ddev-overlay.rst102 4. The framebuffer has an alpha channel that can be used to clip or
199 clip lists are not supported the driver ignores this field. Its
205 contain the number of clipping rectangles in the list. When clip
207 after calling :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` are undefined. When clip lists are
232 Applications need not create a clip list or bit mask. When they pass
314 regions need to be refreshed. The driver should clip out more pixels
320 ``height = y2 - y1``, so one cannot pass X11 clip lists directly.

Completed in 79 milliseconds

123