Lines Matching full:s6

50 	struct s6d16d0 *s6 = panel_to_s6d16d0(panel);  in s6d16d0_unprepare()  local
51 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_unprepare()
57 dev_err(s6->dev, "failed to enter sleep mode (%d)\n", ret); in s6d16d0_unprepare()
62 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_unprepare()
63 regulator_disable(s6->supply); in s6d16d0_unprepare()
70 struct s6d16d0 *s6 = panel_to_s6d16d0(panel); in s6d16d0_prepare() local
71 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_prepare()
74 ret = regulator_enable(s6->supply); in s6d16d0_prepare()
76 dev_err(s6->dev, "failed to enable supply (%d)\n", ret); in s6d16d0_prepare()
81 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_prepare()
84 gpiod_set_value_cansleep(s6->reset_gpio, 0); in s6d16d0_prepare()
91 dev_err(s6->dev, "failed to enable vblank TE (%d)\n", ret); in s6d16d0_prepare()
97 dev_err(s6->dev, "failed to exit sleep mode (%d)\n", ret); in s6d16d0_prepare()
106 struct s6d16d0 *s6 = panel_to_s6d16d0(panel); in s6d16d0_enable() local
107 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_enable()
112 dev_err(s6->dev, "failed to turn display on (%d)\n", ret); in s6d16d0_enable()
121 struct s6d16d0 *s6 = panel_to_s6d16d0(panel); in s6d16d0_disable() local
122 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev); in s6d16d0_disable()
127 dev_err(s6->dev, "failed to turn display off (%d)\n", ret); in s6d16d0_disable()
166 struct s6d16d0 *s6; in s6d16d0_probe() local
169 s6 = devm_kzalloc(dev, sizeof(struct s6d16d0), GFP_KERNEL); in s6d16d0_probe()
170 if (!s6) in s6d16d0_probe()
173 mipi_dsi_set_drvdata(dsi, s6); in s6d16d0_probe()
174 s6->dev = dev; in s6d16d0_probe()
191 s6->supply = devm_regulator_get(dev, "vdd1"); in s6d16d0_probe()
192 if (IS_ERR(s6->supply)) in s6d16d0_probe()
193 return PTR_ERR(s6->supply); in s6d16d0_probe()
196 s6->reset_gpio = devm_gpiod_get_optional(dev, "reset", in s6d16d0_probe()
198 if (IS_ERR(s6->reset_gpio)) { in s6d16d0_probe()
199 ret = PTR_ERR(s6->reset_gpio); in s6d16d0_probe()
205 drm_panel_init(&s6->panel, dev, &s6d16d0_drm_funcs, in s6d16d0_probe()
208 drm_panel_add(&s6->panel); in s6d16d0_probe()
212 drm_panel_remove(&s6->panel); in s6d16d0_probe()
219 struct s6d16d0 *s6 = mipi_dsi_get_drvdata(dsi); in s6d16d0_remove() local
222 drm_panel_remove(&s6->panel); in s6d16d0_remove()