Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/
Ddrm_format_helper.c20 static unsigned int clip_offset(struct drm_rect *clip, in clip_offset() argument
23 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
37 struct drm_rect *clip) in drm_fb_memcpy() argument
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()
43 vaddr += clip_offset(clip, fb->pitches[0], cpp); in drm_fb_memcpy()
64 struct drm_rect *clip) in drm_fb_memcpy_dstclip() argument
67 unsigned int offset = clip_offset(clip, fb->pitches[0], cpp); in drm_fb_memcpy_dstclip()
68 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy_dstclip()
69 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy_dstclip()
[all …]
Ddrm_rect.c55 static u32 clip_scaled(u32 src, u32 dst, u32 clip) in clip_scaled() argument
57 u64 tmp = mul_u32_u32(src, dst - clip); in clip_scaled()
83 const struct drm_rect *clip) in drm_rect_clip_scaled() argument
87 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
93 dst->x1 = clip->x1; in drm_rect_clip_scaled()
95 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
101 dst->y1 = clip->y1; in drm_rect_clip_scaled()
103 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
109 dst->x2 = clip->x2; in drm_rect_clip_scaled()
111 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
[all …]
Ddrm_damage_helper.c364 struct drm_rect clip; in drm_atomic_helper_damage_merged() local
373 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged()
374 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged()
375 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
376 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
377 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
Ddrm_fb_helper.c382 struct drm_clip_rect *clip) in drm_fb_helper_dirty_blit_real() argument
386 size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp; in drm_fb_helper_dirty_blit_real()
389 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_helper_dirty_blit_real()
392 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_helper_dirty_blit_real()
403 struct drm_clip_rect *clip = &helper->dirty_clip; in drm_fb_helper_dirty_work() local
409 clip_copy = *clip; in drm_fb_helper_dirty_work()
410 clip->x1 = clip->y1 = ~0; in drm_fb_helper_dirty_work()
411 clip->x2 = clip->y2 = 0; in drm_fb_helper_dirty_work()
632 struct drm_clip_rect *clip = &helper->dirty_clip; in drm_fb_helper_dirty() local
639 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_dirty()
[all …]
Ddrm_mipi_dbi.c201 struct drm_rect *clip, bool swap) in mipi_dbi_buf_copy() argument
220 drm_fb_swab16(dst, src, fb, clip); in mipi_dbi_buf_copy()
222 drm_fb_memcpy(dst, src, fb, clip); in mipi_dbi_buf_copy()
225 drm_fb_xrgb8888_to_rgb565(dst, src, fb, clip, swap); in mipi_dbi_buf_copy()
Ddrm_atomic_helper.c778 struct drm_rect clip = {}; in drm_atomic_helper_check_plane_state() local
815 drm_mode_get_hv_timing(&crtc_state->mode, &clip.x2, &clip.y2); in drm_atomic_helper_check_plane_state()
817 plane_state->visible = drm_rect_clip_scaled(src, dst, &clip); in drm_atomic_helper_check_plane_state()
831 if (!can_position && !drm_rect_equals(dst, &clip)) { in drm_atomic_helper_check_plane_state()
834 drm_rect_debug_print("clip: ", &clip, false); in drm_atomic_helper_check_plane_state()
/drivers/gpu/drm/selftests/
Dtest-drm_damage_helper.c77 struct drm_rect clip; in igt_damage_iter_no_damage() local
95 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage()
99 FAIL_ON(!check_damage_clip(&state, &clip, 0, 0, 2048, 2048)); in igt_damage_iter_no_damage()
108 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src() local
128 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_fractional_src()
132 FAIL_ON(!check_damage_clip(&state, &clip, 3, 3, 1028, 772)); in igt_damage_iter_no_damage_fractional_src()
141 struct drm_rect clip; in igt_damage_iter_no_damage_src_moved() local
160 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_src_moved()
164 FAIL_ON(!check_damage_clip(&state, &clip, 10, 10, 1034, 778)); in igt_damage_iter_no_damage_src_moved()
173 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src_moved() local
[all …]
/drivers/media/pci/bt8xx/
Dbtcx-risc.c178 unsigned int clip,skip; in btcx_calc_skips() local
183 for (clip = 0; clip < nclips; clip++) { in btcx_calc_skips()
186 if (clips[clip].c.left + clips[clip].c.width <= 0) in btcx_calc_skips()
188 if (clips[clip].c.left > (signed)width) in btcx_calc_skips()
192 if (line > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
194 if (line < clips[clip].c.top) { in btcx_calc_skips()
195 if (maxline > clips[clip].c.top-1) in btcx_calc_skips()
196 maxline = clips[clip].c.top-1; in btcx_calc_skips()
199 if (maxline > clips[clip].c.top+clips[clip].c.height-1) in btcx_calc_skips()
200 maxline = clips[clip].c.top+clips[clip].c.height-1; in btcx_calc_skips()
[all …]
/drivers/gpu/drm/tiny/
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
106 st7586_xrgb8888_to_gray332(dst, src, fb, clip); in st7586_buf_copy()
Drepaper.c536 struct drm_rect clip; in repaper_fb_dirty() local
547 clip.x1 = 0; in repaper_fb_dirty()
548 clip.x2 = fb->width; in repaper_fb_dirty()
549 clip.y1 = 0; in repaper_fb_dirty()
550 clip.y2 = fb->height; in repaper_fb_dirty()
570 drm_fb_xrgb8888_to_gray8(buf, cma_obj->vaddr, fb, &clip); in repaper_fb_dirty()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_stdu.c711 ddirty.base.clip = vmw_stdu_bo_clip; in vmw_kms_stdu_dma()
721 ddirty.base.clip = vmw_stdu_bo_cpu_clip; in vmw_kms_stdu_dma()
884 sdirty.base.clip = vmw_kms_stdu_surface_clip; in vmw_kms_stdu_surface_dirty()
1224 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_populate_clip() argument
1232 box->x = clip->x1; in vmw_stdu_bo_populate_clip()
1233 box->y = clip->y1; in vmw_stdu_bo_populate_clip()
1235 box->w = drm_rect_width(clip); in vmw_stdu_bo_populate_clip()
1236 box->h = drm_rect_height(clip); in vmw_stdu_bo_populate_clip()
1274 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument
1388 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_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()
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
Dvmwgfx_kms.c2535 dirty->clip(dirty); in vmw_kms_helper_dirty()
2799 struct drm_rect clip; in vmw_du_helper_plane_update() local
2815 drm_atomic_for_each_plane_damage(&iter, &clip) in vmw_du_helper_plane_update()
2870 drm_atomic_for_each_plane_damage(&iter, &clip) { in vmw_du_helper_plane_update()
2871 uint32_t fb_x = clip.x1; in vmw_du_helper_plane_update()
2872 uint32_t fb_y = clip.y1; in vmw_du_helper_plane_update()
2874 vmw_du_translate_to_crtc(state, &clip); in vmw_du_helper_plane_update()
2875 if (update->clip) { in vmw_du_helper_plane_update()
2876 curr_size = update->clip(update, cmd_next, &clip, fb_x, in vmw_du_helper_plane_update()
2881 bb.x1 = min_t(int, bb.x1, clip.x1); in vmw_du_helper_plane_update()
[all …]
/drivers/gpu/drm/amd/display/dc/core/
Ddc_resource.c553 struct rect clip, dest; in calculate_viewport() local
572 clip.x = stream->src.x > plane_state->clip_rect.x ? in calculate_viewport()
575 clip.width = stream->src.x + stream->src.width < in calculate_viewport()
577 stream->src.x + stream->src.width - clip.x : in calculate_viewport()
578 plane_state->clip_rect.x + plane_state->clip_rect.width - clip.x ; in calculate_viewport()
580 clip.y = stream->src.y > plane_state->clip_rect.y ? in calculate_viewport()
583 clip.height = stream->src.y + stream->src.height < in calculate_viewport()
585 stream->src.y + stream->src.height - clip.y : in calculate_viewport()
586 plane_state->clip_rect.y + plane_state->clip_rect.height - clip.y ; in calculate_viewport()
600 swap(clip.x, clip.y); in calculate_viewport()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_draw.c95 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
217 drawable->clip.type = SPICE_CLIP_TYPE_RECTS; in qxl_draw_dirty_fb()
218 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb()
Dqxl_dev.h686 struct qxl_clip clip; member
713 struct qxl_clip clip; member
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_util.h53 uint16_t clip; member
202 uint16_t clip; member
Ddpu_hw_util.c173 ((de_cfg->clip & 0x7) << 16); in _dpu_hw_setup_scaler3_de()
/drivers/video/fbdev/
Dcg6.c193 u32 clip; member
334 sbus_writel(0, &fbc->clip); in cg6_fillrect()
372 sbus_writel(0, &fbc->clip); in cg6_copyarea()
418 sbus_writel(0, &fbc->clip); in cg6_imageblit()
713 sbus_writel(0, &fbc->clip); in cg6_chip_init()
/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()
/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c902 struct fixed31_32 clip = dc_fixpt_one; in build_freesync_hdr() local
949 if (dc_fixpt_lt(scaledX, clip)) { in build_freesync_hdr()
960 rgb->r = clip; in build_freesync_hdr()
961 rgb->g = clip; in build_freesync_hdr()
962 rgb->b = clip; in build_freesync_hdr()
965 rgb->r = clip; in build_freesync_hdr()
966 rgb->g = clip; in build_freesync_hdr()
967 rgb->b = clip; in build_freesync_hdr()
/drivers/gpu/drm/sti/
DNOTES13 - The TV OUT pre-formats (convert, clip, round) the compositor output data

12