/drivers/staging/iio/meter/ |
D | meter.h | 5 #define IIO_DEV_ATTR_CURRENT_A_OFFSET(_mode, _show, _store, _addr) \ argument 6 IIO_DEVICE_ATTR(current_a_offset, _mode, _show, _store, _addr) 8 #define IIO_DEV_ATTR_CURRENT_B_OFFSET(_mode, _show, _store, _addr) \ argument 9 IIO_DEVICE_ATTR(current_b_offset, _mode, _show, _store, _addr) 11 #define IIO_DEV_ATTR_CURRENT_C_OFFSET(_mode, _show, _store, _addr) \ argument 12 IIO_DEVICE_ATTR(current_c_offset, _mode, _show, _store, _addr) 14 #define IIO_DEV_ATTR_VOLT_A_OFFSET(_mode, _show, _store, _addr) \ argument 15 IIO_DEVICE_ATTR(volt_a_offset, _mode, _show, _store, _addr) 17 #define IIO_DEV_ATTR_VOLT_B_OFFSET(_mode, _show, _store, _addr) \ argument 18 IIO_DEVICE_ATTR(volt_b_offset, _mode, _show, _store, _addr) [all …]
|
/drivers/staging/iio/frequency/ |
D | dds.h | 13 #define IIO_DEV_ATTR_FREQ(_channel, _num, _mode, _show, _store, _addr) \ argument 15 _mode, _show, _store, _addr) 28 #define IIO_DEV_ATTR_FREQSYMBOL(_channel, _mode, _show, _store, _addr) \ argument 30 _mode, _show, _store, _addr); 36 #define IIO_DEV_ATTR_PHASE(_channel, _num, _mode, _show, _store, _addr) \ argument 38 _mode, _show, _store, _addr) 51 #define IIO_DEV_ATTR_PHASESYMBOL(_channel, _mode, _show, _store, _addr) \ argument 53 _mode, _show, _store, _addr); 59 #define IIO_DEV_ATTR_PINCONTROL_EN(_channel, _mode, _show, _store, _addr)\ argument 61 _mode, _show, _store, _addr); [all …]
|
/drivers/input/mouse/ |
D | psmouse.h | 127 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 138 .show = _show, \ 143 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 144 static ssize_t _show(struct psmouse *, void *, char *); \ 146 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) 148 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument 149 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true) 151 #define PSMOUSE_DEFINE_RO_ATTR(_name, _mode, _data, _show) \ argument 152 static ssize_t _show(struct psmouse *, void *, char *); \ 153 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, NULL, true)
|
/drivers/s390/scsi/ |
D | zfcp_sysfs.c | 15 #define ZFCP_DEV_ATTR(_feat, _name, _mode, _show, _store) \ argument 17 _show, _store) 19 static ssize_t zfcp_sysfs_##_feat##_##_name##_show(struct device *dev, \ 28 zfcp_sysfs_##_feat##_##_name##_show, NULL); 31 static ssize_t zfcp_sysfs_adapter_##_name##_show(struct device *dev, \ 47 zfcp_sysfs_adapter_##_name##_show, NULL); 427 static ssize_t zfcp_sysfs_scsi_##_name##_show(struct device *dev, \ 437 static DEVICE_ATTR(_name, S_IRUGO, zfcp_sysfs_scsi_##_name##_show, NULL); 516 static ssize_t zfcp_sysfs_adapter_##_name##_show(struct device *dev, \ 529 static DEVICE_ATTR(_name, S_IRUGO, zfcp_sysfs_adapter_##_name##_show, NULL);
|
/drivers/mmc/core/ |
D | bus.h | 15 static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf) \ 20 static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)
|
/drivers/md/bcache/ |
D | sysfs.h | 8 .show = type ## _show, \ 15 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\ 27 ret = __ ## fn ## _show(kobj, attr, buf); \
|
/drivers/edac/ |
D | edac_pci_sysfs.c | 130 #define INSTANCE_ATTR(_name, _mode, _show, _store) \ argument 133 .show = _show, \ 269 #define EDAC_PCI_ATTR(_name,_mode,_show,_store) \ argument 273 .show = _show, \ 277 #define EDAC_PCI_STRING_ATTR(_name,_data,_mode,_show,_store) \ argument 281 .show = _show, \
|
D | mce_amd_inj.c | 28 #define EDAC_MCE_ATTR(_name, _mode, _show, _store) \ argument 29 static struct edac_mce_attr mce_attr_##_name = __ATTR(_name, _mode, _show, _store) 60 static ssize_t edac_inject_##reg##_show(struct kobject *kobj, \
|
D | edac_device_sysfs.c | 147 #define CTL_INFO_ATTR(_name,_mode,_show,_store) \ argument 150 .show = _show, \ 384 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument 387 .show = _show, \ 487 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 490 .show = _show, \
|
D | amd64_edac_dbg.c | 4 static ssize_t amd64_##reg##_show(struct device *dev, \
|
/drivers/firmware/ |
D | dcdbas.h | 58 DEVICE_ATTR(_name,0600,_name##_show,_name##_store); 61 DEVICE_ATTR(_name,0400,_name##_show,NULL);
|
D | dmi-id.c | 34 #define DMI_ATTR(_name, _mode, _show, _field) \ argument 35 { .dev_attr = __ATTR(_name, _mode, _show, NULL), \
|
/drivers/mfd/ |
D | ucb1x00-assabet.c | 24 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \ 34 static DEVICE_ATTR(name,0444,name##_show,NULL)
|
/drivers/staging/zcache/ramster/ |
D | ramster.c | 700 static ssize_t ramster_##_name##_show(struct kobject *kobj, \ 707 .show = ramster_##_name##_show, \ 711 static ssize_t ramster_##_name##_show(struct kobject *kobj, \ 729 .show = ramster_##_name##_show, \ 734 static ssize_t ramster_##_name##_show(struct kobject *kobj, \ 741 .show = ramster_##_name##_show, \
|
/drivers/usb/gadget/ |
D | udc-core.c | 476 ssize_t usb_udc_##param##_show(struct device *dev, \ 483 static DEVICE_ATTR(name, S_IRUGO, usb_udc_##param##_show, NULL) 489 ssize_t usb_udc_##name##_show(struct device *dev, \ 497 static DEVICE_ATTR(name, S_IRUGO, usb_udc_##name##_show, NULL)
|
D | configfs.c | 115 gadget_dev_desc_##name##_show, \ 119 static ssize_t gadget_dev_desc_##__name##_show(struct gadget_info *gi, \ 126 static ssize_t gadget_dev_desc_##__name##_show(struct gadget_info *gi, \ 503 gadget_config_desc_##name##_show, \
|
/drivers/ptp/ |
D | ptp_sysfs.c | 32 static ssize_t name##_show(struct device *dev, \ 47 .show = _var##_show, \
|
/drivers/sh/superhyway/ |
D | superhyway-sysfs.c | 18 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \
|
/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, \
|
/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)
|
/drivers/macintosh/ |
D | macio_sysfs.c | 8 field##_show (struct device *dev, struct device_attribute *attr, \
|
/drivers/hwmon/ |
D | acpi_power_meter.c | 463 #define RO_SENSOR_TEMPLATE(_label, _show, _index) \ argument 466 .show = _show, \ 470 #define RW_SENSOR_TEMPLATE(_label, _show, _set, _index) \ argument 473 .show = _show, \
|
/drivers/md/ |
D | dm-sysfs.c | 19 __ATTR(_name, S_IRUGO, dm_attr_##_name##_show, NULL)
|
/drivers/video/omap2/dss/ |
D | overlay-sysfs.c | 368 #define OVERLAY_ATTR(_name, _mode, _show, _store) \ argument 370 __ATTR(_name, _mode, _show, _store)
|
D | manager-sysfs.c | 421 #define MANAGER_ATTR(_name, _mode, _show, _store) \ argument 423 __ATTR(_name, _mode, _show, _store)
|