Lines Matching refs:_name
158 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument
159 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
170 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument
171 struct device_attribute dev_attr_##_name = \
172 __ATTR_PREALLOC(_name, _mode, _show, _store)
181 #define DEVICE_ATTR_RW(_name) \ argument
182 struct device_attribute dev_attr_##_name = __ATTR_RW(_name)
190 #define DEVICE_ATTR_ADMIN_RW(_name) \ argument
191 struct device_attribute dev_attr_##_name = __ATTR_RW_MODE(_name, 0600)
199 #define DEVICE_ATTR_RO(_name) \ argument
200 struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
208 #define DEVICE_ATTR_ADMIN_RO(_name) \ argument
209 struct device_attribute dev_attr_##_name = __ATTR_RO_MODE(_name, 0400)
217 #define DEVICE_ATTR_WO(_name) \ argument
218 struct device_attribute dev_attr_##_name = __ATTR_WO(_name)
229 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument
230 struct dev_ext_attribute dev_attr_##_name = \
231 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
241 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument
242 struct dev_ext_attribute dev_attr_##_name = \
243 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
253 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument
254 struct dev_ext_attribute dev_attr_##_name = \
255 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) }
266 #define DEVICE_STRING_ATTR_RO(_name, _mode, _var) \ argument
267 struct dev_ext_attribute dev_attr_##_name = \
268 { __ATTR(_name, (_mode) & ~0222, device_show_string, NULL), (_var) }
270 #define DEVICE_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument
271 struct device_attribute dev_attr_##_name = \
272 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)