/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
D | mobility.c | 93 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 …]
|
D | hotplug-memory.c | 83 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 …]
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | drmem.c | 41 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 …]
|
/kernel/linux/linux-5.10/drivers/of/ |
D | overlay.c | 201 struct property *new_prop; in dup_and_fixup_symbol_prop() local 247 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in dup_and_fixup_symbol_prop() 248 if (!new_prop) in dup_and_fixup_symbol_prop() 251 new_prop->name = kstrdup(prop->name, GFP_KERNEL); in dup_and_fixup_symbol_prop() 252 new_prop->length = target_path_len + path_tail_len + 1; in dup_and_fixup_symbol_prop() 253 new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); in dup_and_fixup_symbol_prop() 254 if (!new_prop->name || !new_prop->value) in dup_and_fixup_symbol_prop() 257 strcpy(new_prop->value, target_path); in dup_and_fixup_symbol_prop() 258 strcpy(new_prop->value + target_path_len, path_tail); in dup_and_fixup_symbol_prop() 260 of_property_set_flag(new_prop, OF_DYNAMIC); in dup_and_fixup_symbol_prop() [all …]
|
D | unittest.c | 3130 struct property *new_prop; in of_unittest_overlay_high_level() local 3133 new_prop = __of_prop_dup(prop, GFP_KERNEL); in of_unittest_overlay_high_level() 3134 if (!new_prop) { in of_unittest_overlay_high_level() 3139 if (__of_add_property(of_symbols, new_prop)) { in of_unittest_overlay_high_level() 3140 kfree(new_prop->name); in of_unittest_overlay_high_level() 3141 kfree(new_prop->value); in of_unittest_overlay_high_level() 3142 kfree(new_prop); in of_unittest_overlay_high_level() 3150 if (__of_add_property_sysfs(of_symbols, new_prop)) { in of_unittest_overlay_high_level()
|
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
D | flash.c | 70 struct property *new_prop; in update_property() local 74 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in update_property() 75 if (!new_prop) in update_property() 78 new_prop->name = kstrdup(name, GFP_KERNEL); in update_property() 79 if (!new_prop->name) { in update_property() 80 kfree(new_prop); in update_property() 84 new_prop->length = vd; in update_property() 85 new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); in update_property() 86 if (!new_prop->value) { in update_property() 87 kfree(new_prop->name); in update_property() [all …]
|
D | base.c | 99 struct property *new_prop) in cxl_update_properties() argument 101 return of_update_property(dn, new_prop); in cxl_update_properties()
|
D | cxl.h | 859 int cxl_update_properties(struct device_node *dn, struct property *new_prop);
|
/kernel/linux/linux-5.10/scripts/dtc/ |
D | livetree.c | 144 struct property *new_prop, *old_prop; in merge_nodes() local 158 new_prop = new_node->proplist; in merge_nodes() 159 new_node->proplist = new_prop->next; in merge_nodes() 160 new_prop->next = NULL; in merge_nodes() 162 if (new_prop->deleted) { in merge_nodes() 163 delete_property_by_name(old_node, new_prop->name); in merge_nodes() 164 free(new_prop); in merge_nodes() 170 if (streq(old_prop->name, new_prop->name)) { in merge_nodes() 172 for_each_label_withdel(new_prop->labels, l) in merge_nodes() 175 old_prop->val = new_prop->val; in merge_nodes() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
D | nx-842-pseries.c | 712 static int nx842_OF_upd(struct property *new_prop) in nx842_OF_upd() argument 757 if (new_prop && (strncmp(new_prop->name, "status", new_prop->length) || in nx842_OF_upd() 758 strncmp(new_prop->name, "ibm,max-sg-len", new_prop->length) || in nx842_OF_upd() 759 strncmp(new_prop->name, "ibm,max-sync-cop", new_prop->length))) in nx842_OF_upd()
|