• Home
  • Raw
  • Download

Lines Matching refs:panel

57 void drm_panel_init(struct drm_panel *panel, struct device *dev,  in drm_panel_init()  argument
60 INIT_LIST_HEAD(&panel->list); in drm_panel_init()
61 panel->dev = dev; in drm_panel_init()
62 panel->funcs = funcs; in drm_panel_init()
63 panel->connector_type = connector_type; in drm_panel_init()
74 void drm_panel_add(struct drm_panel *panel) in drm_panel_add() argument
77 list_add_tail(&panel->list, &panel_list); in drm_panel_add()
88 void drm_panel_remove(struct drm_panel *panel) in drm_panel_remove() argument
91 list_del_init(&panel->list); in drm_panel_remove()
106 int drm_panel_prepare(struct drm_panel *panel) in drm_panel_prepare() argument
108 if (!panel) in drm_panel_prepare()
111 if (panel->funcs && panel->funcs->prepare) in drm_panel_prepare()
112 return panel->funcs->prepare(panel); in drm_panel_prepare()
129 int drm_panel_unprepare(struct drm_panel *panel) in drm_panel_unprepare() argument
131 if (!panel) in drm_panel_unprepare()
134 if (panel->funcs && panel->funcs->unprepare) in drm_panel_unprepare()
135 return panel->funcs->unprepare(panel); in drm_panel_unprepare()
151 int drm_panel_enable(struct drm_panel *panel) in drm_panel_enable() argument
155 if (!panel) in drm_panel_enable()
158 if (panel->funcs && panel->funcs->enable) { in drm_panel_enable()
159 ret = panel->funcs->enable(panel); in drm_panel_enable()
164 ret = backlight_enable(panel->backlight); in drm_panel_enable()
166 DRM_DEV_INFO(panel->dev, "failed to enable backlight: %d\n", in drm_panel_enable()
183 int drm_panel_disable(struct drm_panel *panel) in drm_panel_disable() argument
187 if (!panel) in drm_panel_disable()
190 ret = backlight_disable(panel->backlight); in drm_panel_disable()
192 DRM_DEV_INFO(panel->dev, "failed to disable backlight: %d\n", in drm_panel_disable()
195 if (panel->funcs && panel->funcs->disable) in drm_panel_disable()
196 return panel->funcs->disable(panel); in drm_panel_disable()
213 int drm_panel_get_modes(struct drm_panel *panel, in drm_panel_get_modes() argument
216 if (!panel) in drm_panel_get_modes()
219 if (panel->funcs && panel->funcs->get_modes) in drm_panel_get_modes()
220 return panel->funcs->get_modes(panel, connector); in drm_panel_get_modes()
245 struct drm_panel *panel; in of_drm_find_panel() local
252 list_for_each_entry(panel, &panel_list, list) { in of_drm_find_panel()
253 if (panel->dev->of_node == np) { in of_drm_find_panel()
255 return panel; in of_drm_find_panel()
329 int drm_panel_of_backlight(struct drm_panel *panel) in drm_panel_of_backlight() argument
333 if (!panel || !panel->dev) in drm_panel_of_backlight()
336 backlight = devm_of_find_backlight(panel->dev); in drm_panel_of_backlight()
341 panel->backlight = backlight; in drm_panel_of_backlight()