Lines Matching refs:crtc

35 static void vbox_do_modeset(struct drm_crtc *crtc)  in vbox_do_modeset()  argument
37 struct drm_framebuffer *fb = crtc->primary->state->fb; in vbox_do_modeset()
38 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc); in vbox_do_modeset()
44 vbox = to_vbox_dev(crtc->dev); in vbox_do_modeset()
59 vbox_crtc->fb_offset / pitch < 0xffff - crtc->y && in vbox_do_modeset()
73 flags |= (fb && crtc->state->enable) ? 0 : VBVA_SCREEN_F_BLANK; in vbox_do_modeset()
82 static int vbox_set_view(struct drm_crtc *crtc) in vbox_set_view() argument
84 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc); in vbox_set_view()
85 struct vbox_private *vbox = to_vbox_dev(crtc->dev); in vbox_set_view()
177 static void vbox_crtc_set_base_and_mode(struct drm_crtc *crtc, in vbox_crtc_set_base_and_mode() argument
182 struct vbox_private *vbox = to_vbox_dev(crtc->dev); in vbox_crtc_set_base_and_mode()
183 struct vbox_crtc *vbox_crtc = to_vbox_crtc(crtc); in vbox_crtc_set_base_and_mode()
184 bool needs_modeset = drm_atomic_crtc_needs_modeset(crtc->state); in vbox_crtc_set_base_and_mode()
188 if (crtc->state->enable) { in vbox_crtc_set_base_and_mode()
189 vbox_crtc->width = crtc->state->mode.hdisplay; in vbox_crtc_set_base_and_mode()
190 vbox_crtc->height = crtc->state->mode.vdisplay; in vbox_crtc_set_base_and_mode()
203 if (crtci == crtc) in vbox_crtc_set_base_and_mode()
209 vbox_set_view(crtc); in vbox_crtc_set_base_and_mode()
210 vbox_do_modeset(crtc); in vbox_crtc_set_base_and_mode()
220 static void vbox_crtc_atomic_enable(struct drm_crtc *crtc, in vbox_crtc_atomic_enable() argument
225 static void vbox_crtc_atomic_disable(struct drm_crtc *crtc, in vbox_crtc_atomic_disable() argument
230 static void vbox_crtc_atomic_flush(struct drm_crtc *crtc, in vbox_crtc_atomic_flush() argument
241 static void vbox_crtc_destroy(struct drm_crtc *crtc) in vbox_crtc_destroy() argument
243 drm_crtc_cleanup(crtc); in vbox_crtc_destroy()
244 kfree(crtc); in vbox_crtc_destroy()
264 if (new_state->crtc) { in vbox_primary_atomic_check()
266 new_state->crtc); in vbox_primary_atomic_check()
282 struct drm_crtc *crtc = new_state->crtc; in vbox_primary_atomic_update() local
288 vbox_crtc_set_base_and_mode(crtc, fb, in vbox_primary_atomic_update()
304 unsigned int crtc_id = to_vbox_crtc(crtc)->crtc_id; in vbox_primary_atomic_update()
328 struct drm_crtc *crtc = old_state->crtc; in vbox_primary_atomic_disable() local
331 vbox_crtc_set_base_and_mode(crtc, old_state->fb, in vbox_primary_atomic_disable()
346 if (new_state->crtc) { in vbox_cursor_atomic_check()
348 new_state->crtc); in vbox_cursor_atomic_check()
397 struct vbox_crtc *vbox_crtc = to_vbox_crtc(new_state->crtc); in vbox_cursor_atomic_update()
446 struct vbox_crtc *vbox_crtc = to_vbox_crtc(old_state->crtc); in vbox_cursor_atomic_disable()