• Home
  • Raw
  • Download

Lines Matching refs:_name

140  * @_name: Attribute name.
157 #define DEVICE_ATTR(_name, _mode, _show, _store) \
158 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
162 * @_name: Attribute name.
169 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \
170 struct device_attribute dev_attr_##_name = \
171 __ATTR_PREALLOC(_name, _mode, _show, _store)
175 * @_name: Attribute name.
177 * Like DEVICE_ATTR(), but @_mode is 0644, @_show is <_name>_show,
178 * and @_store is <_name>_store.
180 #define DEVICE_ATTR_RW(_name) \
181 struct device_attribute dev_attr_##_name = __ATTR_RW(_name)
185 * @_name: Attribute name.
189 #define DEVICE_ATTR_ADMIN_RW(_name) \
190 struct device_attribute dev_attr_##_name = __ATTR_RW_MODE(_name, 0600)
194 * @_name: Attribute name.
196 * Like DEVICE_ATTR(), but @_mode is 0444 and @_show is <_name>_show.
198 #define DEVICE_ATTR_RO(_name) \
199 struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
203 * @_name: Attribute name.
207 #define DEVICE_ATTR_ADMIN_RO(_name) \
208 struct device_attribute dev_attr_##_name = __ATTR_RO_MODE(_name, 0400)
212 * @_name: Attribute name.
214 * Like DEVICE_ATTR(), but @_mode is 0200 and @_store is <_name>_store.
216 #define DEVICE_ATTR_WO(_name) \
217 struct device_attribute dev_attr_##_name = __ATTR_WO(_name)
221 * @_name: Attribute name.
228 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \
229 struct dev_ext_attribute dev_attr_##_name = \
230 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
234 * @_name: Attribute name.
240 #define DEVICE_INT_ATTR(_name, _mode, _var) \
241 struct dev_ext_attribute dev_attr_##_name = \
242 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
246 * @_name: Attribute name.
252 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \
253 struct dev_ext_attribute dev_attr_##_name = \
254 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) }
256 #define DEVICE_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \
257 struct device_attribute dev_attr_##_name = \
258 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)