• Home
  • Raw
  • Download

Lines Matching refs:damage

316 	gdrm->damage.x1 = INT_MAX;  in gud_clear_damage()
317 gdrm->damage.y1 = INT_MAX; in gud_clear_damage()
318 gdrm->damage.x2 = 0; in gud_clear_damage()
319 gdrm->damage.y2 = 0; in gud_clear_damage()
322 static void gud_add_damage(struct gud_device *gdrm, struct drm_rect *damage) in gud_add_damage() argument
324 gdrm->damage.x1 = min(gdrm->damage.x1, damage->x1); in gud_add_damage()
325 gdrm->damage.y1 = min(gdrm->damage.y1, damage->y1); in gud_add_damage()
326 gdrm->damage.x2 = max(gdrm->damage.x2, damage->x2); in gud_add_damage()
327 gdrm->damage.y2 = max(gdrm->damage.y2, damage->y2); in gud_add_damage()
331 struct drm_rect *damage) in gud_retry_failed_flush() argument
344 gud_add_damage(gdrm, damage); in gud_retry_failed_flush()
358 struct drm_rect damage; in gud_flush_work() local
369 damage = gdrm->damage; in gud_flush_work()
381 pitch = drm_format_info_min_pitch(format, 0, drm_rect_width(&damage)); in gud_flush_work()
382 lines = drm_rect_height(&damage); in gud_flush_work()
387 for (i = 0; i < DIV_ROUND_UP(drm_rect_height(&damage), lines); i++) { in gud_flush_work()
388 struct drm_rect rect = damage; in gud_flush_work()
391 rect.y2 = min_t(u32, rect.y1 + lines, damage.y2); in gud_flush_work()
399 gud_retry_failed_flush(gdrm, fb, &damage); in gud_flush_work()
416 struct drm_rect *damage) in gud_fb_queue_damage() argument
428 gud_add_damage(gdrm, damage); in gud_fb_queue_damage()
562 struct drm_rect damage; in gud_pipe_update() local
588 if (drm_atomic_helper_damage_merged(old_state, state, &damage)) { in gud_pipe_update()
590 drm_rect_init(&damage, 0, 0, fb->width, fb->height); in gud_pipe_update()
591 gud_fb_queue_damage(gdrm, fb, &damage); in gud_pipe_update()