Lines Matching defs:encoder
172 struct drm_encoder encoder;
272 drm_encoder_to_sun4i_tv(struct drm_encoder *encoder)
274 return container_of(encoder, struct sun4i_tv,
275 encoder);
342 static void sun4i_tv_disable(struct drm_encoder *encoder)
344 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder);
345 struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
356 static void sun4i_tv_enable(struct drm_encoder *encoder)
358 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder);
359 struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
370 static void sun4i_tv_mode_set(struct drm_encoder *encoder,
374 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder);
531 .name = "tv-encoder",
554 dev_err(dev, "Couldn't map the TV encoder registers\n");
561 dev_err(dev, "Couldn't create the TV encoder regmap\n");
579 dev_err(dev, "Couldn't get the TV encoder clock\n");
585 drm_encoder_helper_add(&tv->encoder,
587 ret = drm_simple_encoder_init(drm, &tv->encoder,
590 dev_err(dev, "Couldn't initialise the TV encoder\n");
594 tv->encoder.possible_crtcs = drm_of_find_possible_crtcs(drm,
596 if (!tv->encoder.possible_crtcs) {
613 drm_connector_attach_encoder(&tv->connector, &tv->encoder);
618 drm_encoder_cleanup(&tv->encoder);
632 drm_encoder_cleanup(&tv->encoder);
654 { .compatible = "allwinner,sun4i-a10-tv-encoder" },