Lines Matching refs:class
42 struct subsys_private *class_to_subsys(const struct class *class) in class_to_subsys() argument
47 if (!class || !class_kset) in class_to_subsys()
59 if (sp->class == class) in class_to_subsys()
77 ret = class_attr->show(cp->class, class_attr, buf); in class_attr_show()
89 ret = class_attr->store(cp->class, class_attr, buf, count); in class_attr_store()
96 const struct class *class = cp->class; in class_release() local
98 pr_debug("class '%s': release.\n", class->name); in class_release()
100 if (class->class_release) in class_release()
101 class->class_release(class); in class_release()
104 "be careful\n", class->name); in class_release()
113 const struct class *class = cp->class; in class_child_ns_type() local
115 return class->ns_type; in class_child_ns_type()
129 int class_create_file_ns(const struct class *cls, const struct class_attribute *attr, in class_create_file_ns()
145 void class_remove_file_ns(const struct class *cls, const struct class_attribute *attr, in class_remove_file_ns()
178 int class_register(const struct class *cls) in class_register()
203 cp->class = cls; in class_register()
223 void class_unregister(const struct class *cls) in class_unregister()
238 static void class_create_release(const struct class *cls) in class_create_release()
256 struct class *class_create(const char *name) in class_create()
258 struct class *cls; in class_create()
289 void class_destroy(const struct class *cls) in class_destroy()
310 void class_dev_iter_init(struct class_dev_iter *iter, const struct class *class, in class_dev_iter_init() argument
313 struct subsys_private *sp = class_to_subsys(class); in class_dev_iter_init()
387 int class_for_each_device(const struct class *class, const struct device *start, in class_for_each_device() argument
390 struct subsys_private *sp = class_to_subsys(class); in class_for_each_device()
395 if (!class) in class_for_each_device()
399 __func__, class->name); in class_for_each_device()
403 class_dev_iter_init(&iter, class, start, NULL); in class_for_each_device()
436 struct device *class_find_device(const struct class *class, const struct device *start, in class_find_device() argument
440 struct subsys_private *sp = class_to_subsys(class); in class_find_device()
444 if (!class) in class_find_device()
448 __func__, class->name); in class_find_device()
452 class_dev_iter_init(&iter, class, start, NULL); in class_find_device()
469 const struct class *parent; in class_interface_register()
473 if (!class_intf || !class_intf->class) in class_interface_register()
476 parent = class_intf->class; in class_interface_register()
503 const struct class *parent = class_intf->class; in class_interface_unregister()
534 ssize_t show_class_attr_string(const struct class *class, in show_class_attr_string() argument
644 bool class_is_registered(const struct class *class) in class_is_registered() argument
646 struct subsys_private *sp = class_to_subsys(class); in class_is_registered()