Home
last modified time | relevance | path

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

/linux-6.1.9/arch/arm/mach-versatile/
Dversatile.c127 struct property *newprop; in versatile_dt_pci_init() local
145 newprop = kzalloc(sizeof(*newprop), GFP_KERNEL); in versatile_dt_pci_init()
146 if (!newprop) in versatile_dt_pci_init()
149 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init()
150 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
151 newprop->length = sizeof("disabled"); in versatile_dt_pci_init()
152 of_update_property(np, newprop); in versatile_dt_pci_init()
/linux-6.1.9/drivers/memory/
Datmel-ebi.c495 struct property *newprop; in atmel_ebi_dev_disable() local
497 newprop = devm_kzalloc(dev, sizeof(*newprop), GFP_KERNEL); in atmel_ebi_dev_disable()
498 if (!newprop) in atmel_ebi_dev_disable()
501 newprop->name = devm_kstrdup(dev, "status", GFP_KERNEL); in atmel_ebi_dev_disable()
502 if (!newprop->name) in atmel_ebi_dev_disable()
505 newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL); in atmel_ebi_dev_disable()
506 if (!newprop->value) in atmel_ebi_dev_disable()
509 newprop->length = sizeof("disabled"); in atmel_ebi_dev_disable()
511 return of_update_property(np, newprop); in atmel_ebi_dev_disable()
/linux-6.1.9/drivers/of/
Dof_private.h66 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
77 struct property *newprop, struct property *oldprop) {} in __of_update_property_sysfs() argument
132 struct property *newprop, struct property **oldprop);
Dbase.c1821 int __of_update_property(struct device_node *np, struct property *newprop, in __of_update_property() argument
1827 if (of_prop_cmp((*next)->name, newprop->name) == 0) in __of_update_property()
1834 newprop->next = oldprop->next; in __of_update_property()
1835 *next = newprop; in __of_update_property()
1840 newprop->next = NULL; in __of_update_property()
1841 *next = newprop; in __of_update_property()
1856 int of_update_property(struct device_node *np, struct property *newprop) in of_update_property() argument
1862 if (!newprop->name) in of_update_property()
1868 rc = __of_update_property(np, newprop, &oldprop); in of_update_property()
1872 __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-6.1.9/arch/powerpc/platforms/pseries/
Dreconfig.c322 struct property *newprop; in do_update_property() local
336 newprop = new_property(name, length, value, NULL); in do_update_property()
337 if (!newprop) in do_update_property()
343 return of_update_property(np, newprop); in do_update_property()
/linux-6.1.9/include/linux/
Dof.h396 extern int of_update_property(struct device_node *np, struct property *newprop);