Home
last modified time | relevance | path

Searched full:clip (Results 1 – 25 of 178) sorted by relevance

12345678

/linux/drivers/gpu/drm/tests/
H A Ddrm_damage_helper_test.c111 KUNIT_FAIL(test, "Cannot have damage clip with no dimension."); in check_damage_clip()
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()
[all …]
H A Ddrm_format_helper_test.c106 struct drm_rect clip; member
129 .clip = DRM_RECT_INIT(0, 0, 1, 1),
196 .clip = DRM_RECT_INIT(1, 1, 1, 1),
266 * make sure it is ignored. Partial clip area.
270 .clip = DRM_RECT_INIT(1, 1, 2, 4),
421 /* Randomly picked colors. Full buffer within the clip area. */
424 .clip = DRM_RECT_INIT(0, 0, 3, 3),
569 * @clip: Clip rectangle area to convert
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()
[all …]
H A Ddrm_rect_test.c27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
32 * width/height is zero and dst and clip do not intersect. in drm_test_rect_clip_scaled_div_by_zero()
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()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_fbdev_ttm.c68 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 Ddrm_fbdev_dma.c110 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 Ddrm_rect.c55 static u32 clip_scaled(int src, int dst, int *clip) in clip_scaled() argument
62 /* Only clip what we have. Keeps the result bounded. */ in clip_scaled()
63 *clip = min(*clip, dst); in clip_scaled()
65 tmp = mul_u32_u32(src, dst - *clip); in clip_scaled()
78 * drm_rect_clip_scaled - perform a scaled clip operation
81 * @clip: clip rectangle
83 * Clip rectangle @dst by rectangle @clip. Clip rectangle @src by
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()
[all …]
H A Ddrm_fbdev_shmem.c107 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 Ddrm_fb_helper.c230 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()
256 * Restore damage clip rectangle on errors. The next run 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
[all …]
H A Ddrm_damage_helper.c96 * @num_clips: Count of clip in clips.
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()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_kms.h65 * @pre_clip: Populate fifo before clip.
67 * This is where pre clip related command should be populated like
78 * @clip: Populate fifo for clip.
82 * which is one if doing full update. @clip is the damage in destination
83 * coordinates which is crtc/DU and @src_x, @src_y is damage clip src in
90 uint32_t (*clip)(struct vmw_du_update_plane *update, void *cmd, member
91 struct drm_rect *clip, uint32_t src_x, uint32_t src_y);
94 * @post_clip: Populate fifo after clip.
141 * all clip rects. This function must commit the fifo space reserved by the
143 * @clip: Callback that is called for each cliprect on each display unit.
[all …]
H A Dvmwgfx_scrn.c54 * @dst_x: Difference between source clip rects and framebuffer coordinates.
55 * @dst_y: Difference between source clip rects and framebuffer coordinates.
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()
[all …]
H A Dvmwgfx_kms.c452 * @vclips: Array of clip rects.
453 * @num_clips: Number of clip rects in @vclips.
1498 * @dest_x: X coordinate offset for the crtc / destination clip rects.
1499 * @dest_y: Y coordinate offset for the crtc / destination clip rects.
1501 * @increment: Integer with which to increment the clip counter when looping.
1502 * Used to skip a predetermined number of clip rects.
1559 * Select clip array type. Note that integer type in vmw_kms_helper_dirty()
1582 /* Skip this clip if it's outside the crtc region */ in vmw_kms_helper_dirty()
1588 /* Clip right and bottom to crtc limits */ in vmw_kms_helper_dirty()
1594 /* Clip left and top to crtc limits */ in vmw_kms_helper_dirty()
[all …]
H A Dvmwgfx_stdu.c541 * @clips: Array of clip rects. Either @clips or @vclips must be NULL.
542 * @vclips: Alternate array of clip rects. Either @clips or @vclips must
544 * @num_clips: Number of clip rects in @clips or @vclips.
596 ddirty.base.clip = vmw_stdu_bo_cpu_clip; in vmw_kms_stdu_readback()
705 * @clips: Array of clip rects. Either @clips or @vclips must be NULL.
706 * @vclips: Alternate array of clip rects. Either @clips or @vclips must
712 * @num_clips: Number of clip rects in @clips.
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()
[all …]
H A Dvmwgfx_ioctl.c201 DRM_ERROR("Failed to allocate clip rect list.\n"); in vmw_present_ioctl()
208 DRM_ERROR("Failed to copy clip rects from userspace.\n"); in vmw_present_ioctl()
278 DRM_ERROR("Failed to allocate clip rect list.\n"); in vmw_present_readback_ioctl()
285 DRM_ERROR("Failed to copy clip rects from userspace.\n"); in vmw_present_readback_ioctl()
/linux/drivers/gpu/drm/sitronix/
H A Dst7586.c69 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()
121 /* 3 pixels per byte, so grow clip to nearest multiple of 3 */ in st7586_fb_dirty()
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmdp_sm_mt8195.h46 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 Dmdp_sm_mt8183.h46 u32 clip; member
67 u32 clip; member
81 u32 clip; member
99 u32 clip; member
/linux/drivers/gpu/drm/msm/
H A Dmsm_fbdev.c67 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 Dsharp-memory.c120 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/gpu/drm/qxl/
H A Dqxl_draw.c100 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
122 * Right now implementing with a single draw and a clip list. Clip
169 /* skip the first clip rect */ in qxl_draw_dirty_fb()
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/drivers/gpu/drm/omapdrm/
H A Domap_fbdev.c127 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/sound/soc/codecs/
H A Dmax98373.c270 SOC_SINGLE("BDE Clip Mode Switch", MAX98373_R2092_BDE_CLIPPER_MODE, 0, 1, 0),
275 SOC_SINGLE_TLV("BDE LVL1 Clip Thresh Volume", MAX98373_R20A9_BDE_L1_CFG_2,
277 SOC_SINGLE_TLV("BDE LVL2 Clip Thresh Volume", MAX98373_R20AC_BDE_L2_CFG_2,
279 SOC_SINGLE_TLV("BDE LVL3 Clip Thresh Volume", MAX98373_R20AF_BDE_L3_CFG_2,
281 SOC_SINGLE_TLV("BDE LVL4 Clip Thresh Volume", MAX98373_R20B2_BDE_L4_CFG_2,
283 SOC_SINGLE_TLV("BDE LVL1 Clip Reduction Volume", MAX98373_R20AA_BDE_L1_CFG_3,
285 SOC_SINGLE_TLV("BDE LVL2 Clip Reduction Volume", MAX98373_R20AD_BDE_L2_CFG_3,
287 SOC_SINGLE_TLV("BDE LVL3 Clip Reduction Volume", MAX98373_R20B0_BDE_L3_CFG_3,
289 SOC_SINGLE_TLV("BDE LVL4 Clip Reduction Volume", MAX98373_R20B3_BDE_L4_CFG_3,
/linux/Documentation/userspace-api/media/v4l/
H A Ddev-overlay.rst106 4. The framebuffer has an alpha channel that can be used to clip or
204 clip lists are not supported the driver ignores this field. Its
211 contain the number of clipping rectangles in the list. When clip
213 after calling :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` are undefined. When clip lists are
239 Applications need not create a clip list or bit mask. When they pass
321 regions need to be refreshed. The driver should clip out more pixels
327 ``height = y2 - y1``, so one cannot pass X11 clip lists directly.
/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_n.h26 #define B43_NPHY_C1_BCLIPBKOFF B43_PHY_N(0x01A) /* Core 1 barely clip backoff */
27 #define B43_NPHY_C1_CCK_BCLIPBKOFF B43_PHY_N(0x01B) /* Core 1 CCK barely clip backoff */
31 #define B43_NPHY_C1_CGAINI_CLIPGBKOFF 0x03E0 /* Clip gain backoff */
35 #define B43_NPHY_C1_CGAINI_CL2DETECT 0x2000 /* Clip 2 detect mask */
38 #define B43_NPHY_C1_CCK_CGAINI_CLIPGBKOFF 0x01E0 /* CCK barely clip gain backoff */
70 #define B43_NPHY_C1_CLIPWBTHRES B43_PHY_N(0x027) /* Core 1 clip wideband threshold */
71 #define B43_NPHY_C1_CLIPWBTHRES_CLIP2 0x003F /* Clip 2 */
73 #define B43_NPHY_C1_CLIPWBTHRES_CLIP1 0x0FC0 /* Clip 1 */
78 #define B43_NPHY_C1_NBCLIPTHRES B43_PHY_N(0x02B) /* Core 1 NB clip threshold */
84 #define B43_NPHY_C2_BCLIPBKOFF B43_PHY_N(0x030) /* Core 2 barely clip backoff */
[all …]
/linux/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr_1.0/
H A Dia_css_bnr.host.c31 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()

12345678