Lines Matching defs:encoder
164 struct drm_encoder encoder;
242 drm_encoder_to_sun4i_tv(struct drm_encoder *encoder)
244 return container_of(encoder, struct sun4i_tv,
245 encoder);
263 static void sun4i_tv_disable(struct drm_encoder *encoder,
266 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder);
267 struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
278 static void sun4i_tv_enable(struct drm_encoder *encoder,
281 struct sun4i_tv *tv = drm_encoder_to_sun4i_tv(encoder);
282 struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
284 drm_atomic_get_new_crtc_state(state, encoder->crtc);
423 .name = "tv-encoder",
444 dev_err(dev, "Couldn't map the TV encoder registers\n");
451 dev_err(dev, "Couldn't create the TV encoder regmap\n");
469 dev_err(dev, "Couldn't get the TV encoder clock\n");
475 drm_encoder_helper_add(&tv->encoder,
477 ret = drm_simple_encoder_init(drm, &tv->encoder,
480 dev_err(dev, "Couldn't initialise the TV encoder\n");
484 tv->encoder.possible_crtcs = drm_of_find_possible_crtcs(drm,
486 if (!tv->encoder.possible_crtcs) {
503 drm_connector_attach_encoder(&tv->connector, &tv->encoder);
520 drm_encoder_cleanup(&tv->encoder);
534 drm_encoder_cleanup(&tv->encoder);
555 { .compatible = "allwinner,sun4i-a10-tv-encoder" },