kingdisplay 188 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay = to_kingdisplay_panel(panel); kingdisplay 191 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (!kingdisplay->enabled) kingdisplay 194 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c backlight_disable(kingdisplay->backlight); kingdisplay 196 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = mipi_dsi_dcs_set_display_off(kingdisplay->link); kingdisplay 201 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->enabled = false; kingdisplay 208 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay = to_kingdisplay_panel(panel); kingdisplay 211 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (!kingdisplay->prepared) kingdisplay 214 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = mipi_dsi_dcs_enter_sleep_mode(kingdisplay->link); kingdisplay 224 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); kingdisplay 226 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = regulator_disable(kingdisplay->supply); kingdisplay 230 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->prepared = false; kingdisplay 237 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay = to_kingdisplay_panel(panel); kingdisplay 241 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (kingdisplay->prepared) kingdisplay 244 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); kingdisplay 246 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = regulator_enable(kingdisplay->supply); kingdisplay 253 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c gpiod_set_value_cansleep(kingdisplay->enable_gpio, 1); kingdisplay 259 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = mipi_dsi_generic_write(kingdisplay->link, &init_code[i], kingdisplay 268 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = mipi_dsi_dcs_exit_sleep_mode(kingdisplay->link); kingdisplay 278 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = mipi_dsi_dcs_set_display_on(kingdisplay->link); kingdisplay 288 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->prepared = true; kingdisplay 293 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); kingdisplay 295 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c regulator_err = regulator_disable(kingdisplay->supply); kingdisplay 305 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay = to_kingdisplay_panel(panel); kingdisplay 308 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (kingdisplay->enabled) kingdisplay 311 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c ret = backlight_enable(kingdisplay->backlight); kingdisplay 318 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->enabled = true; kingdisplay 373 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c static int kingdisplay_panel_add(struct kingdisplay_panel *kingdisplay) kingdisplay 375 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct device *dev = &kingdisplay->link->dev; kingdisplay 378 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->supply = devm_regulator_get(dev, "power"); kingdisplay 379 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (IS_ERR(kingdisplay->supply)) kingdisplay 380 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c return PTR_ERR(kingdisplay->supply); kingdisplay 382 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->enable_gpio = devm_gpiod_get_optional(dev, "enable", kingdisplay 384 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (IS_ERR(kingdisplay->enable_gpio)) { kingdisplay 385 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = PTR_ERR(kingdisplay->enable_gpio); kingdisplay 387 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->enable_gpio = NULL; kingdisplay 390 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->backlight = devm_of_find_backlight(dev); kingdisplay 391 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (IS_ERR(kingdisplay->backlight)) kingdisplay 392 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c return PTR_ERR(kingdisplay->backlight); kingdisplay 394 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c drm_panel_init(&kingdisplay->base); kingdisplay 395 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->base.funcs = &kingdisplay_panel_funcs; kingdisplay 396 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->base.dev = &kingdisplay->link->dev; kingdisplay 398 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c return drm_panel_add(&kingdisplay->base); kingdisplay 401 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c static void kingdisplay_panel_del(struct kingdisplay_panel *kingdisplay) kingdisplay 403 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c drm_panel_remove(&kingdisplay->base); kingdisplay 408 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay; kingdisplay 416 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay = devm_kzalloc(&dsi->dev, sizeof(*kingdisplay), GFP_KERNEL); kingdisplay 417 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (!kingdisplay) kingdisplay 420 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c mipi_dsi_set_drvdata(dsi, kingdisplay); kingdisplay 421 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay->link = dsi; kingdisplay 423 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = kingdisplay_panel_add(kingdisplay); kingdisplay 432 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay = mipi_dsi_get_drvdata(dsi); kingdisplay 435 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = kingdisplay_panel_unprepare(&kingdisplay->base); kingdisplay 440 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c err = kingdisplay_panel_disable(&kingdisplay->base); kingdisplay 449 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay_panel_del(kingdisplay); kingdisplay 456 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct kingdisplay_panel *kingdisplay = mipi_dsi_get_drvdata(dsi); kingdisplay 458 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay_panel_unprepare(&kingdisplay->base); kingdisplay 459 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c kingdisplay_panel_disable(&kingdisplay->base);