Lines Matching refs:encoder
126 struct drm_encoder encoder; member
131 container_of(x, struct sti_tvout_encoder, encoder)
439 static void sti_tvout_encoder_dpms(struct drm_encoder *encoder, int mode) in sti_tvout_encoder_dpms() argument
443 static bool sti_tvout_encoder_mode_fixup(struct drm_encoder *encoder, in sti_tvout_encoder_mode_fixup() argument
450 static void sti_tvout_encoder_mode_set(struct drm_encoder *encoder, in sti_tvout_encoder_mode_set() argument
456 static void sti_tvout_encoder_prepare(struct drm_encoder *encoder) in sti_tvout_encoder_prepare() argument
460 static void sti_tvout_encoder_destroy(struct drm_encoder *encoder) in sti_tvout_encoder_destroy() argument
462 struct sti_tvout_encoder *sti_encoder = to_sti_tvout_encoder(encoder); in sti_tvout_encoder_destroy()
464 drm_encoder_cleanup(encoder); in sti_tvout_encoder_destroy()
472 static void sti_dvo_encoder_commit(struct drm_encoder *encoder) in sti_dvo_encoder_commit() argument
474 struct sti_tvout *tvout = to_sti_tvout(encoder); in sti_dvo_encoder_commit()
476 tvout_dvo_start(tvout, sti_drm_crtc_is_main(encoder->crtc)); in sti_dvo_encoder_commit()
479 static void sti_dvo_encoder_disable(struct drm_encoder *encoder) in sti_dvo_encoder_disable() argument
481 struct sti_tvout *tvout = to_sti_tvout(encoder); in sti_dvo_encoder_disable()
500 struct sti_tvout_encoder *encoder; in sti_tvout_create_dvo_encoder() local
503 encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL); in sti_tvout_create_dvo_encoder()
504 if (!encoder) in sti_tvout_create_dvo_encoder()
507 encoder->tvout = tvout; in sti_tvout_create_dvo_encoder()
509 drm_encoder = (struct drm_encoder *)encoder; in sti_tvout_create_dvo_encoder()
522 static void sti_hda_encoder_commit(struct drm_encoder *encoder) in sti_hda_encoder_commit() argument
524 struct sti_tvout *tvout = to_sti_tvout(encoder); in sti_hda_encoder_commit()
526 tvout_hda_start(tvout, sti_drm_crtc_is_main(encoder->crtc)); in sti_hda_encoder_commit()
529 static void sti_hda_encoder_disable(struct drm_encoder *encoder) in sti_hda_encoder_disable() argument
531 struct sti_tvout *tvout = to_sti_tvout(encoder); in sti_hda_encoder_disable()
552 struct sti_tvout_encoder *encoder; in sti_tvout_create_hda_encoder() local
555 encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL); in sti_tvout_create_hda_encoder()
556 if (!encoder) in sti_tvout_create_hda_encoder()
559 encoder->tvout = tvout; in sti_tvout_create_hda_encoder()
561 drm_encoder = (struct drm_encoder *) encoder; in sti_tvout_create_hda_encoder()
574 static void sti_hdmi_encoder_commit(struct drm_encoder *encoder) in sti_hdmi_encoder_commit() argument
576 struct sti_tvout *tvout = to_sti_tvout(encoder); in sti_hdmi_encoder_commit()
578 tvout_hdmi_start(tvout, sti_drm_crtc_is_main(encoder->crtc)); in sti_hdmi_encoder_commit()
581 static void sti_hdmi_encoder_disable(struct drm_encoder *encoder) in sti_hdmi_encoder_disable() argument
583 struct sti_tvout *tvout = to_sti_tvout(encoder); in sti_hdmi_encoder_disable()
601 struct sti_tvout_encoder *encoder; in sti_tvout_create_hdmi_encoder() local
604 encoder = devm_kzalloc(tvout->dev, sizeof(*encoder), GFP_KERNEL); in sti_tvout_create_hdmi_encoder()
605 if (!encoder) in sti_tvout_create_hdmi_encoder()
608 encoder->tvout = tvout; in sti_tvout_create_hdmi_encoder()
610 drm_encoder = (struct drm_encoder *) encoder; in sti_tvout_create_hdmi_encoder()