/drivers/pci/ |
D | slot.c | 144 char *new_name; in make_slot_name() local 147 new_name = kstrdup(name, GFP_KERNEL); in make_slot_name() 148 if (!new_name) in make_slot_name() 162 dup_slot = kset_find_obj(pci_slots_kset, new_name); in make_slot_name() 169 kfree(new_name); in make_slot_name() 170 new_name = kmalloc(len, GFP_KERNEL); in make_slot_name() 171 if (!new_name) in make_slot_name() 174 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name() 177 return new_name; in make_slot_name()
|
/drivers/power/supply/ |
D | power_supply_hwmon.c | 340 char *new_name; in power_supply_add_hwmon_sysfs() local 342 new_name = devm_kstrdup(dev, name, GFP_KERNEL); in power_supply_add_hwmon_sysfs() 343 if (!new_name) { in power_supply_add_hwmon_sysfs() 347 strreplace(new_name, '-', '_'); in power_supply_add_hwmon_sysfs() 348 name = new_name; in power_supply_add_hwmon_sysfs()
|
/drivers/mtd/maps/ |
D | pcmciamtd.c | 415 static void card_settings(struct pcmciamtd_dev *dev, struct pcmcia_device *p_dev, int *new_name) in card_settings() argument 454 *new_name = 1; in card_settings() 470 int new_name = 0; in pcmciamtd_config() local 474 card_settings(dev, link, &new_name); in pcmciamtd_config() 591 if(new_name) { in pcmciamtd_config()
|
/drivers/mtd/ubi/ |
D | cdev.c | 754 memcpy(re->new_name, name, name_len); in rename_volumes() 776 !memcmp(re->new_name, re1->desc->vol->name, in rename_volumes() 790 desc = ubi_open_volume_nm(ubi->ubi_num, re->new_name, in rename_volumes() 800 re->new_name, err); in rename_volumes()
|
D | ubi.h | 224 char new_name[UBI_VOL_NAME_MAX + 1]; member
|
D | vtbl.c | 138 memcpy(vtbl_rec->name, re->new_name, re->new_name_len); in ubi_vtbl_rename_volumes()
|
D | vmt.c | 555 memcpy(vol->name, re->new_name, re->new_name_len + 1); in ubi_rename_volumes()
|
/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.c | 1090 char *new_name; in ahc_linux_register_host() local 1114 new_name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); in ahc_linux_register_host() 1115 if (new_name != NULL) { in ahc_linux_register_host() 1116 strcpy(new_name, buf); in ahc_linux_register_host() 1117 ahc_set_name(ahc, new_name); in ahc_linux_register_host()
|
D | aic79xx_osm.c | 1227 char *new_name; in ahd_linux_register_host() local 1251 new_name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); in ahd_linux_register_host() 1252 if (new_name != NULL) { in ahd_linux_register_host() 1253 strcpy(new_name, buf); in ahd_linux_register_host() 1254 ahd_set_name(ahd, new_name); in ahd_linux_register_host()
|
/drivers/md/ |
D | dm-ioctl.c | 350 static char *__change_cell_name(struct hash_cell *hc, char *new_name) in __change_cell_name() argument 361 hc->name = new_name; in __change_cell_name() 364 list_add(&hc->name_list, _name_buckets + hash_str(new_name)); in __change_cell_name()
|
/drivers/hid/ |
D | hid-logitech-hidpp.c | 410 char *new_name; in hidpp_prefix_name() local 418 new_name = kzalloc(new_length, GFP_KERNEL); in hidpp_prefix_name() 419 if (!new_name) in hidpp_prefix_name() 422 snprintf(new_name, new_length, "Logitech %s", *name); in hidpp_prefix_name() 426 *name = new_name; in hidpp_prefix_name()
|
/drivers/base/ |
D | core.c | 3319 int device_rename(struct device *dev, const char *new_name) in device_rename() argument 3329 dev_dbg(dev, "renaming to %s\n", new_name); in device_rename() 3340 new_name, kobject_namespace(kobj)); in device_rename() 3345 error = kobject_rename(kobj, new_name); in device_rename()
|