Lines Matching refs:prop
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()