Lines Matching refs:clip

376 					   struct drm_clip_rect *clip,  in drm_fb_helper_damage_blit_real()  argument
380 size_t offset = clip->y1 * fb->pitches[0]; in drm_fb_helper_damage_blit_real()
381 size_t len = clip->x2 - clip->x1; in drm_fb_helper_damage_blit_real()
387 offset += clip->x1 / 8; in drm_fb_helper_damage_blit_real()
388 len = DIV_ROUND_UP(len + clip->x1 % 8, 8); in drm_fb_helper_damage_blit_real()
391 offset += clip->x1 / 4; in drm_fb_helper_damage_blit_real()
392 len = DIV_ROUND_UP(len + clip->x1 % 4, 4); in drm_fb_helper_damage_blit_real()
395 offset += clip->x1 / 2; in drm_fb_helper_damage_blit_real()
396 len = DIV_ROUND_UP(len + clip->x1 % 2, 2); in drm_fb_helper_damage_blit_real()
399 offset += clip->x1 * fb->format->cpp[0]; in drm_fb_helper_damage_blit_real()
407 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_helper_damage_blit_real()
415 struct drm_clip_rect *clip) in drm_fb_helper_damage_blit() argument
439 drm_fb_helper_damage_blit_real(fb_helper, clip, &dst); in drm_fb_helper_damage_blit()
454 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_damage_work() local
460 clip_copy = *clip; in drm_fb_helper_damage_work()
461 clip->x1 = clip->y1 = ~0; in drm_fb_helper_damage_work()
462 clip->x2 = clip->y2 = 0; in drm_fb_helper_damage_work()
489 clip->x1 = min_t(u32, clip->x1, clip_copy.x1); in drm_fb_helper_damage_work()
490 clip->y1 = min_t(u32, clip->y1, clip_copy.y1); in drm_fb_helper_damage_work()
491 clip->x2 = max_t(u32, clip->x2, clip_copy.x2); in drm_fb_helper_damage_work()
492 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_damage_work()
687 struct drm_clip_rect *clip = &helper->damage_clip; in drm_fb_helper_damage() local
694 clip->x1 = min_t(u32, clip->x1, x); in drm_fb_helper_damage()
695 clip->y1 = min_t(u32, clip->y1, y); in drm_fb_helper_damage()
696 clip->x2 = max_t(u32, clip->x2, x + width); in drm_fb_helper_damage()
697 clip->y2 = max_t(u32, clip->y2, y + height); in drm_fb_helper_damage()
709 struct drm_rect *clip) in drm_fb_helper_memory_range_to_clip() argument
729 drm_rect_init(clip, x1, y1, x2 - x1, y2 - y1); in drm_fb_helper_memory_range_to_clip()