Lines Matching full:encoder
25 struct drm_encoder encoder; member
40 drm_encoder_to_sun4i_rgb(struct drm_encoder *encoder) in drm_encoder_to_sun4i_rgb() argument
42 return container_of(encoder, struct sun4i_rgb, in drm_encoder_to_sun4i_rgb()
43 encoder); in drm_encoder_to_sun4i_rgb()
159 static void sun4i_rgb_encoder_enable(struct drm_encoder *encoder) in sun4i_rgb_encoder_enable() argument
161 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable()
171 static void sun4i_rgb_encoder_disable(struct drm_encoder *encoder) in sun4i_rgb_encoder_disable() argument
173 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_disable()
191 struct drm_encoder *encoder; in sun4i_rgb_init() local
199 encoder = &rgb->encoder; in sun4i_rgb_init()
208 drm_encoder_helper_add(&rgb->encoder, in sun4i_rgb_init()
210 ret = drm_simple_encoder_init(drm, &rgb->encoder, in sun4i_rgb_init()
213 dev_err(drm->dev, "Couldn't initialise the rgb encoder\n"); in sun4i_rgb_init()
217 /* The RGB encoder can only work with the TCON channel 0 */ in sun4i_rgb_init()
218 rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc); in sun4i_rgb_init()
232 &rgb->encoder); in sun4i_rgb_init()
236 ret = drm_bridge_attach(encoder, rgb->bridge, NULL, 0); in sun4i_rgb_init()
244 drm_encoder_cleanup(&rgb->encoder); in sun4i_rgb_init()