Lines Matching refs:diff
95 int diff; in drm_rect_clip_scaled() local
97 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled()
98 if (diff > 0) { in drm_rect_clip_scaled()
100 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
103 dst->x1 += diff; in drm_rect_clip_scaled()
105 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
106 if (diff > 0) { in drm_rect_clip_scaled()
108 drm_rect_height(dst), &diff); in drm_rect_clip_scaled()
111 dst->y1 += diff; in drm_rect_clip_scaled()
113 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
114 if (diff > 0) { in drm_rect_clip_scaled()
116 drm_rect_width(dst), &diff); in drm_rect_clip_scaled()
119 dst->x2 -= diff; in drm_rect_clip_scaled()
121 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
122 if (diff > 0) { in drm_rect_clip_scaled()
124 drm_rect_height(dst), &diff); in drm_rect_clip_scaled()
127 dst->y2 -= diff; in drm_rect_clip_scaled()