Lines Matching refs:panel
127 struct drm_panel panel;
140 static inline struct st7789v *panel_to_st7789v(struct drm_panel *panel)
142 return container_of(panel, struct st7789v, panel);
209 static int st7789v_check_id(struct drm_panel *panel)
212 struct st7789v *ctx = panel_to_st7789v(panel);
332 static int st7789v_get_modes(struct drm_panel *panel,
335 struct st7789v *ctx = panel_to_st7789v(panel);
340 dev_err(panel->dev, "failed to add mode %ux%u@%u\n",
374 static int st7789v_prepare(struct drm_panel *panel)
376 struct st7789v *ctx = panel_to_st7789v(panel);
393 dev_err(panel->dev, "unsupported bus format: %d\n",
423 ret = st7789v_check_id(panel);
425 dev_warn(panel->dev, "Unrecognized panel IDs");
571 static int st7789v_enable(struct drm_panel *panel)
573 struct st7789v *ctx = panel_to_st7789v(panel);
578 static int st7789v_disable(struct drm_panel *panel)
580 struct st7789v *ctx = panel_to_st7789v(panel);
588 static int st7789v_unprepare(struct drm_panel *panel)
590 struct st7789v *ctx = panel_to_st7789v(panel);
629 drm_panel_init(&ctx->panel, dev, &st7789v_drm_funcs,
642 ret = drm_panel_of_backlight(&ctx->panel);
648 drm_panel_add(&ctx->panel);
657 drm_panel_remove(&ctx->panel);