• Home
  • Raw
  • Download

Lines Matching full:panel

34  * DOC: drm panel
36 * The DRM panel helpers allow drivers to register panel objects with a
42 * drm_panel_init - initialize a panel
43 * @panel: DRM panel
45 * Sets up internal fields of the panel so that it can subsequently be added
48 void drm_panel_init(struct drm_panel *panel) in drm_panel_init() argument
50 INIT_LIST_HEAD(&panel->list); in drm_panel_init()
55 * drm_panel_add - add a panel to the global registry
56 * @panel: panel to add
58 * Add a panel to the global registry so that it can be looked up by display
63 int drm_panel_add(struct drm_panel *panel) in drm_panel_add() argument
66 list_add_tail(&panel->list, &panel_list); in drm_panel_add()
74 * drm_panel_remove - remove a panel from the global registry
75 * @panel: DRM panel
77 * Removes a panel from the global registry.
79 void drm_panel_remove(struct drm_panel *panel) in drm_panel_remove() argument
82 list_del_init(&panel->list); in drm_panel_remove()
88 * drm_panel_attach - attach a panel to a connector
89 * @panel: DRM panel
92 * After obtaining a pointer to a DRM panel a display driver calls this
93 * function to attach a panel to a connector.
95 * An error is returned if the panel is already attached to another connector.
97 * When unloading, the driver should detach from the panel by calling
102 int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector) in drm_panel_attach() argument
104 if (panel->connector) in drm_panel_attach()
107 panel->connector = connector; in drm_panel_attach()
108 panel->drm = connector->dev; in drm_panel_attach()
115 * drm_panel_detach - detach a panel from a connector
116 * @panel: DRM panel
118 * Detaches a panel from the connector it is attached to. If a panel is not
121 * This function should not be called by the panel device itself. It
126 int drm_panel_detach(struct drm_panel *panel) in drm_panel_detach() argument
128 panel->connector = NULL; in drm_panel_detach()
129 panel->drm = NULL; in drm_panel_detach()
137 * of_drm_find_panel - look up a panel using a device tree node
138 * @np: device tree node of the panel
141 * tree node. If a matching panel is found, return a pointer to it.
143 * Return: A pointer to the panel registered for the specified device tree
144 * node or an ERR_PTR() if no panel matching the device tree node can be found.
146 * - EPROBE_DEFER: the panel device has not been probed yet, and the caller
152 struct drm_panel *panel; in of_drm_find_panel() local
159 list_for_each_entry(panel, &panel_list, list) { in of_drm_find_panel()
160 if (panel->dev->of_node == np) { in of_drm_find_panel()
162 return panel; in of_drm_find_panel()
173 MODULE_DESCRIPTION("DRM panel infrastructure");