Lines Matching refs:name
208 if (!kobj->name || !kobj->name[0]) { in kobject_add_internal()
260 const char *old_name = kobj->name; in kobject_set_name_vargs()
263 if (kobj->name && !fmt) in kobject_set_name_vargs()
266 kobj->name = kvasprintf(GFP_KERNEL, fmt, vargs); in kobject_set_name_vargs()
267 if (!kobj->name) { in kobject_set_name_vargs()
268 kobj->name = old_name; in kobject_set_name_vargs()
273 while ((s = strchr(kobj->name, '/'))) in kobject_set_name_vargs()
447 const char *dup_name = NULL, *name; in kobject_rename() local
471 name = dup_name = kstrdup(new_name, GFP_KERNEL); in kobject_rename()
472 if (!name) { in kobject_rename()
482 dup_name = kobj->name; in kobject_rename()
483 kobj->name = name; in kobject_rename()
598 const char *name = kobj->name; in kobject_cleanup() local
629 if (name) { in kobject_cleanup()
630 pr_debug("kobject: '%s': free name\n", name); in kobject_cleanup()
631 kfree(name); in kobject_cleanup()
722 struct kobject *kobject_create_and_add(const char *name, struct kobject *parent) in kobject_create_and_add() argument
731 retval = kobject_add(kobj, parent, "%s", name); in kobject_create_and_add()
824 struct kobject *kset_find_obj(struct kset *kset, const char *name) in kset_find_obj() argument
832 if (kobject_name(k) && !strcmp(kobject_name(k), name)) { in kset_find_obj()
870 static struct kset *kset_create(const char *name, in kset_create() argument
880 retval = kobject_set_name(&kset->kobj, "%s", name); in kset_create()
913 struct kset *kset_create_and_add(const char *name, in kset_create_and_add() argument
920 kset = kset_create(name, uevent_ops, parent_kobj); in kset_create_and_add()