Lines Matching refs:panel
55 struct drm_panel panel;
71 static inline struct truly_nt35597 *panel_to_ctx(struct drm_panel *panel)
73 return container_of(panel, struct truly_nt35597, panel);
225 static int truly_dcs_write(struct drm_panel *panel, u32 command)
227 struct truly_nt35597 *ctx = panel_to_ctx(panel);
240 static int truly_dcs_write_buf(struct drm_panel *panel,
243 struct truly_nt35597 *ctx = panel_to_ctx(panel);
274 * Reset sequence of truly panel requires the panel to be
311 static int truly_nt35597_disable(struct drm_panel *panel)
313 struct truly_nt35597 *ctx = panel_to_ctx(panel);
329 static int truly_nt35597_unprepare(struct drm_panel *panel)
331 struct truly_nt35597 *ctx = panel_to_ctx(panel);
340 ret = truly_dcs_write(panel, MIPI_DCS_SET_DISPLAY_OFF);
348 ret = truly_dcs_write(panel, MIPI_DCS_ENTER_SLEEP_MODE);
361 static int truly_nt35597_prepare(struct drm_panel *panel)
363 struct truly_nt35597 *ctx = panel_to_ctx(panel);
385 ret = truly_dcs_write_buf(panel,
394 ret = truly_dcs_write(panel, MIPI_DCS_EXIT_SLEEP_MODE);
403 ret = truly_dcs_write(panel, MIPI_DCS_SET_DISPLAY_ON);
422 static int truly_nt35597_enable(struct drm_panel *panel)
424 struct truly_nt35597 *ctx = panel_to_ctx(panel);
441 static int truly_nt35597_get_modes(struct drm_panel *panel,
444 struct truly_nt35597 *ctx = panel_to_ctx(panel);
499 drm_panel_init(&ctx->panel, dev, &truly_nt35597_drm_funcs,
501 drm_panel_add(&ctx->panel);
554 * the master controller and has most of the panel related info in its
593 dev_err(dev, "failed to add panel\n");
613 drm_panel_remove(&ctx->panel);
630 drm_panel_remove(&ctx->panel);
644 .name = "panel-truly-nt35597",