Lines Matching refs:ovl

118 static struct ovl_priv_data *get_ovl_priv(struct omap_overlay *ovl)  in get_ovl_priv()  argument
120 return &dss_data.ovl_priv_data_array[ovl->id]; in get_ovl_priv()
181 static bool ovl_manual_update(struct omap_overlay *ovl) in ovl_manual_update() argument
183 struct mgr_priv_data *mp = get_mgr_priv(ovl->manager); in ovl_manual_update()
200 struct omap_overlay *ovl; in dss_check_settings_low() local
216 list_for_each_entry(ovl, &mgr->overlays, list) { in dss_check_settings_low()
217 op = get_ovl_priv(ovl); in dss_check_settings_low()
226 ois[ovl->id] = oi; in dss_check_settings_low()
257 struct omap_overlay *ovl; in need_isr() local
296 list_for_each_entry(ovl, &mgr->overlays, list) { in need_isr()
299 op = get_ovl_priv(ovl); in need_isr()
334 struct omap_overlay *ovl; in need_go() local
343 list_for_each_entry(ovl, &mgr->overlays, list) { in need_go()
344 op = get_ovl_priv(ovl); in need_go()
360 struct omap_overlay *ovl; in extra_info_update_ongoing() local
375 list_for_each_entry(ovl, &mgr->overlays, list) { in extra_info_update_ongoing()
376 struct ovl_priv_data *op = get_ovl_priv(ovl); in extra_info_update_ongoing()
430 static struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl) in dss_ovl_get_device() argument
432 return ovl->manager ? dss_mgr_get_device(ovl->manager) : NULL; in dss_ovl_get_device()
537 static int dss_mgr_wait_for_go_ovl(struct omap_overlay *ovl) in dss_mgr_wait_for_go_ovl() argument
547 if (!ovl->manager) in dss_mgr_wait_for_go_ovl()
550 mp = get_mgr_priv(ovl->manager); in dss_mgr_wait_for_go_ovl()
554 if (ovl_manual_update(ovl)) { in dss_mgr_wait_for_go_ovl()
570 irq = dispc_mgr_get_vsync_irq(ovl->manager->id); in dss_mgr_wait_for_go_ovl()
572 op = get_ovl_priv(ovl); in dss_mgr_wait_for_go_ovl()
594 ovl->id); in dss_mgr_wait_for_go_ovl()
604 DSSERR("ovl(%d)->wait_for_go() timeout\n", ovl->id); in dss_mgr_wait_for_go_ovl()
614 static void dss_ovl_write_regs(struct omap_overlay *ovl) in dss_ovl_write_regs() argument
616 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_write_regs()
622 DSSDBG("writing ovl %d regs\n", ovl->id); in dss_ovl_write_regs()
629 mp = get_mgr_priv(ovl->manager); in dss_ovl_write_regs()
633 r = dispc_ovl_setup(ovl->id, oi, replication, &mp->timings, false); in dss_ovl_write_regs()
639 DSSERR("dispc_ovl_setup failed for ovl %d\n", ovl->id); in dss_ovl_write_regs()
643 dispc_ovl_enable(ovl->id, false); in dss_ovl_write_regs()
652 static void dss_ovl_write_regs_extra(struct omap_overlay *ovl) in dss_ovl_write_regs_extra() argument
654 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_write_regs_extra()
657 DSSDBG("writing ovl %d regs extra\n", ovl->id); in dss_ovl_write_regs_extra()
665 dispc_ovl_enable(ovl->id, op->enabled); in dss_ovl_write_regs_extra()
666 dispc_ovl_set_fifo_threshold(ovl->id, op->fifo_low, op->fifo_high); in dss_ovl_write_regs_extra()
668 mp = get_mgr_priv(ovl->manager); in dss_ovl_write_regs_extra()
678 struct omap_overlay *ovl; in dss_mgr_write_regs() local
688 list_for_each_entry(ovl, &mgr->overlays, list) { in dss_mgr_write_regs()
689 dss_ovl_write_regs(ovl); in dss_mgr_write_regs()
690 dss_ovl_write_regs_extra(ovl); in dss_mgr_write_regs()
780 struct omap_overlay *ovl; in mgr_clear_shadow_dirty() local
788 list_for_each_entry(ovl, &mgr->overlays, list) { in mgr_clear_shadow_dirty()
789 op = get_ovl_priv(ovl); in mgr_clear_shadow_dirty()
935 static void omap_dss_mgr_apply_ovl(struct omap_overlay *ovl) in omap_dss_mgr_apply_ovl() argument
939 op = get_ovl_priv(ovl); in omap_dss_mgr_apply_ovl()
966 struct omap_overlay *ovl; in omap_dss_mgr_apply() local
981 list_for_each_entry(ovl, &mgr->overlays, list) in omap_dss_mgr_apply()
982 omap_dss_mgr_apply_ovl(ovl); in omap_dss_mgr_apply()
995 static void dss_apply_ovl_enable(struct omap_overlay *ovl, bool enable) in dss_apply_ovl_enable() argument
999 op = get_ovl_priv(ovl); in dss_apply_ovl_enable()
1008 static void dss_apply_ovl_fifo_thresholds(struct omap_overlay *ovl, in dss_apply_ovl_fifo_thresholds() argument
1011 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_apply_ovl_fifo_thresholds()
1021 static void dss_ovl_setup_fifo(struct omap_overlay *ovl) in dss_ovl_setup_fifo() argument
1023 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_setup_fifo()
1030 dispc_ovl_compute_fifo_thresholds(ovl->id, &fifo_low, &fifo_high, in dss_ovl_setup_fifo()
1031 use_fifo_merge, ovl_manual_update(ovl)); in dss_ovl_setup_fifo()
1033 dss_apply_ovl_fifo_thresholds(ovl, fifo_low, fifo_high); in dss_ovl_setup_fifo()
1038 struct omap_overlay *ovl; in dss_mgr_setup_fifos() local
1046 list_for_each_entry(ovl, &mgr->overlays, list) in dss_mgr_setup_fifos()
1047 dss_ovl_setup_fifo(ovl); in dss_mgr_setup_fifos()
1298 static int dss_ovl_set_info(struct omap_overlay *ovl, in dss_ovl_set_info() argument
1301 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_set_info()
1305 r = dss_ovl_simple_check(ovl, info); in dss_ovl_set_info()
1319 static void dss_ovl_get_info(struct omap_overlay *ovl, in dss_ovl_get_info() argument
1322 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_get_info()
1332 static int dss_ovl_set_manager(struct omap_overlay *ovl, in dss_ovl_set_manager() argument
1335 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_set_manager()
1344 if (ovl->manager) { in dss_ovl_set_manager()
1346 ovl->name, ovl->manager->name); in dss_ovl_set_manager()
1364 dispc_ovl_set_channel_out(ovl->id, mgr->id); in dss_ovl_set_manager()
1366 ovl->manager = mgr; in dss_ovl_set_manager()
1367 list_add_tail(&ovl->list, &mgr->overlays); in dss_ovl_set_manager()
1384 static int dss_ovl_unset_manager(struct omap_overlay *ovl) in dss_ovl_unset_manager() argument
1386 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_unset_manager()
1392 if (!ovl->manager) { in dss_ovl_unset_manager()
1424 if (ovl_manual_update(ovl) && op->extra_info_dirty) { in dss_ovl_unset_manager()
1431 ovl->manager = NULL; in dss_ovl_unset_manager()
1432 list_del(&ovl->list); in dss_ovl_unset_manager()
1444 static bool dss_ovl_is_enabled(struct omap_overlay *ovl) in dss_ovl_is_enabled() argument
1446 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_is_enabled()
1459 static int dss_ovl_enable(struct omap_overlay *ovl) in dss_ovl_enable() argument
1461 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_enable()
1472 if (ovl->manager == NULL || ovl->manager->output == NULL) { in dss_ovl_enable()
1481 r = dss_check_settings(ovl->manager); in dss_ovl_enable()
1484 ovl->id); in dss_ovl_enable()
1491 dss_apply_ovl_enable(ovl, true); in dss_ovl_enable()
1509 static int dss_ovl_disable(struct omap_overlay *ovl) in dss_ovl_disable() argument
1511 struct ovl_priv_data *op = get_ovl_priv(ovl); in dss_ovl_disable()
1522 if (ovl->manager == NULL || ovl->manager->output == NULL) { in dss_ovl_disable()
1529 dss_apply_ovl_enable(ovl, false); in dss_ovl_disable()
1616 struct omap_overlay *ovl = omap_dss_get_overlay(i); in omapdss_compat_init() local
1618 ovl->is_enabled = &dss_ovl_is_enabled; in omapdss_compat_init()
1619 ovl->enable = &dss_ovl_enable; in omapdss_compat_init()
1620 ovl->disable = &dss_ovl_disable; in omapdss_compat_init()
1621 ovl->set_manager = &dss_ovl_set_manager; in omapdss_compat_init()
1622 ovl->unset_manager = &dss_ovl_unset_manager; in omapdss_compat_init()
1623 ovl->set_overlay_info = &dss_ovl_set_info; in omapdss_compat_init()
1624 ovl->get_overlay_info = &dss_ovl_get_info; in omapdss_compat_init()
1625 ovl->wait_for_go = &dss_mgr_wait_for_go_ovl; in omapdss_compat_init()
1626 ovl->get_device = &dss_ovl_get_device; in omapdss_compat_init()