Lines Matching full:dsi

25 	struct mipi_dsi_device *dsi;  member
43 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_init() local
46 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sharp_nt_panel_init()
48 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in sharp_nt_panel_init()
55 ret = mipi_dsi_dcs_write(dsi, 0xae, (u8[]){ 0x03 }, 1); in sharp_nt_panel_init()
60 ret = mipi_dsi_dcs_set_pixel_format(dsi, MIPI_DCS_PIXEL_FMT_24BIT | in sharp_nt_panel_init()
70 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_on() local
73 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sharp_nt_panel_on()
75 ret = mipi_dsi_dcs_set_display_on(dsi); in sharp_nt_panel_on()
84 struct mipi_dsi_device *dsi = sharp_nt->dsi; in sharp_nt_panel_off() local
87 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in sharp_nt_panel_off()
89 ret = mipi_dsi_dcs_set_display_off(dsi); in sharp_nt_panel_off()
93 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in sharp_nt_panel_off()
239 struct device *dev = &sharp_nt->dsi->dev; in sharp_nt_panel_add()
257 drm_panel_init(&sharp_nt->base, &sharp_nt->dsi->dev, in sharp_nt_panel_add()
275 static int sharp_nt_panel_probe(struct mipi_dsi_device *dsi) in sharp_nt_panel_probe() argument
280 dsi->lanes = 2; in sharp_nt_panel_probe()
281 dsi->format = MIPI_DSI_FMT_RGB888; in sharp_nt_panel_probe()
282 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | in sharp_nt_panel_probe()
287 sharp_nt = devm_kzalloc(&dsi->dev, sizeof(*sharp_nt), GFP_KERNEL); in sharp_nt_panel_probe()
291 mipi_dsi_set_drvdata(dsi, sharp_nt); in sharp_nt_panel_probe()
293 sharp_nt->dsi = dsi; in sharp_nt_panel_probe()
299 return mipi_dsi_attach(dsi); in sharp_nt_panel_probe()
302 static int sharp_nt_panel_remove(struct mipi_dsi_device *dsi) in sharp_nt_panel_remove() argument
304 struct sharp_nt_panel *sharp_nt = mipi_dsi_get_drvdata(dsi); in sharp_nt_panel_remove()
309 dev_err(&dsi->dev, "failed to disable panel: %d\n", ret); in sharp_nt_panel_remove()
311 ret = mipi_dsi_detach(dsi); in sharp_nt_panel_remove()
313 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret); in sharp_nt_panel_remove()
320 static void sharp_nt_panel_shutdown(struct mipi_dsi_device *dsi) in sharp_nt_panel_shutdown() argument
322 struct sharp_nt_panel *sharp_nt = mipi_dsi_get_drvdata(dsi); in sharp_nt_panel_shutdown()