Lines Matching refs:panel
93 struct drm_panel panel;
114 static inline struct ld9040 *panel_to_ld9040(struct drm_panel *panel)
116 return container_of(panel, struct ld9040, panel);
221 static int ld9040_disable(struct drm_panel *panel)
226 static int ld9040_unprepare(struct drm_panel *panel)
228 struct ld9040 *ctx = panel_to_ld9040(panel);
240 static int ld9040_prepare(struct drm_panel *panel)
242 struct ld9040 *ctx = panel_to_ld9040(panel);
254 ld9040_unprepare(panel);
259 static int ld9040_enable(struct drm_panel *panel)
264 static int ld9040_get_modes(struct drm_panel *panel,
267 struct ld9040 *ctx = panel_to_ld9040(panel);
272 dev_err(panel->dev, "failed to create a new display mode\n");
308 of_property_read_u32(np, "panel-width-mm", &ctx->width_mm);
309 of_property_read_u32(np, "panel-height-mm", &ctx->height_mm);
376 drm_panel_init(&ctx->panel, dev, &ld9040_drm_funcs,
385 drm_panel_add(&ctx->panel);
395 drm_panel_remove(&ctx->panel);
415 .name = "panel-samsung-ld9040",