/linux-6.6.21/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-6.6.21/include/linux/ |
D | hwmon-sysfs.h | 20 #define SENSOR_ATTR(_name, _mode, _show, _store, _index) \ argument 21 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 33 #define SENSOR_DEVICE_ATTR(_name, _mode, _show, _store, _index) \ argument 35 = SENSOR_ATTR(_name, _mode, _show, _store, _index) 54 #define SENSOR_ATTR_2(_name, _mode, _show, _store, _nr, _index) \ argument 55 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 68 #define SENSOR_DEVICE_ATTR_2(_name,_mode,_show,_store,_nr,_index) \ argument 70 = 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 | 156 #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) 227 #define DEVICE_ULONG_ATTR(_name, _mode, _var) \ argument 229 { __ATTR(_name, _mode, device_show_ulong, device_store_ulong), &(_var) } 239 #define DEVICE_INT_ATTR(_name, _mode, _var) \ argument 241 { __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) } 251 #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ argument 253 { __ATTR(_name, _mode, device_show_bool, device_store_bool), &(_var) } [all …]
|
/linux-6.6.21/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) 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/input/mouse/ |
D | psmouse.h | 164 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument 169 .mode = _mode, \ 180 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument 183 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) 185 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument 186 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true) 188 #define PSMOUSE_DEFINE_RO_ATTR(_name, _mode, _data, _show) \ argument 190 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, NULL, true) 192 #define PSMOUSE_DEFINE_WO_ATTR(_name, _mode, _data, _set) \ argument 194 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, NULL, _set, true)
|
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/amd/xgbe/ |
D | xgbe.h | 312 #define XGBE_SET_SUP(_ls, _mode) \ argument 313 ethtool_link_ksettings_add_link_mode((_ls), supported, _mode) 315 #define XGBE_CLR_SUP(_ls, _mode) \ argument 316 ethtool_link_ksettings_del_link_mode((_ls), supported, _mode) 318 #define XGBE_IS_SUP(_ls, _mode) \ argument 319 ethtool_link_ksettings_test_link_mode((_ls), supported, _mode) 324 #define XGBE_SET_ADV(_ls, _mode) \ argument 325 ethtool_link_ksettings_add_link_mode((_ls), advertising, _mode) 327 #define XGBE_CLR_ADV(_ls, _mode) \ argument 328 ethtool_link_ksettings_del_link_mode((_ls), advertising, _mode) [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/pm/inc/ |
D | amdgpu_pm.h | 62 #define __AMDGPU_DEVICE_ATTR(_name, _mode, _show, _store, _flags, ...) \ argument 63 { .dev_attr = __ATTR(_name, _mode, _show, _store), \ 67 #define AMDGPU_DEVICE_ATTR(_name, _mode, _flags, ...) \ argument 68 __AMDGPU_DEVICE_ATTR(_name, _mode, \
|
/linux-6.6.21/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-6.6.21/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-6.6.21/include/linux/device/ |
D | class.h | 210 #define _CLASS_ATTR_STRING(_name, _mode, _str) \ argument 211 { __ATTR(_name, _mode, show_class_attr_string, NULL), _str } 212 #define CLASS_ATTR_STRING(_name, _mode, _str) \ argument 214 _CLASS_ATTR_STRING(_name, _mode, _str)
|
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/tests/ |
D | drm_connector_test.c | 15 #define TV_MODE_NAME(_name, _mode) \ argument 18 .expected_mode = _mode, \
|
/linux-6.6.21/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-6.6.21/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 }, \ 376 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument 378 .attr = {.name = __stringify(_name), .mode = _mode }, \ 480 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument 482 .attr = {.name = __stringify(_name), .mode = _mode }, \
|
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600.h | 242 #define INV_ICM42600_PWR_MGMT0_GYRO(_mode) \ argument 243 FIELD_PREP(GENMASK(3, 2), (_mode)) 244 #define INV_ICM42600_PWR_MGMT0_ACCEL(_mode) \ argument 245 FIELD_PREP(GENMASK(1, 0), (_mode))
|
/linux-6.6.21/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-6.6.21/drivers/hwmon/ |
D | bt1-pvt.h | 160 #define PVT_SENSOR_INFO(_ch, _label, _type, _mode, _thres) \ argument 164 .mode = PVT_CTRL_MODE_ ##_mode, \
|
/linux-6.6.21/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-6.6.21/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 }, \
|