new_prop 39 arch/powerpc/mm/drmem.c struct property *new_prop; new_prop 41 arch/powerpc/mm/drmem.c new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); new_prop 42 arch/powerpc/mm/drmem.c if (!new_prop) new_prop 45 arch/powerpc/mm/drmem.c new_prop->name = kstrdup(prop->name, GFP_KERNEL); new_prop 46 arch/powerpc/mm/drmem.c new_prop->value = kzalloc(prop_sz, GFP_KERNEL); new_prop 47 arch/powerpc/mm/drmem.c if (!new_prop->name || !new_prop->value) { new_prop 48 arch/powerpc/mm/drmem.c kfree(new_prop->name); new_prop 49 arch/powerpc/mm/drmem.c kfree(new_prop->value); new_prop 50 arch/powerpc/mm/drmem.c kfree(new_prop); new_prop 54 arch/powerpc/mm/drmem.c new_prop->length = prop_sz; new_prop 56 arch/powerpc/mm/drmem.c of_property_set_flag(new_prop, OF_DYNAMIC); new_prop 58 arch/powerpc/mm/drmem.c return new_prop; new_prop 64 arch/powerpc/mm/drmem.c struct property *new_prop; new_prop 69 arch/powerpc/mm/drmem.c new_prop = clone_property(prop, prop->length); new_prop 70 arch/powerpc/mm/drmem.c if (!new_prop) new_prop 73 arch/powerpc/mm/drmem.c p = new_prop->value; new_prop 87 arch/powerpc/mm/drmem.c of_update_property(memory, new_prop); new_prop 103 arch/powerpc/mm/drmem.c struct property *new_prop; new_prop 127 arch/powerpc/mm/drmem.c new_prop = clone_property(prop, prop_sz); new_prop 128 arch/powerpc/mm/drmem.c if (!new_prop) new_prop 131 arch/powerpc/mm/drmem.c p = new_prop->value; new_prop 165 arch/powerpc/mm/drmem.c of_update_property(memory, new_prop); new_prop 80 arch/powerpc/platforms/pseries/hotplug-memory.c struct property *new_prop; new_prop 82 arch/powerpc/platforms/pseries/hotplug-memory.c new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); new_prop 83 arch/powerpc/platforms/pseries/hotplug-memory.c if (!new_prop) new_prop 86 arch/powerpc/platforms/pseries/hotplug-memory.c new_prop->name = kstrdup(prop->name, GFP_KERNEL); new_prop 87 arch/powerpc/platforms/pseries/hotplug-memory.c new_prop->value = kzalloc(prop_size, GFP_KERNEL); new_prop 88 arch/powerpc/platforms/pseries/hotplug-memory.c if (!new_prop->name || !new_prop->value) { new_prop 89 arch/powerpc/platforms/pseries/hotplug-memory.c dlpar_free_property(new_prop); new_prop 93 arch/powerpc/platforms/pseries/hotplug-memory.c memcpy(new_prop->value, prop->value, prop->length); new_prop 94 arch/powerpc/platforms/pseries/hotplug-memory.c new_prop->length = prop_size; new_prop 96 arch/powerpc/platforms/pseries/hotplug-memory.c of_property_set_flag(new_prop, OF_DYNAMIC); new_prop 97 arch/powerpc/platforms/pseries/hotplug-memory.c return new_prop; new_prop 105 arch/powerpc/platforms/pseries/hotplug-memory.c struct property *new_prop; new_prop 132 arch/powerpc/platforms/pseries/hotplug-memory.c new_prop = dlpar_clone_property(ala_prop, new_prop_size); new_prop 133 arch/powerpc/platforms/pseries/hotplug-memory.c if (!new_prop) new_prop 136 arch/powerpc/platforms/pseries/hotplug-memory.c assoc_arrays = new_prop->value; new_prop 145 arch/powerpc/platforms/pseries/hotplug-memory.c of_update_property(dr_node, new_prop); new_prop 75 arch/powerpc/platforms/pseries/mobility.c struct property *new_prop = *prop; new_prop 89 arch/powerpc/platforms/pseries/mobility.c if (new_prop) { new_prop 91 arch/powerpc/platforms/pseries/mobility.c char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); new_prop 95 arch/powerpc/platforms/pseries/mobility.c memcpy(new_data, new_prop->value, new_prop->length); new_prop 96 arch/powerpc/platforms/pseries/mobility.c memcpy(new_data + new_prop->length, value, vd); new_prop 98 arch/powerpc/platforms/pseries/mobility.c kfree(new_prop->value); new_prop 99 arch/powerpc/platforms/pseries/mobility.c new_prop->value = new_data; new_prop 100 arch/powerpc/platforms/pseries/mobility.c new_prop->length += vd; new_prop 102 arch/powerpc/platforms/pseries/mobility.c new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); new_prop 103 arch/powerpc/platforms/pseries/mobility.c if (!new_prop) new_prop 106 arch/powerpc/platforms/pseries/mobility.c new_prop->name = kstrdup(name, GFP_KERNEL); new_prop 107 arch/powerpc/platforms/pseries/mobility.c if (!new_prop->name) { new_prop 108 arch/powerpc/platforms/pseries/mobility.c kfree(new_prop); new_prop 112 arch/powerpc/platforms/pseries/mobility.c new_prop->length = vd; new_prop 113 arch/powerpc/platforms/pseries/mobility.c new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); new_prop 114 arch/powerpc/platforms/pseries/mobility.c if (!new_prop->value) { new_prop 115 arch/powerpc/platforms/pseries/mobility.c kfree(new_prop->name); new_prop 116 arch/powerpc/platforms/pseries/mobility.c kfree(new_prop); new_prop 120 arch/powerpc/platforms/pseries/mobility.c memcpy(new_prop->value, value, vd); new_prop 121 arch/powerpc/platforms/pseries/mobility.c *prop = new_prop; new_prop 125 arch/powerpc/platforms/pseries/mobility.c of_update_property(dn, new_prop); new_prop 710 drivers/crypto/nx/nx-842-pseries.c static int nx842_OF_upd(struct property *new_prop) new_prop 755 drivers/crypto/nx/nx-842-pseries.c if (new_prop && (strncmp(new_prop->name, "status", new_prop->length) || new_prop 756 drivers/crypto/nx/nx-842-pseries.c strncmp(new_prop->name, "ibm,max-sg-len", new_prop->length) || new_prop 757 drivers/crypto/nx/nx-842-pseries.c strncmp(new_prop->name, "ibm,max-sync-cop", new_prop->length))) new_prop 99 drivers/misc/cxl/base.c struct property *new_prop) new_prop 101 drivers/misc/cxl/base.c return of_update_property(dn, new_prop); new_prop 859 drivers/misc/cxl/cxl.h int cxl_update_properties(struct device_node *dn, struct property *new_prop); new_prop 70 drivers/misc/cxl/flash.c struct property *new_prop; new_prop 74 drivers/misc/cxl/flash.c new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); new_prop 75 drivers/misc/cxl/flash.c if (!new_prop) new_prop 78 drivers/misc/cxl/flash.c new_prop->name = kstrdup(name, GFP_KERNEL); new_prop 79 drivers/misc/cxl/flash.c if (!new_prop->name) { new_prop 80 drivers/misc/cxl/flash.c kfree(new_prop); new_prop 84 drivers/misc/cxl/flash.c new_prop->length = vd; new_prop 85 drivers/misc/cxl/flash.c new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); new_prop 86 drivers/misc/cxl/flash.c if (!new_prop->value) { new_prop 87 drivers/misc/cxl/flash.c kfree(new_prop->name); new_prop 88 drivers/misc/cxl/flash.c kfree(new_prop); new_prop 91 drivers/misc/cxl/flash.c memcpy(new_prop->value, value, vd); new_prop 93 drivers/misc/cxl/flash.c val = (u32 *)new_prop->value; new_prop 94 drivers/misc/cxl/flash.c rc = cxl_update_properties(dn, new_prop); new_prop 99 drivers/misc/cxl/flash.c kfree(new_prop->name); new_prop 100 drivers/misc/cxl/flash.c kfree(new_prop->value); new_prop 101 drivers/misc/cxl/flash.c kfree(new_prop); new_prop 203 drivers/of/overlay.c struct property *new_prop; new_prop 249 drivers/of/overlay.c new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); new_prop 250 drivers/of/overlay.c if (!new_prop) new_prop 253 drivers/of/overlay.c new_prop->name = kstrdup(prop->name, GFP_KERNEL); new_prop 254 drivers/of/overlay.c new_prop->length = target_path_len + path_tail_len + 1; new_prop 255 drivers/of/overlay.c new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); new_prop 256 drivers/of/overlay.c if (!new_prop->name || !new_prop->value) new_prop 259 drivers/of/overlay.c strcpy(new_prop->value, target_path); new_prop 260 drivers/of/overlay.c strcpy(new_prop->value + target_path_len, path_tail); new_prop 262 drivers/of/overlay.c of_property_set_flag(new_prop, OF_DYNAMIC); new_prop 266 drivers/of/overlay.c return new_prop; new_prop 269 drivers/of/overlay.c kfree(new_prop->name); new_prop 270 drivers/of/overlay.c kfree(new_prop->value); new_prop 271 drivers/of/overlay.c kfree(new_prop); new_prop 308 drivers/of/overlay.c struct property *new_prop = NULL, *prop; new_prop 344 drivers/of/overlay.c new_prop = dup_and_fixup_symbol_prop(ovcs, overlay_prop); new_prop 346 drivers/of/overlay.c new_prop = __of_prop_dup(overlay_prop, GFP_KERNEL); new_prop 349 drivers/of/overlay.c if (!new_prop) new_prop 354 drivers/of/overlay.c new_prop->next = target->np->deadprops; new_prop 355 drivers/of/overlay.c target->np->deadprops = new_prop; new_prop 358 drivers/of/overlay.c new_prop); new_prop 361 drivers/of/overlay.c new_prop); new_prop 366 drivers/of/overlay.c target->np, new_prop->name); new_prop 369 drivers/of/overlay.c kfree(new_prop->name); new_prop 370 drivers/of/overlay.c kfree(new_prop->value); new_prop 371 drivers/of/overlay.c kfree(new_prop); new_prop 2474 drivers/of/unittest.c struct property *new_prop; new_prop 2477 drivers/of/unittest.c new_prop = __of_prop_dup(prop, GFP_KERNEL); new_prop 2478 drivers/of/unittest.c if (!new_prop) { new_prop 2483 drivers/of/unittest.c if (__of_add_property(of_symbols, new_prop)) { new_prop 2484 drivers/of/unittest.c kfree(new_prop->name); new_prop 2485 drivers/of/unittest.c kfree(new_prop->value); new_prop 2486 drivers/of/unittest.c kfree(new_prop); new_prop 2494 drivers/of/unittest.c if (__of_add_property_sysfs(of_symbols, new_prop)) { new_prop 144 scripts/dtc/livetree.c struct property *new_prop, *old_prop; new_prop 158 scripts/dtc/livetree.c new_prop = new_node->proplist; new_prop 159 scripts/dtc/livetree.c new_node->proplist = new_prop->next; new_prop 160 scripts/dtc/livetree.c new_prop->next = NULL; new_prop 162 scripts/dtc/livetree.c if (new_prop->deleted) { new_prop 163 scripts/dtc/livetree.c delete_property_by_name(old_node, new_prop->name); new_prop 164 scripts/dtc/livetree.c free(new_prop); new_prop 170 scripts/dtc/livetree.c if (streq(old_prop->name, new_prop->name)) { new_prop 172 scripts/dtc/livetree.c for_each_label_withdel(new_prop->labels, l) new_prop 175 scripts/dtc/livetree.c old_prop->val = new_prop->val; new_prop 178 scripts/dtc/livetree.c old_prop->srcpos = new_prop->srcpos; new_prop 179 scripts/dtc/livetree.c free(new_prop); new_prop 180 scripts/dtc/livetree.c new_prop = NULL; new_prop 186 scripts/dtc/livetree.c if (new_prop) new_prop 187 scripts/dtc/livetree.c add_property(old_node, new_prop);