/include/linux/ |
D | hwmon-sysfs.h | 19 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 20 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 24 SENSOR_ATTR(_name, 0444, _func##_show, NULL, _index) 27 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index) 32 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 34 = SENSOR_ATTR(_name, _mode, _show, _store, _index) 37 SENSOR_DEVICE_ATTR(_name, 0444, _func##_show, NULL, _index) 40 SENSOR_DEVICE_ATTR(_name, 0644, _func##_show, _func##_store, _index) 53 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument 54 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ [all …]
|
D | sysfs.h | 101 #define __ATTR(_name, _mode, _show, _store) { \ argument 104 .show = _show, \ 108 #define __ATTR_PREALLOC(_name, _mode, _show, _store) { \ argument 111 .show = _show, \ 117 .show = _name##_show, \ 123 .show = _name##_show, \ 131 #define __ATTR_RW(_name) __ATTR(_name, 0644, _name##_show, _name##_store) 136 #define __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) { \ argument 139 .show = _show, \
|
D | mdev.h | 105 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ argument 107 __ATTR(_name, _mode, _show, _store)
|
D | configfs.h | 130 .show = _pfx##_name##_show, \ 139 .show = _pfx##_name##_show, \
|
D | seq_file.h | 152 return single_open(file, __name ## _show, inode->i_private); \
|
D | device.h | 847 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument 848 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 849 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument 851 __ATTR_PREALLOC(_name, _mode, _show, _store) 867 #define DEVICE_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument 869 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
|
D | perf_event.h | 1475 #define PMU_EVENT_ATTR(_name, _var, _id, _show) \ argument 1477 .attr = __ATTR(_name, 0444, _show, NULL), \ 1490 _name##_show(struct device *dev, \
|
/include/linux/iio/ |
D | sysfs.h | 51 #define IIO_ATTR(_name, _mode, _show, _store, _addr) \ argument 52 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 67 #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr) \ argument 69 = IIO_ATTR(_name, _mode, _show, _store, _addr) 83 #define IIO_DEVICE_ATTR_NAMED(_vname, _name, _mode, _show, _store, _addr) \ argument 85 = IIO_ATTR(_name, _mode, _show, _store, _addr) 105 #define IIO_DEV_ATTR_SAMP_FREQ(_mode, _show, _store) \ argument 106 IIO_DEVICE_ATTR(sampling_frequency, _mode, _show, _store, 0) 114 #define IIO_DEV_ATTR_SAMP_FREQ_AVAIL(_show) \ argument 115 IIO_DEVICE_ATTR(sampling_frequency_available, S_IRUGO, _show, NULL, 0) [all …]
|
/include/scsi/ |
D | scsi_transport_fc.h | 163 #define FC_VPORT_ATTR(_name,_mode,_show,_store) \ argument 165 __ATTR(_name,_mode,_show,_store) 289 #define FC_RPORT_ATTR(_name,_mode,_show,_store) \ argument 291 __ATTR(_name,_mode,_show,_store)
|
/include/linux/usb/ |
D | gadget_configfs.h | 24 static ssize_t __struct##_##__name##_show(struct config_item *item, char *page) \
|