Lines Matching refs:bridge
20 struct drm_bridge bridge; member
29 to_display_connector(struct drm_bridge *bridge) in to_display_connector() argument
31 return container_of(bridge, struct display_connector, bridge); in to_display_connector()
34 static int display_connector_attach(struct drm_bridge *bridge, in display_connector_attach() argument
41 display_connector_detect(struct drm_bridge *bridge) in display_connector_detect() argument
43 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect()
52 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect()
55 switch (conn->bridge.type) { in display_connector_detect()
82 static struct edid *display_connector_get_edid(struct drm_bridge *bridge, in display_connector_get_edid() argument
85 struct display_connector *conn = to_display_connector(bridge); in display_connector_get_edid()
87 return drm_get_edid(connector, conn->bridge.ddc); in display_connector_get_edid()
99 struct drm_bridge *bridge = &conn->bridge; in display_connector_hpd_irq() local
101 drm_bridge_hpd_notify(bridge, display_connector_detect(bridge)); in display_connector_hpd_irq()
129 conn->bridge.type = DRM_MODE_CONNECTOR_DVIA; in display_connector_probe()
131 conn->bridge.type = DRM_MODE_CONNECTOR_DVID; in display_connector_probe()
133 conn->bridge.type = DRM_MODE_CONNECTOR_DVII; in display_connector_probe()
153 conn->bridge.type = DRM_MODE_CONNECTOR_HDMIA; in display_connector_probe()
155 conn->bridge.type = DRM_MODE_CONNECTOR_HDMIB; in display_connector_probe()
167 conn->bridge.type = type; in display_connector_probe()
172 conn->bridge.interlace_allowed = true; in display_connector_probe()
220 conn->bridge.ddc = of_get_i2c_adapter_by_node(phandle); in display_connector_probe()
222 if (!conn->bridge.ddc) in display_connector_probe()
262 conn->bridge.funcs = &display_connector_bridge_funcs; in display_connector_probe()
263 conn->bridge.of_node = pdev->dev.of_node; in display_connector_probe()
265 if (conn->bridge.ddc) in display_connector_probe()
266 conn->bridge.ops |= DRM_BRIDGE_OP_EDID in display_connector_probe()
269 conn->bridge.ops |= DRM_BRIDGE_OP_DETECT; in display_connector_probe()
271 conn->bridge.ops |= DRM_BRIDGE_OP_HPD; in display_connector_probe()
275 drm_get_connector_type_name(conn->bridge.type), in display_connector_probe()
277 conn->bridge.ddc ? "with" : "without", in display_connector_probe()
279 conn->bridge.ops); in display_connector_probe()
281 drm_bridge_add(&conn->bridge); in display_connector_probe()
293 drm_bridge_remove(&conn->bridge); in display_connector_remove()
295 if (!IS_ERR(conn->bridge.ddc)) in display_connector_remove()
296 i2c_put_adapter(conn->bridge.ddc); in display_connector_remove()