osd101t2587        39 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
osd101t2587        42 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (!osd101t2587->enabled)
osd101t2587        45 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	backlight_disable(osd101t2587->backlight);
osd101t2587        47 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	ret = mipi_dsi_shutdown_peripheral(osd101t2587->dsi);
osd101t2587        49 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->enabled = false;
osd101t2587        56 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
osd101t2587        58 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (!osd101t2587->prepared)
osd101t2587        61 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	regulator_disable(osd101t2587->supply);
osd101t2587        62 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->prepared = false;
osd101t2587        69 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
osd101t2587        72 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (osd101t2587->prepared)
osd101t2587        75 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	ret = regulator_enable(osd101t2587->supply);
osd101t2587        77 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 		osd101t2587->prepared = true;
osd101t2587        84 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
osd101t2587        87 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (osd101t2587->enabled)
osd101t2587        90 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	ret = mipi_dsi_turn_on_peripheral(osd101t2587->dsi);
osd101t2587        94 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	backlight_enable(osd101t2587->backlight);
osd101t2587        96 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->enabled = true;
osd101t2587       117 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
osd101t2587       120 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	mode = drm_mode_duplicate(panel->drm, osd101t2587->default_mode);
osd101t2587       123 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 			osd101t2587->default_mode->hdisplay,
osd101t2587       124 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 			osd101t2587->default_mode->vdisplay,
osd101t2587       125 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 			osd101t2587->default_mode->vrefresh);
osd101t2587       157 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c static int osd101t2587_panel_add(struct osd101t2587_panel *osd101t2587)
osd101t2587       159 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct device *dev = &osd101t2587->dsi->dev;
osd101t2587       161 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->supply = devm_regulator_get(dev, "power");
osd101t2587       162 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (IS_ERR(osd101t2587->supply))
osd101t2587       163 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 		return PTR_ERR(osd101t2587->supply);
osd101t2587       165 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->backlight = devm_of_find_backlight(dev);
osd101t2587       166 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (IS_ERR(osd101t2587->backlight))
osd101t2587       167 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 		return PTR_ERR(osd101t2587->backlight);
osd101t2587       169 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	drm_panel_init(&osd101t2587->base);
osd101t2587       170 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->base.funcs = &osd101t2587_panel_funcs;
osd101t2587       171 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->base.dev = &osd101t2587->dsi->dev;
osd101t2587       173 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	return drm_panel_add(&osd101t2587->base);
osd101t2587       178 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587;
osd101t2587       193 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587 = devm_kzalloc(&dsi->dev, sizeof(*osd101t2587), GFP_KERNEL);
osd101t2587       194 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	if (!osd101t2587)
osd101t2587       197 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	mipi_dsi_set_drvdata(dsi, osd101t2587);
osd101t2587       199 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->dsi = dsi;
osd101t2587       200 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587->default_mode = id->data;
osd101t2587       202 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	ret = osd101t2587_panel_add(osd101t2587);
osd101t2587       208 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 		drm_panel_remove(&osd101t2587->base);
osd101t2587       215 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = mipi_dsi_get_drvdata(dsi);
osd101t2587       218 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	ret = osd101t2587_panel_disable(&osd101t2587->base);
osd101t2587       222 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587_panel_unprepare(&osd101t2587->base);
osd101t2587       224 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	drm_panel_remove(&osd101t2587->base);
osd101t2587       235 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	struct osd101t2587_panel *osd101t2587 = mipi_dsi_get_drvdata(dsi);
osd101t2587       237 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587_panel_disable(&osd101t2587->base);
osd101t2587       238 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 	osd101t2587_panel_unprepare(&osd101t2587->base);