Lines Matching full:db

93 static int db7430_power_on(struct db7430 *db)  in db7430_power_on()  argument
95 struct mipi_dbi *dbi = &db->dbi; in db7430_power_on()
99 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators), in db7430_power_on()
100 db->regulators); in db7430_power_on()
102 dev_err(db->dev, "failed to enable regulators: %d\n", ret); in db7430_power_on()
108 gpiod_set_value_cansleep(db->reset, 1); in db7430_power_on()
111 gpiod_set_value_cansleep(db->reset, 0); in db7430_power_on()
114 dev_dbg(db->dev, "de-asserted RESET\n"); in db7430_power_on()
168 static int db7430_power_off(struct db7430 *db) in db7430_power_off() argument
171 gpiod_set_value_cansleep(db->reset, 1); in db7430_power_off()
172 return regulator_bulk_disable(ARRAY_SIZE(db->regulators), in db7430_power_off()
173 db->regulators); in db7430_power_off()
183 struct db7430 *db = to_db7430(panel); in db7430_disable() local
184 struct mipi_dbi *dbi = &db->dbi; in db7430_disable()
201 struct db7430 *db = to_db7430(panel); in db7430_enable() local
202 struct mipi_dbi *dbi = &db->dbi; in db7430_enable()
234 struct db7430 *db = to_db7430(panel); in db7430_get_modes() local
240 dev_err(db->dev, "failed to add mode\n"); in db7430_get_modes()
271 struct db7430 *db; in db7430_probe() local
274 db = devm_kzalloc(dev, sizeof(*db), GFP_KERNEL); in db7430_probe()
275 if (!db) in db7430_probe()
277 db->dev = dev; in db7430_probe()
283 db->regulators[0].supply = "vci"; in db7430_probe()
284 db->regulators[1].supply = "vccio"; in db7430_probe()
286 ARRAY_SIZE(db->regulators), in db7430_probe()
287 db->regulators); in db7430_probe()
291 db->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in db7430_probe()
292 if (IS_ERR(db->reset)) { in db7430_probe()
293 ret = PTR_ERR(db->reset); in db7430_probe()
297 ret = mipi_dbi_spi_init(spi, &db->dbi, NULL); in db7430_probe()
301 drm_panel_init(&db->panel, dev, &db7430_drm_funcs, in db7430_probe()
305 ret = drm_panel_of_backlight(&db->panel); in db7430_probe()
309 spi_set_drvdata(spi, db); in db7430_probe()
311 drm_panel_add(&db->panel); in db7430_probe()
319 struct db7430 *db = spi_get_drvdata(spi); in db7430_remove() local
321 drm_panel_remove(&db->panel); in db7430_remove()