Home
last modified time | relevance | path

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

12345

/drivers/staging/iio/meter/
Dmeter.h9 #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/
Ddds.h14 #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/input/mouse/
Dpsmouse.h162 #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/scsi/lpfc/
Dlpfc_attr.h36 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/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 …]
/drivers/target/iscsi/
Discsi_target_configfs.c281 static ssize_t iscsi_nacl_attrib_##name##_show(struct config_item *item,\
338 static ssize_t __iscsi_##prefix##_##name##_show( \
377 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \
381 return __iscsi_nacl_auth_##name##_show(container_of(nacl, \
403 static ssize_t __iscsi_##prefix##_##name##_show( \
417 static ssize_t iscsi_nacl_auth_##name##_show(struct config_item *item, \
421 return __iscsi_nacl_auth_##name##_show(container_of(nacl, \
443 static ssize_t iscsi_nacl_param_##name##_show(struct config_item *item, \
720 static ssize_t iscsi_tpg_attrib_##name##_show(struct config_item *item, \
801 static ssize_t __iscsi_##prefix##_##name##_show(struct se_portal_group *se_tpg, \
[all …]
/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, \
375 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument
378 .show = _show, \
478 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument
481 .show = _show, \
Damd64_edac_dbg.c5 static ssize_t amd64_##reg##_show(struct device *dev, \
/drivers/md/bcache/
Dsysfs.h9 .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/
Dbus.h17 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/net/bonding/
Dbond_sysfs_slave.c18 #define SLAVE_ATTR(_name, _mode, _show) \ argument
22 .show = _show, \
25 SLAVE_ATTR(_name, 0444, _name##_show)
/drivers/platform/x86/
Ddcdbas.h51 DEVICE_ATTR(_name,0600,_name##_show,_name##_store);
54 DEVICE_ATTR(_name,0400,_name##_show,NULL);
/drivers/mfd/
Ducb1x00-assabet.c21 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
31 static DEVICE_ATTR(name,0444,name##_show,NULL)
/drivers/hwmon/
Dnct6683.c358 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument
360 .show = _show, \
364 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument
365 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
369 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument
371 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
376 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument
378 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \
381 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument
384 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
/drivers/base/
Dtopology.c18 static ssize_t name##_show(struct device *dev, \
25 static ssize_t name##_show(struct device *dev, \
/drivers/md/
Ddm-sysfs.c20 __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/scsi/ufs/
Dufs-sysfs.c259 static ssize_t _name##_show(struct device *dev, \
453 static ssize_t _name##_index##_show(struct device *dev, \
569 static ssize_t _name##_show(struct device *dev, \
623 static ssize_t _name##_show(struct device *dev, \
662 static ssize_t _name##_show(struct device *dev, \
730 static ssize_t _pname##_show(struct device *dev, \
/drivers/usb/gadget/function/
Duvc_configfs.c29 .show = prefix##cname##_show, \
38 .show = prefix##cname##_show, \
142 static ssize_t uvcg_control_header_##cname##_show( \
260 static ssize_t uvcg_default_processing_##cname##_show( \
363 static ssize_t uvcg_default_camera_##cname##_show( \
477 static ssize_t uvcg_default_output_##cname##_show( \
983 static ssize_t uvcg_streaming_header_##cname##_show( \
1093 static ssize_t uvcg_frame_##cname##_show(struct config_item *item, char *page)\
1500 static ssize_t uvcg_uncompressed_##cname##_show( \
1525 static ssize_t uvcg_uncompressed_##cname##_show( \
[all …]
/drivers/firmware/
Ddmi-id.c33 #define DMI_ATTR(_name, _mode, _show, _field) \ argument
34 { .dev_attr = __ATTR(_name, _mode, _show, NULL), \
/drivers/parisc/
Dpdc_stable.c109 #define PDCS_ATTR(_name, _mode, _show, _store) \ argument
112 .show = _show, \
116 #define PATHS_ATTR(_name, _mode, _show, _store) \ argument
119 .show = _show, \
/drivers/sh/superhyway/
Dsuperhyway-sysfs.c18 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \
/drivers/hwmon/occ/
Dcommon.c701 #define ATTR_OCC(_name, _mode, _show, _store) { \ argument
706 .show = _show, \
710 #define SENSOR_ATTR_OCC(_name, _mode, _show, _store, _nr, _index) { \ argument
711 .dev_attr = ATTR_OCC(_name, _mode, _show, _store), \
716 #define OCC_INIT_ATTR(_name, _mode, _show, _store, _nr, _index) \ argument
718 SENSOR_ATTR_OCC(_name, _mode, _show, _store, _nr, _index))
/drivers/usb/core/
Dsysfs.c25 static ssize_t field##_show(struct device *dev, \
124 static ssize_t name##_show(struct device *dev, \
711 field##_show(struct device *dev, struct device_attribute *attr, \
728 field##_show(struct device *dev, struct device_attribute *attr, \
1080 iad_##field##_show(struct device *dev, struct device_attribute *attr, \
1099 field##_show(struct device *dev, struct device_attribute *attr, \
/drivers/iio/light/
Dlm3533-als.c571 #define ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2) \ argument
572 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
577 #define LM3533_ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2) \ argument
579 ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2)

12345