Home
last modified time | relevance | path

Searched refs:_mode (Results 1 – 25 of 52) 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.h15 #define IIO_DEV_ATTR_FREQ(_channel, _num, _mode, _show, _store, _addr) \ argument
17 _mode, _show, _store, _addr)
30 #define IIO_DEV_ATTR_FREQSYMBOL(_channel, _mode, _show, _store, _addr) \ argument
32 _mode, _show, _store, _addr)
38 #define IIO_DEV_ATTR_PHASE(_channel, _num, _mode, _show, _store, _addr) \ argument
40 _mode, _show, _store, _addr)
53 #define IIO_DEV_ATTR_PHASESYMBOL(_channel, _mode, _show, _store, _addr) \ argument
55 _mode, _show, _store, _addr)
61 #define IIO_DEV_ATTR_PINCONTROL_EN(_channel, _mode, _show, _store, _addr)\ argument
63 _mode, _show, _store, _addr)
[all …]
/drivers/input/mouse/
Dpsmouse.h158 #define __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect) \ argument
163 .mode = _mode, \
174 #define __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, _protect) \ argument
177 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, _set, _protect)
179 #define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \ argument
180 __PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set, true)
182 #define PSMOUSE_DEFINE_RO_ATTR(_name, _mode, _data, _show) \ argument
184 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, _show, NULL, true)
186 #define PSMOUSE_DEFINE_WO_ATTR(_name, _mode, _data, _set) \ argument
188 __PSMOUSE_DEFINE_ATTR_VAR(_name, _mode, _data, NULL, _set, true)
/drivers/net/ethernet/amd/xgbe/
Dxgbe.h305 #define XGBE_SET_SUP(_ls, _mode) \ argument
306 ethtool_link_ksettings_add_link_mode((_ls), supported, _mode)
308 #define XGBE_CLR_SUP(_ls, _mode) \ argument
309 ethtool_link_ksettings_del_link_mode((_ls), supported, _mode)
311 #define XGBE_IS_SUP(_ls, _mode) \ argument
312 ethtool_link_ksettings_test_link_mode((_ls), supported, _mode)
317 #define XGBE_SET_ADV(_ls, _mode) \ argument
318 ethtool_link_ksettings_add_link_mode((_ls), advertising, _mode)
320 #define XGBE_CLR_ADV(_ls, _mode) \ argument
321 ethtool_link_ksettings_del_link_mode((_ls), advertising, _mode)
[all …]
/drivers/firmware/
Ddmi-id.c34 #define DMI_ATTR(_name, _mode, _show, _field) \ argument
35 { .dev_attr = __ATTR(_name, _mode, _show, NULL), \
38 #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ argument
40 DMI_ATTR(_name, _mode, sys_dmi_field_show, _field);
/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 }, \
375 #define INSTANCE_ATTR(_name,_mode,_show,_store) \ argument
377 .attr = {.name = __stringify(_name), .mode = _mode }, \
478 #define BLOCK_ATTR(_name,_mode,_show,_store) \ argument
480 .attr = {.name = __stringify(_name), .mode = _mode }, \
Dedac_mc_sysfs.c151 #define DEVICE_ATTR_LEGACY(_name, _mode, _show, _store) \ argument
152 static struct device_attribute dev_attr_legacy_##_name = __ATTR(_name, _mode, _show, _store)
159 #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \ argument
161 { __ATTR(_name, _mode, _show, _store), (_var) }
/drivers/hwmon/
Dnct6683.c367 #define __TEMPLATE_ATTR(_template, _mode, _show, _store) { \ argument
368 .attr = {.name = _template, .mode = _mode }, \
373 #define SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, _index) \ argument
374 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
378 #define SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \ argument
380 { .dev_attr = __TEMPLATE_ATTR(_template, _mode, _show, _store), \
385 #define SENSOR_TEMPLATE(_name, _template, _mode, _show, _store, _index) \ argument
387 = SENSOR_DEVICE_TEMPLATE(_template, _mode, _show, _store, \
390 #define SENSOR_TEMPLATE_2(_name, _template, _mode, _show, _store, \ argument
393 = SENSOR_DEVICE_TEMPLATE_2(_template, _mode, _show, _store, \
/drivers/md/bcache/
Dsysfs.h43 #define __sysfs_attribute(_name, _mode) \ argument
45 { .name = #_name, .mode = _mode }
/drivers/leds/
Dleds-lp55xx-common.h40 static ssize_t show_engine##nr##_mode(struct device *dev, \
48 static ssize_t store_engine##nr##_mode(struct device *dev, \
/drivers/net/bonding/
Dbond_sysfs_slave.c22 #define SLAVE_ATTR(_name, _mode, _show) \ argument
25 .mode = _mode }, \
/drivers/staging/rtlwifi/phydm/
Dphydm_beamforming.h44 #define phydm_beamforming_control_v2(dm, _idx, _mode, _BW, _period) false argument
/drivers/parisc/
Dpdc_stable.c122 #define PDCS_ATTR(_name, _mode, _show, _store) \ argument
124 .attr = {.name = __stringify(_name), .mode = _mode}, \
129 #define PATHS_ATTR(_name, _mode, _show, _store) \ argument
131 .attr = {.name = __stringify(_name), .mode = _mode}, \
/drivers/iio/light/
Dlm3533-als.c575 #define ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2) \ argument
576 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
581 #define LM3533_ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2) \ argument
583 ALS_ATTR(_name, _mode, _show, _store, _type, _val1, _val2)
/drivers/video/fbdev/omap2/omapfb/dss/
Ddisplay-sysfs.c249 #define DISPLAY_ATTR(_name, _mode, _show, _store) \ argument
251 __ATTR(_name, _mode, _show, _store)
Doverlay-sysfs.c368 #define OVERLAY_ATTR(_name, _mode, _show, _store) \ argument
370 __ATTR(_name, _mode, _show, _store)
Dmanager-sysfs.c432 #define MANAGER_ATTR(_name, _mode, _show, _store) \ argument
434 __ATTR(_name, _mode, _show, _store)
/drivers/scsi/bfa/
Dbfa_defs_svc.h818 #define BFA_PORT_OPMODE_LB_HARD(_mode) \ argument
819 ((_mode == BFA_PORT_OPMODE_LB_INT) || \
820 (_mode == BFA_PORT_OPMODE_LB_SLW) || \
821 (_mode == BFA_PORT_OPMODE_LB_EXT))
/drivers/w1/
Dw1.c532 #define W1_MASTER_ATTR_RO(_name, _mode) \ argument
534 __ATTR(w1_master_##_name, _mode, \
537 #define W1_MASTER_ATTR_RW(_name, _mode) \ argument
539 __ATTR(w1_master_##_name, _mode, \
/drivers/usb/serial/
Dcp210x.c409 #define CP210X_SERIAL_DTR_SHIFT(_mode) (_mode) argument
427 #define CP210X_SERIAL_RTS_SHIFT(_mode) (_mode << 6) argument
/drivers/mfd/
Dlm3533-core.c320 #define LM3533_OUTPUT_ATTR(_name, _mode, _show, _store, _type, _id) \ argument
322 { .dev_attr = __ATTR(_name, _mode, _show, _store), \
/drivers/firmware/efi/
Defivars.c106 #define EFIVAR_ATTR(_name, _mode, _show, _store) \ argument
108 .attr = {.name = __stringify(_name), .mode = _mode}, \
/drivers/ata/
Dlibata-transport.c92 #define ATA_DEVICE_ATTR(_prefix,_name,_mode,_show,_store) \ argument
94 __ATTR(_name,_mode,_show,_store)
/drivers/clk/rockchip/
Dclk.h252 #define PLL(_type, _id, _name, _pnames, _flags, _con, _mode, _mshift, \ argument
262 .mode_offset = _mode, \

123