Lines Matching refs:centry
124 struct vas_caps_entry *centry; in vas_type_show() local
128 centry = to_caps_entry(kobj); in vas_type_show()
129 caps = centry->caps; in vas_type_show()
141 struct vas_caps_entry *centry; in vas_type_store() local
145 centry = to_caps_entry(kobj); in vas_type_store()
146 caps = centry->caps; in vas_type_store()
156 struct vas_caps_entry *centry = to_caps_entry(kobj); in vas_type_release() local
157 kfree(centry); in vas_type_release()
177 static char *vas_caps_kobj_name(struct vas_caps_entry *centry, in vas_caps_kobj_name() argument
180 struct vas_cop_feat_caps *caps = centry->caps; in vas_caps_kobj_name()
183 kobject_init(¢ry->kobj, &vas_qos_attr_type); in vas_caps_kobj_name()
187 kobject_init(¢ry->kobj, &vas_def_attr_type); in vas_caps_kobj_name()
200 struct vas_caps_entry *centry; in sysfs_add_vas_caps() local
205 centry = kzalloc(sizeof(*centry), GFP_KERNEL); in sysfs_add_vas_caps()
206 if (!centry) in sysfs_add_vas_caps()
209 centry->caps = caps; in sysfs_add_vas_caps()
210 name = vas_caps_kobj_name(centry, &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()