jdi                55 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c static int jdi_panel_init(struct jdi_panel *jdi)
jdi                57 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct mipi_dsi_device *dsi = jdi->dsi;
jdi                58 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi                75 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = mipi_dsi_dcs_set_column_address(dsi, 0, jdi->mode->hdisplay - 1);
jdi                81 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = mipi_dsi_dcs_set_page_address(dsi, 0, jdi->mode->vdisplay - 1);
jdi               145 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c static int jdi_panel_on(struct jdi_panel *jdi)
jdi               147 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct mipi_dsi_device *dsi = jdi->dsi;
jdi               148 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi               160 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c static void jdi_panel_off(struct jdi_panel *jdi)
jdi               162 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct mipi_dsi_device *dsi = jdi->dsi;
jdi               163 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi               181 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = to_jdi_panel(panel);
jdi               183 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (!jdi->enabled)
jdi               186 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	backlight_disable(jdi->backlight);
jdi               188 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->enabled = false;
jdi               195 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = to_jdi_panel(panel);
jdi               196 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi               199 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (!jdi->prepared)
jdi               202 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi_panel_off(jdi);
jdi               204 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = regulator_bulk_disable(ARRAY_SIZE(jdi->supplies), jdi->supplies);
jdi               208 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->enable_gpio, 0);
jdi               210 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->reset_gpio, 1);
jdi               212 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->dcdc_en_gpio, 0);
jdi               214 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->prepared = false;
jdi               221 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = to_jdi_panel(panel);
jdi               222 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi               225 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (jdi->prepared)
jdi               228 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = regulator_bulk_enable(ARRAY_SIZE(jdi->supplies), jdi->supplies);
jdi               236 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->dcdc_en_gpio, 1);
jdi               239 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->reset_gpio, 0);
jdi               242 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->enable_gpio, 1);
jdi               245 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = jdi_panel_init(jdi);
jdi               251 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = jdi_panel_on(jdi);
jdi               257 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->prepared = true;
jdi               262 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = regulator_bulk_disable(ARRAY_SIZE(jdi->supplies), jdi->supplies);
jdi               266 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->enable_gpio, 0);
jdi               268 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->reset_gpio, 1);
jdi               270 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	gpiod_set_value(jdi->dcdc_en_gpio, 0);
jdi               277 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = to_jdi_panel(panel);
jdi               279 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (jdi->enabled)
jdi               282 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	backlight_enable(jdi->backlight);
jdi               284 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->enabled = true;
jdi               306 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = to_jdi_panel(panel);
jdi               307 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi               394 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c static int jdi_panel_add(struct jdi_panel *jdi)
jdi               396 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct device *dev = &jdi->dsi->dev;
jdi               400 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->mode = &default_mode;
jdi               402 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	for (i = 0; i < ARRAY_SIZE(jdi->supplies); i++)
jdi               403 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 		jdi->supplies[i].supply = regulator_names[i];
jdi               405 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(jdi->supplies),
jdi               406 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 				      jdi->supplies);
jdi               412 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
jdi               413 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (IS_ERR(jdi->enable_gpio)) {
jdi               414 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 		ret = PTR_ERR(jdi->enable_gpio);
jdi               419 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
jdi               420 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (IS_ERR(jdi->reset_gpio)) {
jdi               421 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 		ret = PTR_ERR(jdi->reset_gpio);
jdi               426 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->dcdc_en_gpio = devm_gpiod_get(dev, "dcdc-en", GPIOD_OUT_LOW);
jdi               427 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (IS_ERR(jdi->dcdc_en_gpio)) {
jdi               428 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 		ret = PTR_ERR(jdi->dcdc_en_gpio);
jdi               433 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->backlight = drm_panel_create_dsi_backlight(jdi->dsi);
jdi               434 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (IS_ERR(jdi->backlight)) {
jdi               435 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 		ret = PTR_ERR(jdi->backlight);
jdi               440 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	drm_panel_init(&jdi->base);
jdi               441 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->base.funcs = &jdi_panel_funcs;
jdi               442 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->base.dev = &jdi->dsi->dev;
jdi               444 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = drm_panel_add(&jdi->base);
jdi               449 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c static void jdi_panel_del(struct jdi_panel *jdi)
jdi               451 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (jdi->base.dev)
jdi               452 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 		drm_panel_remove(&jdi->base);
jdi               457 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi;
jdi               465 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi = devm_kzalloc(&dsi->dev, sizeof(*jdi), GFP_KERNEL);
jdi               466 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	if (!jdi)
jdi               469 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	mipi_dsi_set_drvdata(dsi, jdi);
jdi               471 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi->dsi = dsi;
jdi               473 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = jdi_panel_add(jdi);
jdi               482 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = mipi_dsi_get_drvdata(dsi);
jdi               485 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	ret = jdi_panel_disable(&jdi->base);
jdi               494 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi_panel_del(jdi);
jdi               501 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	struct jdi_panel *jdi = mipi_dsi_get_drvdata(dsi);
jdi               503 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 	jdi_panel_disable(&jdi->base);