Lines Matching refs:prop

447 	struct property *prop;  in __of_device_is_compatible()  local
453 prop = __of_find_property(device, "compatible", NULL); in __of_device_is_compatible()
454 for (cp = of_prop_next_string(prop, NULL); cp; in __of_device_is_compatible()
455 cp = of_prop_next_string(prop, cp), index++) { in __of_device_is_compatible()
1098 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() local
1100 if (!prop) in of_property_count_elems_of_size()
1102 if (!prop->value) in of_property_count_elems_of_size()
1105 if (prop->length % elem_size != 0) { in of_property_count_elems_of_size()
1111 return prop->length / elem_size; in of_property_count_elems_of_size()
1131 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() local
1133 if (!prop) in of_find_property_value_of_size()
1135 if (!prop->value) in of_find_property_value_of_size()
1137 if (len > prop->length) in of_find_property_value_of_size()
1140 return prop->value; in of_find_property_value_of_size()
1350 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string() local
1351 if (!prop) in of_property_read_string()
1353 if (!prop->value) in of_property_read_string()
1355 if (strnlen(prop->value, prop->length) >= prop->length) in of_property_read_string()
1357 *out_string = prop->value; in of_property_read_string()
1374 struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string() local
1379 if (!prop) in of_property_match_string()
1381 if (!prop->value) in of_property_match_string()
1384 p = prop->value; in of_property_match_string()
1385 end = p + prop->length; in of_property_match_string()
1413 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper() local
1417 if (!prop) in of_property_read_string_helper()
1419 if (!prop->value) in of_property_read_string_helper()
1421 p = prop->value; in of_property_read_string_helper()
1422 end = p + prop->length; in of_property_read_string_helper()
1697 int __of_add_property(struct device_node *np, struct property *prop) in __of_add_property() argument
1701 prop->next = NULL; in __of_add_property()
1704 if (strcmp(prop->name, (*next)->name) == 0) in __of_add_property()
1710 *next = prop; in __of_add_property()
1718 int of_add_property(struct device_node *np, struct property *prop) in of_add_property() argument
1726 rc = __of_add_property(np, prop); in of_add_property()
1730 __of_add_property_sysfs(np, prop); in of_add_property()
1735 of_property_notify(OF_RECONFIG_ADD_PROPERTY, np, prop, NULL); in of_add_property()
1740 int __of_remove_property(struct device_node *np, struct property *prop) in __of_remove_property() argument
1745 if (*next == prop) in __of_remove_property()
1752 *next = prop->next; in __of_remove_property()
1753 prop->next = np->deadprops; in __of_remove_property()
1754 np->deadprops = prop; in __of_remove_property()
1759 void __of_remove_property_sysfs(struct device_node *np, struct property *prop) in __of_remove_property_sysfs() argument
1766 sysfs_remove_bin_file(&np->kobj, &prop->attr); in __of_remove_property_sysfs()
1777 int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property() argument
1785 rc = __of_remove_property(np, prop); in of_remove_property()
1789 __of_remove_property_sysfs(np, prop); in of_remove_property()
1794 of_property_notify(OF_RECONFIG_REMOVE_PROPERTY, np, prop, NULL); in of_remove_property()
2011 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, in of_prop_next_u32() argument
2016 if (!prop) in of_prop_next_u32()
2020 curv = prop->value; in of_prop_next_u32()
2025 if (curv >= prop->value + prop->length) in of_prop_next_u32()
2034 const char *of_prop_next_string(struct property *prop, const char *cur) in of_prop_next_string() argument
2038 if (!prop) in of_prop_next_string()
2042 return prop->value; in of_prop_next_string()
2045 if (curv >= prop->value + prop->length) in of_prop_next_string()