Lines Matching refs:dssdev
37 struct omap_dss_device dssdev; member
47 #define to_panel_data(x) container_of(x, struct panel_drv_data, dssdev)
49 static int hdmic_connect(struct omap_dss_device *dssdev) in hdmic_connect() argument
51 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_connect()
57 if (omapdss_device_is_connected(dssdev)) in hdmic_connect()
60 r = in->ops.hdmi->connect(in, dssdev); in hdmic_connect()
67 static void hdmic_disconnect(struct omap_dss_device *dssdev) in hdmic_disconnect() argument
69 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_disconnect()
74 if (!omapdss_device_is_connected(dssdev)) in hdmic_disconnect()
77 in->ops.hdmi->disconnect(in, dssdev); in hdmic_disconnect()
80 static int hdmic_enable(struct omap_dss_device *dssdev) in hdmic_enable() argument
82 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_enable()
88 if (!omapdss_device_is_connected(dssdev)) in hdmic_enable()
91 if (omapdss_device_is_enabled(dssdev)) in hdmic_enable()
100 dssdev->state = OMAP_DSS_DISPLAY_ACTIVE; in hdmic_enable()
105 static void hdmic_disable(struct omap_dss_device *dssdev) in hdmic_disable() argument
107 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_disable()
112 if (!omapdss_device_is_enabled(dssdev)) in hdmic_disable()
117 dssdev->state = OMAP_DSS_DISPLAY_DISABLED; in hdmic_disable()
120 static void hdmic_set_timings(struct omap_dss_device *dssdev, in hdmic_set_timings() argument
123 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_set_timings()
127 dssdev->panel.timings = *timings; in hdmic_set_timings()
132 static void hdmic_get_timings(struct omap_dss_device *dssdev, in hdmic_get_timings() argument
135 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_get_timings()
140 static int hdmic_check_timings(struct omap_dss_device *dssdev, in hdmic_check_timings() argument
143 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_check_timings()
149 static int hdmic_read_edid(struct omap_dss_device *dssdev, in hdmic_read_edid() argument
152 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_read_edid()
158 static bool hdmic_detect(struct omap_dss_device *dssdev) in hdmic_detect() argument
160 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_detect()
169 static int hdmic_set_hdmi_mode(struct omap_dss_device *dssdev, bool hdmi_mode) in hdmic_set_hdmi_mode() argument
171 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_set_hdmi_mode()
177 static int hdmic_set_infoframe(struct omap_dss_device *dssdev, in hdmic_set_infoframe() argument
180 struct panel_drv_data *ddata = to_panel_data(dssdev); in hdmic_set_infoframe()
233 struct omap_dss_device *dssdev; in hdmic_probe() local
259 dssdev = &ddata->dssdev; in hdmic_probe()
260 dssdev->driver = &hdmic_driver; in hdmic_probe()
261 dssdev->dev = &pdev->dev; in hdmic_probe()
262 dssdev->type = OMAP_DISPLAY_TYPE_HDMI; in hdmic_probe()
263 dssdev->owner = THIS_MODULE; in hdmic_probe()
264 dssdev->panel.timings = hdmic_default_timings; in hdmic_probe()
266 r = omapdss_register_display(dssdev); in hdmic_probe()
281 struct omap_dss_device *dssdev = &ddata->dssdev; in hdmic_remove() local
284 omapdss_unregister_display(&ddata->dssdev); in hdmic_remove()
286 hdmic_disable(dssdev); in hdmic_remove()
287 hdmic_disconnect(dssdev); in hdmic_remove()