Home
last modified time | relevance | path

Searched refs:_store (Results 1 – 25 of 111) sorted by relevance

12345

/linux-6.6.21/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 …]
/linux-6.6.21/include/linux/
Dhwmon-sysfs.h20 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument
21 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
28 SENSOR_ATTR(_name, 0644, _func##_show, _func##_store, _index)
31 SENSOR_ATTR(_name, 0200, NULL, _func##_store, _index)
33 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument
35 = SENSOR_ATTR(_name, _mode, _show, _store, _index)
41 SENSOR_DEVICE_ATTR(_name, 0644, _func##_show, _func##_store, _index)
44 SENSOR_DEVICE_ATTR(_name, 0200, NULL, _func##_store, _index)
54 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument
55 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
[all …]
Dsysfs.h101 #define __ATTR(_name, _mode, _show, _store) { \ argument
105 .store = _store, \
108 #define __ATTR_PREALLOC(_name, _mode, _show, _store) { \ argument
112 .store = _store, \
130 .store = _name##_store, \
135 .store = _name##_store, \
138 #define __ATTR_RW(_name) __ATTR(_name, 0644, _name##_show, _name##_store)
143 #define __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) { \ argument
147 .store = _store, \
Ddevice.h156 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument
157 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
168 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument
170 __ATTR_PREALLOC(_name, _mode, _show, _store)
255 #define DEVICE_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument
257 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
Dconfigfs.h129 .store = _pfx##_name##_store, \
145 .store = _pfx##_name##_store, \
/linux-6.6.21/include/linux/iio/
Dsysfs.h54 #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)
/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_attr.h47 lpfc_##name##_show, lpfc_##name##_store)
57 lpfc_##name##_show, lpfc_##name##_store)
76 lpfc_##name##_show, lpfc_##name##_store)
109 lpfc_##name##_show, lpfc_##name##_store)
128 lpfc_##name##_show, lpfc_##name##_store)
/linux-6.6.21/drivers/md/bcache/
Dsysfs.h10 .store = type ## _store \
20 static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\
38 ret = __ ## fn ## _store(kobj, attr, buf, size); \
/linux-6.6.21/drivers/edac/
Dedac_pci_sysfs.c127 #define INSTANCE_ATTR(_name, _mode, _show, _store) \ argument
131 .store = _store, \
267 #define EDAC_PCI_ATTR(_name,_mode,_show,_store) \ argument
272 .store = _store, \
275 #define EDAC_PCI_STRING_ATTR(_name,_data,_mode,_show,_store) \ argument
280 .store = _store, \
Dedac_device_sysfs.c147 #define CTL_INFO_ATTR(_name,_mode,_show,_store) \ argument
151 .store = _store, \
376 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument
380 .store = _store, \
480 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument
484 .store = _store, \
/linux-6.6.21/drivers/gpu/drm/amd/pm/inc/
Damdgpu_pm.h62 #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/
Dsysfs.txt116 #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/
Dsysfs.txt119 #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/platform/x86/dell/
Ddcdbas.h51 DEVICE_ATTR(_name,0600,_name##_show,_name##_store);
57 DEVICE_ATTR(_name,0200,NULL,_name##_store);
/linux-6.6.21/drivers/dma/idxd/
Dcompat.c13 #define DRIVER_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument
15 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
/linux-6.6.21/net/bridge/
Dbr_sysfs_if.c31 #define BRPORT_ATTR_RAW(_name, _mode, _show, _store) \ argument
36 .store_raw = _store, \
39 #define BRPORT_ATTR(_name, _mode, _show, _store) \ argument
44 .store = _store, \
/linux-6.6.21/drivers/hwmon/
Dnct6683.c370 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument
373 .store = _store, \
376 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument
377 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
381 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument
383 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
388 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument
390 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \
393 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument
396 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
/linux-6.6.21/drivers/target/iscsi/
Discsi_target_configfs.c288 static ssize_t iscsi_nacl_attrib_##name##_store(struct config_item *item,\
376 static ssize_t __iscsi_##prefix##_##name##_store( \
410 static ssize_t iscsi_nacl_auth_##name##_store(struct config_item *item, \
414 return __iscsi_nacl_auth_##name##_store(to_iscsi_nacl(nacl), \
758 static ssize_t iscsi_tpg_attrib_##name##_store(struct config_item *item,\
832 static ssize_t __iscsi_##prefix##_##name##_store(struct se_portal_group *se_tpg,\
864 static ssize_t iscsi_tpg_auth_##name##_store(struct config_item *item, \
867 return __iscsi_tpg_auth_##name##_store(auth_to_tpg(item), page, count); \
938 static ssize_t iscsi_tpg_param_##name##_store(struct config_item *item, \
1253 static ssize_t iscsi_disc_##name##_store(struct config_item *item, \
[all …]
/linux-6.6.21/include/scsi/
Dscsi_transport_fc.h165 #define FC_VPORT_ATTR(_name,_mode,_show,_store) \ argument
167 __ATTR(_name,_mode,_show,_store)
321 #define FC_RPORT_ATTR(_name,_mode,_show,_store) \ argument
323 __ATTR(_name,_mode,_show,_store)
/linux-6.6.21/drivers/parisc/
Dpdc_stable.c109 #define PDCS_ATTR(_name, _mode, _show, _store) \ argument
113 .store = _store, \
116 #define PATHS_ATTR(_name, _mode, _show, _store) \ argument
120 .store = _store, \
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/
Ddisplay-sysfs.c239 #define DISPLAY_ATTR(_name, _mode, _show, _store) \ argument
241 __ATTR(_name, _mode, _show, _store)
/linux-6.6.21/fs/gfs2/
Dsys.c597 #define GDLM_ATTR(_name,_mode,_show,_store) \ argument
598 static struct gfs2_attr gdlm_attr_##_name = __ATTR(_name,_mode,_show,_store)
687 static ssize_t name##_store(struct gfs2_sbd *sdp, const char *buf, size_t len)\
691 TUNE_ATTR_2(name, name##_store)
/linux-6.6.21/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)
/linux-6.6.21/drivers/hwmon/occ/
Dcommon.c754 #define ATTR_OCC(_name, _mode, _show, _store) { \ argument
760 .store = _store, \
763 #define SENSOR_ATTR_OCC(_name, _mode, _show, _store, _nr, _index) { \ argument
764 .dev_attr = ATTR_OCC(_name, _mode, _show, _store), \
769 #define OCC_INIT_ATTR(_name, _mode, _show, _store, _nr, _index) \ argument
771 SENSOR_ATTR_OCC(_name, _mode, _show, _store, _nr, _index))
/linux-6.6.21/include/linux/usb/
Dgadget_configfs.h11 static ssize_t __struct##_##__name##_store(struct config_item *item, \

12345