/linux-6.6.21/drivers/staging/iio/frequency/ |
D | dds.h | 14 #define IIO_DEV_ATTR_FREQ(_channel, _num, _mode, _show, _store, _addr) \ argument 16 _mode, _show, _store, _addr) 29 #define IIO_DEV_ATTR_FREQSYMBOL(_channel, _mode, _show, _store, _addr) \ argument 31 _mode, _show, _store, _addr) 37 #define IIO_DEV_ATTR_PHASE(_channel, _num, _mode, _show, _store, _addr) \ argument 39 _mode, _show, _store, _addr) 52 #define IIO_DEV_ATTR_PHASESYMBOL(_channel, _mode, _show, _store, _addr) \ argument 54 _mode, _show, _store, _addr) 60 #define IIO_DEV_ATTR_PINCONTROL_EN(_channel, _mode, _show, _store, _addr)\ argument 62 _mode, _show, _store, _addr) [all …]
|
/linux-6.6.21/include/linux/ |
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) 41 SENSOR_DEVICE_ATTR(_name, 0644, _func##_show, _func##_store, _index) 54 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument 55 { .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, \ 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.6.21/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) 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 129 IIO_DEVICE_ATTR(sampling_frequency_available, S_IRUGO, _show, NULL, 0) [all …]
|
/linux-6.6.21/drivers/scsi/lpfc/ |
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.6.21/drivers/input/mouse/ |
D | psmouse.h | 164 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 175 .show = _show, \ 180 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 181 static ssize_t _show(struct psmouse *, void *, char *); \ 183 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) 185 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument 186 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true) 188 #define PSMOUSE_DEFINE_RO_ATTR(_name, _mode, _data, _show) \ argument 189 static ssize_t _show(struct psmouse *, void *, char *); \ 190 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, NULL, true)
|
/linux-6.6.21/drivers/target/iscsi/ |
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); \ 468 static ssize_t iscsi_nacl_param_##name##_show(struct config_item *item, \ 743 static ssize_t iscsi_tpg_attrib_##name##_show(struct config_item *item, \ 820 static ssize_t __iscsi_##prefix##_##name##_show(struct se_portal_group *se_tpg, \ [all …]
|
/linux-6.6.21/drivers/s390/scsi/ |
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); 33 static ssize_t zfcp_sysfs_##_feat##_##_name##_show(struct device *dev, \ 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, \ 615 static DEVICE_ATTR(_name, S_IRUGO, zfcp_sysfs_scsi_##_name##_show, NULL); [all …]
|
/linux-6.6.21/drivers/mmc/core/ |
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.6.21/drivers/platform/x86/hp/hp-bioscfg/ |
D | bioscfg.h | 296 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 306 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 348 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) \ 354 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) \ 360 static ssize_t name##_show(struct kobject *kobj, \ 382 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
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.6.21/drivers/md/bcache/ |
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.6.21/drivers/edac/ |
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, \
|
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, \ 480 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 483 .show = _show, \
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/inc/ |
D | amdgpu_pm.h | 62 #define __AMDGPU_DEVICE_ATTR(_name, _mode, _show, _store, _flags, ...) \ argument 63 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
|
/linux-6.6.21/Documentation/translations/zh_CN/filesystems/ |
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.6.21/Documentation/translations/zh_TW/filesystems/ |
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.6.21/drivers/nvme/host/ |
D | sysfs.c | 171 static ssize_t field##_show(struct device *dev, \ 178 static DEVICE_ATTR(field, S_IRUGO, field##_show, NULL); 185 static ssize_t field##_show(struct device *dev, \ 191 static DEVICE_ATTR(field, S_IRUGO, field##_show, NULL); 601 #define SUBSYS_ATTR_RO(_name, _mode, _show) \ argument 603 __ATTR(_name, _mode, _show, NULL) 635 static ssize_t subsys_##field##_show(struct device *dev, \ 643 static SUBSYS_ATTR_RO(field, S_IRUGO, subsys_##field##_show);
|
/linux-6.6.21/drivers/platform/x86/dell/ |
D | dcdbas.h | 51 DEVICE_ATTR(_name,0600,_name##_show,_name##_store); 54 DEVICE_ATTR(_name,0400,_name##_show,NULL);
|
/linux-6.6.21/drivers/dma/idxd/ |
D | compat.c | 13 #define DRIVER_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument 15 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
|
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.6.21/drivers/cpufreq/ |
D | cpufreq_governor.h | 55 static ssize_t file_name##_show \ 64 static ssize_t file_name##_show \
|
/linux-6.6.21/drivers/md/ |
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.6.21/net/bridge/ |
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.6.21/kernel/power/ |
D | power.h | 81 .show = _name##_show, \ 91 .show = _name##_show, \
|