Lines Matching refs:class
51 struct class { struct
60 void (*class_release)(const struct class *class); argument
84 int __must_check class_register(const struct class *class); argument
85 void class_unregister(const struct class *class);
86 bool class_is_registered(const struct class *class);
96 void class_dev_iter_init(struct class_dev_iter *iter, const struct class *class,
101 int class_for_each_device(const struct class *class, const struct device *start, void *data,
103 struct device *class_find_device(const struct class *class, const struct device *start,
112 static inline struct device *class_find_device_by_name(const struct class *class, in class_find_device_by_name() argument
115 return class_find_device(class, NULL, name, device_match_name); in class_find_device_by_name()
124 static inline struct device *class_find_device_by_of_node(const struct class *class, in class_find_device_by_of_node() argument
127 return class_find_device(class, NULL, np, device_match_of_node); in class_find_device_by_of_node()
136 static inline struct device *class_find_device_by_fwnode(const struct class *class, in class_find_device_by_fwnode() argument
139 return class_find_device(class, NULL, fwnode, device_match_fwnode); in class_find_device_by_fwnode()
148 static inline struct device *class_find_device_by_devt(const struct class *class, in class_find_device_by_devt() argument
151 return class_find_device(class, NULL, &devt, device_match_devt); in class_find_device_by_devt()
162 static inline struct device *class_find_device_by_acpi_dev(const struct class *class, in class_find_device_by_acpi_dev() argument
165 return class_find_device(class, NULL, adev, device_match_acpi_dev); in class_find_device_by_acpi_dev()
168 static inline struct device *class_find_device_by_acpi_dev(const struct class *class, in class_find_device_by_acpi_dev() argument
177 ssize_t (*show)(const struct class *class, const struct class_attribute *attr,
179 ssize_t (*store)(const struct class *class, const struct class_attribute *attr,
190 int __must_check class_create_file_ns(const struct class *class, const struct class_attribute *attr,
192 void class_remove_file_ns(const struct class *class, const struct class_attribute *attr,
195 static inline int __must_check class_create_file(const struct class *class, in class_create_file() argument
198 return class_create_file_ns(class, attr, NULL); in class_create_file()
201 static inline void class_remove_file(const struct class *class, in class_remove_file() argument
204 return class_remove_file_ns(class, attr, NULL); in class_remove_file()
220 ssize_t show_class_attr_string(const struct class *class, const struct class_attribute *attr,
225 const struct class *class; member
234 struct class * __must_check class_create(const char *name);
235 void class_destroy(const struct class *cls);