Lines Matching refs:prop

444 	struct property *prop;  in __of_device_is_compatible()  local
450 prop = __of_find_property(device, "compatible", NULL); in __of_device_is_compatible()
451 for (cp = of_prop_next_string(prop, NULL); cp; in __of_device_is_compatible()
452 cp = of_prop_next_string(prop, cp), index++) { in __of_device_is_compatible()
1095 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() local
1097 if (!prop) in of_property_count_elems_of_size()
1099 if (!prop->value) in of_property_count_elems_of_size()
1102 if (prop->length % elem_size != 0) { in of_property_count_elems_of_size()
1108 return prop->length / elem_size; in of_property_count_elems_of_size()
1128 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() local
1130 if (!prop) in of_find_property_value_of_size()
1132 if (!prop->value) in of_find_property_value_of_size()
1134 if (len > prop->length) in of_find_property_value_of_size()
1137 return prop->value; in of_find_property_value_of_size()
1347 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string() local
1348 if (!prop) in of_property_read_string()
1350 if (!prop->value) in of_property_read_string()
1352 if (strnlen(prop->value, prop->length) >= prop->length) in of_property_read_string()
1354 *out_string = prop->value; in of_property_read_string()
1371 struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string() local
1376 if (!prop) in of_property_match_string()
1378 if (!prop->value) in of_property_match_string()
1381 p = prop->value; in of_property_match_string()
1382 end = p + prop->length; in of_property_match_string()
1410 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper() local
1414 if (!prop) in of_property_read_string_helper()
1416 if (!prop->value) in of_property_read_string_helper()
1418 p = prop->value; in of_property_read_string_helper()
1419 end = p + prop->length; in of_property_read_string_helper()
1694 int __of_add_property(struct device_node *np, struct property *prop) in __of_add_property() argument
1698 prop->next = NULL; in __of_add_property()
1701 if (strcmp(prop->name, (*next)->name) == 0) in __of_add_property()
1707 *next = prop; in __of_add_property()
1715 int of_add_property(struct device_node *np, struct property *prop) in of_add_property() argument
1723 rc = __of_add_property(np, prop); in of_add_property()
1727 __of_add_property_sysfs(np, prop); in of_add_property()
1732 of_property_notify(OF_RECONFIG_ADD_PROPERTY, np, prop, NULL); in of_add_property()
1737 int __of_remove_property(struct device_node *np, struct property *prop) in __of_remove_property() argument
1742 if (*next == prop) in __of_remove_property()
1749 *next = prop->next; in __of_remove_property()
1750 prop->next = np->deadprops; in __of_remove_property()
1751 np->deadprops = prop; in __of_remove_property()
1756 void __of_remove_property_sysfs(struct device_node *np, struct property *prop) in __of_remove_property_sysfs() argument
1763 sysfs_remove_bin_file(&np->kobj, &prop->attr); in __of_remove_property_sysfs()
1774 int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property() argument
1782 rc = __of_remove_property(np, prop); in of_remove_property()
1786 __of_remove_property_sysfs(np, prop); in of_remove_property()
1791 of_property_notify(OF_RECONFIG_REMOVE_PROPERTY, np, prop, NULL); in of_remove_property()
2008 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, in of_prop_next_u32() argument
2013 if (!prop) in of_prop_next_u32()
2017 curv = prop->value; in of_prop_next_u32()
2022 if (curv >= prop->value + prop->length) in of_prop_next_u32()
2031 const char *of_prop_next_string(struct property *prop, const char *cur) in of_prop_next_string() argument
2035 if (!prop) in of_prop_next_string()
2039 return prop->value; in of_prop_next_string()
2042 if (curv >= prop->value + prop->length) in of_prop_next_string()