| /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_format_helper_test.c | 106 struct drm_rect clip; member 129 .clip = DRM_RECT_INIT(0, 0, 1, 1), 196 .clip = DRM_RECT_INIT(1, 1, 1, 1), 270 .clip = DRM_RECT_INIT(1, 1, 2, 4), 424 .clip = DRM_RECT_INIT(0, 0, 3, 3), 575 const struct drm_rect *clip, int plane) in conversion_buf_size() argument 583 dst_pitch = drm_format_info_min_pitch(dst_fi, plane, drm_rect_width(clip)); in conversion_buf_size() 585 return dst_pitch * drm_rect_height(clip); in conversion_buf_size() 657 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_gray8() 671 drm_fb_xrgb8888_to_gray8(&dst, dst_pitch, &src, &fb, ¶ms->clip, &fmtcnv_state); in drm_test_fb_xrgb8888_to_gray8() [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 …]
|
| /linux/include/drm/ |
| H A D | drm_format_helper.h | 71 const struct drm_rect *clip); 75 const struct drm_rect *clip); 78 const struct drm_rect *clip, bool cached, 82 const struct drm_rect *clip, struct drm_format_conv_state *state); 85 const struct drm_rect *clip, struct drm_format_conv_state *state); 88 const struct drm_rect *clip, struct drm_format_conv_state *state); 91 const struct drm_rect *clip, struct drm_format_conv_state *state); 94 const struct drm_rect *clip, struct drm_format_conv_state *state); 97 const struct drm_rect *clip, struct drm_format_conv_state *state); 100 const struct drm_rect *clip, struct drm_format_conv_state *state); [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_fbdev_ttm.c | 68 struct drm_clip_rect *clip, in drm_fbdev_ttm_damage_blit_real() argument 72 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real() 73 size_t len = clip->x2 - clip->x1; in drm_fbdev_ttm_damage_blit_real() 79 offset += clip->x1 / 8; in drm_fbdev_ttm_damage_blit_real() 80 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_ttm_damage_blit_real() 83 offset += clip->x1 / 4; in drm_fbdev_ttm_damage_blit_real() 84 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_ttm_damage_blit_real() 87 offset += clip->x1 / 2; in drm_fbdev_ttm_damage_blit_real() 88 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fbdev_ttm_damage_blit_real() 91 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_ttm_damage_blit_real() [all …]
|
| H A D | drm_format_helper.c | 117 static unsigned int clip_offset(const struct drm_rect *clip, unsigned int pitch, unsigned int cpp) in clip_offset() argument 119 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset() 132 const struct drm_rect *clip) in drm_fb_clip_offset() argument 134 return clip_offset(clip, pitch, format->cpp[0]); in drm_fb_clip_offset() 141 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm() argument 145 unsigned long linepixels = drm_rect_width(clip); in __drm_fb_xfrm() 146 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm() 164 dst_pitch = drm_rect_width(clip) * dst_pixsize; in __drm_fb_xfrm() 165 vaddr += clip_offset(clip, fb->pitches[0], fb->format->cpp[0]); in __drm_fb_xfrm() 183 const struct drm_rect *clip, bool vaddr_cached_hint, in __drm_fb_xfrm_toio() argument [all …]
|
| H A D | drm_fbdev_dma.c | 110 struct drm_clip_rect *clip, in drm_fbdev_dma_damage_blit_real() argument 114 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 115 size_t len = clip->x2 - clip->x1; in drm_fbdev_dma_damage_blit_real() 121 offset += clip->x1 / 8; in drm_fbdev_dma_damage_blit_real() 122 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fbdev_dma_damage_blit_real() 125 offset += clip->x1 / 4; in drm_fbdev_dma_damage_blit_real() 126 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fbdev_dma_damage_blit_real() 129 offset += clip->x1 / 2; in drm_fbdev_dma_damage_blit_real() 130 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fbdev_dma_damage_blit_real() 133 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_dma_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() 92 const struct drm_rect *clip) in drm_rect_clip_scaled() argument 96 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() 104 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled() 112 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled() 120 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
|
| H A D | drm_fbdev_shmem.c | 107 struct drm_clip_rect *clip) in drm_fbdev_shmem_helper_fb_dirty() argument 113 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in drm_fbdev_shmem_helper_fb_dirty() 117 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in drm_fbdev_shmem_helper_fb_dirty()
|
| H A D | drm_fb_dma_helper.c | 131 struct drm_rect clip; in drm_fb_dma_sync_non_coherent() local 143 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_fb_dma_sync_non_coherent() 145 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 147 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
|
| H A D | drm_damage_helper.c | 317 struct drm_rect clip; in drm_atomic_helper_damage_merged() local 326 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_atomic_helper_damage_merged() 327 rect->x1 = min(rect->x1, clip.x1); in drm_atomic_helper_damage_merged() 328 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged() 329 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged() 330 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
|
| H A D | drm_fb_helper.c | 230 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_fb_dirty() local 243 clip_copy = *clip; in drm_fb_helper_fb_dirty() 244 clip->x1 = clip->y1 = ~0; in drm_fb_helper_fb_dirty() 245 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty() 260 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_fb_dirty() 261 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_fb_dirty() 262 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_fb_dirty() 263 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty() 449 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_add_damage_clip() local 453 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_add_damage_clip() [all …]
|
| /linux/drivers/gpu/drm/sitronix/ |
| H A D | st7586.c | 69 struct drm_rect *clip, in st7586_xrgb8888_to_gray332() argument 72 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332() 83 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, clip, fmtcnv_state); in st7586_xrgb8888_to_gray332() 86 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332() 87 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332() 99 struct drm_rect *clip, struct drm_format_conv_state *fmtcnv_state) in st7586_buf_copy() argument 107 st7586_xrgb8888_to_gray332(dst, src->vaddr, fb, clip, fmtcnv_state); in st7586_buf_copy()
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_fbdev.c | 67 struct drm_clip_rect *clip) in msm_fbdev_fb_dirty() argument 73 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in msm_fbdev_fb_dirty() 77 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in msm_fbdev_fb_dirty()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | sharp-memory.c | 120 struct drm_rect clip, in sharp_memory_set_tx_buffer_addresses() argument 123 for (u32 line = 0; line < clip.y2; ++line) in sharp_memory_set_tx_buffer_addresses() 130 struct drm_rect clip, in sharp_memory_set_tx_buffer_data() argument 143 drm_fb_xrgb8888_to_mono(&dst, &pitch, vmap, fb, &clip, fmtcnv_state); in sharp_memory_set_tx_buffer_data() 151 struct drm_rect clip, in sharp_memory_update_display() argument 165 sharp_memory_set_tx_buffer_addresses(&tx_buffer[1], clip, pitch); in sharp_memory_update_display() 166 sharp_memory_set_tx_buffer_data(&tx_buffer[2], fb, vmap, clip, pitch, fmtcnv_state); in sharp_memory_update_display() 213 struct drm_rect clip; in sharp_memory_fb_dirty() local 217 clip.x1 = 0; in sharp_memory_fb_dirty() 218 clip.x2 = fb->width; in sharp_memory_fb_dirty() [all …]
|
| /linux/drivers/media/platform/mediatek/mdp3/ |
| H A D | mdp_sm_mt8195.h | 46 u32 clip; member 107 u32 clip; member 120 u32 clip; member 153 u32 clip; member 204 u32 clip; member 230 u32 clip; member
|
| H A D | mdp_sm_mt8183.h | 46 u32 clip; member 67 u32 clip; member 81 u32 clip; member 99 u32 clip; member
|
| /linux/drivers/gpu/drm/omapdrm/ |
| H A D | omap_fbdev.c | 127 static int omap_fbdev_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in omap_fbdev_dirty() argument 129 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in omap_fbdev_dirty() 133 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in omap_fbdev_dirty()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_scrn.c | 496 void *cmd, struct drm_rect *clip, in vmw_sou_bo_populate_clip() argument 505 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip() 506 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip() 507 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip() 508 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip() 551 bo_update.base.clip = vmw_sou_bo_populate_clip; in vmw_sou_plane_update_bo() 613 void *cmd, struct drm_rect *clip, in vmw_sou_surface_clip_rect() argument 622 rect->left = clip->x1; in vmw_sou_surface_clip_rect() 623 rect->top = clip->y1; in vmw_sou_surface_clip_rect() 624 rect->right = clip->x2; in vmw_sou_surface_clip_rect() [all …]
|
| H A D | vmwgfx_kms.c | 1602 dirty->clip(dirty); in vmw_kms_helper_dirty() 1738 struct drm_rect clip; in vmw_du_helper_plane_update() local 1754 drm_atomic_for_each_plane_damage(&iter, &clip) in vmw_du_helper_plane_update() 1822 drm_atomic_for_each_plane_damage(&iter, &clip) { in vmw_du_helper_plane_update() 1823 uint32_t fb_x = clip.x1; in vmw_du_helper_plane_update() 1824 uint32_t fb_y = clip.y1; in vmw_du_helper_plane_update() 1826 vmw_du_translate_to_crtc(state, &clip); in vmw_du_helper_plane_update() 1827 if (update->clip) { in vmw_du_helper_plane_update() 1828 curr_size = update->clip(update, cmd_next, &clip, fb_x, in vmw_du_helper_plane_update() 1833 bb.x1 = min_t(int, bb.x1, clip.x1); in vmw_du_helper_plane_update() [all …]
|
| H A D | vmwgfx_stdu.c | 596 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() 1155 void *cmd, struct drm_rect *clip, in vmw_stdu_bo_clip_cpu() argument 1263 bo_update.base.clip = vmw_stdu_bo_clip_cpu; in vmw_stdu_plane_update_bo() 1313 struct drm_rect *clip, uint32_t fb_x, in vmw_stdu_surface_populate_clip() argument 1321 box->x = clip->x1; in vmw_stdu_surface_populate_clip() 1322 box->y = clip->y1; in vmw_stdu_surface_populate_clip() 1324 box->w = drm_rect_width(clip); in vmw_stdu_surface_populate_clip() 1325 box->h = drm_rect_height(clip); in vmw_stdu_surface_populate_clip() 1379 srf_update.clip = vmw_stdu_surface_populate_clip; in vmw_stdu_plane_update_surface()
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/ |
| H A D | ia_css_bnr.host.c | 31 to->clip = uDIGIT_FITTING(16384U, 16, SH_CSS_BAYER_BITS); in ia_css_bnr_encode() 56 "bnr_clip", bnr->clip); in ia_css_bnr_dump()
|
| /linux/drivers/gpu/drm/udl/ |
| H A D | udl_modeset.c | 205 const struct drm_rect *clip) in udl_handle_damage() argument 225 for (i = clip->y1; i < clip->y2; i++) { in udl_handle_damage() 227 const int byte_offset = line_offset + (clip->x1 << log_bpp); in udl_handle_damage() 228 const int dev_byte_offset = (fb->width * i + clip->x1) << log_bpp; in udl_handle_damage() 229 const int byte_width = drm_rect_width(clip) << log_bpp; in udl_handle_damage()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_fbdev.c | 168 static int intelfb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in intelfb_dirty() argument 170 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in intelfb_dirty() 174 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in intelfb_dirty()
|
| /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()
|