Home
last modified time | relevance | path

Searched refs:_field (Results 1 – 19 of 19) sorted by relevance

/drivers/net/ethernet/sfc/
Dmcdi.h203 #define MCDI_PTR(_buf, _field) \ argument
204 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
207 #define _MCDI_DWORD(_buf, _field) \ argument
208 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
210 #define MCDI_WORD(_buf, _field) \ argument
211 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
212 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field)))
213 #define MCDI_SET_DWORD(_buf, _field, _value) \ argument
214 EFX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), EFX_DWORD_0, _value)
215 #define MCDI_DWORD(_buf, _field) \ argument
[all …]
Dsiena_sriov.c173 #define EFX_FIELD_MASK(_field) \ argument
174 ((1 << _field ## _WIDTH) - 1)
/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1100 #define XGMAC_GET_BITS(_var, _prefix, _field) \ argument
1102 _prefix##_##_field##_INDEX, \
1103 _prefix##_##_field##_WIDTH)
1105 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ argument
1107 _prefix##_##_field##_INDEX, \
1108 _prefix##_##_field##_WIDTH, (_val))
1110 #define XGMAC_GET_BITS_LE(_var, _prefix, _field) \ argument
1112 _prefix##_##_field##_INDEX, \
1113 _prefix##_##_field##_WIDTH)
1115 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ argument
[all …]
/drivers/bcma/
Dsprom.c185 #define SPEX(_field, _offset, _mask, _shift) \ argument
186 bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift))
188 #define SPEX32(_field, _offset, _mask, _shift) \ argument
189 bus->sprom._field = ((((u32)sprom[SPOFF((_offset)+2)] << 16 | \
192 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument
194 SPEX(_field[0], _offset + 0, _mask, _shift); \
195 SPEX(_field[1], _offset + 2, _mask, _shift); \
196 SPEX(_field[2], _offset + 4, _mask, _shift); \
197 SPEX(_field[3], _offset + 6, _mask, _shift); \
198 SPEX(_field[4], _offset + 8, _mask, _shift); \
[all …]
/drivers/net/ethernet/atheros/alx/
Dhw.h457 #define ALX_GET_FIELD(_data, _field) \ argument
458 (((_data) >> _field ## _SHIFT) & _field ## _MASK)
460 #define ALX_SET_FIELD(_data, _field, _value) do { \ argument
461 (_data) &= ~(_field ## _MASK << _field ## _SHIFT); \
462 (_data) |= ((_value) & _field ## _MASK) << _field ## _SHIFT;\
/drivers/firmware/
Ddmi-id.c34 #define DMI_ATTR(_name, _mode, _show, _field) \ argument
36 .field = _field }
38 #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ argument
40 DMI_ATTR(_name, _mode, sys_dmi_field_show, _field);
172 #define ADD_DMI_ATTR(_name, _field) \ argument
173 if (dmi_get_system_info(_field)) \
Ddmi-sysfs.c266 #define DMI_SYSFS_SEL_FIELD(_field) \ argument
267 static ssize_t dmi_sysfs_sel_##_field(struct dmi_sysfs_entry *entry, \
275 return sprintf(buf, "%u\n", sel._field); \
277 static DMI_SYSFS_MAPPED_ATTR(sel, _field)
/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw-api-coex.h206 #define BT_MBOX_MSG(_notif, _num, _field) \ argument
207 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\
208 >> BT_MBOX##_num##_##_field##_POS)
Ddebugfs.c396 #define BT_MBOX_MSG(_notif, _num, _field) \ argument
397 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\
398 >> BT_MBOX##_num##_##_field##_POS)
401 #define BT_MBOX_PRINT(_num, _field, _end) \ argument
404 #_field, \
405 BT_MBOX_MSG(notif, _num, _field), \
/drivers/iio/health/
Dafe440x.h153 #define AFE440X_ATTR(_name, _field, _table) \ argument
158 .field = _field, \
/drivers/input/touchscreen/
Delants_i2c.c1012 #define __ELANTS_FIELD_SIZE(_field) \ argument
1013 sizeof(((struct elants_data *)NULL)->_field)
1014 #define __ELANTS_VERIFY_SIZE(_field) \ argument
1015 (BUILD_BUG_ON_ZERO(__ELANTS_FIELD_SIZE(_field) > 2) + \
1016 __ELANTS_FIELD_SIZE(_field))
1017 #define ELANTS_VERSION_ATTR(_field) \ argument
1018 struct elants_version_attribute elants_ver_attr_##_field = { \
1019 .dattr = __ATTR(_field, S_IRUGO, \
1021 .field_offset = offsetof(struct elants_data, _field), \
1022 .field_size = __ELANTS_VERIFY_SIZE(_field), \
Dedt-ft5x06.c336 #define EDT_ATTR(_field, _mode, _addr_m06, _addr_m09, \ argument
338 struct edt_ft5x06_attribute edt_ft5x06_attr_##_field = { \
339 .dattr = __ATTR(_field, _mode, \
342 .field_offset = offsetof(struct edt_ft5x06_ts_data, _field), \
/drivers/ssb/
Dpci.c180 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument
182 SPEX(_field[0], _offset + 0, _mask, _shift); \
183 SPEX(_field[1], _offset + 2, _mask, _shift); \
184 SPEX(_field[2], _offset + 4, _mask, _shift); \
185 SPEX(_field[3], _offset + 6, _mask, _shift); \
186 SPEX(_field[4], _offset + 8, _mask, _shift); \
187 SPEX(_field[5], _offset + 10, _mask, _shift); \
188 SPEX(_field[6], _offset + 12, _mask, _shift); \
189 SPEX(_field[7], _offset + 14, _mask, _shift); \
/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h301 #define mt76_rmw_field(_dev, _reg, _field, _val) \ argument
302 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
/drivers/input/misc/
Dims-pcu.c1110 #define IMS_PCU_ATTR(_field, _mode) \ argument
1111 struct ims_pcu_attribute ims_pcu_attr_##_field = { \
1112 .dattr = __ATTR(_field, _mode, \
1115 .field_offset = offsetof(struct ims_pcu, _field), \
1116 .field_length = sizeof(((struct ims_pcu *)NULL)->_field), \
1119 #define IMS_PCU_RO_ATTR(_field) \ argument
1120 IMS_PCU_ATTR(_field, S_IRUGO)
1121 #define IMS_PCU_RW_ATTR(_field) \ argument
1122 IMS_PCU_ATTR(_field, S_IRUGO | S_IWUSR)
1453 #define IMS_PCU_OFN_BIT_ATTR(_field, _addr, _nr) \ argument
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_mcp.c37 #define DRV_MB_WR(_p_hwfn, _p_ptt, _field, _val) \ argument
39 offsetof(struct public_drv_mb, _field), _val)
41 #define DRV_MB_RD(_p_hwfn, _p_ptt, _field) \ argument
43 offsetof(struct public_drv_mb, _field))
/drivers/ide/
Dide-tape.c1697 #define ide_tape_devset_rw_field(_name, _field) \ argument
1698 ide_tape_devset_get(_name, _field) \
1699 ide_tape_devset_set(_name, _field) \
1702 #define ide_tape_devset_r_field(_name, _field) \ argument
1703 ide_tape_devset_get(_name, _field) \
/drivers/net/wireless/ath/ath5k/
Ddebug.c727 #define CC_PRINT(_struct, _field) \ in read_file_ani() argument
728 _struct._field, \ in read_file_ani()
730 _struct._field * 100 / _struct.cycles : 0 in read_file_ani()
/drivers/net/wireless/ath/ath9k/
Dar9003_phy.c2167 #define PCT(_field) (common->cc_survey._field * 100 / common->cc_survey.cycles) in ar9003_hw_bb_watchdog_dbg_info() argument