• Home
  • Raw
  • Download

Lines Matching full:rgb

48 	struct sun4i_rgb *rgb =  in sun4i_rgb_get_modes()  local
50 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_get_modes()
58 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(crtc); in sun4i_rgb_mode_valid() local
59 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid()
116 struct sun4i_rgb *rgb = drm_connector_to_sun4i_rgb(connector); in sun4i_rgb_connector_destroy() local
117 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_connector_destroy()
133 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable() local
134 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_encoder_enable()
136 DRM_DEBUG_DRIVER("Enabling RGB output\n"); in sun4i_rgb_encoder_enable()
146 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_disable() local
147 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_encoder_disable()
149 DRM_DEBUG_DRIVER("Disabling RGB output\n"); in sun4i_rgb_encoder_disable()
176 struct sun4i_rgb *rgb; in sun4i_rgb_init() local
179 rgb = devm_kzalloc(drm->dev, sizeof(*rgb), GFP_KERNEL); in sun4i_rgb_init()
180 if (!rgb) in sun4i_rgb_init()
182 rgb->tcon = tcon; in sun4i_rgb_init()
183 encoder = &rgb->encoder; in sun4i_rgb_init()
188 dev_info(drm->dev, "No panel or bridge found... RGB output disabled\n"); in sun4i_rgb_init()
192 drm_encoder_helper_add(&rgb->encoder, in sun4i_rgb_init()
195 &rgb->encoder, in sun4i_rgb_init()
200 dev_err(drm->dev, "Couldn't initialise the rgb encoder\n"); in sun4i_rgb_init()
204 /* The RGB encoder can only work with the TCON channel 0 */ in sun4i_rgb_init()
205 rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc); in sun4i_rgb_init()
208 drm_connector_helper_add(&rgb->connector, in sun4i_rgb_init()
210 ret = drm_connector_init(drm, &rgb->connector, in sun4i_rgb_init()
214 dev_err(drm->dev, "Couldn't initialise the rgb connector\n"); in sun4i_rgb_init()
218 drm_connector_attach_encoder(&rgb->connector, in sun4i_rgb_init()
219 &rgb->encoder); in sun4i_rgb_init()
221 ret = drm_panel_attach(tcon->panel, &rgb->connector); in sun4i_rgb_init()
239 drm_encoder_cleanup(&rgb->encoder); in sun4i_rgb_init()