Lines Matching refs:kobj
31 struct kobject *kobj; /* bare (not embedded) kobject for cache member
41 struct kobject kobj; member
136 return container_of(k, struct cache_index_dir, kobj); in kobj_to_cache_index_dir()
532 struct kobject *kobj = NULL; in cacheinfo_create_cache_dir() local
539 kobj = kobject_create_and_add("cache", &dev->kobj); in cacheinfo_create_cache_dir()
540 if (!kobj) in cacheinfo_create_cache_dir()
547 cache_dir->kobj = kobj; in cacheinfo_create_cache_dir()
555 kobject_put(kobj); in cacheinfo_create_cache_dir()
559 static void cache_index_release(struct kobject *kobj) in cache_index_release() argument
563 index = kobj_to_cache_index_dir(kobj); in cache_index_release()
769 rc = attr->show(&dir->kobj, attr, buf); in cacheinfo_create_index_opt_attrs()
777 if (sysfs_create_file(&dir->kobj, &attr->attr)) in cacheinfo_create_index_opt_attrs()
797 rc = kobject_init_and_add(&index_dir->kobj, &cache_index_type, in cacheinfo_create_index_dir()
798 cache_dir->kobj, "index%d", index); in cacheinfo_create_index_dir()
800 kobject_put(&index_dir->kobj); in cacheinfo_create_index_dir()
873 kobject_put(&index->kobj); in remove_index_dirs()
883 kobject_del(cache_dir->kobj); in remove_cache_dir()
885 kobject_put(cache_dir->kobj); in remove_cache_dir()