| /drivers/gpu/drm/ |
| A D | drm_format_helper.c | 119 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset() 132 const struct drm_rect *clip) in drm_fb_clip_offset() argument 146 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm() 188 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm_toio() 416 const struct drm_rect *clip) in drm_fb_memcpy() argument 494 const struct drm_rect *clip, bool cached, in drm_fb_swab() argument 906 const struct drm_rect *clip, in drm_fb_xrgb8888_to_abgr8888() argument 948 const struct drm_rect *clip, in drm_fb_xrgb8888_to_xbgr8888() argument 990 const struct drm_rect *clip, in drm_fb_xrgb8888_to_bgrx8888() argument 1031 const struct drm_rect *clip, in drm_fb_xrgb8888_to_xrgb2101010() argument [all …]
|
| A D | drm_fbdev_ttm.c | 70 struct drm_clip_rect *clip, in drm_fbdev_ttm_damage_blit_real() argument 74 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real() 75 size_t len = clip->x2 - clip->x1; in drm_fbdev_ttm_damage_blit_real() 81 offset += clip->x1 / 8; in drm_fbdev_ttm_damage_blit_real() 85 offset += clip->x1 / 4; in drm_fbdev_ttm_damage_blit_real() 89 offset += clip->x1 / 2; in drm_fbdev_ttm_damage_blit_real() 93 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_ttm_damage_blit_real() 101 for (y = clip->y1; y < clip->y2; y++) { in drm_fbdev_ttm_damage_blit_real() 109 struct drm_clip_rect *clip) in drm_fbdev_ttm_damage_blit() argument 144 struct drm_clip_rect *clip) in drm_fbdev_ttm_helper_fb_dirty() argument [all …]
|
| A D | drm_fbdev_dma.c | 113 struct drm_clip_rect *clip, in drm_fbdev_dma_damage_blit_real() argument 117 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 118 size_t len = clip->x2 - clip->x1; in drm_fbdev_dma_damage_blit_real() 124 offset += clip->x1 / 8; in drm_fbdev_dma_damage_blit_real() 128 offset += clip->x1 / 4; in drm_fbdev_dma_damage_blit_real() 132 offset += clip->x1 / 2; in drm_fbdev_dma_damage_blit_real() 136 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_dma_damage_blit_real() 144 for (y = clip->y1; y < clip->y2; y++) { in drm_fbdev_dma_damage_blit_real() 152 struct drm_clip_rect *clip) in drm_fbdev_dma_damage_blit() argument 172 struct drm_clip_rect *clip) in drm_fbdev_dma_helper_fb_dirty() argument [all …]
|
| A D | drm_panic.c | 156 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, fg_color); in drm_panic_blit_pixel() 223 offset = (y + clip->y1) * dpitch + (x + clip->x1) * cpp; in drm_panic_blit_page() 271 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_blit() 276 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit() 280 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit() 284 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit() 299 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, color); in drm_panic_fill_pixel() 310 for (y = clip->y1; y < clip->y2; y++) { in drm_panic_fill_page() 311 for (x = clip->x1; x < clip->x2; x++) { in drm_panic_fill_page() 349 clip, color); in drm_panic_fill() [all …]
|
| 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()
|
| 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()
|
| 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()
|
| A D | drm_fbdev_shmem.c | 108 struct drm_clip_rect *clip) in drm_fbdev_shmem_helper_fb_dirty() argument 114 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in drm_fbdev_shmem_helper_fb_dirty() 118 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in drm_fbdev_shmem_helper_fb_dirty()
|
| A D | drm_fb_helper.c | 375 clip_copy = *clip; in drm_fb_helper_fb_dirty() 376 clip->x1 = clip->y1 = ~0; in drm_fb_helper_fb_dirty() 377 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty() 392 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_fb_dirty() 393 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_fb_dirty() 394 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_fb_dirty() 395 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty() 619 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_add_damage_clip() 620 clip->y1 = min_t(u32, clip->y1, y); in drm_fb_helper_add_damage_clip() 621 clip->x2 = max_t(u32, clip->x2, x + width); in drm_fb_helper_add_damage_clip() [all …]
|
| /drivers/gpu/drm/tests/ |
| A D | drm_damage_helper_test.c | 123 struct drm_rect clip; in drm_test_damage_iter_no_damage() local 141 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src() local 162 struct drm_rect clip; in drm_test_damage_iter_no_damage_src_moved() local 181 struct drm_rect clip; in drm_test_damage_iter_no_damage_fractional_src_moved() local 201 struct drm_rect clip; in drm_test_damage_iter_no_damage_not_visible() local 219 struct drm_rect clip; in drm_test_damage_iter_no_damage_no_crtc() local 237 struct drm_rect clip; in drm_test_damage_iter_no_damage_no_fb() local 257 struct drm_rect clip; in drm_test_damage_iter_simple_damage() local 280 struct drm_rect clip; in drm_test_damage_iter_single_damage() local 302 struct drm_rect clip; in drm_test_damage_iter_single_damage_intersect_src() local [all …]
|
| A D | drm_format_helper_test.c | 106 struct drm_rect clip; member 657 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_gray8() 690 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb332() 723 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb565() 772 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_xrgb1555() 813 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_argb1555() 854 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgba5551() 895 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb888() 1252 struct drm_rect clip; member 1341 struct drm_rect clip; member [all …]
|
| 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() 44 drm_rect_init(&clip, 1, 1, 1, 1); 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() 73 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_not_clipped() 87 drm_rect_init(&clip, 0, 0, 2, 2); in drm_test_rect_clip_scaled_not_clipped() 101 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_clipped() local 107 drm_rect_init(&clip, 0, 0, 1, 1); in drm_test_rect_clip_scaled_clipped() 121 drm_rect_init(&clip, 1, 1, 1, 1); in drm_test_rect_clip_scaled_clipped() [all …]
|
| /drivers/gpu/drm/sitronix/ |
| A D | st7586.c | 68 struct drm_rect *clip, in st7586_xrgb8888_to_gray332() argument 71 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332() 82 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, clip, fmtcnv_state); in st7586_xrgb8888_to_gray332() 85 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332() 86 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332() 98 struct drm_rect *clip, struct drm_format_conv_state *fmtcnv_state) in st7586_buf_copy() argument 106 st7586_xrgb8888_to_gray332(dst, src->vaddr, fb, clip, fmtcnv_state); in st7586_buf_copy()
|
| /drivers/gpu/drm/msm/ |
| A D | msm_fbdev.c | 69 struct drm_clip_rect *clip) in msm_fbdev_fb_dirty() argument 75 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in msm_fbdev_fb_dirty() 79 ret = helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in msm_fbdev_fb_dirty()
|
| /drivers/gpu/drm/tiny/ |
| 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() 129 struct drm_rect clip, in sharp_memory_set_tx_buffer_data() argument 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() 212 struct drm_rect clip; in sharp_memory_fb_dirty() local 216 clip.x1 = 0; in sharp_memory_fb_dirty() 217 clip.x2 = fb->width; in sharp_memory_fb_dirty() 218 clip.y1 = rect->y1; in sharp_memory_fb_dirty() 219 clip.y2 = rect->y2; in sharp_memory_fb_dirty() [all …]
|
| /drivers/media/platform/mediatek/mdp3/ |
| 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
|
| A D | mdp_sm_mt8183.h | 46 u32 clip; member 67 u32 clip; member 81 u32 clip; member 99 u32 clip; member
|
| /drivers/gpu/drm/omapdrm/ |
| A D | omap_fbdev.c | 128 static int omap_fbdev_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in omap_fbdev_dirty() argument 130 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in omap_fbdev_dirty() 134 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in omap_fbdev_dirty()
|
| /drivers/gpu/drm/vmwgfx/ |
| 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() 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() 625 rect->bottom = clip->y2; in vmw_sou_surface_clip_rect() 1241 dirty.clip = vmw_sou_bo_clip; in vmw_kms_sou_do_bo_dirty() [all …]
|
| A D | vmwgfx_kms.c | 1598 dirty->clip(dirty); in vmw_kms_helper_dirty() 1734 struct drm_rect clip; in vmw_du_helper_plane_update() local 1819 uint32_t fb_x = clip.x1; in vmw_du_helper_plane_update() 1820 uint32_t fb_y = clip.y1; in vmw_du_helper_plane_update() 1822 vmw_du_translate_to_crtc(state, &clip); in vmw_du_helper_plane_update() 1823 if (update->clip) { in vmw_du_helper_plane_update() 1824 curr_size = update->clip(update, cmd_next, &clip, fb_x, in vmw_du_helper_plane_update() 1829 bb.x1 = min_t(int, bb.x1, clip.x1); in vmw_du_helper_plane_update() 1830 bb.y1 = min_t(int, bb.y1, clip.y1); in vmw_du_helper_plane_update() 1831 bb.x2 = max_t(int, bb.x2, clip.x2); in vmw_du_helper_plane_update() [all …]
|
| 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()
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_fbdev.c | 170 static int intelfb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in intelfb_dirty() argument 172 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in intelfb_dirty() 176 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in intelfb_dirty()
|
| /drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/ |
| 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()
|
| /drivers/gpu/drm/udl/ |
| 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()
|
| /drivers/gpu/drm/qxl/ |
| 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()
|