• Home
  • Raw
  • Download

Lines Matching refs:bridge

71 int drm_bridge_add(struct drm_bridge *bridge)  in drm_bridge_add()  argument
74 list_add_tail(&bridge->list, &bridge_list); in drm_bridge_add()
86 void drm_bridge_remove(struct drm_bridge *bridge) in drm_bridge_remove() argument
89 list_del_init(&bridge->list); in drm_bridge_remove()
109 int drm_bridge_attach(struct drm_device *dev, struct drm_bridge *bridge) in drm_bridge_attach() argument
111 if (!dev || !bridge) in drm_bridge_attach()
114 if (bridge->dev) in drm_bridge_attach()
117 bridge->dev = dev; in drm_bridge_attach()
119 if (bridge->funcs->attach) in drm_bridge_attach()
120 return bridge->funcs->attach(bridge); in drm_bridge_attach()
136 void drm_bridge_detach(struct drm_bridge *bridge) in drm_bridge_detach() argument
138 if (WARN_ON(!bridge)) in drm_bridge_detach()
141 if (WARN_ON(!bridge->dev)) in drm_bridge_detach()
144 if (bridge->funcs->detach) in drm_bridge_detach()
145 bridge->funcs->detach(bridge); in drm_bridge_detach()
147 bridge->dev = NULL; in drm_bridge_detach()
177 bool drm_bridge_mode_fixup(struct drm_bridge *bridge, in drm_bridge_mode_fixup() argument
183 if (!bridge) in drm_bridge_mode_fixup()
186 if (bridge->funcs->mode_fixup) in drm_bridge_mode_fixup()
187 ret = bridge->funcs->mode_fixup(bridge, mode, adjusted_mode); in drm_bridge_mode_fixup()
189 ret = ret && drm_bridge_mode_fixup(bridge->next, mode, adjusted_mode); in drm_bridge_mode_fixup()
206 void drm_bridge_disable(struct drm_bridge *bridge) in drm_bridge_disable() argument
208 if (!bridge) in drm_bridge_disable()
211 drm_bridge_disable(bridge->next); in drm_bridge_disable()
213 if (bridge->funcs->disable) in drm_bridge_disable()
214 bridge->funcs->disable(bridge); in drm_bridge_disable()
229 void drm_bridge_post_disable(struct drm_bridge *bridge) in drm_bridge_post_disable() argument
231 if (!bridge) in drm_bridge_post_disable()
234 if (bridge->funcs->post_disable) in drm_bridge_post_disable()
235 bridge->funcs->post_disable(bridge); in drm_bridge_post_disable()
237 drm_bridge_post_disable(bridge->next); in drm_bridge_post_disable()
253 void drm_bridge_mode_set(struct drm_bridge *bridge, in drm_bridge_mode_set() argument
257 if (!bridge) in drm_bridge_mode_set()
260 if (bridge->funcs->mode_set) in drm_bridge_mode_set()
261 bridge->funcs->mode_set(bridge, mode, adjusted_mode); in drm_bridge_mode_set()
263 drm_bridge_mode_set(bridge->next, mode, adjusted_mode); in drm_bridge_mode_set()
278 void drm_bridge_pre_enable(struct drm_bridge *bridge) in drm_bridge_pre_enable() argument
280 if (!bridge) in drm_bridge_pre_enable()
283 drm_bridge_pre_enable(bridge->next); in drm_bridge_pre_enable()
285 if (bridge->funcs->pre_enable) in drm_bridge_pre_enable()
286 bridge->funcs->pre_enable(bridge); in drm_bridge_pre_enable()
301 void drm_bridge_enable(struct drm_bridge *bridge) in drm_bridge_enable() argument
303 if (!bridge) in drm_bridge_enable()
306 if (bridge->funcs->enable) in drm_bridge_enable()
307 bridge->funcs->enable(bridge); in drm_bridge_enable()
309 drm_bridge_enable(bridge->next); in drm_bridge_enable()
325 struct drm_bridge *bridge; in of_drm_find_bridge() local
329 list_for_each_entry(bridge, &bridge_list, list) { in of_drm_find_bridge()
330 if (bridge->of_node == np) { in of_drm_find_bridge()
332 return bridge; in of_drm_find_bridge()