/openbmc/linux/drivers/gpu/drm/tests/ |
H A 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 …]
|
H A D | drm_rect_test.c | 27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local 36 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero() 37 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero() 44 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_div_by_zero() 45 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero() 53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local 59 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped() 61 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped() 73 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped() 75 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_not_clipped() [all …]
|
H A D | drm_format_helper_test.c | 78 struct drm_rect clip; member 97 .clip = DRM_RECT_INIT(0, 0, 1, 1), 148 .clip = DRM_RECT_INIT(1, 1, 1, 1), 206 .clip = DRM_RECT_INIT(1, 1, 2, 4), 324 .clip = DRM_RECT_INIT(0, 0, 3, 3), 440 const struct drm_rect *clip) in conversion_buf_size() argument 448 dst_pitch = drm_format_info_min_pitch(dst_fi, 0, drm_rect_width(clip)); in conversion_buf_size() 450 return dst_pitch * drm_rect_height(clip); in conversion_buf_size() 522 ¶ms->clip); in drm_test_fb_xrgb8888_to_gray8() 533 drm_fb_xrgb8888_to_gray8(&dst, &result->dst_pitch, &src, &fb, ¶ms->clip); in drm_test_fb_xrgb8888_to_gray8() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A 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 …]
|
H A D | drm_fbdev_generic.c | 141 struct drm_clip_rect *clip, in drm_fbdev_generic_damage_blit_real() argument 145 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_generic_damage_blit_real() 146 size_t len = clip->x2 - clip->x1; in drm_fbdev_generic_damage_blit_real() 152 offset += clip->x1 / 8; in drm_fbdev_generic_damage_blit_real() 153 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_generic_damage_blit_real() 156 offset += clip->x1 / 4; in drm_fbdev_generic_damage_blit_real() 157 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_generic_damage_blit_real() 160 offset += clip->x1 / 2; in drm_fbdev_generic_damage_blit_real() 161 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fbdev_generic_damage_blit_real() 164 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_generic_damage_blit_real() [all …]
|
H A 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()
|
H A 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()
|
H A D | drm_damage_helper.c | 315 struct drm_rect clip; in drm_atomic_helper_damage_merged() local 324 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged() 325 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged() 326 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged() 327 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged() 328 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
|
H A D | drm_fb_helper.c | 376 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_fb_dirty() local 385 clip_copy = *clip; in drm_fb_helper_fb_dirty() 386 clip->x1 = clip->y1 = ~0; in drm_fb_helper_fb_dirty() 387 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty() 402 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_fb_dirty() 403 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_fb_dirty() 404 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_fb_dirty() 405 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty() 620 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_add_damage_clip() local 624 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_add_damage_clip() [all …]
|
/openbmc/linux/include/drm/ |
H A 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); 44 const struct drm_rect *clip); 47 const struct drm_rect *clip); [all …]
|
H A D | drm_rect.h | 241 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip); 243 const struct drm_rect *clip);
|
/openbmc/linux/drivers/gpu/drm/tiny/ |
H A 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 104 st7586_xrgb8888_to_gray332(dst, src->vaddr, fb, clip); in st7586_buf_copy()
|
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/ |
H A D | draw.py | 376 def clip_visible(clip, rect): argument 377 xmax = max (clip[0], rect[0]) 378 ymax = max (clip[1], rect[1]) 379 xmin = min (clip[0] + clip[2], rect[0] + rect[2]) 380 ymin = min (clip[1] + clip[3], rect[1] + rect[3]) 383 def render_charts(ctx, options, clip, trace, curr_y, w, h, sec_w): argument 395 if clip_visible (clip, chart_rect): 415 if clip_visible (clip, chart_rect): 424 if clip_visible (clip, chart_rect): 449 if clip_visible (clip, chart_rect): [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/ |
H A D | msm_fbdev.c | 143 struct drm_clip_rect *clip) in msm_fbdev_fb_dirty() argument 149 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in msm_fbdev_fb_dirty() 153 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in msm_fbdev_fb_dirty()
|
/openbmc/linux/drivers/media/platform/mediatek/mdp3/ |
H A D | mdp_sm_mt8183.h | 46 u32 clip; member 67 u32 clip; member 81 u32 clip; member 99 u32 clip; member
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_fbdev.c | 257 static int omap_fbdev_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in omap_fbdev_dirty() argument 259 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in omap_fbdev_dirty() 263 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in omap_fbdev_dirty()
|
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/ |
H A 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()
|
H A D | ia_css_bnr_param.h | 28 s32 clip; member
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_scrn.c | 501 void *cmd, struct drm_rect *clip, in vmw_sou_bo_populate_clip() argument 510 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip() 511 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip() 512 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip() 513 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip() 556 bo_update.base.clip = vmw_sou_bo_populate_clip; in vmw_sou_plane_update_bo() 616 void *cmd, struct drm_rect *clip, in vmw_sou_surface_clip_rect() argument 625 rect->left = clip->x1; in vmw_sou_surface_clip_rect() 626 rect->top = clip->y1; in vmw_sou_surface_clip_rect() 627 rect->right = clip->x2; in vmw_sou_surface_clip_rect() [all …]
|
H A D | vmwgfx_stdu.c | 590 ddirty.base.clip = vmw_stdu_bo_cpu_clip; in vmw_kms_stdu_readback() 752 sdirty.base.clip = vmw_kms_stdu_surface_clip; in vmw_kms_stdu_surface_dirty() 1121 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument 1229 bo_update.base.clip = vmw_stdu_bo_clip_cpu; in vmw_stdu_plane_update_bo() 1277 struct drm_rect clip; in vmw_stdu_surface_update_proxy() local 1287 drm_atomic_for_each_plane_damage(&iter, &clip) { in vmw_stdu_surface_update_proxy() 1296 box->x = clip.x1; in vmw_stdu_surface_update_proxy() 1297 box->y = clip.y1; in vmw_stdu_surface_update_proxy() 1299 box->w = drm_rect_width(&clip); in vmw_stdu_surface_update_proxy() 1300 box->h = drm_rect_height(&clip); in vmw_stdu_surface_update_proxy() [all …]
|
H A 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); 186 void (*clip)(struct vmw_kms_dirty *); member
|
/openbmc/linux/drivers/gpu/drm/udl/ |
H A D | udl_modeset.c | 205 const struct drm_rect *clip) in udl_handle_damage() argument 224 for (i = clip->y1; i < clip->y2; i++) { in udl_handle_damage() 226 const int byte_offset = line_offset + (clip->x1 << log_bpp); in udl_handle_damage() 227 const int dev_byte_offset = (fb->width * i + clip->x1) << log_bpp; in udl_handle_damage() 228 const int byte_width = drm_rect_width(clip) << log_bpp; in udl_handle_damage()
|
/openbmc/linux/drivers/gpu/drm/qxl/ |
H A 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()
|
/openbmc/phosphor-webui/app/common/styles/base/ |
H A D | utility.scss | 92 clip: rect(1px, 1px, 1px, 1px); 93 clip-path: inset(50%);
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fbdev.c | 350 static int intelfb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in intelfb_dirty() argument 352 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in intelfb_dirty() 356 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in intelfb_dirty()
|