Lines Matching refs:kobj
22 struct kobject kobj; member
26 #define to_caps_entry(entry) container_of(entry, struct vas_caps_entry, kobj)
121 static ssize_t vas_type_show(struct kobject *kobj, struct attribute *attr, in vas_type_show() argument
128 centry = to_caps_entry(kobj); in vas_type_show()
138 static ssize_t vas_type_store(struct kobject *kobj, struct attribute *attr, in vas_type_store() argument
145 centry = to_caps_entry(kobj); in vas_type_store()
154 static void vas_type_release(struct kobject *kobj) in vas_type_release() argument
156 struct vas_caps_entry *centry = to_caps_entry(kobj); in vas_type_release()
178 struct kobject **kobj) in vas_caps_kobj_name() argument
183 kobject_init(¢ry->kobj, &vas_qos_attr_type); in vas_caps_kobj_name()
184 *kobj = gzip_caps_kobj; in vas_caps_kobj_name()
187 kobject_init(¢ry->kobj, &vas_def_attr_type); in vas_caps_kobj_name()
188 *kobj = gzip_caps_kobj; in vas_caps_kobj_name()
201 struct kobject *kobj = NULL; in sysfs_add_vas_caps() local
210 name = vas_caps_kobj_name(centry, &kobj); in sysfs_add_vas_caps()
212 if (kobj) { in sysfs_add_vas_caps()
213 ret = kobject_add(¢ry->kobj, kobj, "%s", name); in sysfs_add_vas_caps()
218 kobject_put(¢ry->kobj); in sysfs_add_vas_caps()
249 &vas_miscdev.this_device->kobj); in sysfs_pseries_vas_init()