Lines Matching refs:ovl
43 static ssize_t overlay_name_show(struct omap_overlay *ovl, char *buf) in overlay_name_show() argument
45 return snprintf(buf, PAGE_SIZE, "%s\n", ovl->name); in overlay_name_show()
48 static ssize_t overlay_manager_show(struct omap_overlay *ovl, char *buf) in overlay_manager_show() argument
51 ovl->manager ? ovl->manager->name : "<none>"); in overlay_manager_show()
54 static ssize_t overlay_manager_store(struct omap_overlay *ovl, const char *buf, in overlay_manager_store() argument
82 if (mgr == ovl->manager) in overlay_manager_store()
85 old_mgr = ovl->manager; in overlay_manager_store()
93 r = ovl->unset_manager(ovl); in overlay_manager_store()
105 r = ovl->set_manager(ovl, mgr); in overlay_manager_store()
125 static ssize_t overlay_input_size_show(struct omap_overlay *ovl, char *buf) in overlay_input_size_show() argument
129 ovl->get_overlay_info(ovl, &info); in overlay_input_size_show()
135 static ssize_t overlay_screen_width_show(struct omap_overlay *ovl, char *buf) in overlay_screen_width_show() argument
139 ovl->get_overlay_info(ovl, &info); in overlay_screen_width_show()
144 static ssize_t overlay_position_show(struct omap_overlay *ovl, char *buf) in overlay_position_show() argument
148 ovl->get_overlay_info(ovl, &info); in overlay_position_show()
154 static ssize_t overlay_position_store(struct omap_overlay *ovl, in overlay_position_store() argument
161 ovl->get_overlay_info(ovl, &info); in overlay_position_store()
170 r = ovl->set_overlay_info(ovl, &info); in overlay_position_store()
174 if (ovl->manager) { in overlay_position_store()
175 r = ovl->manager->apply(ovl->manager); in overlay_position_store()
183 static ssize_t overlay_output_size_show(struct omap_overlay *ovl, char *buf) in overlay_output_size_show() argument
187 ovl->get_overlay_info(ovl, &info); in overlay_output_size_show()
193 static ssize_t overlay_output_size_store(struct omap_overlay *ovl, in overlay_output_size_store() argument
200 ovl->get_overlay_info(ovl, &info); in overlay_output_size_store()
209 r = ovl->set_overlay_info(ovl, &info); in overlay_output_size_store()
213 if (ovl->manager) { in overlay_output_size_store()
214 r = ovl->manager->apply(ovl->manager); in overlay_output_size_store()
222 static ssize_t overlay_enabled_show(struct omap_overlay *ovl, char *buf) in overlay_enabled_show() argument
224 return snprintf(buf, PAGE_SIZE, "%d\n", ovl->is_enabled(ovl)); in overlay_enabled_show()
227 static ssize_t overlay_enabled_store(struct omap_overlay *ovl, const char *buf, in overlay_enabled_store() argument
238 r = ovl->enable(ovl); in overlay_enabled_store()
240 r = ovl->disable(ovl); in overlay_enabled_store()
248 static ssize_t overlay_global_alpha_show(struct omap_overlay *ovl, char *buf) in overlay_global_alpha_show() argument
252 ovl->get_overlay_info(ovl, &info); in overlay_global_alpha_show()
258 static ssize_t overlay_global_alpha_store(struct omap_overlay *ovl, in overlay_global_alpha_store() argument
265 if ((ovl->caps & OMAP_DSS_OVL_CAP_GLOBAL_ALPHA) == 0) in overlay_global_alpha_store()
272 ovl->get_overlay_info(ovl, &info); in overlay_global_alpha_store()
276 r = ovl->set_overlay_info(ovl, &info); in overlay_global_alpha_store()
280 if (ovl->manager) { in overlay_global_alpha_store()
281 r = ovl->manager->apply(ovl->manager); in overlay_global_alpha_store()
289 static ssize_t overlay_pre_mult_alpha_show(struct omap_overlay *ovl, in overlay_pre_mult_alpha_show() argument
294 ovl->get_overlay_info(ovl, &info); in overlay_pre_mult_alpha_show()
300 static ssize_t overlay_pre_mult_alpha_store(struct omap_overlay *ovl, in overlay_pre_mult_alpha_store() argument
307 if ((ovl->caps & OMAP_DSS_OVL_CAP_PRE_MULT_ALPHA) == 0) in overlay_pre_mult_alpha_store()
314 ovl->get_overlay_info(ovl, &info); in overlay_pre_mult_alpha_store()
318 r = ovl->set_overlay_info(ovl, &info); in overlay_pre_mult_alpha_store()
322 if (ovl->manager) { in overlay_pre_mult_alpha_store()
323 r = ovl->manager->apply(ovl->manager); in overlay_pre_mult_alpha_store()
331 static ssize_t overlay_zorder_show(struct omap_overlay *ovl, char *buf) in overlay_zorder_show() argument
335 ovl->get_overlay_info(ovl, &info); in overlay_zorder_show()
340 static ssize_t overlay_zorder_store(struct omap_overlay *ovl, in overlay_zorder_store() argument
347 if ((ovl->caps & OMAP_DSS_OVL_CAP_ZORDER) == 0) in overlay_zorder_store()
354 ovl->get_overlay_info(ovl, &info); in overlay_zorder_store()
358 r = ovl->set_overlay_info(ovl, &info); in overlay_zorder_store()
362 if (ovl->manager) { in overlay_zorder_store()
363 r = ovl->manager->apply(ovl->manager); in overlay_zorder_store()
481 struct omap_overlay *ovl = &overlays[i]; in dss_init_overlays() local
485 ovl->name = "gfx"; in dss_init_overlays()
486 ovl->id = OMAP_DSS_GFX; in dss_init_overlays()
489 ovl->name = "vid1"; in dss_init_overlays()
490 ovl->id = OMAP_DSS_VIDEO1; in dss_init_overlays()
493 ovl->name = "vid2"; in dss_init_overlays()
494 ovl->id = OMAP_DSS_VIDEO2; in dss_init_overlays()
497 ovl->name = "vid3"; in dss_init_overlays()
498 ovl->id = OMAP_DSS_VIDEO3; in dss_init_overlays()
502 ovl->is_enabled = &dss_ovl_is_enabled; in dss_init_overlays()
503 ovl->enable = &dss_ovl_enable; in dss_init_overlays()
504 ovl->disable = &dss_ovl_disable; in dss_init_overlays()
505 ovl->set_manager = &dss_ovl_set_manager; in dss_init_overlays()
506 ovl->unset_manager = &dss_ovl_unset_manager; in dss_init_overlays()
507 ovl->set_overlay_info = &dss_ovl_set_info; in dss_init_overlays()
508 ovl->get_overlay_info = &dss_ovl_get_info; in dss_init_overlays()
509 ovl->wait_for_go = &dss_mgr_wait_for_go_ovl; in dss_init_overlays()
511 ovl->caps = dss_feat_get_overlay_caps(ovl->id); in dss_init_overlays()
512 ovl->supported_modes = in dss_init_overlays()
513 dss_feat_get_supported_color_modes(ovl->id); in dss_init_overlays()
515 r = kobject_init_and_add(&ovl->kobj, &overlay_ktype, in dss_init_overlays()
569 struct omap_overlay *ovl; in dss_recheck_connections() local
570 ovl = omap_dss_get_overlay(i); in dss_recheck_connections()
571 if (!ovl->manager || force) { in dss_recheck_connections()
572 if (ovl->manager) in dss_recheck_connections()
573 ovl->unset_manager(ovl); in dss_recheck_connections()
574 ovl->set_manager(ovl, mgr); in dss_recheck_connections()
587 struct omap_overlay *ovl = &overlays[i]; in dss_uninit_overlays() local
589 kobject_del(&ovl->kobj); in dss_uninit_overlays()
590 kobject_put(&ovl->kobj); in dss_uninit_overlays()
598 int dss_ovl_simple_check(struct omap_overlay *ovl, in dss_ovl_simple_check() argument
606 if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0) { in dss_ovl_simple_check()
609 "scaling\n", ovl->id); in dss_ovl_simple_check()
615 "scaling\n", ovl->id); in dss_ovl_simple_check()
620 if ((ovl->supported_modes & info->color_mode) == 0) { in dss_ovl_simple_check()
622 ovl->id, info->color_mode); in dss_ovl_simple_check()
634 int dss_ovl_check(struct omap_overlay *ovl, in dss_ovl_check() argument
645 if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0) { in dss_ovl_check()
663 ovl->id, info->pos_x, outw, dw); in dss_ovl_check()
670 ovl->id, info->pos_y, outh, dh); in dss_ovl_check()