innolux            70 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = to_innolux_panel(panel);
innolux            72 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (!innolux->enabled)
innolux            75 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	backlight_disable(innolux->backlight);
innolux            77 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->enabled = false;
innolux            84 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = to_innolux_panel(panel);
innolux            87 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (!innolux->prepared)
innolux            90 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_set_display_off(innolux->link);
innolux            95 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_enter_sleep_mode(innolux->link);
innolux           102 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (innolux->desc->sleep_mode_delay)
innolux           103 drivers/gpu/drm/panel/panel-innolux-p079zca.c 		msleep(innolux->desc->sleep_mode_delay);
innolux           105 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	gpiod_set_value_cansleep(innolux->enable_gpio, 0);
innolux           107 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (innolux->desc->power_down_delay)
innolux           108 drivers/gpu/drm/panel/panel-innolux-p079zca.c 		msleep(innolux->desc->power_down_delay);
innolux           110 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = regulator_bulk_disable(innolux->desc->num_supplies,
innolux           111 drivers/gpu/drm/panel/panel-innolux-p079zca.c 				     innolux->supplies);
innolux           115 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->prepared = false;
innolux           122 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = to_innolux_panel(panel);
innolux           125 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (innolux->prepared)
innolux           128 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	gpiod_set_value_cansleep(innolux->enable_gpio, 0);
innolux           130 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = regulator_bulk_enable(innolux->desc->num_supplies,
innolux           131 drivers/gpu/drm/panel/panel-innolux-p079zca.c 				    innolux->supplies);
innolux           138 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	gpiod_set_value_cansleep(innolux->enable_gpio, 1);
innolux           143 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (innolux->desc->init_cmds) {
innolux           145 drivers/gpu/drm/panel/panel-innolux-p079zca.c 					innolux->desc->init_cmds;
innolux           151 drivers/gpu/drm/panel/panel-innolux-p079zca.c 			err = mipi_dsi_generic_write(innolux->link, cmd->data,
innolux           164 drivers/gpu/drm/panel/panel-innolux-p079zca.c 			err = mipi_dsi_dcs_nop(innolux->link);
innolux           173 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_exit_sleep_mode(innolux->link);
innolux           183 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = mipi_dsi_dcs_set_display_on(innolux->link);
innolux           193 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->prepared = true;
innolux           198 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	gpiod_set_value_cansleep(innolux->enable_gpio, 0);
innolux           199 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	regulator_bulk_disable(innolux->desc->num_supplies, innolux->supplies);
innolux           206 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = to_innolux_panel(panel);
innolux           209 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (innolux->enabled)
innolux           212 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	ret = backlight_enable(innolux->backlight);
innolux           219 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->enabled = true;
innolux           408 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = to_innolux_panel(panel);
innolux           409 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	const struct drm_display_mode *m = innolux->desc->mode;
innolux           424 drivers/gpu/drm/panel/panel-innolux-p079zca.c 			innolux->desc->size.width;
innolux           426 drivers/gpu/drm/panel/panel-innolux-p079zca.c 			innolux->desc->size.height;
innolux           427 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	panel->connector->display_info.bpc = innolux->desc->bpc;
innolux           454 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux;
innolux           458 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux = devm_kzalloc(dev, sizeof(*innolux), GFP_KERNEL);
innolux           459 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (!innolux)
innolux           462 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->desc = desc;
innolux           464 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->supplies = devm_kcalloc(dev, desc->num_supplies,
innolux           465 drivers/gpu/drm/panel/panel-innolux-p079zca.c 					 sizeof(*innolux->supplies),
innolux           467 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (!innolux->supplies)
innolux           471 drivers/gpu/drm/panel/panel-innolux-p079zca.c 		innolux->supplies[i].supply = desc->supply_names[i];
innolux           474 drivers/gpu/drm/panel/panel-innolux-p079zca.c 				      innolux->supplies);
innolux           478 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->enable_gpio = devm_gpiod_get_optional(dev, "enable",
innolux           480 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (IS_ERR(innolux->enable_gpio)) {
innolux           481 drivers/gpu/drm/panel/panel-innolux-p079zca.c 		err = PTR_ERR(innolux->enable_gpio);
innolux           483 drivers/gpu/drm/panel/panel-innolux-p079zca.c 		innolux->enable_gpio = NULL;
innolux           486 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->backlight = devm_of_find_backlight(dev);
innolux           487 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	if (IS_ERR(innolux->backlight))
innolux           488 drivers/gpu/drm/panel/panel-innolux-p079zca.c 		return PTR_ERR(innolux->backlight);
innolux           490 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	drm_panel_init(&innolux->base);
innolux           491 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->base.funcs = &innolux_panel_funcs;
innolux           492 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->base.dev = dev;
innolux           494 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = drm_panel_add(&innolux->base);
innolux           498 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	mipi_dsi_set_drvdata(dsi, innolux);
innolux           499 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux->link = dsi;
innolux           504 drivers/gpu/drm/panel/panel-innolux-p079zca.c static void innolux_panel_del(struct innolux_panel *innolux)
innolux           506 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	drm_panel_remove(&innolux->base);
innolux           528 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = mipi_dsi_get_drvdata(dsi);
innolux           531 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = innolux_panel_unprepare(&innolux->base);
innolux           536 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	err = innolux_panel_disable(&innolux->base);
innolux           545 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux_panel_del(innolux);
innolux           552 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	struct innolux_panel *innolux = mipi_dsi_get_drvdata(dsi);
innolux           554 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux_panel_unprepare(&innolux->base);
innolux           555 drivers/gpu/drm/panel/panel-innolux-p079zca.c 	innolux_panel_disable(&innolux->base);