Lines Matching full:panel
21 struct drm_panel *panel; member
42 return drm_panel_get_modes(panel_bridge->panel, connector); in panel_bridge_connector_get_modes()
131 drm_panel_prepare(panel_bridge->panel); in panel_bridge_atomic_pre_enable()
151 drm_panel_enable(panel_bridge->panel); in panel_bridge_atomic_enable()
171 drm_panel_disable(panel_bridge->panel); in panel_bridge_atomic_disable()
191 drm_panel_unprepare(panel_bridge->panel); in panel_bridge_atomic_post_disable()
199 return drm_panel_get_modes(panel_bridge->panel, connector); in panel_bridge_get_modes()
206 struct drm_panel *panel = panel_bridge->panel; in panel_bridge_debugfs_init() local
208 root = debugfs_create_dir("panel", root); in panel_bridge_debugfs_init()
209 if (panel->funcs->debugfs_init) in panel_bridge_debugfs_init()
210 panel->funcs->debugfs_init(panel, root); in panel_bridge_debugfs_init()
233 * Returns true if the bridge is a panel bridge, or false otherwise.
245 * @panel: The drm_panel being wrapped. Must be non-NULL.
251 * wrap that panel in the new bridge, and the result can then be
259 * The connector type is set to @panel->connector_type, which must be set to a
260 * known type. Calling this function with a panel whose connector type is
266 struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel) in drm_panel_bridge_add() argument
268 if (WARN_ON(panel->connector_type == DRM_MODE_CONNECTOR_Unknown)) in drm_panel_bridge_add()
271 return drm_panel_bridge_add_typed(panel, panel->connector_type); in drm_panel_bridge_add()
278 * @panel: The drm_panel being wrapped. Must be non-NULL.
282 * @connector_type instead of infering it from the panel.
285 * drm_panel_bridge_add() instead, and fix panel drivers as necessary if they
288 struct drm_bridge *drm_panel_bridge_add_typed(struct drm_panel *panel, in drm_panel_bridge_add_typed() argument
293 if (!panel) in drm_panel_bridge_add_typed()
296 panel_bridge = devm_kzalloc(panel->dev, sizeof(*panel_bridge), in drm_panel_bridge_add_typed()
302 panel_bridge->panel = panel; in drm_panel_bridge_add_typed()
306 panel_bridge->bridge.of_node = panel->dev->of_node; in drm_panel_bridge_add_typed()
336 devm_kfree(panel_bridge->panel->dev, bridge); in drm_panel_bridge_remove()
341 * drm_panel_bridge_set_orientation - Set the connector's panel orientation
342 * from the bridge that can be transformed to panel bridge.
344 * @connector: The connector to be set panel orientation.
345 * @bridge: The drm_bridge to be transformed to panel bridge.
357 panel_bridge->panel); in drm_panel_bridge_set_orientation()
375 * @panel: The drm_panel being wrapped. Must be non-NULL.
381 struct drm_panel *panel) in devm_drm_panel_bridge_add() argument
383 if (WARN_ON(panel->connector_type == DRM_MODE_CONNECTOR_Unknown)) in devm_drm_panel_bridge_add()
386 return devm_drm_panel_bridge_add_typed(dev, panel, in devm_drm_panel_bridge_add()
387 panel->connector_type); in devm_drm_panel_bridge_add()
395 * @panel: The drm_panel being wrapped. Must be non-NULL.
399 * to @connector_type instead of infering it from the panel.
402 * devm_drm_panel_bridge_add() instead, and fix panel drivers as necessary if
406 struct drm_panel *panel, in devm_drm_panel_bridge_add_typed() argument
416 bridge = drm_panel_bridge_add_typed(panel, connector_type); in devm_drm_panel_bridge_add_typed()
422 bridge->pre_enable_prev_first = panel->prepare_prev_first; in devm_drm_panel_bridge_add_typed()
444 * @panel: The drm_panel being wrapped. Must be non-NULL.
451 struct drm_panel *panel) in drmm_panel_bridge_add() argument
456 bridge = drm_panel_bridge_add_typed(panel, panel->connector_type); in drmm_panel_bridge_add()
465 bridge->pre_enable_prev_first = panel->prepare_prev_first; in drmm_panel_bridge_add()
472 * drm_panel_bridge_connector - return the connector for the panel bridge
500 * drm panel bridge instance if a panel is connected.
510 struct drm_panel *panel; in devm_drm_of_get_bridge() local
514 &panel, &bridge); in devm_drm_of_get_bridge()
518 if (panel) in devm_drm_of_get_bridge()
519 bridge = devm_drm_panel_bridge_add(dev, panel); in devm_drm_of_get_bridge()
534 * drm panel bridge instance if a panel is connected.
544 struct drm_panel *panel; in drmm_of_get_bridge() local
548 &panel, &bridge); in drmm_of_get_bridge()
552 if (panel) in drmm_of_get_bridge()
553 bridge = drmm_panel_bridge_add(drm, panel); in drmm_of_get_bridge()