Lines Matching refs:diff
94 int diff; in drm_rect_clip_scaled() local
96 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
97 if (diff > 0) { in drm_rect_clip_scaled()
99 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
102 dst->x1 += diff; in drm_rect_clip_scaled()
104 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
105 if (diff > 0) { in drm_rect_clip_scaled()
107 drm_rect_height(dst), &diff); in drm_rect_clip_scaled()
110 dst->y1 += diff; in drm_rect_clip_scaled()
112 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
113 if (diff > 0) { in drm_rect_clip_scaled()
115 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
118 dst->x2 -= diff; in drm_rect_clip_scaled()
120 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
121 if (diff > 0) { in drm_rect_clip_scaled()
123 drm_rect_height(dst), &diff); in drm_rect_clip_scaled()
126 dst->y2 -= diff; in drm_rect_clip_scaled()