• Home
  • Raw
  • Download

Lines Matching full:tcon

29 	struct sun4i_tcon	*tcon;  member
50 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_get_modes() local
52 return drm_panel_get_modes(tcon->panel); in sun4i_rgb_get_modes()
59 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid() local
95 tcon->dclk_min_div = 6; in sun4i_rgb_mode_valid()
96 tcon->dclk_max_div = 127; in sun4i_rgb_mode_valid()
97 rounded_rate = clk_round_rate(tcon->dclk, rate); in sun4i_rgb_mode_valid()
117 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_connector_destroy() local
119 drm_panel_detach(tcon->panel); in sun4i_rgb_connector_destroy()
134 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_encoder_enable() local
138 if (!IS_ERR(tcon->panel)) { in sun4i_rgb_encoder_enable()
139 drm_panel_prepare(tcon->panel); in sun4i_rgb_encoder_enable()
140 drm_panel_enable(tcon->panel); in sun4i_rgb_encoder_enable()
147 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_encoder_disable() local
151 if (!IS_ERR(tcon->panel)) { in sun4i_rgb_encoder_disable()
152 drm_panel_disable(tcon->panel); in sun4i_rgb_encoder_disable()
153 drm_panel_unprepare(tcon->panel); in sun4i_rgb_encoder_disable()
172 int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon) in sun4i_rgb_init() argument
182 rgb->tcon = tcon; in sun4i_rgb_init()
185 ret = drm_of_find_panel_or_bridge(tcon->dev->of_node, 1, 0, in sun4i_rgb_init()
186 &tcon->panel, &bridge); 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()
207 if (tcon->panel) { in sun4i_rgb_init()
221 ret = drm_panel_attach(tcon->panel, &rgb->connector); in sun4i_rgb_init()