Lines Matching full:dsi
43 struct mipi_dsi_device *dsi; member
54 struct mipi_dsi_device *dsi = stk->dsi; in stk_panel_init() local
55 struct mipi_dsi_multi_context dsi_ctx = {.dsi = dsi}; in stk_panel_init()
83 struct mipi_dsi_device *dsi = stk->dsi; in stk_panel_on() local
84 struct mipi_dsi_multi_context dsi_ctx = {.dsi = dsi}; in stk_panel_on()
95 struct mipi_dsi_device *dsi = stk->dsi; in stk_panel_off() local
96 struct mipi_dsi_multi_context dsi_ctx = {.dsi = dsi}; in stk_panel_off()
98 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in stk_panel_off()
195 struct mipi_dsi_device *dsi = bl_get_data(bl); in dsi_dcs_bl_get_brightness() local
199 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in dsi_dcs_bl_get_brightness()
200 ret = mipi_dsi_dcs_get_display_brightness(dsi, &brightness); in dsi_dcs_bl_get_brightness()
204 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in dsi_dcs_bl_get_brightness()
210 struct mipi_dsi_device *dsi = bl_get_data(bl); in dsi_dcs_bl_update_status() local
211 struct mipi_dsi_multi_context dsi_ctx = {.dsi = dsi}; in dsi_dcs_bl_update_status()
213 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in dsi_dcs_bl_update_status()
218 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in dsi_dcs_bl_update_status()
228 drm_panel_create_dsi_backlight(struct mipi_dsi_device *dsi) in drm_panel_create_dsi_backlight() argument
230 struct device *dev = &dsi->dev; in drm_panel_create_dsi_backlight()
237 return devm_backlight_device_register(dev, dev_name(dev), dev, dsi, in drm_panel_create_dsi_backlight()
255 struct device *dev = &stk->dsi->dev; in stk_panel_add()
282 stk->backlight = drm_panel_create_dsi_backlight(stk->dsi); in stk_panel_add()
289 drm_panel_init(&stk->base, &stk->dsi->dev, &stk_panel_funcs, in stk_panel_add()
297 static int stk_panel_probe(struct mipi_dsi_device *dsi) in stk_panel_probe() argument
302 dsi->lanes = 4; in stk_panel_probe()
303 dsi->format = MIPI_DSI_FMT_RGB888; in stk_panel_probe()
304 dsi->mode_flags = (MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_LPM); in stk_panel_probe()
306 stk = devm_kzalloc(&dsi->dev, sizeof(*stk), GFP_KERNEL); in stk_panel_probe()
310 mipi_dsi_set_drvdata(dsi, stk); in stk_panel_probe()
312 stk->dsi = dsi; in stk_panel_probe()
318 ret = mipi_dsi_attach(dsi); in stk_panel_probe()
325 static void stk_panel_remove(struct mipi_dsi_device *dsi) in stk_panel_remove() argument
327 struct stk_panel *stk = mipi_dsi_get_drvdata(dsi); in stk_panel_remove()
330 err = mipi_dsi_detach(dsi); in stk_panel_remove()
332 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", in stk_panel_remove()