Home
last modified time | relevance | path

Searched refs:_mode (Results 1 – 25 of 60) sorted by relevance

123

/drivers/staging/iio/meter/
Dmeter.h9 #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/
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 …]
/drivers/input/mouse/
Dpsmouse.h162 #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/
Dxgbe.h310 #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 …]
/drivers/gpu/drm/amd/pm/inc/
Damdgpu_pm.h63 #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/
Dedac_pci_sysfs.c127 #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 }, \
Dedac_device_sysfs.c147 #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 }, \
Dedac_mc_sysfs.c129 #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/
Ddmi-id.c33 #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/
Dinv_icm42600.h241 #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/phy/marvell/
Dphy-mvebu-a3700-comphy.c59 #define MVEBU_A3700_COMPHY_CONF(_lane, _mode, _smode, _port, _fw) \ argument
62 .mode = _mode, \
68 #define MVEBU_A3700_COMPHY_CONF_GEN(_lane, _mode, _port, _fw) \ argument
69 MVEBU_A3700_COMPHY_CONF(_lane, _mode, PHY_INTERFACE_MODE_NA, _port, _fw)
/drivers/dma/idxd/
Dcompat.c13 #define DRIVER_ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) \ argument
15 __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store)
/drivers/hwmon/
Dnct6683.c368 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument
369 .attr = {.name = _template, .mode = _mode }, \
374 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument
375 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
379 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument
381 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
386 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument
388 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \
391 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument
394 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
Dbt1-pvt.h160 #define PVT_SENSOR_INFO(_ch, _label, _type, _mode, _thres) \ argument
164 .mode = PVT_CTRL_MODE_ ##_mode, \
/drivers/net/bonding/
Dbond_sysfs_slave.c18 #define SLAVE_ATTR(_name, _mode, _show) \ argument
21 .mode = _mode }, \
/drivers/md/bcache/
Dsysfs.h43 #define __sysfs_attribute(_name, _mode) \ argument
45 { .name = #_name, .mode = _mode }
/drivers/leds/
Dleds-lp55xx-common.h39 static ssize_t show_engine##nr##_mode(struct device *dev, \
47 static ssize_t store_engine##nr##_mode(struct device *dev, \
/drivers/input/touchscreen/
Dhycon-hy46xx.c154 #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/
Dpdc_stable.c109 #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/
Dcommon.c754 #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/
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)
/drivers/video/fbdev/omap2/omapfb/dss/
Ddisplay-sysfs.c238 #define DISPLAY_ATTR(_name, _mode, _show, _store) \ argument
240 __ATTR(_name, _mode, _show, _store)
Doverlay-sysfs.c357 #define OVERLAY_ATTR(_name, _mode, _show, _store) \ argument
359 __ATTR(_name, _mode, _show, _store)
/drivers/phy/mscc/
Dphy-ocelot-serdes.c345 #define SERDES_MUX(_idx, _port, _mode, _submode, _mask, _mux) { \ argument
348 .mode = _mode, \
/drivers/scsi/bfa/
Dbfa_defs_svc.h810 #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))

123