Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/gpu/drm/tests/
Ddrm_rect_test.c14 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
23 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
24 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
31 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero()
32 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero()
40 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
46 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
48 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
60 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped()
62 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped()
[all …]
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.c48 struct drm_rect clip; member
61 .clip = DRM_RECT_INIT(0, 0, 1, 1),
88 .clip = DRM_RECT_INIT(1, 1, 1, 1),
122 .clip = DRM_RECT_INIT(1, 1, 2, 4),
186 .clip = DRM_RECT_INIT(0, 0, 3, 3),
254 const struct drm_rect *clip) in conversion_buf_size() argument
262 dst_pitch = drm_rect_width(clip) * dst_fi->cpp[0]; in conversion_buf_size()
264 return dst_pitch * drm_rect_height(clip); in conversion_buf_size()
306 &params->clip); in drm_test_fb_xrgb8888_to_gray8()
317 drm_fb_xrgb8888_to_gray8(&dst, &result->dst_pitch, &src, &fb, &params->clip); in drm_test_fb_xrgb8888_to_gray8()
[all …]
/linux-6.1.9/drivers/gpu/drm/
Ddrm_format_helper.c23 static unsigned int clip_offset(const struct drm_rect *clip, unsigned int pitch, unsigned int cpp) in clip_offset() argument
25 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
38 const struct drm_rect *clip) in drm_fb_clip_offset() argument
40 return clip_offset(clip, pitch, format->cpp[0]); in drm_fb_clip_offset()
47 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm() argument
50 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm()
51 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm()
69 dst_pitch = drm_rect_width(clip) * dst_pixsize; in __drm_fb_xfrm()
70 vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]); in __drm_fb_xfrm()
90 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm_toio() argument
[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()
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()
Ddrm_fb_dma_helper.c128 struct drm_rect clip; in drm_fb_dma_sync_non_coherent() local
140 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_fb_dma_sync_non_coherent()
142 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
144 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
Ddrm_damage_helper.c314 struct drm_rect clip; in drm_atomic_helper_damage_merged() local
323 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged()
324 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
325 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
326 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
327 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
Ddrm_fb_helper.c376 struct drm_clip_rect *clip, in drm_fb_helper_damage_blit_real() argument
380 size_t offset = clip->y1 * fb->pitches[0]; in drm_fb_helper_damage_blit_real()
381 size_t len = clip->x2 - clip->x1; in drm_fb_helper_damage_blit_real()
387 offset += clip->x1 / 8; in drm_fb_helper_damage_blit_real()
388 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fb_helper_damage_blit_real()
391 offset += clip->x1 / 4; in drm_fb_helper_damage_blit_real()
392 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fb_helper_damage_blit_real()
395 offset += clip->x1 / 2; in drm_fb_helper_damage_blit_real()
396 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fb_helper_damage_blit_real()
399 offset += clip->x1 * fb->format->cpp[0]; in drm_fb_helper_damage_blit_real()
[all …]
/linux-6.1.9/drivers/media/pci/bt8xx/
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()
187 if (clips[clip].c.left > (signed)width) 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()
[all …]
/linux-6.1.9/include/drm/
Ddrm_format_helper.h19 const struct drm_rect *clip);
23 const struct drm_rect *clip);
26 const struct drm_rect *clip, bool cached);
29 const struct drm_rect *clip);
32 const struct drm_rect *clip, bool swab);
35 const struct drm_rect *clip);
38 const struct drm_rect *clip);
41 const struct drm_rect *clip);
49 const struct drm_rect *clip);
Ddrm_rect.h241 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
243 const struct drm_rect *clip);
/linux-6.1.9/drivers/gpu/drm/tiny/
Dst7586.c67 struct drm_rect *clip) in st7586_xrgb8888_to_gray332() argument
69 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
80 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, clip); in st7586_xrgb8888_to_gray332()
83 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332()
84 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332()
96 struct drm_rect *clip) in st7586_buf_copy() argument
106 st7586_xrgb8888_to_gray332(dst, src, fb, clip); in st7586_buf_copy()
/linux-6.1.9/drivers/gpu/drm/udl/
Dudl_modeset.c247 const struct drm_rect *clip) in udl_handle_damage() argument
272 for (i = clip->y1; i < clip->y2; i++) { in udl_handle_damage()
274 const int byte_offset = line_offset + (clip->x1 << log_bpp); in udl_handle_damage()
275 const int dev_byte_offset = (fb->width * i + clip->x1) << log_bpp; in udl_handle_damage()
276 const int byte_width = drm_rect_width(clip) << log_bpp; in udl_handle_damage()
329 struct drm_rect clip = DRM_RECT_INIT(0, 0, fb->width, fb->height); in udl_simple_display_pipe_enable() local
355 udl_handle_damage(fb, &shadow_plane_state->data[0], &clip); in udl_simple_display_pipe_enable()
/linux-6.1.9/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-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_stdu.c720 ddirty.base.clip = vmw_stdu_bo_clip; in vmw_kms_stdu_dma()
730 ddirty.base.clip = vmw_stdu_bo_cpu_clip; in vmw_kms_stdu_dma()
893 sdirty.base.clip = vmw_kms_stdu_surface_clip; in vmw_kms_stdu_surface_dirty()
1221 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_populate_clip() argument
1229 box->x = clip->x1; in vmw_stdu_bo_populate_clip()
1230 box->y = clip->y1; in vmw_stdu_bo_populate_clip()
1232 box->w = drm_rect_width(clip); in vmw_stdu_bo_populate_clip()
1233 box->h = drm_rect_height(clip); in vmw_stdu_bo_populate_clip()
1271 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument
1385 bo_update.base.clip = vmw_stdu_bo_clip_cpu; in vmw_stdu_plane_update_bo()
[all …]
Dvmwgfx_scrn.c502 void *cmd, struct drm_rect *clip, in vmw_sou_bo_populate_clip() argument
511 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip()
512 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip()
513 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip()
514 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip()
558 bo_update.base.clip = vmw_sou_bo_populate_clip; in vmw_sou_plane_update_bo()
618 void *cmd, struct drm_rect *clip, in vmw_sou_surface_clip_rect() argument
627 rect->left = clip->x1; in vmw_sou_surface_clip_rect()
628 rect->top = clip->y1; in vmw_sou_surface_clip_rect()
629 rect->right = clip->x2; in vmw_sou_surface_clip_rect()
[all …]
Dvmwgfx_kms.h108 uint32_t (*clip)(struct vmw_du_update_plane *update, void *cmd, member
109 struct drm_rect *clip, uint32_t src_x, uint32_t src_y);
187 void (*clip)(struct vmw_kms_dirty *); member
Dvmwgfx_fb.c185 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()
259 &clip, 1)); in vmw_fb_dirty_flush()
/linux-6.1.9/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()
64 "bnr_clip", bnr->clip); in ia_css_bnr_dump()
Dia_css_bnr_param.h28 s32 clip; member
/linux-6.1.9/drivers/media/platform/mediatek/mdp3/
Dmtk-img-ipi.h179 u32 clip; member
200 u32 clip; member
214 u32 clip; member
232 u32 clip; member
/linux-6.1.9/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()
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_util.h61 uint16_t clip; member
213 uint16_t clip; member
/linux-6.1.9/net/atm/
DMakefile10 obj-$(CONFIG_ATM_CLIP) += clip.o
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_psr.c1542 const struct drm_rect *clip; in intel_psr2_program_plane_sel_fetch() local
1555 clip = &plane_state->psr2_sel_fetch_area; in intel_psr2_program_plane_sel_fetch()
1557 val = (clip->y1 + plane_state->uapi.dst.y1) << 16; in intel_psr2_program_plane_sel_fetch()
1568 y = plane_state->view.color_plane[color_plane].y + clip->y1; in intel_psr2_program_plane_sel_fetch()
1570 y = plane_state->view.color_plane[color_plane].y + clip->y1 / 2; in intel_psr2_program_plane_sel_fetch()
1578 val = (drm_rect_height(clip) - 1) << 16; in intel_psr2_program_plane_sel_fetch()
1609 struct drm_rect *clip, bool full_update) in psr2_man_trk_ctl_calc() argument
1627 if (clip->y1 == -1) in psr2_man_trk_ctl_calc()
1631 val |= ADLP_PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR(clip->y1); in psr2_man_trk_ctl_calc()
1632 val |= ADLP_PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2 - 1); in psr2_man_trk_ctl_calc()
[all …]

123