Lines Matching refs:prop
323 struct property *prop;
329 prop = __of_find_property(device, "compatible", NULL);
330 for (cp = of_prop_next_string(prop, NULL); cp;
331 cp = of_prop_next_string(prop, cp), index++) {
1534 static struct property *__of_remove_property_from_list(struct property **list, struct property *prop)
1539 if (*next == prop) {
1540 *next = prop->next;
1541 prop->next = NULL;
1542 return prop;
1551 * @prop: Property to add
1553 int __of_add_property(struct device_node *np, struct property *prop)
1561 __of_remove_property_from_list(&np->deadprops, prop);
1563 prop->next = NULL;
1566 if (strcmp(prop->name, (*next)->name) == 0) {
1573 *next = prop;
1580 __of_add_property_sysfs(np, prop);
1587 * @prop: Property to add
1589 int of_add_property(struct device_node *np, struct property *prop)
1594 rc = __of_add_property(np, prop);
1598 of_property_notify(OF_RECONFIG_ADD_PROPERTY, np, prop, NULL);
1604 int __of_remove_property(struct device_node *np, struct property *prop)
1611 if (__of_remove_property_from_list(&np->properties, prop)) {
1613 prop->next = np->deadprops;
1614 np->deadprops = prop;
1622 __of_remove_property_sysfs(np, prop);
1629 * @prop: Property to remove
1636 int of_remove_property(struct device_node *np, struct property *prop)
1640 if (!prop)
1644 rc = __of_remove_property(np, prop);
1648 of_property_notify(OF_RECONFIG_REMOVE_PROPERTY, np, prop, NULL);