Home
last modified time | relevance | path

Searched refs:_show (Results 1 – 25 of 48) sorted by relevance

12

/linux-4.19.296/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)
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/
Dhwmon-sysfs.h32 #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)
Dsysfs.h101 #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, \
Dmdev.h94 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ argument
96 __ATTR(_name, _mode, _show, _store)
Dconfigfs.h144 .show = _pfx##_name##_show, \
153 .show = _pfx##_name##_show, \
Ddevice.h52 #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)
Dperf_event.h1416 #define PMU_EVENT_ATTR(_name, _var, _id, _show) \ argument
1418 .attr = __ATTR(_name, 0444, _show, NULL), \
1431 _name##_show(struct device *dev, \
Dseq_file.h151 return single_open(file, __name ## _show, inode->i_private); \
/linux-4.19.296/fs/btrfs/
Dsysfs.h18 #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/
Dzfcp_sysfs.c16 #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/
Dedac_pci_sysfs.c127 #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, \
Dedac_device_sysfs.c147 #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, \
Damd64_edac_dbg.c5 static ssize_t amd64_##reg##_show(struct device *dev, \
Dedac_mc_sysfs.c129 #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/
Dtopology.c18 static ssize_t name##_show(struct device *dev, \
25 static ssize_t name##_show(struct device *dev, \
/linux-4.19.296/fs/nilfs2/
Dsysfs.h98 NILFS_ATTR(type, name, 0444, nilfs_##type##_##name##_show, NULL)
101 nilfs_##type##_##name##_show, \
/linux-4.19.296/drivers/sh/superhyway/
Dsuperhyway-sysfs.c18 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \
/linux-4.19.296/include/scsi/
Dscsi_transport_fc.h177 #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/
Dsys.c519 #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/
Dpdc_stable.c122 #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/
Dafe440x.h126 static ssize_t _name ## _show(struct device *dev, \
/linux-4.19.296/include/linux/usb/
Dgadget_configfs.h24 static ssize_t __struct##_##__name##_show(struct config_item *item, char *page) \
/linux-4.19.296/drivers/iio/light/
Dlm3533-als.c575 #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/
Dptp_sysfs.c34 static ssize_t var##_show(struct device *dev, \
40 static DEVICE_ATTR(name, 0444, var##_show, NULL);
/linux-4.19.296/fs/f2fs/
Dsysfs.c367 #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)

12