Lines Matching refs:drm_panel
34 struct drm_panel drm_panel; member
42 static inline struct ota5601a *to_ota5601a(struct drm_panel *panel) in to_ota5601a()
44 return container_of(panel, struct ota5601a, drm_panel); in to_ota5601a()
111 static int ota5601a_prepare(struct drm_panel *drm_panel) in ota5601a_prepare() argument
113 struct ota5601a *panel = to_ota5601a(drm_panel); in ota5601a_prepare()
118 dev_err(drm_panel->dev, "Failed to enable power supply: %d\n", err); in ota5601a_prepare()
132 dev_err(drm_panel->dev, "Failed to init registers: %d\n", err); in ota5601a_prepare()
145 static int ota5601a_unprepare(struct drm_panel *drm_panel) in ota5601a_unprepare() argument
147 struct ota5601a *panel = to_ota5601a(drm_panel); in ota5601a_unprepare()
156 static int ota5601a_enable(struct drm_panel *drm_panel) in ota5601a_enable() argument
158 struct ota5601a *panel = to_ota5601a(drm_panel); in ota5601a_enable()
164 dev_err(drm_panel->dev, "Unable to enable panel: %d\n", err); in ota5601a_enable()
168 if (drm_panel->backlight) { in ota5601a_enable()
176 static int ota5601a_disable(struct drm_panel *drm_panel) in ota5601a_disable() argument
178 struct ota5601a *panel = to_ota5601a(drm_panel); in ota5601a_disable()
184 dev_err(drm_panel->dev, "Unable to disable panel: %d\n", err); in ota5601a_disable()
191 static int ota5601a_get_modes(struct drm_panel *drm_panel, in ota5601a_get_modes() argument
194 struct ota5601a *panel = to_ota5601a(drm_panel); in ota5601a_get_modes()
276 drm_panel_init(&panel->drm_panel, dev, &ota5601a_funcs, in ota5601a_probe()
279 err = drm_panel_of_backlight(&panel->drm_panel); in ota5601a_probe()
286 drm_panel_add(&panel->drm_panel); in ota5601a_probe()
295 drm_panel_remove(&panel->drm_panel); in ota5601a_remove()
297 ota5601a_disable(&panel->drm_panel); in ota5601a_remove()
298 ota5601a_unprepare(&panel->drm_panel); in ota5601a_remove()