/Linux-v6.1/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 …]
|
/Linux-v6.1/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-v6.1/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) 108 #define IIO_DEV_ATTR_SAMP_FREQ(_mode, _show, _store) \ argument 109 IIO_DEVICE_ATTR(sampling_frequency, _mode, _show, _store, 0)
|
/Linux-v6.1/include/linux/ |
D | hwmon-sysfs.h | 19 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 20 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 32 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 34 = SENSOR_ATTR(_name, _mode, _show, _store, _index) 53 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument 54 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 67 #define SENSOR_DEVICE_ATTR_2(_name,_mode,_show,_store,_nr,_index) \ argument 69 = SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index)
|
D | sysfs.h | 101 #define __ATTR(_name, _mode, _show, _store) { \ argument 103 .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ 108 #define __ATTR_PREALLOC(_name, _mode, _show, _store) { \ argument 110 .mode = SYSFS_PREALLOC | VERIFY_OCTAL_PERMISSIONS(_mode) },\ 120 #define __ATTR_RO_MODE(_name, _mode) { \ argument 122 .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ 126 #define __ATTR_RW_MODE(_name, _mode) { \ argument 128 .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ 143 #define __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) { \ argument 144 .attr = {.name = __stringify(_name), .mode = _mode, \ [all …]
|
D | device.h | 126 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument 127 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 128 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument 130 __ATTR_PREALLOC(_name, _mode, _show, _store) 141 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument 143 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) } 144 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument 146 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) } 147 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument 149 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) } [all …]
|
/Linux-v6.1/drivers/input/mouse/ |
D | psmouse.h | 162 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 167 .mode = _mode, \ 178 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 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 188 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, NULL, true) 190 #define PSMOUSE_DEFINE_WO_ATTR(_name, _mode, _data, _set) \ argument 192 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, NULL, _set, true)
|
/Linux-v6.1/tools/testing/selftests/arm64/signal/testcases/ |
D | mangle_pstate_invalid_mode_template.h | 8 #define DEFINE_TESTCASE_MANGLE_PSTATE_INVALID_MODE(_mode) \ argument 16 uc->uc_mcontext.pstate |= PSR_MODE_EL ## _mode; \ 23 .name = "MANGLE_PSTATE_INVALID_MODE_EL"#_mode, \ 24 .descr = "Mangling uc_mcontext INVALID MODE EL"#_mode, \
|
/Linux-v6.1/drivers/net/ethernet/amd/xgbe/ |
D | xgbe.h | 310 #define XGBE_SET_SUP(_ls, _mode) \ argument 311 ethtool_link_ksettings_add_link_mode((_ls), supported, _mode) 313 #define XGBE_CLR_SUP(_ls, _mode) \ argument 314 ethtool_link_ksettings_del_link_mode((_ls), supported, _mode) 316 #define XGBE_IS_SUP(_ls, _mode) \ argument 317 ethtool_link_ksettings_test_link_mode((_ls), supported, _mode) 322 #define XGBE_SET_ADV(_ls, _mode) \ argument 323 ethtool_link_ksettings_add_link_mode((_ls), advertising, _mode) 325 #define XGBE_CLR_ADV(_ls, _mode) \ argument 326 ethtool_link_ksettings_del_link_mode((_ls), advertising, _mode) [all …]
|
/Linux-v6.1/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), \ 68 #define AMDGPU_DEVICE_ATTR(_name, _mode, _flags, ...) \ argument 69 __AMDGPU_DEVICE_ATTR(_name, _mode, \
|
/Linux-v6.1/fs/erofs/ |
D | sysfs.c | 28 #define EROFS_ATTR(_name, _mode, _id) \ argument 30 .attr = {.name = __stringify(_name), .mode = _mode }, \ 33 #define EROFS_ATTR_FUNC(_name, _mode) EROFS_ATTR(_name, _mode, _name) argument 36 #define EROFS_ATTR_OFFSET(_name, _mode, _id, _struct) \ argument 38 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
/Linux-v6.1/fs/ubifs/ |
D | sysfs.c | 25 #define UBIFS_ATTR(_name, _mode, _id) \ argument 27 .attr = {.name = __stringify(_name), .mode = _mode }, \ 31 #define UBIFS_ATTR_FUNC(_name, _mode) UBIFS_ATTR(_name, _mode, _name) argument
|
/Linux-v6.1/fs/ext4/ |
D | sysfs.c | 138 #define EXT4_ATTR(_name,_mode,_id) \ argument 140 .attr = {.name = __stringify(_name), .mode = _mode }, \ 144 #define EXT4_ATTR_FUNC(_name,_mode) EXT4_ATTR(_name,_mode,_name) argument 148 #define EXT4_ATTR_OFFSET(_name,_mode,_id,_struct,_elname) \ argument 150 .attr = {.name = __stringify(_name), .mode = _mode }, \ 158 #define EXT4_ATTR_STRING(_name,_mode,_size,_struct,_elname) \ argument 160 .attr = {.name = __stringify(_name), .mode = _mode }, \ 190 #define EXT4_ATTR_PTR(_name,_mode,_id,_ptr) \ argument 192 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
/Linux-v6.1/include/linux/device/ |
D | class.h | 232 #define _CLASS_ATTR_STRING(_name, _mode, _str) \ argument 233 { __ATTR(_name, _mode, show_class_attr_string, NULL), _str } 234 #define CLASS_ATTR_STRING(_name, _mode, _str) \ argument 236 _CLASS_ATTR_STRING(_name, _mode, _str)
|
/Linux-v6.1/drivers/firmware/ |
D | dmi-id.c | 33 #define DMI_ATTR(_name, _mode, _show, _field) \ argument 34 { .dev_attr = __ATTR(_name, _mode, _show, NULL), \ 37 #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ argument 39 DMI_ATTR(_name, _mode, sys_dmi_field_show, _field);
|
/Linux-v6.1/drivers/edac/ |
D | edac_pci_sysfs.c | 127 #define INSTANCE_ATTR(_name, _mode, _show, _store) \ argument 129 .attr = {.name = __stringify(_name), .mode = _mode }, \ 267 #define EDAC_PCI_ATTR(_name,_mode,_show,_store) \ argument 269 .attr = {.name = __stringify(_name), .mode = _mode }, \ 275 #define EDAC_PCI_STRING_ATTR(_name,_data,_mode,_show,_store) \ argument 277 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
D | edac_device_sysfs.c | 147 #define CTL_INFO_ATTR(_name,_mode,_show,_store) \ argument 149 .attr = {.name = __stringify(_name), .mode = _mode }, \ 374 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument 376 .attr = {.name = __stringify(_name), .mode = _mode }, \ 478 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 480 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
/Linux-v6.1/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-v6.1/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-v6.1/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600.h | 241 #define INV_ICM42600_PWR_MGMT0_GYRO(_mode) \ argument 242 FIELD_PREP(GENMASK(3, 2), (_mode)) 243 #define INV_ICM42600_PWR_MGMT0_ACCEL(_mode) \ argument 244 FIELD_PREP(GENMASK(1, 0), (_mode))
|
/Linux-v6.1/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)
|
/Linux-v6.1/security/apparmor/include/ |
D | policy.h | 41 #define PROFILE_MODE(_profile, _mode) \ argument 42 ((aa_g_profile_mode == (_mode)) || \ 43 ((_profile)->mode == (_mode)))
|
D | apparmorfs.h | 54 #define AA_SFS_FILE_FOPS(_name, _mode, _fops) \ argument 56 .mode = (_mode), .file_ops = (_fops) }
|
/Linux-v6.1/drivers/hwmon/ |
D | bt1-pvt.h | 160 #define PVT_SENSOR_INFO(_ch, _label, _type, _mode, _thres) \ argument 164 .mode = PVT_CTRL_MODE_ ##_mode, \
|
/Linux-v6.1/net/bridge/ |
D | br_sysfs_if.c | 31 #define BRPORT_ATTR_RAW(_name, _mode, _show, _store) \ argument 34 .mode = _mode }, \ 39 #define BRPORT_ATTR(_name, _mode, _show, _store) \ argument 42 .mode = _mode }, \
|