Lines Matching full:bridge

19 	struct drm_bridge	bridge;  member
26 to_display_connector(struct drm_bridge *bridge) in to_display_connector() argument
28 return container_of(bridge, struct display_connector, bridge); in to_display_connector()
31 static int display_connector_attach(struct drm_bridge *bridge, in display_connector_attach() argument
38 display_connector_detect(struct drm_bridge *bridge) in display_connector_detect() argument
40 struct display_connector *conn = to_display_connector(bridge); in display_connector_detect()
49 if (conn->bridge.ddc && drm_probe_ddc(conn->bridge.ddc)) in display_connector_detect()
52 switch (conn->bridge.type) { in display_connector_detect()
79 static struct edid *display_connector_get_edid(struct drm_bridge *bridge, in display_connector_get_edid() argument
82 struct display_connector *conn = to_display_connector(bridge); in display_connector_get_edid()
84 return drm_get_edid(connector, conn->bridge.ddc); in display_connector_get_edid()
96 struct drm_bridge *bridge = &conn->bridge; in display_connector_hpd_irq() local
98 drm_bridge_hpd_notify(bridge, display_connector_detect(bridge)); in display_connector_hpd_irq()
126 conn->bridge.type = DRM_MODE_CONNECTOR_DVIA; in display_connector_probe()
128 conn->bridge.type = DRM_MODE_CONNECTOR_DVID; in display_connector_probe()
130 conn->bridge.type = DRM_MODE_CONNECTOR_DVII; in display_connector_probe()
150 conn->bridge.type = DRM_MODE_CONNECTOR_HDMIA; in display_connector_probe()
152 conn->bridge.type = DRM_MODE_CONNECTOR_HDMIB; in display_connector_probe()
164 conn->bridge.type = type; in display_connector_probe()
169 conn->bridge.interlace_allowed = true; in display_connector_probe()
216 conn->bridge.ddc = of_get_i2c_adapter_by_node(phandle); in display_connector_probe()
218 if (!conn->bridge.ddc) in display_connector_probe()
226 conn->bridge.funcs = &display_connector_bridge_funcs; in display_connector_probe()
227 conn->bridge.of_node = pdev->dev.of_node; in display_connector_probe()
229 if (conn->bridge.ddc) in display_connector_probe()
230 conn->bridge.ops |= DRM_BRIDGE_OP_EDID in display_connector_probe()
233 conn->bridge.ops |= DRM_BRIDGE_OP_DETECT; in display_connector_probe()
235 conn->bridge.ops |= DRM_BRIDGE_OP_HPD; in display_connector_probe()
239 drm_get_connector_type_name(conn->bridge.type), in display_connector_probe()
241 conn->bridge.ddc ? "with" : "without", in display_connector_probe()
243 conn->bridge.ops); in display_connector_probe()
245 drm_bridge_add(&conn->bridge); in display_connector_probe()
254 drm_bridge_remove(&conn->bridge); in display_connector_remove()
256 if (!IS_ERR(conn->bridge.ddc)) in display_connector_remove()
257 i2c_put_adapter(conn->bridge.ddc); in display_connector_remove()