Lines Matching refs:connector
96 static void drm_bridge_connector_hpd_notify(struct drm_connector *connector, in drm_bridge_connector_hpd_notify() argument
100 to_drm_bridge_connector(connector); in drm_bridge_connector_hpd_notify()
114 struct drm_connector *connector = &drm_bridge_connector->base; in drm_bridge_connector_hpd_cb() local
115 struct drm_device *dev = connector->dev; in drm_bridge_connector_hpd_cb()
119 old_status = connector->status; in drm_bridge_connector_hpd_cb()
120 connector->status = status; in drm_bridge_connector_hpd_cb()
126 drm_bridge_connector_hpd_notify(connector, status); in drm_bridge_connector_hpd_cb()
128 drm_kms_helper_connector_hotplug_event(connector); in drm_bridge_connector_hpd_cb()
131 static void drm_bridge_connector_enable_hpd(struct drm_connector *connector) in drm_bridge_connector_enable_hpd() argument
134 to_drm_bridge_connector(connector); in drm_bridge_connector_enable_hpd()
142 static void drm_bridge_connector_disable_hpd(struct drm_connector *connector) in drm_bridge_connector_disable_hpd() argument
145 to_drm_bridge_connector(connector); in drm_bridge_connector_disable_hpd()
157 drm_bridge_connector_detect(struct drm_connector *connector, bool force) in drm_bridge_connector_detect() argument
160 to_drm_bridge_connector(connector); in drm_bridge_connector_detect()
167 drm_bridge_connector_hpd_notify(connector, status); in drm_bridge_connector_detect()
169 switch (connector->connector_type) { in drm_bridge_connector_detect()
185 static void drm_bridge_connector_destroy(struct drm_connector *connector) in drm_bridge_connector_destroy() argument
188 to_drm_bridge_connector(connector); in drm_bridge_connector_destroy()
196 drm_connector_unregister(connector); in drm_bridge_connector_destroy()
197 drm_connector_cleanup(connector); in drm_bridge_connector_destroy()
202 static void drm_bridge_connector_debugfs_init(struct drm_connector *connector, in drm_bridge_connector_debugfs_init() argument
206 to_drm_bridge_connector(connector); in drm_bridge_connector_debugfs_init()
230 static int drm_bridge_connector_get_modes_edid(struct drm_connector *connector, in drm_bridge_connector_get_modes_edid() argument
237 status = drm_bridge_connector_detect(connector, false); in drm_bridge_connector_get_modes_edid()
241 edid = bridge->funcs->get_edid(bridge, connector); in drm_bridge_connector_get_modes_edid()
247 drm_connector_update_edid_property(connector, edid); in drm_bridge_connector_get_modes_edid()
248 n = drm_add_edid_modes(connector, edid); in drm_bridge_connector_get_modes_edid()
254 drm_connector_update_edid_property(connector, NULL); in drm_bridge_connector_get_modes_edid()
258 static int drm_bridge_connector_get_modes(struct drm_connector *connector) in drm_bridge_connector_get_modes() argument
261 to_drm_bridge_connector(connector); in drm_bridge_connector_get_modes()
270 return drm_bridge_connector_get_modes_edid(connector, bridge); in drm_bridge_connector_get_modes()
278 return bridge->funcs->get_modes(bridge, connector); in drm_bridge_connector_get_modes()
317 struct drm_connector *connector; in drm_bridge_connector_init() local
333 connector = &bridge_connector->base; in drm_bridge_connector_init()
334 connector->interlace_allowed = true; in drm_bridge_connector_init()
346 connector->interlace_allowed = false; in drm_bridge_connector_init()
372 ret = drm_connector_init_with_ddc(drm, connector, in drm_bridge_connector_init()
380 drm_connector_helper_add(connector, &drm_bridge_connector_helper_funcs); in drm_bridge_connector_init()
383 connector->polled = DRM_CONNECTOR_POLL_HPD; in drm_bridge_connector_init()
385 connector->polled = DRM_CONNECTOR_POLL_CONNECT in drm_bridge_connector_init()
389 drm_panel_bridge_set_orientation(connector, panel_bridge); in drm_bridge_connector_init()
391 return connector; in drm_bridge_connector_init()