Lines Matching refs:clip
245 static int udl_aligned_damage_clip(struct drm_rect *clip, int x, int y, in udl_aligned_damage_clip() argument
259 clip->x1 = x1; in udl_aligned_damage_clip()
260 clip->y1 = y; in udl_aligned_damage_clip()
261 clip->x2 = x2; in udl_aligned_damage_clip()
262 clip->y2 = y + height; in udl_aligned_damage_clip()
275 struct drm_rect clip; in udl_handle_damage() local
283 ret = udl_aligned_damage_clip(&clip, x, y, width, height); in udl_handle_damage()
286 else if ((clip.x2 > fb->width) || (clip.y2 > fb->height)) in udl_handle_damage()
300 for (i = clip.y1; i < clip.y2; i++) { in udl_handle_damage()
302 const int byte_offset = line_offset + (clip.x1 << log_bpp); in udl_handle_damage()
303 const int dev_byte_offset = (fb->width * i + clip.x1) << log_bpp; in udl_handle_damage()
304 const int byte_width = (clip.x2 - clip.x1) << log_bpp; in udl_handle_damage()