Lines Matching refs:rect
115 static void st7586_fb_dirty(struct drm_framebuffer *fb, struct drm_rect *rect) in st7586_fb_dirty() argument
128 rect->x1 = rounddown(rect->x1, 3); in st7586_fb_dirty()
129 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
131 DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); in st7586_fb_dirty()
133 ret = st7586_buf_copy(dbidev->tx_buf, fb, rect); in st7586_fb_dirty()
138 start = rect->x1 / 3; in st7586_fb_dirty()
139 end = rect->x2 / 3; in st7586_fb_dirty()
145 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty()
146 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty()
150 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty()
163 struct drm_rect rect; in st7586_pipe_update() local
165 if (drm_atomic_helper_damage_merged(old_state, state, &rect)) in st7586_pipe_update()
166 st7586_fb_dirty(state->fb, &rect); in st7586_pipe_update()
183 struct drm_rect rect = { in st7586_pipe_enable() local
249 st7586_fb_dirty(fb, &rect); in st7586_pipe_enable()