Lines Matching full:dsi

35 	struct mipi_dsi_device *dsi;  member
57 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_init() local
58 struct device *dev = &jdi->dsi->dev; in jdi_panel_init()
61 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_panel_init()
63 ret = mipi_dsi_dcs_soft_reset(dsi); in jdi_panel_init()
69 ret = mipi_dsi_dcs_set_pixel_format(dsi, MIPI_DCS_PIXEL_FMT_24BIT << 4); in jdi_panel_init()
75 ret = mipi_dsi_dcs_set_column_address(dsi, 0, jdi->mode->hdisplay - 1); in jdi_panel_init()
81 ret = mipi_dsi_dcs_set_page_address(dsi, 0, jdi->mode->vdisplay - 1); in jdi_panel_init()
93 ret = mipi_dsi_dcs_write(dsi, MIPI_DCS_WRITE_CONTROL_DISPLAY, in jdi_panel_init()
101 ret = mipi_dsi_dcs_write(dsi, MIPI_DCS_WRITE_POWER_SAVE, in jdi_panel_init()
108 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in jdi_panel_init()
116 ret = mipi_dsi_generic_write(dsi, (u8[]){0xB0, 0x00}, 2); in jdi_panel_init()
125 ret = mipi_dsi_generic_write(dsi, (u8[]) in jdi_panel_init()
135 ret = mipi_dsi_generic_write(dsi, (u8[]){0xB0, 0x03}, 2); in jdi_panel_init()
147 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_on() local
148 struct device *dev = &jdi->dsi->dev; in jdi_panel_on()
151 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_panel_on()
153 ret = mipi_dsi_dcs_set_display_on(dsi); in jdi_panel_on()
162 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_off() local
163 struct device *dev = &jdi->dsi->dev; in jdi_panel_off()
166 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in jdi_panel_off()
168 ret = mipi_dsi_dcs_set_display_off(dsi); in jdi_panel_off()
172 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in jdi_panel_off()
196 struct device *dev = &jdi->dsi->dev; in jdi_panel_unprepare()
222 struct device *dev = &jdi->dsi->dev; in jdi_panel_prepare()
307 struct device *dev = &jdi->dsi->dev; in jdi_panel_get_modes()
329 struct mipi_dsi_device *dsi = bl_get_data(bl); in dsi_dcs_bl_get_brightness() local
333 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in dsi_dcs_bl_get_brightness()
335 ret = mipi_dsi_dcs_get_display_brightness(dsi, &brightness); in dsi_dcs_bl_get_brightness()
339 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in dsi_dcs_bl_get_brightness()
346 struct mipi_dsi_device *dsi = bl_get_data(bl); in dsi_dcs_bl_update_status() local
349 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in dsi_dcs_bl_update_status()
351 ret = mipi_dsi_dcs_set_display_brightness(dsi, bl->props.brightness); in dsi_dcs_bl_update_status()
355 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in dsi_dcs_bl_update_status()
366 drm_panel_create_dsi_backlight(struct mipi_dsi_device *dsi) in drm_panel_create_dsi_backlight() argument
368 struct device *dev = &dsi->dev; in drm_panel_create_dsi_backlight()
376 return devm_backlight_device_register(dev, dev_name(dev), dev, dsi, in drm_panel_create_dsi_backlight()
396 struct device *dev = &jdi->dsi->dev; in jdi_panel_add()
433 jdi->backlight = drm_panel_create_dsi_backlight(jdi->dsi); in jdi_panel_add()
440 drm_panel_init(&jdi->base, &jdi->dsi->dev, &jdi_panel_funcs, in jdi_panel_add()
454 static int jdi_panel_probe(struct mipi_dsi_device *dsi) in jdi_panel_probe() argument
459 dsi->lanes = 4; in jdi_panel_probe()
460 dsi->format = MIPI_DSI_FMT_RGB888; in jdi_panel_probe()
461 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO | in jdi_panel_probe()
464 jdi = devm_kzalloc(&dsi->dev, sizeof(*jdi), GFP_KERNEL); in jdi_panel_probe()
468 mipi_dsi_set_drvdata(dsi, jdi); in jdi_panel_probe()
470 jdi->dsi = dsi; in jdi_panel_probe()
476 return mipi_dsi_attach(dsi); in jdi_panel_probe()
479 static int jdi_panel_remove(struct mipi_dsi_device *dsi) in jdi_panel_remove() argument
481 struct jdi_panel *jdi = mipi_dsi_get_drvdata(dsi); in jdi_panel_remove()
486 dev_err(&dsi->dev, "failed to disable panel: %d\n", ret); in jdi_panel_remove()
488 ret = mipi_dsi_detach(dsi); in jdi_panel_remove()
490 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", in jdi_panel_remove()
498 static void jdi_panel_shutdown(struct mipi_dsi_device *dsi) in jdi_panel_shutdown() argument
500 struct jdi_panel *jdi = mipi_dsi_get_drvdata(dsi); in jdi_panel_shutdown()