Lines Matching full:damage
330 gdrm->damage.x1 = INT_MAX; in gud_clear_damage()
331 gdrm->damage.y1 = INT_MAX; in gud_clear_damage()
332 gdrm->damage.x2 = 0; in gud_clear_damage()
333 gdrm->damage.y2 = 0; in gud_clear_damage()
336 static void gud_add_damage(struct gud_device *gdrm, struct drm_rect *damage) in gud_add_damage() argument
338 gdrm->damage.x1 = min(gdrm->damage.x1, damage->x1); in gud_add_damage()
339 gdrm->damage.y1 = min(gdrm->damage.y1, damage->y1); in gud_add_damage()
340 gdrm->damage.x2 = max(gdrm->damage.x2, damage->x2); in gud_add_damage()
341 gdrm->damage.y2 = max(gdrm->damage.y2, damage->y2); in gud_add_damage()
345 struct drm_rect *damage) in gud_retry_failed_flush() argument
350 * add back the damage. in gud_retry_failed_flush()
358 gud_add_damage(gdrm, damage); in gud_retry_failed_flush()
372 struct drm_rect damage; in gud_flush_work() local
383 damage = gdrm->damage; in gud_flush_work()
395 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(&damage)); in gud_flush_work()
396 lines = drm_rect_height(&damage); in gud_flush_work()
401 for (i = 0; i < DIV_ROUND_UP(drm_rect_height(&damage), lines); i++) { in gud_flush_work()
402 struct drm_rect rect = damage; in gud_flush_work()
405 rect.y2 = min_t(u32, rect.y1 + lines, damage.y2); in gud_flush_work()
413 gud_retry_failed_flush(gdrm, fb, &damage); in gud_flush_work()
430 struct drm_rect *damage) in gud_fb_queue_damage() argument
442 gud_add_damage(gdrm, damage); in gud_fb_queue_damage()
576 struct drm_rect damage; in gud_pipe_update() local
602 if (drm_atomic_helper_damage_merged(old_state, state, &damage)) { in gud_pipe_update()
604 drm_rect_init(&damage, 0, 0, fb->width, fb->height); in gud_pipe_update()
605 gud_fb_queue_damage(gdrm, fb, &damage); in gud_pipe_update()