/linux-6.1.9/drivers/gpu/drm/tests/ |
D | drm_rect_test.c | 14 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 …]
|
D | drm_damage_helper_test.c | 123 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 …]
|
D | drm_format_helper_test.c | 48 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 ¶ms->clip); in drm_test_fb_xrgb8888_to_gray8() 317 drm_fb_xrgb8888_to_gray8(&dst, &result->dst_pitch, &src, &fb, ¶ms->clip); in drm_test_fb_xrgb8888_to_gray8() [all …]
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_format_helper.c | 23 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 …]
|
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_dma_helper.c | 128 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()
|
D | drm_damage_helper.c | 314 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()
|
D | drm_fb_helper.c | 376 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/ |
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 …]
|
/linux-6.1.9/include/drm/ |
D | drm_format_helper.h | 19 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);
|
D | drm_rect.h | 241 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/ |
D | st7586.c | 67 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/ |
D | udl_modeset.c | 247 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/ |
D | rmi_2d_sensor.txt | 23 - 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/ |
D | vmwgfx_stdu.c | 720 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 …]
|
D | vmwgfx_scrn.c | 502 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 …]
|
D | vmwgfx_kms.h | 108 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
|
D | vmwgfx_fb.c | 185 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/ |
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
|
/linux-6.1.9/drivers/media/platform/mediatek/mdp3/ |
D | mtk-img-ipi.h | 179 u32 clip; member 200 u32 clip; member 214 u32 clip; member 232 u32 clip; member
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 100 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/ |
D | dpu_hw_util.h | 61 uint16_t clip; member 213 uint16_t clip; member
|
/linux-6.1.9/net/atm/ |
D | Makefile | 10 obj-$(CONFIG_ATM_CLIP) += clip.o
|
/linux-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_psr.c | 1542 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 …]
|