Lines Matching +full:out +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
20 int omapdss_output_set_device(struct omap_dss_device *out, in omapdss_output_set_device() argument
27 if (out->dst) { in omapdss_output_set_device()
29 out->dst->name); in omapdss_output_set_device()
30 r = -EINVAL; in omapdss_output_set_device()
34 if (out->output_type != dssdev->type) { in omapdss_output_set_device()
36 r = -EINVAL; in omapdss_output_set_device()
40 out->dst = dssdev; in omapdss_output_set_device()
41 dssdev->src = out; in omapdss_output_set_device()
53 int omapdss_output_unset_device(struct omap_dss_device *out) in omapdss_output_unset_device() argument
59 if (!out->dst) { in omapdss_output_unset_device()
61 r = -EINVAL; in omapdss_output_unset_device()
65 if (out->dst->state != OMAP_DSS_DISPLAY_DISABLED) { in omapdss_output_unset_device()
67 out->dst->name); in omapdss_output_unset_device()
68 r = -EINVAL; in omapdss_output_unset_device()
72 out->dst->src = NULL; in omapdss_output_unset_device()
73 out->dst = NULL; in omapdss_output_unset_device()
85 int omapdss_register_output(struct omap_dss_device *out) in omapdss_register_output() argument
87 list_add_tail(&out->list, &output_list); in omapdss_register_output()
92 void omapdss_unregister_output(struct omap_dss_device *out) in omapdss_unregister_output() argument
94 list_del(&out->list); in omapdss_unregister_output()
100 struct omap_dss_device *out; in omap_dss_get_output() local
102 list_for_each_entry(out, &output_list, list) { in omap_dss_get_output()
103 if (out->id == id) in omap_dss_get_output()
104 return out; in omap_dss_get_output()
113 struct omap_dss_device *out; in omap_dss_find_output() local
115 list_for_each_entry(out, &output_list, list) { in omap_dss_find_output()
116 if (strcmp(out->name, name) == 0) in omap_dss_find_output()
117 return omap_dss_get_device(out); in omap_dss_find_output()
127 struct omap_dss_device *out; in omap_dss_find_output_by_port_node() local
136 list_for_each_entry(out, &output_list, list) { in omap_dss_find_output_by_port_node()
137 if (out->dev->of_node == src_node && out->port_num == reg) { in omap_dss_find_output_by_port_node()
139 return omap_dss_get_device(out); in omap_dss_find_output_by_port_node()
151 while (dssdev->src) in omapdss_find_output_from_display()
152 dssdev = dssdev->src; in omapdss_find_output_from_display()
154 if (dssdev->id != 0) in omapdss_find_output_from_display()
163 struct omap_dss_device *out; in omapdss_find_mgr_from_display() local
166 out = omapdss_find_output_from_display(dssdev); in omapdss_find_mgr_from_display()
168 if (out == NULL) in omapdss_find_mgr_from_display()
171 mgr = out->manager; in omapdss_find_mgr_from_display()
173 omap_dss_put_device(out); in omapdss_find_mgr_from_display()
184 return -EBUSY; in dss_install_mgr_ops()
201 return dss_mgr_ops->connect(mgr, dst); in dss_mgr_connect()
208 dss_mgr_ops->disconnect(mgr, dst); in dss_mgr_disconnect()
215 dss_mgr_ops->set_timings(mgr, timings); in dss_mgr_set_timings()
222 dss_mgr_ops->set_lcd_config(mgr, config); in dss_mgr_set_lcd_config()
228 return dss_mgr_ops->enable(mgr); in dss_mgr_enable()
234 dss_mgr_ops->disable(mgr); in dss_mgr_disable()
240 dss_mgr_ops->start_update(mgr); in dss_mgr_start_update()
247 return dss_mgr_ops->register_framedone_handler(mgr, handler, data); in dss_mgr_register_framedone_handler()
254 dss_mgr_ops->unregister_framedone_handler(mgr, handler, data); in dss_mgr_unregister_framedone_handler()