Home
last modified time | relevance | path

Searched refs:newprop (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/arch/arm/mach-versatile/
Dversatile_dt.c304 struct property *newprop; in versatile_dt_pci_init() local
322 newprop = kzalloc(sizeof(*newprop), GFP_KERNEL); in versatile_dt_pci_init()
323 if (!newprop) in versatile_dt_pci_init()
326 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init()
327 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
328 newprop->length = sizeof("disabled"); in versatile_dt_pci_init()
329 of_update_property(np, newprop); in versatile_dt_pci_init()
/Linux-v4.19/drivers/of/
Dof_private.h56 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
67 struct property *newprop, struct property *oldprop) {} in __of_update_property_sysfs() argument
126 struct property *newprop, struct property **oldprop);
128 struct property *newprop, struct property *oldprop);
Dbase.c1772 int __of_update_property(struct device_node *np, struct property *newprop, in __of_update_property() argument
1778 if (of_prop_cmp((*next)->name, newprop->name) == 0) in __of_update_property()
1785 newprop->next = oldprop->next; in __of_update_property()
1786 *next = newprop; in __of_update_property()
1791 newprop->next = NULL; in __of_update_property()
1792 *next = newprop; in __of_update_property()
1807 int of_update_property(struct device_node *np, struct property *newprop) in of_update_property() argument
1813 if (!newprop->name) in of_update_property()
1819 rc = __of_update_property(np, newprop, &oldprop); in of_update_property()
1823 __of_update_property_sysfs(np, newprop, oldprop); in of_update_property()
[all …]
Dkobj.c103 void __of_update_property_sysfs(struct device_node *np, struct property *newprop, in __of_update_property_sysfs() argument
112 __of_add_property_sysfs(np, newprop); in __of_update_property_sysfs()
/Linux-v4.19/drivers/memory/
Datmel-ebi.c475 struct property *newprop; in atmel_ebi_dev_disable() local
477 newprop = devm_kzalloc(dev, sizeof(*newprop), GFP_KERNEL); in atmel_ebi_dev_disable()
478 if (!newprop) in atmel_ebi_dev_disable()
481 newprop->name = devm_kstrdup(dev, "status", GFP_KERNEL); in atmel_ebi_dev_disable()
482 if (!newprop->name) in atmel_ebi_dev_disable()
485 newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL); in atmel_ebi_dev_disable()
486 if (!newprop->value) in atmel_ebi_dev_disable()
489 newprop->length = sizeof("disabled"); in atmel_ebi_dev_disable()
491 return of_update_property(np, newprop); in atmel_ebi_dev_disable()
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dreconfig.c326 struct property *newprop; in do_update_property() local
340 newprop = new_property(name, length, value, NULL); in do_update_property()
341 if (!newprop) in do_update_property()
347 return of_update_property(np, newprop); in do_update_property()
/Linux-v4.19/include/linux/
Dof.h400 extern int of_update_property(struct device_node *np, struct property *newprop);