/drivers/gpu/drm/ |
D | drm_format_helper.c | 20 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() 65 struct drm_rect *clip) in drm_fb_memcpy_dstclip() argument 68 unsigned int offset = clip_offset(clip, dst_pitch, cpp); in drm_fb_memcpy_dstclip() 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() [all …]
|
D | drm_rect.c | 55 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()
|
D | drm_fb_cma_helper.c | 123 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()
|
D | drm_damage_helper.c | 310 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()
|
D | drm_fb_helper.c | 375 struct drm_clip_rect *clip, in drm_fb_helper_damage_blit_real() argument 380 size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp; in drm_fb_helper_damage_blit_real() 382 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() 395 struct drm_clip_rect *clip) in drm_fb_helper_damage_blit() argument 419 drm_fb_helper_damage_blit_real(fb_helper, clip, &dst); in drm_fb_helper_damage_blit() 434 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_damage_work() local 440 clip_copy = *clip; in drm_fb_helper_damage_work() 441 clip->x1 = clip->y1 = ~0; in drm_fb_helper_damage_work() 442 clip->x2 = clip->y2 = 0; in drm_fb_helper_damage_work() [all …]
|
/drivers/gpu/drm/selftests/ |
D | test-drm_damage_helper.c | 121 struct drm_rect clip; in igt_damage_iter_no_damage() local 130 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage() 134 FAIL_ON(!check_damage_clip(&state, &clip, 0, 0, 2048, 2048)); in igt_damage_iter_no_damage() 142 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src() local 153 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_fractional_src() 157 FAIL_ON(!check_damage_clip(&state, &clip, 3, 3, 1028, 772)); in igt_damage_iter_no_damage_fractional_src() 165 struct drm_rect clip; in igt_damage_iter_no_damage_src_moved() local 175 drm_atomic_for_each_plane_damage(&iter, &clip) in igt_damage_iter_no_damage_src_moved() 179 FAIL_ON(!check_damage_clip(&state, &clip, 10, 10, 1034, 778)); in igt_damage_iter_no_damage_src_moved() 187 struct drm_rect clip; in igt_damage_iter_no_damage_fractional_src_moved() local [all …]
|
D | test-drm_rect.c | 16 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() 26 visible = drm_rect_clip_scaled(&src, &dst, &clip); 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() 33 visible = drm_rect_clip_scaled(&src, &dst, &clip); 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() 50 visible = drm_rect_clip_scaled(&src, &dst, &clip); 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() 66 visible = drm_rect_clip_scaled(&src, &dst, &clip); in igt_drm_rect_clip_scaled_not_clipped() [all …]
|
/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 177 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 …]
|
/drivers/gpu/drm/udl/ |
D | udl_modeset.c | 245 static int udl_aligned_damage_clip(struct drm_rect *clip, int x, int y, in udl_aligned_damage_clip() argument 259 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() [all …]
|
/drivers/gpu/drm/tiny/ |
D | st7586.c | 66 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()
|
D | repaper.c | 535 struct drm_rect clip; in repaper_fb_dirty() local 543 clip.x1 = 0; in repaper_fb_dirty() 544 clip.x2 = fb->width; in repaper_fb_dirty() 545 clip.y1 = 0; in repaper_fb_dirty() 546 clip.y2 = fb->height; in repaper_fb_dirty() 563 drm_fb_xrgb8888_to_gray8(buf, cma_obj->vaddr, fb, &clip); in repaper_fb_dirty()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_stdu.c | 716 ddirty.base.clip = vmw_stdu_bo_clip; in vmw_kms_stdu_dma() 726 ddirty.base.clip = vmw_stdu_bo_cpu_clip; in vmw_kms_stdu_dma() 889 sdirty.base.clip = vmw_kms_stdu_surface_clip; in vmw_kms_stdu_surface_dirty() 1217 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_populate_clip() argument 1225 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() 1267 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument 1381 bo_update.base.clip = vmw_stdu_bo_clip_cpu; in vmw_stdu_plane_update_bo() [all …]
|
D | vmwgfx_scrn.c | 507 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() 563 bo_update.base.clip = vmw_sou_bo_populate_clip; in vmw_sou_plane_update_bo() 623 void *cmd, struct drm_rect *clip, in vmw_sou_surface_clip_rect() argument 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() [all …]
|
D | vmwgfx_fb.c | 184 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()
|
D | vmwgfx_kms.c | 2486 dirty->clip(dirty); in vmw_kms_helper_dirty() 2750 struct drm_rect clip; in vmw_du_helper_plane_update() local 2766 drm_atomic_for_each_plane_damage(&iter, &clip) in vmw_du_helper_plane_update() 2821 drm_atomic_for_each_plane_damage(&iter, &clip) { in vmw_du_helper_plane_update() 2822 uint32_t fb_x = clip.x1; in vmw_du_helper_plane_update() 2823 uint32_t fb_y = clip.y1; in vmw_du_helper_plane_update() 2825 vmw_du_translate_to_crtc(state, &clip); in vmw_du_helper_plane_update() 2826 if (update->clip) { in vmw_du_helper_plane_update() 2827 curr_size = update->clip(update, cmd_next, &clip, fb_x, in vmw_du_helper_plane_update() 2832 bb.x1 = min_t(int, bb.x1, clip.x1); in vmw_du_helper_plane_update() [all …]
|
D | vmwgfx_kms.h | 107 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
|
/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/ |
D | ia_css_bnr.host.c | 40 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()
|
D | ia_css_bnr_param.h | 28 s32 clip; member
|
/drivers/gpu/drm/i915/display/ |
D | intel_atomic_plane.c | 556 struct drm_rect clip = {}; in intel_atomic_plane_check_clipping() local 577 clip.x2 = crtc_state->pipe_src_w; in intel_atomic_plane_check_clipping() 578 clip.y2 = crtc_state->pipe_src_h; in intel_atomic_plane_check_clipping() 589 plane_state->uapi.visible = drm_rect_clip_scaled(src, dst, &clip); in intel_atomic_plane_check_clipping() 594 !drm_rect_equals(dst, &clip)) { in intel_atomic_plane_check_clipping() 597 drm_rect_debug_print("clip: ", &clip, false); in intel_atomic_plane_check_clipping()
|
D | intel_psr.c | 1526 const struct drm_rect *clip; in intel_psr2_program_plane_sel_fetch() local 1539 clip = &plane_state->psr2_sel_fetch_area; in intel_psr2_program_plane_sel_fetch() 1541 val = (clip->y1 + plane_state->uapi.dst.y1) << 16; in intel_psr2_program_plane_sel_fetch() 1547 y = (plane_state->uapi.src.y1 >> 16) + clip->y1; in intel_psr2_program_plane_sel_fetch() 1557 val = (drm_rect_height(clip) - 1) << 16; in intel_psr2_program_plane_sel_fetch() 1575 struct drm_rect *clip, bool full_update) in psr2_man_trk_ctl_calc() argument 1590 if (clip->y1 == -1) in psr2_man_trk_ctl_calc() 1594 val |= ADLP_PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR(clip->y1); in psr2_man_trk_ctl_calc() 1595 val |= ADLP_PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2); in psr2_man_trk_ctl_calc() 1597 drm_WARN_ON(crtc_state->uapi.crtc->dev, clip->y1 % 4 || clip->y2 % 4); in psr2_man_trk_ctl_calc() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 99 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()
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_hw_util.h | 53 uint16_t clip; member 205 uint16_t clip; member
|
/drivers/video/fbdev/ |
D | cg6.c | 193 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/ |
D | nv04_fbcon.c | 178 NULL, 0, &nfbdev->clip); in nv04_fbcon_accel_init() 233 PUSH_NVSQ(push, NV019, 0x0000, nfbdev->clip.handle); in nv04_fbcon_accel_init()
|
D | nouveau_fbcon.h | 40 struct nvif_object clip; member
|