Lines Matching refs:jadard

36 struct jadard {  struct
46 static inline struct jadard *panel_to_jadard(struct drm_panel *panel) in panel_to_jadard() argument
48 return container_of(panel, struct jadard, panel); in panel_to_jadard()
54 struct jadard *jadard = panel_to_jadard(panel); in jadard_enable() local
55 const struct jadard_panel_desc *desc = jadard->desc; in jadard_enable()
56 struct mipi_dsi_device *dsi = jadard->dsi; in jadard_enable()
86 struct jadard *jadard = panel_to_jadard(panel); in jadard_disable() local
89 ret = mipi_dsi_dcs_set_display_off(jadard->dsi); in jadard_disable()
93 ret = mipi_dsi_dcs_enter_sleep_mode(jadard->dsi); in jadard_disable()
102 struct jadard *jadard = panel_to_jadard(panel); in jadard_prepare() local
105 ret = regulator_enable(jadard->vccio); in jadard_prepare()
109 ret = regulator_enable(jadard->vdd); in jadard_prepare()
113 gpiod_set_value(jadard->reset, 1); in jadard_prepare()
116 gpiod_set_value(jadard->reset, 0); in jadard_prepare()
119 gpiod_set_value(jadard->reset, 1); in jadard_prepare()
127 struct jadard *jadard = panel_to_jadard(panel); in jadard_unprepare() local
129 gpiod_set_value(jadard->reset, 1); in jadard_unprepare()
132 regulator_disable(jadard->vdd); in jadard_unprepare()
133 regulator_disable(jadard->vccio); in jadard_unprepare()
141 struct jadard *jadard = panel_to_jadard(panel); in jadard_get_modes() local
142 const struct drm_display_mode *desc_mode = &jadard->desc->mode; in jadard_get_modes()
147 DRM_DEV_ERROR(&jadard->dsi->dev, "failed to add mode %ux%ux@%u\n", in jadard_get_modes()
591 struct jadard *jadard; in jadard_dsi_probe() local
594 jadard = devm_kzalloc(&dsi->dev, sizeof(*jadard), GFP_KERNEL); in jadard_dsi_probe()
595 if (!jadard) in jadard_dsi_probe()
604 jadard->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in jadard_dsi_probe()
605 if (IS_ERR(jadard->reset)) { in jadard_dsi_probe()
607 return PTR_ERR(jadard->reset); in jadard_dsi_probe()
610 jadard->vdd = devm_regulator_get(dev, "vdd"); in jadard_dsi_probe()
611 if (IS_ERR(jadard->vdd)) { in jadard_dsi_probe()
613 return PTR_ERR(jadard->vdd); in jadard_dsi_probe()
616 jadard->vccio = devm_regulator_get(dev, "vccio"); in jadard_dsi_probe()
617 if (IS_ERR(jadard->vccio)) { in jadard_dsi_probe()
619 return PTR_ERR(jadard->vccio); in jadard_dsi_probe()
622 drm_panel_init(&jadard->panel, dev, &jadard_funcs, in jadard_dsi_probe()
625 ret = drm_panel_of_backlight(&jadard->panel); in jadard_dsi_probe()
629 drm_panel_add(&jadard->panel); in jadard_dsi_probe()
631 mipi_dsi_set_drvdata(dsi, jadard); in jadard_dsi_probe()
632 jadard->dsi = dsi; in jadard_dsi_probe()
633 jadard->desc = desc; in jadard_dsi_probe()
637 drm_panel_remove(&jadard->panel); in jadard_dsi_probe()
644 struct jadard *jadard = mipi_dsi_get_drvdata(dsi); in jadard_dsi_remove() local
647 drm_panel_remove(&jadard->panel); in jadard_dsi_remove()