Lines Matching refs:encoder

124 	struct drm_encoder encoder;
129 container_of(x, struct sti_tvout_encoder, encoder)
505 seq_puts(s, "\n\n HDMI encoder: ");
517 seq_puts(s, "\n\n DVO encoder: ");
530 seq_puts(s, "\n\n HDA encoder: ");
585 static void sti_tvout_encoder_dpms(struct drm_encoder *encoder, int mode)
589 static void sti_tvout_encoder_mode_set(struct drm_encoder *encoder,
595 static void sti_tvout_encoder_destroy(struct drm_encoder *encoder)
597 struct sti_tvout_encoder *sti_encoder = to_sti_tvout_encoder(encoder);
599 drm_encoder_cleanup(encoder);
603 static int sti_tvout_late_register(struct drm_encoder *encoder)
605 struct sti_tvout *tvout = to_sti_tvout(encoder);
610 tvout_debugfs_init(tvout, encoder->dev->primary);
616 static void sti_tvout_early_unregister(struct drm_encoder *encoder)
618 struct sti_tvout *tvout = to_sti_tvout(encoder);
632 static void sti_dvo_encoder_enable(struct drm_encoder *encoder)
634 struct sti_tvout *tvout = to_sti_tvout(encoder);
636 tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode);
638 tvout_dvo_start(tvout, sti_crtc_is_main(encoder->crtc));
641 static void sti_dvo_encoder_disable(struct drm_encoder *encoder)
643 struct sti_tvout *tvout = to_sti_tvout(encoder);
660 struct sti_tvout_encoder *encoder;
663 encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL);
664 if (!encoder)
667 encoder->tvout = tvout;
669 drm_encoder = &encoder->encoder;
682 static void sti_hda_encoder_enable(struct drm_encoder *encoder)
684 struct sti_tvout *tvout = to_sti_tvout(encoder);
686 tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode);
688 tvout_hda_start(tvout, sti_crtc_is_main(encoder->crtc));
691 static void sti_hda_encoder_disable(struct drm_encoder *encoder)
693 struct sti_tvout *tvout = to_sti_tvout(encoder);
712 struct sti_tvout_encoder *encoder;
715 encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL);
716 if (!encoder)
719 encoder->tvout = tvout;
721 drm_encoder = &encoder->encoder;
733 static void sti_hdmi_encoder_enable(struct drm_encoder *encoder)
735 struct sti_tvout *tvout = to_sti_tvout(encoder);
737 tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode);
739 tvout_hdmi_start(tvout, sti_crtc_is_main(encoder->crtc));
742 static void sti_hdmi_encoder_disable(struct drm_encoder *encoder)
744 struct sti_tvout *tvout = to_sti_tvout(encoder);
760 struct sti_tvout_encoder *encoder;
763 encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL);
764 if (!encoder)
767 encoder->tvout = tvout;
769 drm_encoder = &encoder->encoder;