Lines Matching +full:bool +full:- +full:property

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
29 bool root;
32 static int __init omapdss_count_strings(const struct property *prop) in omapdss_count_strings()
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()
53 prop->name = "compatible"; in omapdss_update_prop()
54 prop->value = compat; in omapdss_update_prop()
55 prop->length = len; in omapdss_update_prop()
79 /* prepend compatible property strings with "omapdss," */
82 struct property *prop; 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()
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()
111 static void __init omapdss_add_to_list(struct device_node *node, bool root) in omapdss_add_to_list()
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()
122 static bool __init omapdss_list_contains(const struct device_node *node) in omapdss_list_contains()
127 if (n->node == node) in omapdss_list_contains()
134 static void __init omapdss_walk_device(struct device_node *node, bool root) in omapdss_walk_device()
171 { .compatible = "ti,omap2-dss", },
172 { .compatible = "ti,omap3-dss", },
173 { .compatible = "ti,omap4-dss", },
174 { .compatible = "ti,omap5-dss", },
175 { .compatible = "ti,dra7-dss", },
207 if (!n->root) in omapdss_boot_init()
208 omapdss_omapify_node(n->node); in omapdss_boot_init()
210 list_del(&n->list); in omapdss_boot_init()
211 of_node_put(n->node); in omapdss_boot_init()