/drivers/staging/iio/meter/ |
D | meter.h | 9 #define IIO_DEV_ATTR_CURRENT_A_OFFSET(_mode, _show, _store, _addr) \ argument 10 IIO_DEVICE_ATTR(current_a_offset, _mode, _show, _store, _addr) 12 #define IIO_DEV_ATTR_CURRENT_B_OFFSET(_mode, _show, _store, _addr) \ argument 13 IIO_DEVICE_ATTR(current_b_offset, _mode, _show, _store, _addr) 15 #define IIO_DEV_ATTR_CURRENT_C_OFFSET(_mode, _show, _store, _addr) \ argument 16 IIO_DEVICE_ATTR(current_c_offset, _mode, _show, _store, _addr) 18 #define IIO_DEV_ATTR_VOLT_A_OFFSET(_mode, _show, _store, _addr) \ argument 19 IIO_DEVICE_ATTR(volt_a_offset, _mode, _show, _store, _addr) 21 #define IIO_DEV_ATTR_VOLT_B_OFFSET(_mode, _show, _store, _addr) \ argument 22 IIO_DEVICE_ATTR(volt_b_offset, _mode, _show, _store, _addr) [all …]
|
/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 …]
|
/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)
|
/drivers/input/mouse/ |
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)
|
/drivers/target/iscsi/ |
D | iscsi_target_configfs.c | 280 static ssize_t iscsi_nacl_attrib_##name##_show(struct config_item *item,\ 337 static ssize_t __iscsi_##prefix##_##name##_show( \ 376 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \ 380 return __iscsi_nacl_auth_##name##_show(container_of(nacl, \ 402 static ssize_t __iscsi_##prefix##_##name##_show( \ 416 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \ 420 return __iscsi_nacl_auth_##name##_show(container_of(nacl, \ 442 static ssize_t iscsi_nacl_param_##name##_show(struct config_item *item, \ 719 static ssize_t iscsi_tpg_attrib_##name##_show(struct config_item *item, \ 800 static ssize_t __iscsi_##prefix##_##name##_show(struct se_portal_group *se_tpg, \ [all …]
|
/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 …]
|
/drivers/net/bonding/ |
D | bond_sysfs_slave.c | 18 #define SLAVE_ATTR(_name, _mode, _show) \ argument 22 .show = _show, \ 25 SLAVE_ATTR(_name, 0444, _name##_show)
|
/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, \
|
/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); \
|
/drivers/mmc/core/ |
D | bus.h | 17 static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ 22 static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)
|
/drivers/gpu/drm/amd/pm/inc/ |
D | amdgpu_pm.h | 63 #define __AMDGPU_DEVICE_ATTR(_name, _mode, _show, _store, _flags, ...) \ argument 64 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
|
/drivers/platform/x86/dell/ |
D | dcdbas.h | 51 DEVICE_ATTR(_name,0600,_name##_show,_name##_store); 54 DEVICE_ATTR(_name,0400,_name##_show,NULL);
|
/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)
|
/drivers/hwmon/ |
D | nct6683.c | 368 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument 370 .show = _show, \ 374 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument 375 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \ 379 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument 381 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \ 386 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument 388 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \ 391 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument 394 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
|
/drivers/md/ |
D | dm-sysfs.c | 20 __ATTR(_name, S_IRUGO, dm_attr_##_name##_show, NULL) 45 __ATTR(_name, S_IRUGO | S_IWUSR, dm_attr_##_name##_show, dm_attr_##_name##_store)
|
/drivers/soundwire/ |
D | sysfs_slave_dpn.c | 44 dpn_attr->dev_attr.show = field##_show; \ 83 static ssize_t field##_show(struct device *dev, \ 148 static ssize_t field##_show(struct device *dev, \
|
D | sysfs_slave.c | 70 static ssize_t field##_show(struct device *dev, \ 143 static ssize_t field##_show(struct device *dev, \
|
/drivers/usb/gadget/function/ |
D | uvc_configfs.c | 26 .show = prefix##cname##_show, \ 35 .show = prefix##cname##_show, \ 120 static ssize_t uvcg_control_header_##cname##_show( \ 238 static ssize_t uvcg_default_processing_##cname##_show( \ 341 static ssize_t uvcg_default_camera_##cname##_show( \ 455 static ssize_t uvcg_default_output_##cname##_show( \ 977 static ssize_t uvcg_streaming_header_##cname##_show( \ 1062 static ssize_t uvcg_frame_##cname##_show(struct config_item *item, char *page)\ 1478 static ssize_t uvcg_uncompressed_##cname##_show( \ 1503 static ssize_t uvcg_uncompressed_##cname##_show( \ [all …]
|
/drivers/platform/x86/dell/dell-wmi-sysman/ |
D | dell-wmi-sysman.h | 113 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \ 123 static ssize_t name##_show(struct kobject *kobj, struct kobj_attribute *attr, \
|
/drivers/acpi/ |
D | acpi_fpdt.c | 80 static ssize_t name##_show(struct kobject *kobj, \ 86 __ATTR(name##_ns, 0444, name##_show, NULL)
|
/drivers/gpu/drm/i915/gt/ |
D | debugfs_gt.h | 16 return single_open(file, __name ## _show, inode->i_private); \
|
/drivers/firmware/ |
D | dmi-id.c | 33 #define DMI_ATTR(_name, _mode, _show, _field) \ argument 34 { .dev_attr = __ATTR(_name, _mode, _show, NULL), \
|
/drivers/parisc/ |
D | pdc_stable.c | 109 #define PDCS_ATTR(_name, _mode, _show, _store) \ argument 112 .show = _show, \ 116 #define PATHS_ATTR(_name, _mode, _show, _store) \ argument 119 .show = _show, \
|