Lines Matching full:rgb
78 struct rockchip_rgb *rgb; in rockchip_rgb_init() local
87 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init()
88 if (!rgb) in rockchip_rgb_init()
91 rgb->dev = dev; in rockchip_rgb_init()
92 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
117 /* if the rgb output is not connected to anything, just return */ in rockchip_rgb_init()
127 encoder = &rgb->encoder.encoder; in rockchip_rgb_init()
146 rgb->bridge = bridge; in rockchip_rgb_init()
148 ret = drm_bridge_attach(encoder, rgb->bridge, NULL, in rockchip_rgb_init()
153 connector = &rgb->connector; in rockchip_rgb_init()
154 connector = drm_bridge_connector_init(rgb->drm_dev, encoder); in rockchip_rgb_init()
163 rgb->encoder.crtc_endpoint_id = endpoint_id; in rockchip_rgb_init()
172 return rgb; in rockchip_rgb_init()
182 void rockchip_rgb_fini(struct rockchip_rgb *rgb) in rockchip_rgb_fini() argument
184 drm_panel_bridge_remove(rgb->bridge); in rockchip_rgb_fini()
185 drm_connector_cleanup(&rgb->connector); in rockchip_rgb_fini()
186 drm_encoder_cleanup(&rgb->encoder.encoder); in rockchip_rgb_fini()