Lines Matching refs:dst
68 bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst, in drm_rect_clip_scaled() argument
74 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
79 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
84 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
89 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
95 return drm_rect_intersect(dst, clip); in drm_rect_clip_scaled()
99 static int drm_calc_scale(int src, int dst) in drm_calc_scale() argument
103 if (src < 0 || dst < 0) in drm_calc_scale()
106 if (dst == 0) in drm_calc_scale()
109 scale = src / dst; in drm_calc_scale()
128 const struct drm_rect *dst, in drm_rect_calc_hscale() argument
132 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale()
159 const struct drm_rect *dst, in drm_rect_calc_vscale() argument
163 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale()
196 struct drm_rect *dst, in drm_rect_calc_hscale_relaxed() argument
200 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale_relaxed()
209 drm_rect_adjust_size(dst, max_dst_w - dst_w, 0); in drm_rect_calc_hscale_relaxed()
246 struct drm_rect *dst, in drm_rect_calc_vscale_relaxed() argument
250 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale_relaxed()
259 drm_rect_adjust_size(dst, 0, max_dst_h - dst_h); in drm_rect_calc_vscale_relaxed()