Lines Matching refs:clip
247 static int udl_aligned_damage_clip(struct drm_rect *clip, int x, int y, in udl_aligned_damage_clip() argument
261 clip->x1 = x1; in udl_aligned_damage_clip()
262 clip->y1 = y; in udl_aligned_damage_clip()
263 clip->x2 = x2; in udl_aligned_damage_clip()
264 clip->y2 = y + height; in udl_aligned_damage_clip()
277 struct drm_rect clip; in udl_handle_damage() local
286 ret = udl_aligned_damage_clip(&clip, x, y, width, height); in udl_handle_damage()
289 else if ((clip.x2 > fb->width) || (clip.y2 > fb->height)) in udl_handle_damage()
312 for (i = clip.y1; i < clip.y2; i++) { in udl_handle_damage()
314 const int byte_offset = line_offset + (clip.x1 << log_bpp); in udl_handle_damage()
315 const int dev_byte_offset = (fb->width * i + clip.x1) << log_bpp; in udl_handle_damage()
316 const int byte_width = (clip.x2 - clip.x1) << log_bpp; in udl_handle_damage()