Lines Matching full:tcon
23 struct sun4i_tcon *tcon; member
44 struct sun4i_tcon *tcon = lvds->tcon; in sun4i_lvds_get_modes() local
46 return drm_panel_get_modes(tcon->panel); in sun4i_lvds_get_modes()
57 struct sun4i_tcon *tcon = lvds->tcon; in sun4i_lvds_connector_destroy() local
59 drm_panel_detach(tcon->panel); in sun4i_lvds_connector_destroy()
74 struct sun4i_tcon *tcon = lvds->tcon; in sun4i_lvds_encoder_enable() local
78 if (!IS_ERR(tcon->panel)) { in sun4i_lvds_encoder_enable()
79 drm_panel_prepare(tcon->panel); in sun4i_lvds_encoder_enable()
80 drm_panel_enable(tcon->panel); in sun4i_lvds_encoder_enable()
87 struct sun4i_tcon *tcon = lvds->tcon; in sun4i_lvds_encoder_disable() local
91 if (!IS_ERR(tcon->panel)) { in sun4i_lvds_encoder_disable()
92 drm_panel_disable(tcon->panel); in sun4i_lvds_encoder_disable()
93 drm_panel_unprepare(tcon->panel); in sun4i_lvds_encoder_disable()
106 int sun4i_lvds_init(struct drm_device *drm, struct sun4i_tcon *tcon) in sun4i_lvds_init() argument
116 lvds->tcon = tcon; in sun4i_lvds_init()
119 ret = drm_of_find_panel_or_bridge(tcon->dev->of_node, 1, 0, in sun4i_lvds_init()
120 &tcon->panel, &bridge); in sun4i_lvds_init()
138 /* The LVDS encoder can only work with the TCON channel 0 */ in sun4i_lvds_init()
139 lvds->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc); in sun4i_lvds_init()
141 if (tcon->panel) { in sun4i_lvds_init()
155 ret = drm_panel_attach(tcon->panel, &lvds->connector); in sun4i_lvds_init()