Lines Matching full:connector
22 struct drm_connector connector; member
25 static int arcpgu_drm_connector_get_modes(struct drm_connector *connector) in arcpgu_drm_connector_get_modes() argument
29 count = drm_add_modes_noedid(connector, XRES_MAX, YRES_MAX); in arcpgu_drm_connector_get_modes()
30 drm_set_preferred_mode(connector, XRES_DEF, YRES_DEF); in arcpgu_drm_connector_get_modes()
34 static void arcpgu_drm_connector_destroy(struct drm_connector *connector) in arcpgu_drm_connector_destroy() argument
36 drm_connector_unregister(connector); in arcpgu_drm_connector_destroy()
37 drm_connector_cleanup(connector); in arcpgu_drm_connector_destroy()
61 struct drm_connector *connector; in arcpgu_drm_sim_init() local
83 connector = &arcpgu_connector->connector; in arcpgu_drm_sim_init()
84 drm_connector_helper_add(connector, &arcpgu_drm_connector_helper_funcs); in arcpgu_drm_sim_init()
86 ret = drm_connector_init(drm, connector, &arcpgu_drm_connector_funcs, in arcpgu_drm_sim_init()
89 dev_err(drm->dev, "failed to initialize drm connector\n"); in arcpgu_drm_sim_init()
93 ret = drm_connector_attach_encoder(connector, encoder); in arcpgu_drm_sim_init()
95 dev_err(drm->dev, "could not attach connector to encoder\n"); in arcpgu_drm_sim_init()
96 drm_connector_unregister(connector); in arcpgu_drm_sim_init()
103 drm_connector_cleanup(connector); in arcpgu_drm_sim_init()