/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 …]
|
/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 …]
|
/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)
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe.h | 311 #define XGBE_SET_SUP(_ls, _mode) \ argument 312 ethtool_link_ksettings_add_link_mode((_ls), supported, _mode) 314 #define XGBE_CLR_SUP(_ls, _mode) \ argument 315 ethtool_link_ksettings_del_link_mode((_ls), supported, _mode) 317 #define XGBE_IS_SUP(_ls, _mode) \ argument 318 ethtool_link_ksettings_test_link_mode((_ls), supported, _mode) 323 #define XGBE_SET_ADV(_ls, _mode) \ argument 324 ethtool_link_ksettings_add_link_mode((_ls), advertising, _mode) 326 #define XGBE_CLR_ADV(_ls, _mode) \ argument 327 ethtool_link_ksettings_del_link_mode((_ls), advertising, _mode) [all …]
|
/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, \
|
/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 }, \
|
D | edac_mc_sysfs.c | 129 #define DEVICE_ATTR_LEGACY(_name, _mode, _show, _store) \ argument 130 static struct device_attribute dev_attr_legacy_##_name = __ATTR(_name, _mode, _show, _store) 137 #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ argument 139 { __ATTR(_name, _mode, _show, _store), (_var) }
|
/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);
|
/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))
|
/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)
|
/drivers/hwmon/ |
D | nct6683.c | 369 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument 370 .attr = {.name = _template, .mode = _mode }, \ 375 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument 376 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \ 380 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument 382 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \ 387 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument 389 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \ 392 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument 395 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
|
D | bt1-pvt.h | 160 #define PVT_SENSOR_INFO(_ch, _label, _type, _mode, _thres) \ argument 164 .mode = PVT_CTRL_MODE_ ##_mode, \
|
/drivers/md/bcache/ |
D | sysfs.h | 43 #define __sysfs_attribute(_name, _mode) \ argument 45 { .name = #_name, .mode = _mode }
|
/drivers/leds/ |
D | leds-lp55xx-common.h | 39 static ssize_t show_engine##nr##_mode(struct device *dev, \ 47 static ssize_t store_engine##nr##_mode(struct device *dev, \
|
/drivers/input/touchscreen/ |
D | hycon-hy46xx.c | 154 #define HYCON_ATTR_U8(_field, _mode, _address, _limit_low, _limit_high) \ argument 156 .dattr = __ATTR(_field, _mode, \ 165 #define HYCON_ATTR_BOOL(_field, _mode, _address) \ argument 167 .dattr = __ATTR(_field, _mode, \
|
/drivers/parisc/ |
D | pdc_stable.c | 109 #define PDCS_ATTR(_name, _mode, _show, _store) \ argument 111 .attr = {.name = __stringify(_name), .mode = _mode}, \ 116 #define PATHS_ATTR(_name, _mode, _show, _store) \ argument 118 .attr = {.name = __stringify(_name), .mode = _mode}, \
|
/drivers/hwmon/occ/ |
D | common.c | 754 #define ATTR_OCC(_name, _mode, _show, _store) { \ argument 757 .mode = VERIFY_OCTAL_PERMISSIONS(_mode), \ 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))
|
/drivers/iio/light/ |
D | lm3533-als.c | 571 #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)
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | display-sysfs.c | 238 #define DISPLAY_ATTR(_name, _mode, _show, _store) \ argument 240 __ATTR(_name, _mode, _show, _store)
|
D | overlay-sysfs.c | 357 #define OVERLAY_ATTR(_name, _mode, _show, _store) \ argument 359 __ATTR(_name, _mode, _show, _store)
|
/drivers/phy/marvell/ |
D | phy-mvebu-a3700-comphy.c | 231 #define MVEBU_A3700_COMPHY_CONF(_lane, _mode, _smode) \ argument 234 .mode = _mode, \ 238 #define MVEBU_A3700_COMPHY_CONF_GEN(_lane, _mode) \ argument 239 MVEBU_A3700_COMPHY_CONF(_lane, _mode, PHY_INTERFACE_MODE_NA)
|
/drivers/phy/mscc/ |
D | phy-ocelot-serdes.c | 345 #define SERDES_MUX(_idx, _port, _mode, _submode, _mask, _mux) { \ argument 348 .mode = _mode, \
|
/drivers/scsi/bfa/ |
D | bfa_defs_svc.h | 810 #define BFA_PORT_OPMODE_LB_HARD(_mode) \ argument 811 ((_mode == BFA_PORT_OPMODE_LB_INT) || \ 812 (_mode == BFA_PORT_OPMODE_LB_SLW) || \ 813 (_mode == BFA_PORT_OPMODE_LB_EXT))
|
/drivers/gpu/drm/i915/gt/ |
D | intel_gt_sysfs_pm.c | 413 #define INTEL_GT_RPS_SYSFS_ATTR(_name, _mode, _show, _store, _show_dev, _store_dev) \ argument 414 static struct device_attribute dev_attr_gt_##_name = __ATTR(gt_##_name, _mode, \ 416 static struct kobj_attribute attr_rps_##_name = __ATTR(rps_##_name, _mode, \
|