Lines Matching refs:mixer

25 	struct sti_mixer *mixer = to_sti_mixer(crtc);  in sti_crtc_enable()  local
26 struct device *dev = mixer->dev; in sti_crtc_enable()
31 mixer->status = STI_MIXER_READY; in sti_crtc_enable()
34 if (mixer->id == STI_MIXER_MAIN) { in sti_crtc_enable()
47 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_disabling() local
51 mixer->status = STI_MIXER_DISABLING; in sti_crtc_disabling()
65 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_mode_set() local
66 struct device *dev = mixer->dev; in sti_crtc_mode_set()
73 crtc->base.id, sti_mixer_to_str(mixer), in sti_crtc_mode_set()
86 if (mixer->id == STI_MIXER_MAIN) in sti_crtc_mode_set()
101 sti_vtg_set_config(mixer->id == STI_MIXER_MAIN ? in sti_crtc_mode_set()
104 res = sti_mixer_active_video_area(mixer, &crtc->mode); in sti_crtc_mode_set()
115 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_disable() local
116 struct device *dev = mixer->dev; in sti_crtc_disable()
119 DRM_DEBUG_KMS("CRTC:%d (%s)\n", crtc->base.id, sti_mixer_to_str(mixer)); in sti_crtc_disable()
122 sti_mixer_set_background_status(mixer, false); in sti_crtc_disable()
127 if (mixer->id == STI_MIXER_MAIN) { in sti_crtc_disable()
135 mixer->status = STI_MIXER_DISABLED; in sti_crtc_disable()
148 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_atomic_begin() local
155 mixer->pending_event = crtc->state->event; in sti_crtc_atomic_begin()
164 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_atomic_flush() local
165 struct sti_compositor *compo = dev_get_drvdata(mixer->dev); in sti_crtc_atomic_flush()
180 if (sti_mixer_set_plane_depth(mixer, plane)) { in sti_crtc_atomic_flush()
186 if (sti_mixer_set_plane_status(mixer, plane, true)) { in sti_crtc_atomic_flush()
204 if (sti_mixer_set_plane_status(mixer, plane, false)) { in sti_crtc_atomic_flush()
260 struct sti_mixer *mixer; in sti_crtc_vblank_cb() local
267 mixer = compo->mixer[pipe]; in sti_crtc_vblank_cb()
278 if (mixer->pending_event) { in sti_crtc_vblank_cb()
279 drm_crtc_send_vblank_event(crtc, mixer->pending_event); in sti_crtc_vblank_cb()
281 mixer->pending_event = NULL; in sti_crtc_vblank_cb()
285 if (mixer->status == STI_MIXER_DISABLING) { in sti_crtc_vblank_cb()
309 struct drm_crtc *crtc = &compo->mixer[pipe]->drm_crtc; in sti_crtc_enable_vblank()
328 struct drm_crtc *crtc = &compo->mixer[pipe]->drm_crtc; in sti_crtc_disable_vblank()
337 if (compo->mixer[pipe]->pending_event) { in sti_crtc_disable_vblank()
339 compo->mixer[pipe]->pending_event = NULL; in sti_crtc_disable_vblank()
355 struct sti_mixer *mixer = to_sti_mixer(crtc); in sti_crtc_is_main() local
357 if (mixer->id == STI_MIXER_MAIN) in sti_crtc_is_main()
363 int sti_crtc_init(struct drm_device *drm_dev, struct sti_mixer *mixer, in sti_crtc_init() argument
366 struct drm_crtc *crtc = &mixer->drm_crtc; in sti_crtc_init()
379 crtc->base.id, sti_mixer_to_str(mixer)); in sti_crtc_init()