Lines Matching refs:bridge
42 struct drm_bridge bridge; member
52 bridge_to_ptn3460(struct drm_bridge *bridge) in bridge_to_ptn3460() argument
54 return container_of(bridge, struct ptn3460_bridge, bridge); in bridge_to_ptn3460()
127 static void ptn3460_pre_enable(struct drm_bridge *bridge) in ptn3460_pre_enable() argument
129 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_pre_enable()
160 static void ptn3460_enable(struct drm_bridge *bridge) in ptn3460_enable() argument
162 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_enable()
170 static void ptn3460_disable(struct drm_bridge *bridge) in ptn3460_disable() argument
172 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_disable()
188 static void ptn3460_post_disable(struct drm_bridge *bridge) in ptn3460_post_disable() argument
190 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_post_disable()
211 ptn3460_pre_enable(&ptn_bridge->bridge); in ptn3460_get_modes()
233 ptn3460_disable(&ptn_bridge->bridge); in ptn3460_get_modes()
258 static int ptn3460_bridge_attach(struct drm_bridge *bridge) in ptn3460_bridge_attach() argument
260 struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); in ptn3460_bridge_attach()
263 if (!bridge->encoder) { in ptn3460_bridge_attach()
269 ret = drm_connector_init(bridge->dev, &ptn_bridge->connector, in ptn3460_bridge_attach()
279 bridge->encoder); in ptn3460_bridge_attach()
350 ptn_bridge->bridge.funcs = &ptn3460_bridge_funcs; in ptn3460_probe()
351 ptn_bridge->bridge.of_node = dev->of_node; in ptn3460_probe()
352 ret = drm_bridge_add(&ptn_bridge->bridge); in ptn3460_probe()
367 drm_bridge_remove(&ptn_bridge->bridge); in ptn3460_remove()