Lines Matching +full:prop +full:-

1 // SPDX-License-Identifier: GPL-2.0-only
9 * DT-data in generic manner, we convert the compatible strings of the panel and
10 * encoder nodes from "panel-foo" to "omapdss,panel-foo". This way we can have
32 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings() argument
34 const char *p = prop->value; in omapdss_count_strings()
38 for (i = 0; total < prop->length; total += l, p += l, i++) in omapdss_count_strings()
47 struct property *prop; in omapdss_update_prop() local
49 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in omapdss_update_prop()
50 if (!prop) in omapdss_update_prop()
53 prop->name = "compatible"; in omapdss_update_prop()
54 prop->value = compat; in omapdss_update_prop()
55 prop->length = len; in omapdss_update_prop()
57 of_update_property(node, prop); in omapdss_update_prop()
82 struct property *prop; in omapdss_omapify_node() local
87 prop = of_find_property(node, "compatible", NULL); in omapdss_omapify_node()
89 if (!prop || !prop->value) in omapdss_omapify_node()
92 if (strnlen(prop->value, prop->length) >= prop->length) in omapdss_omapify_node()
96 if (strncmp(prefix, prop->value, strlen(prefix)) == 0) in omapdss_omapify_node()
99 num_strs = omapdss_count_strings(prop); in omapdss_omapify_node()
101 new_len = prop->length + strlen(prefix) * num_strs; in omapdss_omapify_node()
106 omapdss_prefix_strcpy(new_compat, new_len, prop->value, prop->length); in omapdss_omapify_node()
116 n->node = node; in omapdss_add_to_list()
117 n->root = root; in omapdss_add_to_list()
118 list_add(&n->list, &dss_conv_list); in omapdss_add_to_list()
127 if (n->node == node) in omapdss_list_contains()
170 { .compatible = "ti,omap2-dss", },
171 { .compatible = "ti,omap3-dss", },
172 { .compatible = "ti,omap4-dss", },
173 { .compatible = "ti,omap5-dss", },
174 { .compatible = "ti,dra7-dss", },
206 if (!n->root) in omapdss_boot_init()
207 omapdss_omapify_node(n->node); in omapdss_boot_init()
209 list_del(&n->list); in omapdss_boot_init()
210 of_node_put(n->node); in omapdss_boot_init()