Lines Matching defs:name
58 char *name;
71 char *name;
584 sysfs_remove_link(group->devices_kobj, grp_dev->name);
598 kfree(grp_dev->name);
721 return sysfs_emit(buf, "%s\n", group->name);
881 static IOMMU_GROUP_ATTR(name, S_IRUGO, iommu_group_show_name, NULL);
904 kfree(group->name);
1018 * iommu_group_set_name - set name for a group
1020 * @name: name
1022 * Allow iommu driver to set a name for a group. When set it will
1023 * appear in a name attribute file under the group in sysfs.
1025 int iommu_group_set_name(struct iommu_group *group, const char *name)
1029 if (group->name) {
1031 kfree(group->name);
1032 group->name = NULL;
1033 if (!name)
1037 group->name = kstrdup(name, GFP_KERNEL);
1038 if (!group->name)
1043 kfree(group->name);
1044 group->name = NULL;
1135 device->name = kasprintf(GFP_KERNEL, "%s", kobject_name(&dev->kobj));
1137 if (!device->name) {
1143 &dev->kobj, device->name);
1148 * and append an instance to the name.
1150 kfree(device->name);
1151 device->name = kasprintf(GFP_KERNEL, "%s.%d",
1165 kfree(device->name);
1770 iommu_def_domain_type, group->name);