| /linux-6.15/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 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 …]
|
| H 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() 777 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_xrgb1555() 824 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_argb1555() 871 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgba5551() 918 ¶ms->clip, 0); in drm_test_fb_xrgb8888_to_rgb888() 1324 struct drm_rect clip; member 1554 struct drm_rect clip; member [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() 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 …]
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_format_helper.c | 116 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset() 129 const struct drm_rect *clip) in drm_fb_clip_offset() argument 143 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm() 185 unsigned long lines = drm_rect_height(clip); in __drm_fb_xfrm_toio() 267 const struct drm_rect *clip) in drm_fb_memcpy() argument 345 const struct drm_rect *clip, bool cached, in drm_fb_swab() argument 825 const struct drm_rect *clip, in drm_fb_xrgb8888_to_abgr8888() argument 856 const struct drm_rect *clip, in drm_fb_xrgb8888_to_xbgr8888() argument 909 const struct drm_rect *clip, in drm_fb_xrgb8888_to_xrgb2101010() argument 964 const struct drm_rect *clip, in drm_fb_xrgb8888_to_argb2101010() argument [all …]
|
| H A D | drm_fbdev_ttm.c | 69 struct drm_clip_rect *clip, in drm_fbdev_ttm_damage_blit_real() argument 73 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_ttm_damage_blit_real() 74 size_t len = clip->x2 - clip->x1; in drm_fbdev_ttm_damage_blit_real() 80 offset += clip->x1 / 8; in drm_fbdev_ttm_damage_blit_real() 84 offset += clip->x1 / 4; in drm_fbdev_ttm_damage_blit_real() 88 offset += clip->x1 / 2; in drm_fbdev_ttm_damage_blit_real() 92 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_ttm_damage_blit_real() 100 for (y = clip->y1; y < clip->y2; y++) { in drm_fbdev_ttm_damage_blit_real() 108 struct drm_clip_rect *clip) in drm_fbdev_ttm_damage_blit() argument 143 struct drm_clip_rect *clip) in drm_fbdev_ttm_helper_fb_dirty() argument [all …]
|
| H A D | drm_fbdev_dma.c | 112 struct drm_clip_rect *clip, in drm_fbdev_dma_damage_blit_real() argument 116 size_t offset = clip->y1 * fb->pitches[0]; in drm_fbdev_dma_damage_blit_real() 117 size_t len = clip->x2 - clip->x1; in drm_fbdev_dma_damage_blit_real() 123 offset += clip->x1 / 8; in drm_fbdev_dma_damage_blit_real() 127 offset += clip->x1 / 4; in drm_fbdev_dma_damage_blit_real() 131 offset += clip->x1 / 2; in drm_fbdev_dma_damage_blit_real() 135 offset += clip->x1 * fb->format->cpp[0]; in drm_fbdev_dma_damage_blit_real() 143 for (y = clip->y1; y < clip->y2; y++) { in drm_fbdev_dma_damage_blit_real() 151 struct drm_clip_rect *clip) in drm_fbdev_dma_damage_blit() argument 171 struct drm_clip_rect *clip) in drm_fbdev_dma_helper_fb_dirty() argument [all …]
|
| H A D | drm_panic.c | 154 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, fg_color); in drm_panic_blit_pixel() 181 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_blit() 186 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit() 190 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit() 194 drm_rect_height(clip), drm_rect_width(clip), scale, fg_color); in drm_panic_blit() 202 struct drm_rect *clip, in drm_panic_fill_pixel() argument 209 sb->set_pixel(sb, clip->x1 + x, clip->y1 + y, color); in drm_panic_fill_pixel() 229 iosys_map_incr(&map, clip->y1 * sb->pitch[0] + clip->x1 * sb->format->cpp[0]); in drm_panic_fill() 234 drm_rect_width(clip), color); in drm_panic_fill() 267 struct drm_rect *clip, in draw_txt_rectangle() argument [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_fb_dma_helper.c | 129 struct drm_rect clip; in drm_fb_dma_sync_non_coherent() local 141 drm_atomic_for_each_plane_damage(&iter, &clip) { in drm_fb_dma_sync_non_coherent() 143 offset = clip.y1 * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent() 145 nb_bytes = (clip.y2 - clip.y1) * state->fb->pitches[i]; in drm_fb_dma_sync_non_coherent()
|
| 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_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 | 374 clip_copy = *clip; in drm_fb_helper_fb_dirty() 375 clip->x1 = clip->y1 = ~0; in drm_fb_helper_fb_dirty() 376 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty() 391 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_fb_dirty() 392 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_fb_dirty() 393 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_fb_dirty() 394 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty() 618 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_add_damage_clip() 619 clip->y1 = min_t(u32, clip->y1, y); in drm_fb_helper_add_damage_clip() 620 clip->x2 = max_t(u32, clip->x2, x + width); in drm_fb_helper_add_damage_clip() [all …]
|
| /linux-6.15/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, 89 const struct drm_rect *clip, struct drm_format_conv_state *state); 92 const struct drm_rect *clip, struct drm_format_conv_state *state); 95 const struct drm_rect *clip, struct drm_format_conv_state *state); 104 const struct drm_rect *clip, struct drm_format_conv_state *state); 107 const struct drm_rect *clip, 111 const struct drm_rect *clip, 118 const struct drm_rect *clip, struct drm_format_conv_state *state); [all …]
|
| /linux-6.15/drivers/gpu/drm/tiny/ |
| H 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()
|
| 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() 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 …]
|
| /linux-6.15/drivers/gpu/drm/msm/ |
| H 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()
|
| /linux-6.15/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-6.15/drivers/gpu/drm/omapdrm/ |
| H 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()
|
| /linux-6.15/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-6.15/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() 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 …]
|
| /linux-6.15/drivers/gpu/drm/i915/display/ |
| H A D | intel_fbdev.c | 169 static int intelfb_dirty(struct drm_fb_helper *helper, struct drm_clip_rect *clip) in intelfb_dirty() argument 171 if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) in intelfb_dirty() 175 return helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, clip, 1); in intelfb_dirty()
|
| /linux-6.15/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()
|
| /linux-6.15/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()
|
| /linux-6.15/Documentation/devicetree/bindings/input/ |
| H A D | syna,rmi4.yaml | 104 syna,clip-x-low: 109 syna,clip-y-low: 114 syna,clip-x-high: 119 syna,clip-y-high:
|