Home
last modified time | relevance | path

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

/Linux-v5.4/arch/arm/mach-versatile/
Dversatile_dt.c130 struct property *newprop; in versatile_dt_pci_init() local
148 newprop = kzalloc(sizeof(*newprop), GFP_KERNEL); in versatile_dt_pci_init()
149 if (!newprop) in versatile_dt_pci_init()
152 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init()
153 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
154 newprop->length = sizeof("disabled"); in versatile_dt_pci_init()
155 of_update_property(np, newprop); in versatile_dt_pci_init()
/Linux-v5.4/drivers/of/
Dof_private.h64 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
75 struct property *newprop, struct property *oldprop) {} in __of_update_property_sysfs() argument
138 struct property *newprop, struct property **oldprop);
140 struct property *newprop, struct property *oldprop);
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()
Dbase.c1911 int __of_update_property(struct device_node *np, struct property *newprop, in __of_update_property() argument
1917 if (of_prop_cmp((*next)->name, newprop->name) == 0) in __of_update_property()
1924 newprop->next = oldprop->next; in __of_update_property()
1925 *next = newprop; in __of_update_property()
1930 newprop->next = NULL; in __of_update_property()
1931 *next = newprop; in __of_update_property()
1946 int of_update_property(struct device_node *np, struct property *newprop) in of_update_property() argument
1952 if (!newprop->name) in of_update_property()
1958 rc = __of_update_property(np, newprop, &oldprop); in of_update_property()
1962 __of_update_property_sysfs(np, newprop, oldprop); in of_update_property()
[all …]
/Linux-v5.4/drivers/memory/
Datmel-ebi.c496 struct property *newprop; in atmel_ebi_dev_disable() local
498 newprop = devm_kzalloc(dev, sizeof(*newprop), GFP_KERNEL); in atmel_ebi_dev_disable()
499 if (!newprop) in atmel_ebi_dev_disable()
502 newprop->name = devm_kstrdup(dev, "status", GFP_KERNEL); in atmel_ebi_dev_disable()
503 if (!newprop->name) in atmel_ebi_dev_disable()
506 newprop->value = devm_kstrdup(dev, "disabled", GFP_KERNEL); in atmel_ebi_dev_disable()
507 if (!newprop->value) in atmel_ebi_dev_disable()
510 newprop->length = sizeof("disabled"); in atmel_ebi_dev_disable()
512 return of_update_property(np, newprop); in atmel_ebi_dev_disable()
/Linux-v5.4/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-v5.4/include/linux/
Dof.h402 extern int of_update_property(struct device_node *np, struct property *newprop);