/linux-6.3-rc2/drivers/staging/iio/meter/ |
A D | meter.h | 93 #define IIO_DEV_ATTR_VOLT_A(_show, _addr) \ argument 96 #define IIO_DEV_ATTR_VOLT_B(_show, _addr) \ argument 99 #define IIO_DEV_ATTR_VOLT_C(_show, _addr) \ argument 102 #define IIO_DEV_ATTR_AENERGY(_show, _addr) \ argument 105 #define IIO_DEV_ATTR_LENERGY(_show, _addr) \ argument 156 #define IIO_DEV_ATTR_AVARHR(_show, _addr) \ argument 159 #define IIO_DEV_ATTR_BVARHR(_show, _addr) \ argument 162 #define IIO_DEV_ATTR_CVARHR(_show, _addr) \ argument 165 #define IIO_DEV_ATTR_AVAHR(_show, _addr) \ argument 168 #define IIO_DEV_ATTR_BVAHR(_show, _addr) \ argument [all …]
|
/linux-6.3-rc2/drivers/staging/iio/frequency/ |
A D | dds.h | 14 #define IIO_DEV_ATTR_FREQ(_channel, _num, _mode, _show, _store, _addr) \ argument 16 _mode, _show, _store, _addr) 31 _mode, _show, _store, _addr) 39 _mode, _show, _store, _addr) 54 _mode, _show, _store, _addr) 62 _mode, _show, _store, _addr) 70 _mode, _show, _store, _addr) 78 _mode, _show, _store, _addr) 86 _mode, _show, _store, _addr) 93 _mode, _show, _store, _addr) \ argument [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | hwmon-sysfs.h | 20 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 21 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 25 SENSOR_ATTR(_name, 0444, _func##_show, NULL, _index) 28 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index) 33 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 35 = SENSOR_ATTR(_name, _mode, _show, _store, _index) 38 SENSOR_DEVICE_ATTR(_name, 0444, _func##_show, NULL, _index) 55 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 60 SENSOR_ATTR_2(_name, 0444, _func##_show, NULL, _nr, _index) 70 = SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) [all …]
|
A 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, \ 129 .show = _name##_show, \ 138 #define __ATTR_RW(_name) __ATTR(_name, 0644, _name##_show, _name##_store) 143 #define __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) { \ argument 146 .show = _show, \
|
/linux-6.3-rc2/include/linux/iio/ |
A 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) 88 = IIO_ATTR(_name, _mode, _show, _store, _addr) 119 #define IIO_DEV_ATTR_SAMP_FREQ(_mode, _show, _store) \ argument 120 IIO_DEVICE_ATTR(sampling_frequency, _mode, _show, _store, 0) 128 #define IIO_DEV_ATTR_SAMP_FREQ_AVAIL(_show) \ argument 143 #define IIO_DEV_ATTR_INT_TIME_AVAIL(_show) \ argument 154 #define IIO_DEV_ATTR_TEMP_RAW(_show) \ argument [all …]
|
/linux-6.3-rc2/drivers/input/mouse/ |
A D | psmouse.h | 162 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 173 .show = _show, \ 178 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 179 static ssize_t _show(struct psmouse *, void *, char *); \ 181 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) 183 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument 184 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true) 186 #define PSMOUSE_DEFINE_RO_ATTR(_name, _mode, _data, _show) \ argument 187 static ssize_t _show(struct psmouse *, void *, char *); \ 188 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, NULL, true)
|
/linux-6.3-rc2/drivers/scsi/lpfc/ |
A D | lpfc_attr.h | 36 static DEVICE_ATTR(lpfc_##name, S_IRUGO, lpfc_##name##_show, NULL) 47 lpfc_##name##_show, lpfc_##name##_store) 57 lpfc_##name##_show, lpfc_##name##_store) 65 static DEVICE_ATTR(lpfc_##name, S_IRUGO, lpfc_##name##_show, NULL) 76 lpfc_##name##_show, lpfc_##name##_store) 90 static DEVICE_ATTR(lpfc_##name, S_IRUGO, lpfc_##name##_show, NULL) 98 static DEVICE_ATTR(lpfc_##name, S_IRUGO, lpfc_##name##_show, NULL) 109 lpfc_##name##_show, lpfc_##name##_store) 117 static DEVICE_ATTR(lpfc_##name, S_IRUGO, lpfc_##name##_show, NULL) 128 lpfc_##name##_show, lpfc_##name##_store)
|
/linux-6.3-rc2/drivers/target/iscsi/ |
A D | iscsi_target_configfs.c | 280 static ssize_t iscsi_nacl_attrib_##name##_show(struct config_item *item,\ 365 static ssize_t __iscsi_##prefix##_##name##_show( \ 404 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \ 408 return __iscsi_nacl_auth_##name##_show(to_iscsi_nacl(nacl), page); \ 429 static ssize_t __iscsi_##prefix##_##name##_show( \ 443 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \ 447 return __iscsi_nacl_auth_##name##_show(to_iscsi_nacl(nacl), page); \ 863 return __iscsi_tpg_auth_##name##_show(auth_to_tpg(item), page); \ 898 return __iscsi_tpg_auth_##name##_show(auth_to_tpg(item), page); \ 1252 return __iscsi_disc_##name##_show(&iscsit_global->discovery_acl,\ [all …]
|
/linux-6.3-rc2/drivers/s390/scsi/ |
A D | zfcp_sysfs.c | 17 #define ZFCP_DEV_ATTR(_feat, _name, _mode, _show, _store) \ argument 19 _show, _store) 21 static ssize_t zfcp_sysfs_##_feat##_##_name##_show(struct device *dev, \ 30 zfcp_sysfs_##_feat##_##_name##_show, NULL); 40 zfcp_sysfs_##_feat##_##_name##_show, NULL); 43 static ssize_t zfcp_sysfs_adapter_##_name##_show(struct device *dev, \ 59 zfcp_sysfs_adapter_##_name##_show, NULL); 606 static ssize_t zfcp_sysfs_scsi_##_name##_show(struct device *dev, \ 750 static ssize_t zfcp_sysfs_adapter_##_name##_show(struct device *dev, \ 858 static ssize_t zfcp_sysfs_adapter_diag_sfp_##_name##_show( \ [all …]
|
/linux-6.3-rc2/drivers/mmc/core/ |
A D | bus.h | 18 static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ 23 static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gt/ |
A D | intel_gt_debugfs.h | 25 return single_open(file, __name ## _show, inode->i_private); \ 32 return single_open_size(file, __name ## _show, inode->i_private, \
|
/linux-6.3-rc2/drivers/md/bcache/ |
A D | sysfs.h | 9 .show = type ## _show, \ 16 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\ 28 ret = __ ## fn ## _show(kobj, attr, buf); \
|
/linux-6.3-rc2/drivers/edac/ |
A D | edac_pci_sysfs.c | 127 #define INSTANCE_ATTR(_name, _mode, _show, _store) \ argument 130 .show = _show, \ 267 #define EDAC_PCI_ATTR(_name,_mode,_show,_store) \ argument 271 .show = _show, \ 275 #define EDAC_PCI_STRING_ATTR(_name,_data,_mode,_show,_store) \ argument 279 .show = _show, \
|
A D | edac_device_sysfs.c | 147 #define CTL_INFO_ATTR(_name,_mode,_show,_store) \ argument 150 .show = _show, \ 374 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument 377 .show = _show, \ 478 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 481 .show = _show, \
|
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/inc/ |
A D | amdgpu_pm.h | 63 #define __AMDGPU_DEVICE_ATTR(_name, _mode, _show, _store, _flags, ...) \ argument 64 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
|
/linux-6.3-rc2/Documentation/translations/zh_CN/filesystems/ |
A D | sysfs.txt | 116 #define DEVICE_ATTR(_name, _mode, _show, _store) \ 117 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 318 DEVICE_ATTR(_name, _mode, _show, _store); 338 BUS_ATTR(_name, _mode, _show, _store) 360 DRIVER_ATTR(_name, _mode, _show, _store)
|
/linux-6.3-rc2/Documentation/translations/zh_TW/filesystems/ |
A D | sysfs.txt | 119 #define DEVICE_ATTR(_name, _mode, _show, _store) \ 120 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 321 DEVICE_ATTR(_name, _mode, _show, _store); 341 BUS_ATTR(_name, _mode, _show, _store) 363 DRIVER_ATTR(_name, _mode, _show, _store)
|
/linux-6.3-rc2/drivers/platform/x86/dell/ |
A D | dcdbas.h | 51 DEVICE_ATTR(_name,0600,_name##_show,_name##_store); 54 DEVICE_ATTR(_name,0400,_name##_show,NULL);
|
/linux-6.3-rc2/drivers/dma/idxd/ |
A D | compat.c | 13 #define DRIVER_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument 15 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
|
A D | perfmon.h | 109 static ssize_t __perfmon_idxd_##_name##_show(struct kobject *kobj, \ 117 __ATTR(_name, 0444, __perfmon_idxd_##_name##_show, NULL)
|
/linux-6.3-rc2/drivers/cpufreq/ |
A D | cpufreq_governor.h | 55 static ssize_t file_name##_show \ 64 static ssize_t file_name##_show \
|
/linux-6.3-rc2/drivers/md/ |
A D | dm-sysfs.c | 21 __ATTR(_name, 0444, dm_attr_##_name##_show, NULL) 46 __ATTR(_name, 0644, dm_attr_##_name##_show, dm_attr_##_name##_store)
|
/linux-6.3-rc2/net/bridge/ |
A D | br_sysfs_if.c | 31 #define BRPORT_ATTR_RAW(_name, _mode, _show, _store) \ argument 35 .show = _show, \ 39 #define BRPORT_ATTR(_name, _mode, _show, _store) \ argument 43 .show = _show, \
|
/linux-6.3-rc2/kernel/power/ |
A D | power.h | 86 .show = _name##_show, \ 96 .show = _name##_show, \
|
/linux-6.3-rc2/drivers/hwmon/ |
A D | nct6683.c | 369 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument 371 .show = _show, \ 375 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument 376 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \ 380 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument 382 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \ 387 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument 389 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \ 392 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument 395 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
|