• Home
  • Raw
  • Download

Lines Matching refs:rad

266 	struct rad_panel *rad = to_rad_panel(panel);  in rad_panel_prepare()  local
269 if (rad->prepared) in rad_panel_prepare()
272 ret = regulator_bulk_enable(rad->num_supplies, rad->supplies); in rad_panel_prepare()
276 if (rad->reset) { in rad_panel_prepare()
277 gpiod_set_value_cansleep(rad->reset, 1); in rad_panel_prepare()
279 gpiod_set_value_cansleep(rad->reset, 0); in rad_panel_prepare()
283 rad->prepared = true; in rad_panel_prepare()
290 struct rad_panel *rad = to_rad_panel(panel); in rad_panel_unprepare() local
293 if (!rad->prepared) in rad_panel_unprepare()
301 if (rad->reset) { in rad_panel_unprepare()
302 gpiod_set_value_cansleep(rad->reset, 1); in rad_panel_unprepare()
304 gpiod_set_value_cansleep(rad->reset, 0); in rad_panel_unprepare()
307 ret = regulator_bulk_disable(rad->num_supplies, rad->supplies); in rad_panel_unprepare()
311 rad->prepared = false; in rad_panel_unprepare()
318 struct rad_panel *rad = to_rad_panel(panel); in rad_panel_enable() local
319 struct mipi_dsi_device *dsi = rad->dsi; in rad_panel_enable()
324 if (rad->enabled) in rad_panel_enable()
389 backlight_enable(rad->backlight); in rad_panel_enable()
391 rad->enabled = true; in rad_panel_enable()
396 gpiod_set_value_cansleep(rad->reset, 1); in rad_panel_enable()
403 struct rad_panel *rad = to_rad_panel(panel); in rad_panel_disable() local
404 struct mipi_dsi_device *dsi = rad->dsi; in rad_panel_disable()
408 if (!rad->enabled) in rad_panel_disable()
413 backlight_disable(rad->backlight); in rad_panel_disable()
431 rad->enabled = false; in rad_panel_disable()
466 struct rad_panel *rad = mipi_dsi_get_drvdata(dsi); in rad_bl_get_brightness() local
470 if (!rad->prepared) in rad_bl_get_brightness()
487 struct rad_panel *rad = mipi_dsi_get_drvdata(dsi); in rad_bl_update_status() local
490 if (!rad->prepared) in rad_bl_update_status()
520 static int rad_init_regulators(struct rad_panel *rad) in rad_init_regulators() argument
522 struct device *dev = &rad->dsi->dev; in rad_init_regulators()
525 rad->num_supplies = ARRAY_SIZE(rad_supply_names); in rad_init_regulators()
526 rad->supplies = devm_kcalloc(dev, rad->num_supplies, in rad_init_regulators()
527 sizeof(*rad->supplies), GFP_KERNEL); in rad_init_regulators()
528 if (!rad->supplies) in rad_init_regulators()
531 for (i = 0; i < rad->num_supplies; i++) in rad_init_regulators()
532 rad->supplies[i].supply = rad_supply_names[i]; in rad_init_regulators()
534 return devm_regulator_bulk_get(dev, rad->num_supplies, rad->supplies); in rad_init_regulators()
620 struct rad_panel *rad = mipi_dsi_get_drvdata(dsi); in rad_panel_remove() local
628 drm_panel_remove(&rad->panel); in rad_panel_remove()
635 struct rad_panel *rad = mipi_dsi_get_drvdata(dsi); in rad_panel_shutdown() local
637 rad_panel_disable(&rad->panel); in rad_panel_shutdown()
638 rad_panel_unprepare(&rad->panel); in rad_panel_shutdown()