Lines Matching refs:prop
32 static int __init omapdss_count_strings(const struct property *prop)
34 const char *p = prop->value;
38 for (i = 0; total < prop->length; total += l, p += l, i++)
47 struct property *prop;
49 prop = kzalloc(sizeof(*prop), GFP_KERNEL);
50 if (!prop)
53 prop->name = "compatible";
54 prop->value = compat;
55 prop->length = len;
57 of_update_property(node, prop);
82 struct property *prop;
87 prop = of_find_property(node, "compatible", NULL);
89 if (!prop || !prop->value)
92 if (strnlen(prop->value, prop->length) >= prop->length)
96 if (strncmp(prefix, prop->value, strlen(prefix)) == 0)
99 num_strs = omapdss_count_strings(prop);
101 new_len = prop->length + strlen(prefix) * num_strs;
104 omapdss_prefix_strcpy(new_compat, new_len, prop->value, prop->length);