Lines Matching defs:dst
52 * @dst: destination window rectangle
57 * Clip rectangle @dst by rectangle @clip. Clip rectangle @src by the
61 * %true if rectangle @dst is still visible after being clipped,
64 int drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst,
70 diff = clip->x1 - dst->x1;
75 diff = clip->y1 - dst->y1;
80 diff = dst->x2 - clip->x2;
85 diff = dst->y2 - clip->y2;
91 return drm_rect_intersect(dst, clip);
94 static int drm_calc_scale(int src, int dst)
98 if (src < 0 || dst < 0)
101 if (dst == 0)
104 scale = src / dst;
112 * @dst: destination window rectangle
117 * (@src width) / (@dst width).
123 const struct drm_rect *dst,
127 int dst_w = drm_rect_width(dst);
142 * @dst: destination window rectangle
147 * (@src height) / (@dst height).
153 const struct drm_rect *dst,
157 int dst_h = drm_rect_height(dst);
172 * @dst: destination window rectangle
177 * (@src width) / (@dst width).
180 * decrease the height of rectangle @dst to compensate.
189 struct drm_rect *dst,
193 int dst_w = drm_rect_width(dst);
202 drm_rect_adjust_size(dst, max_dst_w - dst_w, 0);
221 * @dst: destination window rectangle
226 * (@src height) / (@dst height).
229 * decrease the height of rectangle @dst to compensate.
238 struct drm_rect *dst,
242 int dst_h = drm_rect_height(dst);
251 drm_rect_adjust_size(dst, 0, max_dst_h - dst_h);