/linux-4.19.296/include/linux/iio/ |
D | sysfs.h | 54 #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) 117 #define IIO_DEV_ATTR_SAMP_FREQ_AVAIL(_show) \ argument 118 IIO_DEVICE_ATTR(sampling_frequency_available, S_IRUGO, _show, NULL, 0) [all …]
|
/linux-4.19.296/include/linux/ |
D | hwmon-sysfs.h | 32 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 33 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 36 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 38 = SENSOR_ATTR(_name, _mode, _show, _store, _index) 48 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument 49 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 53 #define SENSOR_DEVICE_ATTR_2(_name,_mode,_show,_store,_nr,_index) \ argument 55 = SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index)
|
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 | 94 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ argument 96 __ATTR(_name, _mode, _show, _store)
|
D | configfs.h | 144 .show = _pfx##_name##_show, \ 153 .show = _pfx##_name##_show, \
|
D | device.h | 52 #define BUS_ATTR(_name, _mode, _show, _store) \ argument 53 struct bus_attribute bus_attr_##_name = __ATTR(_name, _mode, _show, _store) 591 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument 592 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 593 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument 595 __ATTR_PREALLOC(_name, _mode, _show, _store) 611 #define DEVICE_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument 613 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
|
D | perf_event.h | 1416 #define PMU_EVENT_ATTR(_name, _var, _id, _show) \ argument 1418 .attr = __ATTR(_name, 0444, _show, NULL), \ 1431 _name##_show(struct device *dev, \
|
D | seq_file.h | 151 return single_open(file, __name ## _show, inode->i_private); \
|
/linux-4.19.296/fs/btrfs/ |
D | sysfs.h | 18 #define __INIT_KOBJ_ATTR(_name, _mode, _show, _store) \ argument 21 .show = _show, \ 25 #define BTRFS_ATTR_RW(_prefix, _name, _show, _store) \ argument 27 __INIT_KOBJ_ATTR(_name, 0644, _show, _store) 29 #define BTRFS_ATTR(_prefix, _name, _show) \ argument 31 __INIT_KOBJ_ATTR(_name, 0444, _show, NULL)
|
/linux-4.19.296/drivers/s390/scsi/ |
D | zfcp_sysfs.c | 16 #define ZFCP_DEV_ATTR(_feat, _name, _mode, _show, _store) \ argument 18 _show, _store) 20 static ssize_t zfcp_sysfs_##_feat##_##_name##_show(struct device *dev, \ 29 zfcp_sysfs_##_feat##_##_name##_show, NULL); 32 static ssize_t zfcp_sysfs_##_feat##_##_name##_show(struct device *dev, \ 39 zfcp_sysfs_##_feat##_##_name##_show, NULL); 42 static ssize_t zfcp_sysfs_adapter_##_name##_show(struct device *dev, \ 58 zfcp_sysfs_adapter_##_name##_show, NULL); 479 static ssize_t zfcp_sysfs_scsi_##_name##_show(struct device *dev, \ 488 static DEVICE_ATTR(_name, S_IRUGO, zfcp_sysfs_scsi_##_name##_show, NULL); [all …]
|
/linux-4.19.296/drivers/edac/ |
D | edac_pci_sysfs.c | 127 #define INSTANCE_ATTR(_name, _mode, _show, _store) \ argument 130 .show = _show, \ 266 #define EDAC_PCI_ATTR(_name,_mode,_show,_store) \ argument 270 .show = _show, \ 274 #define EDAC_PCI_STRING_ATTR(_name,_data,_mode,_show,_store) \ argument 278 .show = _show, \
|
D | edac_device_sysfs.c | 147 #define CTL_INFO_ATTR(_name,_mode,_show,_store) \ argument 150 .show = _show, \ 376 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument 379 .show = _show, \ 479 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 482 .show = _show, \
|
D | amd64_edac_dbg.c | 5 static ssize_t amd64_##reg##_show(struct device *dev, \
|
D | edac_mc_sysfs.c | 129 #define DEVICE_ATTR_LEGACY(_name, _mode, _show, _store) \ argument 130 static struct device_attribute dev_attr_legacy_##_name = __ATTR(_name, _mode, _show, _store) 137 #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ argument 139 { __ATTR(_name, _mode, _show, _store), (_var) }
|
/linux-4.19.296/drivers/base/ |
D | topology.c | 18 static ssize_t name##_show(struct device *dev, \ 25 static ssize_t name##_show(struct device *dev, \
|
/linux-4.19.296/fs/nilfs2/ |
D | sysfs.h | 98 NILFS_ATTR(type, name, 0444, nilfs_##type##_##name##_show, NULL) 101 nilfs_##type##_##name##_show, \
|
/linux-4.19.296/drivers/sh/superhyway/ |
D | superhyway-sysfs.c | 18 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \
|
/linux-4.19.296/include/scsi/ |
D | scsi_transport_fc.h | 177 #define FC_VPORT_ATTR(_name,_mode,_show,_store) \ argument 179 __ATTR(_name,_mode,_show,_store) 303 #define FC_RPORT_ATTR(_name,_mode,_show,_store) \ argument 305 __ATTR(_name,_mode,_show,_store)
|
/linux-4.19.296/fs/gfs2/ |
D | sys.c | 519 #define GDLM_ATTR(_name,_mode,_show,_store) \ argument 520 static struct gfs2_attr gdlm_attr_##_name = __ATTR(_name,_mode,_show,_store) 602 static ssize_t name##_show(struct gfs2_sbd *sdp, char *buf) \ 606 TUNE_ATTR_3(name, name##_show, store)
|
/linux-4.19.296/drivers/parisc/ |
D | pdc_stable.c | 122 #define PDCS_ATTR(_name, _mode, _show, _store) \ argument 125 .show = _show, \ 129 #define PATHS_ATTR(_name, _mode, _show, _store) \ argument 132 .show = _show, \
|
/linux-4.19.296/drivers/iio/health/ |
D | afe440x.h | 126 static ssize_t _name ## _show(struct device *dev, \
|
/linux-4.19.296/include/linux/usb/ |
D | gadget_configfs.h | 24 static ssize_t __struct##_##__name##_show(struct config_item *item, char *page) \
|
/linux-4.19.296/drivers/iio/light/ |
D | lm3533-als.c | 575 #define ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2) \ argument 576 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 581 #define LM3533_ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2) \ argument 583 ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2)
|
/linux-4.19.296/drivers/ptp/ |
D | ptp_sysfs.c | 34 static ssize_t var##_show(struct device *dev, \ 40 static DEVICE_ATTR(name, 0444, var##_show, NULL);
|
/linux-4.19.296/fs/f2fs/ |
D | sysfs.c | 367 #define F2FS_ATTR_OFFSET(_struct_type, _name, _mode, _show, _store, _offset) \ argument 370 .show = _show, \ 382 static struct f2fs_attr f2fs_attr_##name = __ATTR(name, 0444, name##_show, NULL)
|