Home
last modified time | relevance | path

Searched refs:new_prop (Results 1 – 3 of 3) sorted by relevance

/arch/powerpc/platforms/pseries/
Dmobility.c93 struct property *new_prop = *prop; in update_dt_property() local
107 if (new_prop) { in update_dt_property()
109 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
113 memcpy(new_data, new_prop->value, new_prop->length); in update_dt_property()
114 memcpy(new_data + new_prop->length, value, vd); in update_dt_property()
116 kfree(new_prop->value); in update_dt_property()
117 new_prop->value = new_data; in update_dt_property()
118 new_prop->length += vd; in update_dt_property()
120 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in update_dt_property()
121 if (!new_prop) in update_dt_property()
[all …]
Dhotplug-memory.c83 struct property *new_prop; in dlpar_clone_property() local
85 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in dlpar_clone_property()
86 if (!new_prop) in dlpar_clone_property()
89 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in dlpar_clone_property()
90 new_prop->value = kzalloc(prop_size, GFP_KERNEL); in dlpar_clone_property()
91 if (!new_prop->name || !new_prop->value) { in dlpar_clone_property()
92 dlpar_free_property(new_prop); in dlpar_clone_property()
96 memcpy(new_prop->value, prop->value, prop->length); in dlpar_clone_property()
97 new_prop->length = prop_size; in dlpar_clone_property()
99 of_property_set_flag(new_prop, OF_DYNAMIC); in dlpar_clone_property()
[all …]
/arch/powerpc/mm/
Ddrmem.c41 struct property *new_prop; in clone_property() local
43 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in clone_property()
44 if (!new_prop) in clone_property()
47 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in clone_property()
48 new_prop->value = kzalloc(prop_sz, GFP_KERNEL); in clone_property()
49 if (!new_prop->name || !new_prop->value) { in clone_property()
50 kfree(new_prop->name); in clone_property()
51 kfree(new_prop->value); in clone_property()
52 kfree(new_prop); in clone_property()
56 new_prop->length = prop_sz; in clone_property()
[all …]