/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/include/linux/iio/ |
D | sysfs.h | 51 #define IIO_ATTR(_name, _mode, _show, _store, _addr) \ argument 52 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 67 #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr) \ argument 69 = IIO_ATTR(_name, _mode, _show, _store, _addr) 83 #define IIO_DEVICE_ATTR_NAMED(_vname, _name, _mode, _show, _store, _addr) \ argument 85 = IIO_ATTR(_name, _mode, _show, _store, _addr) 105 #define IIO_DEV_ATTR_SAMP_FREQ(_mode, _show, _store) \ argument 106 IIO_DEVICE_ATTR(sampling_frequency, _mode, _show, _store, 0)
|
/kernel/linux/linux-5.10/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 | 125 #define DEVICE_ATTR(_name, _mode, _show, _store) \ argument 126 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 127 #define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \ argument 129 __ATTR_PREALLOC(_name, _mode, _show, _store) 140 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument 142 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) } 143 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument 145 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) } 146 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument 148 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) } [all …]
|
D | mdev.h | 105 #define MDEV_TYPE_ATTR(_name, _mode, _show, _store) \ argument 107 __ATTR(_name, _mode, _show, _store)
|
/kernel/linux/linux-5.10/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, \
|
/kernel/linux/linux-5.10/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)
|
/kernel/linux/linux-5.10/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, \
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/ |
D | xgbe.h | 309 #define XGBE_SET_SUP(_ls, _mode) \ argument 310 ethtool_link_ksettings_add_link_mode((_ls), supported, _mode) 312 #define XGBE_CLR_SUP(_ls, _mode) \ argument 313 ethtool_link_ksettings_del_link_mode((_ls), supported, _mode) 315 #define XGBE_IS_SUP(_ls, _mode) \ argument 316 ethtool_link_ksettings_test_link_mode((_ls), supported, _mode) 321 #define XGBE_SET_ADV(_ls, _mode) \ argument 322 ethtool_link_ksettings_add_link_mode((_ls), advertising, _mode) 324 #define XGBE_CLR_ADV(_ls, _mode) \ argument 325 ethtool_link_ksettings_del_link_mode((_ls), advertising, _mode) [all …]
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | sysfs.c | 144 #define EXT4_ATTR(_name,_mode,_id) \ argument 146 .attr = {.name = __stringify(_name), .mode = _mode }, \ 150 #define EXT4_ATTR_FUNC(_name,_mode) EXT4_ATTR(_name,_mode,_name) argument 154 #define EXT4_ATTR_OFFSET(_name,_mode,_id,_struct,_elname) \ argument 156 .attr = {.name = __stringify(_name), .mode = _mode }, \ 164 #define EXT4_ATTR_STRING(_name,_mode,_size,_struct,_elname) \ argument 166 .attr = {.name = __stringify(_name), .mode = _mode }, \ 196 #define EXT4_ATTR_PTR(_name,_mode,_id,_ptr) \ argument 198 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
/kernel/linux/linux-5.10/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)
|
/kernel/linux/linux-5.10/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);
|
/kernel/linux/linux-5.10/drivers/edac/ |
D | edac_pci_sysfs.c | 127 #define INSTANCE_ATTR(_name, _mode, _show, _store) \ argument 129 .attr = {.name = __stringify(_name), .mode = _mode }, \ 266 #define EDAC_PCI_ATTR(_name,_mode,_show,_store) \ argument 268 .attr = {.name = __stringify(_name), .mode = _mode }, \ 274 #define EDAC_PCI_STRING_ATTR(_name,_data,_mode,_show,_store) \ argument 276 .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 }, \ 376 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument 378 .attr = {.name = __stringify(_name), .mode = _mode }, \ 479 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 481 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | sysfs.c | 119 #define BATADV_ATTR_VLAN(_name, _mode, _show, _store) \ argument 122 .mode = _mode }, \ 128 #define BATADV_ATTR(_name, _mode, _show, _store) \ argument 131 .mode = _mode }, \ 169 #define BATADV_ATTR_SIF_BOOL(_name, _mode, _post_func) \ argument 172 static BATADV_ATTR(_name, _mode, batadv_show_##_name, \ 208 #define BATADV_ATTR_SIF_UINT(_name, _var, _mode, _min, _max, _post_func)\ argument 211 static BATADV_ATTR(_name, _mode, batadv_show_##_name, \ 253 #define BATADV_ATTR_VLAN_BOOL(_name, _mode, _post_func) \ argument 256 static BATADV_ATTR_VLAN(_name, _mode, batadv_show_vlan_##_name, \ [all …]
|
D | debugfs.c | 198 #define BATADV_DEBUGINFO(_name, _mode, _open) \ argument 202 .mode = _mode, \ 266 #define BATADV_HARDIF_DEBUGINFO(_name, _mode, _open) \ argument 270 .mode = _mode, \
|
/kernel/linux/linux-5.10/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)
|
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-5.10/drivers/phy/marvell/ |
D | phy-mvebu-a3700-comphy.c | 65 #define MVEBU_A3700_COMPHY_CONF(_lane, _mode, _smode, _port, _fw) \ argument 68 .mode = _mode, \ 74 #define MVEBU_A3700_COMPHY_CONF_GEN(_lane, _mode, _port, _fw) \ argument 75 MVEBU_A3700_COMPHY_CONF(_lane, _mode, PHY_INTERFACE_MODE_NA, _port, _fw)
|
/kernel/linux/linux-5.10/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) }
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | bt1-pvt.h | 160 #define PVT_SENSOR_INFO(_ch, _label, _type, _mode, _thres) \ argument 164 .mode = PVT_CTRL_MODE_ ##_mode, \
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
D | bond_sysfs_slave.c | 18 #define SLAVE_ATTR(_name, _mode, _show) \ argument 21 .mode = _mode }, \
|