Home | History | Annotate | Download | only in drm

Lines Matching refs:clip

61 static u32 clip_scaled(int src, int dst, int *clip)
68 /* Only clip what we have. Keeps the result bounded. */
69 *clip = min(*clip, dst);
71 tmp = mul_u32_u32(src, dst - *clip);
84 * drm_rect_clip_scaled - perform a scaled clip operation
87 * @clip: clip rectangle
89 * Clip rectangle @dst by rectangle @clip. Clip rectangle @src by the
99 const struct drm_rect *clip)
103 diff = clip->x1 - dst->x1;
111 diff = clip->y1 - dst->y1;
119 diff = dst->x2 - clip->x2;
127 diff = dst->y2 - clip->y2;