Lines Matching refs:panel
92 struct drm_panel panel;
113 static inline struct ld9040 *panel_to_ld9040(struct drm_panel *panel)
115 return container_of(panel, struct ld9040, panel);
220 static int ld9040_disable(struct drm_panel *panel)
225 static int ld9040_unprepare(struct drm_panel *panel)
227 struct ld9040 *ctx = panel_to_ld9040(panel);
239 static int ld9040_prepare(struct drm_panel *panel)
241 struct ld9040 *ctx = panel_to_ld9040(panel);
253 ld9040_unprepare(panel);
258 static int ld9040_enable(struct drm_panel *panel)
263 static int ld9040_get_modes(struct drm_panel *panel,
266 struct ld9040 *ctx = panel_to_ld9040(panel);
271 dev_err(panel->dev, "failed to create a new display mode\n");
307 of_property_read_u32(np, "panel-width-mm", &ctx->width_mm);
308 of_property_read_u32(np, "panel-height-mm", &ctx->height_mm);
353 drm_panel_init(&ctx->panel, dev, &ld9040_drm_funcs,
356 drm_panel_add(&ctx->panel);
366 drm_panel_remove(&ctx->panel);
387 .name = "panel-samsung-ld9040",