Home
last modified time | relevance | path

Searched refs:new_name (Results 1 – 10 of 10) sorted by relevance

/drivers/pci/
Dslot.c140 char *new_name; in make_slot_name() local
143 new_name = kstrdup(name, GFP_KERNEL); in make_slot_name()
144 if (!new_name) in make_slot_name()
158 dup_slot = kset_find_obj(pci_slots_kset, new_name); in make_slot_name()
165 kfree(new_name); in make_slot_name()
166 new_name = kmalloc(len, GFP_KERNEL); in make_slot_name()
167 if (!new_name) in make_slot_name()
170 sprintf(new_name, "%s-%d", name, dup++); in make_slot_name()
173 return new_name; in make_slot_name()
/drivers/mtd/maps/
Dpcmciamtd.c415 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/
Dcdev.c755 memcpy(re->new_name, name, name_len); in rename_volumes()
777 !memcmp(re->new_name, re1->desc->vol->name, in rename_volumes()
791 desc = ubi_open_volume_nm(ubi->ubi_num, re->new_name, in rename_volumes()
801 re->new_name, err); in rename_volumes()
Dubi.h211 char new_name[UBI_VOL_NAME_MAX + 1]; member
Dvtbl.c141 memcpy(vtbl_rec->name, re->new_name, re->new_name_len); in ubi_vtbl_rename_volumes()
Dvmt.c613 memcpy(vol->name, re->new_name, re->new_name_len + 1); in ubi_rename_volumes()
/drivers/base/
Dcore.c1704 int device_rename(struct device *dev, const char *new_name) in device_rename() argument
1714 __func__, new_name); in device_rename()
1724 &dev->kobj, old_device_name, new_name); in device_rename()
1729 error = kobject_rename(&dev->kobj, new_name); in device_rename()
/drivers/scsi/aic7xxx/
Daic7xxx_osm.c1102 char *new_name; in ahc_linux_register_host() local
1126 new_name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); in ahc_linux_register_host()
1127 if (new_name != NULL) { in ahc_linux_register_host()
1128 strcpy(new_name, buf); in ahc_linux_register_host()
1129 ahc_set_name(ahc, new_name); in ahc_linux_register_host()
Daic79xx_osm.c1228 char *new_name; in ahd_linux_register_host() local
1252 new_name = kmalloc(strlen(buf) + 1, GFP_ATOMIC); in ahd_linux_register_host()
1253 if (new_name != NULL) { in ahd_linux_register_host()
1254 strcpy(new_name, buf); in ahd_linux_register_host()
1255 ahd_set_name(ahd, new_name); in ahd_linux_register_host()
/drivers/md/
Ddm-ioctl.c332 static char *__change_cell_name(struct hash_cell *hc, char *new_name) in __change_cell_name() argument
343 hc->name = new_name; in __change_cell_name()
346 list_add(&hc->name_list, _name_buckets + hash_str(new_name)); in __change_cell_name()