Lines Matching refs:dssdev
20 static ssize_t display_name_show(struct omap_dss_device *dssdev, char *buf) in display_name_show() argument
23 dssdev->name ? in display_name_show()
24 dssdev->name : ""); in display_name_show()
27 static ssize_t display_enabled_show(struct omap_dss_device *dssdev, char *buf) in display_enabled_show() argument
30 omapdss_device_is_enabled(dssdev)); in display_enabled_show()
33 static ssize_t display_enabled_store(struct omap_dss_device *dssdev, in display_enabled_store() argument
43 if (enable == omapdss_device_is_enabled(dssdev)) in display_enabled_store()
46 if (omapdss_device_is_connected(dssdev) == false) in display_enabled_store()
50 r = dssdev->driver->enable(dssdev); in display_enabled_store()
54 dssdev->driver->disable(dssdev); in display_enabled_store()
60 static ssize_t display_tear_show(struct omap_dss_device *dssdev, char *buf) in display_tear_show() argument
63 dssdev->driver->get_te ? in display_tear_show()
64 dssdev->driver->get_te(dssdev) : 0); in display_tear_show()
67 static ssize_t display_tear_store(struct omap_dss_device *dssdev, in display_tear_store() argument
73 if (!dssdev->driver->enable_te || !dssdev->driver->get_te) in display_tear_store()
80 r = dssdev->driver->enable_te(dssdev, te); in display_tear_store()
87 static ssize_t display_timings_show(struct omap_dss_device *dssdev, char *buf) in display_timings_show() argument
91 if (!dssdev->driver->get_timings) in display_timings_show()
94 dssdev->driver->get_timings(dssdev, &t); in display_timings_show()
102 static ssize_t display_timings_store(struct omap_dss_device *dssdev, in display_timings_store() argument
105 struct omap_video_timings t = dssdev->panel.timings; in display_timings_store()
108 if (!dssdev->driver->set_timings || !dssdev->driver->check_timings) in display_timings_store()
127 r = dssdev->driver->check_timings(dssdev, &t); in display_timings_store()
131 dssdev->driver->disable(dssdev); in display_timings_store()
132 dssdev->driver->set_timings(dssdev, &t); in display_timings_store()
133 r = dssdev->driver->enable(dssdev); in display_timings_store()
140 static ssize_t display_rotate_show(struct omap_dss_device *dssdev, char *buf) in display_rotate_show() argument
143 if (!dssdev->driver->get_rotate) in display_rotate_show()
145 rotate = dssdev->driver->get_rotate(dssdev); in display_rotate_show()
149 static ssize_t display_rotate_store(struct omap_dss_device *dssdev, in display_rotate_store() argument
154 if (!dssdev->driver->set_rotate || !dssdev->driver->get_rotate) in display_rotate_store()
161 r = dssdev->driver->set_rotate(dssdev, rot); in display_rotate_store()
168 static ssize_t display_mirror_show(struct omap_dss_device *dssdev, char *buf) in display_mirror_show() argument
171 if (!dssdev->driver->get_mirror) in display_mirror_show()
173 mirror = dssdev->driver->get_mirror(dssdev); in display_mirror_show()
177 static ssize_t display_mirror_store(struct omap_dss_device *dssdev, in display_mirror_store() argument
183 if (!dssdev->driver->set_mirror || !dssdev->driver->get_mirror) in display_mirror_store()
190 r = dssdev->driver->set_mirror(dssdev, mirror); in display_mirror_store()
197 static ssize_t display_wss_show(struct omap_dss_device *dssdev, char *buf) in display_wss_show() argument
201 if (!dssdev->driver->get_wss) in display_wss_show()
204 wss = dssdev->driver->get_wss(dssdev); in display_wss_show()
209 static ssize_t display_wss_store(struct omap_dss_device *dssdev, in display_wss_store() argument
215 if (!dssdev->driver->get_wss || !dssdev->driver->set_wss) in display_wss_store()
225 r = dssdev->driver->set_wss(dssdev, wss); in display_wss_store()
273 struct omap_dss_device *dssdev; in display_attr_show() local
276 dssdev = container_of(kobj, struct omap_dss_device, kobj); in display_attr_show()
282 return display_attr->show(dssdev, buf); in display_attr_show()
288 struct omap_dss_device *dssdev; in display_attr_store() local
291 dssdev = container_of(kobj, struct omap_dss_device, kobj); in display_attr_store()
297 return display_attr->store(dssdev, buf, size); in display_attr_store()
312 struct omap_dss_device *dssdev = NULL; in display_init_sysfs() local
315 for_each_dss_dev(dssdev) { in display_init_sysfs()
316 r = kobject_init_and_add(&dssdev->kobj, &display_ktype, in display_init_sysfs()
317 &pdev->dev.kobj, "%s", dssdev->alias); in display_init_sysfs()
320 omap_dss_put_device(dssdev); in display_init_sysfs()
335 struct omap_dss_device *dssdev = NULL; in display_uninit_sysfs() local
337 for_each_dss_dev(dssdev) { in display_uninit_sysfs()
338 if (kobject_name(&dssdev->kobj) == NULL) in display_uninit_sysfs()
341 kobject_del(&dssdev->kobj); in display_uninit_sysfs()
342 kobject_put(&dssdev->kobj); in display_uninit_sysfs()
344 memset(&dssdev->kobj, 0, sizeof(dssdev->kobj)); in display_uninit_sysfs()