Lines Matching refs:ovl

24 static ssize_t overlay_name_show(struct omap_overlay *ovl, char *buf)  in overlay_name_show()  argument
26 return sysfs_emit(buf, "%s\n", ovl->name); in overlay_name_show()
29 static ssize_t overlay_manager_show(struct omap_overlay *ovl, char *buf) in overlay_manager_show() argument
32 ovl->manager ? ovl->manager->name : "<none>"); in overlay_manager_show()
35 static ssize_t overlay_manager_store(struct omap_overlay *ovl, const char *buf, in overlay_manager_store() argument
63 if (mgr == ovl->manager) in overlay_manager_store()
66 old_mgr = ovl->manager; in overlay_manager_store()
74 r = ovl->unset_manager(ovl); in overlay_manager_store()
86 r = ovl->set_manager(ovl, mgr); in overlay_manager_store()
106 static ssize_t overlay_input_size_show(struct omap_overlay *ovl, char *buf) in overlay_input_size_show() argument
110 ovl->get_overlay_info(ovl, &info); in overlay_input_size_show()
116 static ssize_t overlay_screen_width_show(struct omap_overlay *ovl, char *buf) in overlay_screen_width_show() argument
120 ovl->get_overlay_info(ovl, &info); in overlay_screen_width_show()
125 static ssize_t overlay_position_show(struct omap_overlay *ovl, char *buf) in overlay_position_show() argument
129 ovl->get_overlay_info(ovl, &info); in overlay_position_show()
135 static ssize_t overlay_position_store(struct omap_overlay *ovl, in overlay_position_store() argument
142 ovl->get_overlay_info(ovl, &info); in overlay_position_store()
151 r = ovl->set_overlay_info(ovl, &info); in overlay_position_store()
155 if (ovl->manager) { in overlay_position_store()
156 r = ovl->manager->apply(ovl->manager); in overlay_position_store()
164 static ssize_t overlay_output_size_show(struct omap_overlay *ovl, char *buf) in overlay_output_size_show() argument
168 ovl->get_overlay_info(ovl, &info); in overlay_output_size_show()
174 static ssize_t overlay_output_size_store(struct omap_overlay *ovl, in overlay_output_size_store() argument
181 ovl->get_overlay_info(ovl, &info); in overlay_output_size_store()
190 r = ovl->set_overlay_info(ovl, &info); in overlay_output_size_store()
194 if (ovl->manager) { in overlay_output_size_store()
195 r = ovl->manager->apply(ovl->manager); in overlay_output_size_store()
203 static ssize_t overlay_enabled_show(struct omap_overlay *ovl, char *buf) in overlay_enabled_show() argument
205 return sysfs_emit(buf, "%d\n", ovl->is_enabled(ovl)); in overlay_enabled_show()
208 static ssize_t overlay_enabled_store(struct omap_overlay *ovl, const char *buf, in overlay_enabled_store() argument
219 r = ovl->enable(ovl); in overlay_enabled_store()
221 r = ovl->disable(ovl); in overlay_enabled_store()
229 static ssize_t overlay_global_alpha_show(struct omap_overlay *ovl, char *buf) in overlay_global_alpha_show() argument
233 ovl->get_overlay_info(ovl, &info); in overlay_global_alpha_show()
239 static ssize_t overlay_global_alpha_store(struct omap_overlay *ovl, in overlay_global_alpha_store() argument
246 if ((ovl->caps & OMAP_DSS_OVL_CAP_GLOBAL_ALPHA) == 0) in overlay_global_alpha_store()
253 ovl->get_overlay_info(ovl, &info); in overlay_global_alpha_store()
257 r = ovl->set_overlay_info(ovl, &info); in overlay_global_alpha_store()
261 if (ovl->manager) { in overlay_global_alpha_store()
262 r = ovl->manager->apply(ovl->manager); in overlay_global_alpha_store()
270 static ssize_t overlay_pre_mult_alpha_show(struct omap_overlay *ovl, in overlay_pre_mult_alpha_show() argument
275 ovl->get_overlay_info(ovl, &info); in overlay_pre_mult_alpha_show()
281 static ssize_t overlay_pre_mult_alpha_store(struct omap_overlay *ovl, in overlay_pre_mult_alpha_store() argument
288 if ((ovl->caps & OMAP_DSS_OVL_CAP_PRE_MULT_ALPHA) == 0) in overlay_pre_mult_alpha_store()
295 ovl->get_overlay_info(ovl, &info); in overlay_pre_mult_alpha_store()
299 r = ovl->set_overlay_info(ovl, &info); in overlay_pre_mult_alpha_store()
303 if (ovl->manager) { in overlay_pre_mult_alpha_store()
304 r = ovl->manager->apply(ovl->manager); in overlay_pre_mult_alpha_store()
312 static ssize_t overlay_zorder_show(struct omap_overlay *ovl, char *buf) in overlay_zorder_show() argument
316 ovl->get_overlay_info(ovl, &info); in overlay_zorder_show()
321 static ssize_t overlay_zorder_store(struct omap_overlay *ovl, in overlay_zorder_store() argument
328 if ((ovl->caps & OMAP_DSS_OVL_CAP_ZORDER) == 0) in overlay_zorder_store()
335 ovl->get_overlay_info(ovl, &info); in overlay_zorder_store()
339 r = ovl->set_overlay_info(ovl, &info); in overlay_zorder_store()
343 if (ovl->manager) { in overlay_zorder_store()
344 r = ovl->manager->apply(ovl->manager); in overlay_zorder_store()
436 int dss_overlay_kobj_init(struct omap_overlay *ovl, in dss_overlay_kobj_init() argument
439 return kobject_init_and_add(&ovl->kobj, &overlay_ktype, in dss_overlay_kobj_init()
440 &pdev->dev.kobj, "overlay%d", ovl->id); in dss_overlay_kobj_init()
443 void dss_overlay_kobj_uninit(struct omap_overlay *ovl) in dss_overlay_kobj_uninit() argument
445 kobject_del(&ovl->kobj); in dss_overlay_kobj_uninit()
446 kobject_put(&ovl->kobj); in dss_overlay_kobj_uninit()