Lines Matching defs:_name
146 #define CLASS_ATTR(_name, _mode, _show, _store) \
147 struct class_attribute class_attr_##_name = \
148 { { #_name, NULL, _mode }, _show, _store }
159 #define DEVICE_ATTR(_name, _mode, _show, _store) \
160 struct device_attribute dev_attr_##_name = \
161 __ATTR(_name, _mode, _show, _store)
162 #define DEVICE_ATTR_RO(_name) \
163 struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
164 #define DEVICE_ATTR_WO(_name) \
165 struct device_attribute dev_attr_##_name = __ATTR_WO(_name)
166 #define DEVICE_ATTR_RW(_name) \
167 struct device_attribute dev_attr_##_name = __ATTR_RW(_name)
185 #define _CLASS_ATTR_STRING(_name, _mode, _str) \
186 { __ATTR(_name, _mode, show_class_attr_string, NULL), _str }
187 #define CLASS_ATTR_STRING(_name, _mode, _str) \
188 struct class_attribute_string class_attr_##_name = \
189 _CLASS_ATTR_STRING(_name, _mode, _str)