Home
last modified time | relevance | path

Searched refs:_mode (Results 1 – 6 of 6) sorted by relevance

/include/linux/iio/
Dsysfs.h54 #define IIO_ATTR(_name, _mode, _show, _store, _addr) \ argument
55 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
70 #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr) \ argument
72 = IIO_ATTR(_name, _mode, _show, _store, _addr)
86 #define IIO_DEVICE_ATTR_NAMED(_vname, _name, _mode, _show, _store, _addr) \ argument
88 = IIO_ATTR(_name, _mode, _show, _store, _addr)
108 #define IIO_DEV_ATTR_SAMP_FREQ(_mode, _show, _store) \ argument
109 IIO_DEVICE_ATTR(sampling_frequency, _mode, _show, _store, 0)
/include/linux/
Dhwmon-sysfs.h19 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument
20 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
32 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument
34 = SENSOR_ATTR(_name, _mode, _show, _store, _index)
53 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument
54 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
67 #define SENSOR_DEVICE_ATTR_2(_name,_mode,_show,_store,_nr,_index) \ argument
69 = SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index)
Dsysfs.h101 #define __ATTR(_name, _mode, _show, _store) { \ argument
103 .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \
108 #define __ATTR_PREALLOC(_name, _mode, _show, _store) { \ argument
110 .mode = SYSFS_PREALLOC | VERIFY_OCTAL_PERMISSIONS(_mode) },\
120 #define __ATTR_RO_MODE(_name, _mode) { \ argument
122 .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \
126 #define __ATTR_RW_MODE(_name, _mode) { \ argument
128 .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \
143 #define __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) { \ argument
144 .attr = {.name = __stringify(_name), .mode = _mode, \
[all …]
Ddevice.h128 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument
129 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
130 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument
132 __ATTR_PREALLOC(_name, _mode, _show, _store)
143 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument
145 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) }
146 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument
148 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
149 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument
151 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) }
[all …]
/include/linux/device/
Dclass.h238 #define _CLASS_ATTR_STRING(_name, _mode, _str) \ argument
239 { __ATTR(_name, _mode, show_class_attr_string, NULL), _str }
240 #define CLASS_ATTR_STRING(_name, _mode, _str) \ argument
242 _CLASS_ATTR_STRING(_name, _mode, _str)
/include/scsi/
Dscsi_transport_fc.h165 #define FC_VPORT_ATTR(_name,_mode,_show,_store) \ argument
167 __ATTR(_name,_mode,_show,_store)
321 #define FC_RPORT_ATTR(_name,_mode,_show,_store) \ argument
323 __ATTR(_name,_mode,_show,_store)