/drivers/net/ethernet/sfc/ |
D | mcdi.h | 185 #define MCDI_PTR(_buf, _field) \ argument 186 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 189 #define _MCDI_DWORD(_buf, _field) \ argument 190 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 192 #define MCDI_WORD(_buf, _field) \ argument 193 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \ 194 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field))) 195 #define MCDI_SET_DWORD(_buf, _field, _value) \ argument 196 EFX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), EFX_DWORD_0, _value) 197 #define MCDI_DWORD(_buf, _field) \ argument [all …]
|
D | siena_sriov.c | 172 #define EFX_FIELD_MASK(_field) \ argument 173 ((1 << _field ## _WIDTH) - 1)
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 963 #define XGMAC_GET_BITS(_var, _prefix, _field) \ argument 965 _prefix##_##_field##_INDEX, \ 966 _prefix##_##_field##_WIDTH) 968 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ argument 970 _prefix##_##_field##_INDEX, \ 971 _prefix##_##_field##_WIDTH, (_val)) 973 #define XGMAC_GET_BITS_LE(_var, _prefix, _field) \ argument 975 _prefix##_##_field##_INDEX, \ 976 _prefix##_##_field##_WIDTH) 978 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ argument [all …]
|
/drivers/net/phy/ |
D | amd-xgbe-phy.c | 210 #define XSIR_GET_BITS(_var, _prefix, _field) \ argument 212 _prefix##_##_field##_INDEX, \ 213 _prefix##_##_field##_WIDTH) 215 #define XSIR_SET_BITS(_var, _prefix, _field, _val) \ argument 217 _prefix##_##_field##_INDEX, \ 218 _prefix##_##_field##_WIDTH, (_val)) 230 #define XSIR0_IOREAD_BITS(_priv, _reg, _field) \ argument 232 _reg##_##_field##_INDEX, \ 233 _reg##_##_field##_WIDTH) 238 #define XSIR0_IOWRITE_BITS(_priv, _reg, _field, _val) \ argument [all …]
|
/drivers/bcma/ |
D | sprom.c | 185 #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/ |
D | hw.h | 454 #define ALX_GET_FIELD(_data, _field) \ argument 455 (((_data) >> _field ## _SHIFT) & _field ## _MASK) 457 #define ALX_SET_FIELD(_data, _field, _value) do { \ argument 458 (_data) &= ~(_field ## _MASK << _field ## _SHIFT); \ 459 (_data) |= ((_value) & _field ## _MASK) << _field ## _SHIFT;\
|
/drivers/firmware/ |
D | dmi-id.c | 34 #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)) \
|
D | dmi-sysfs.c | 266 #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/iwlwifi/mvm/ |
D | fw-api-coex.h | 381 #define BT_MBOX_MSG(_notif, _num, _field) \ argument 382 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\ 383 >> BT_MBOX##_num##_##_field##_POS)
|
D | debugfs.c | 425 #define BT_MBOX_MSG(_notif, _num, _field) \ argument 426 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\ 427 >> BT_MBOX##_num##_##_field##_POS) 430 #define BT_MBOX_PRINT(_num, _field, _end) \ argument 433 #_field, \ 434 BT_MBOX_MSG(notif, _num, _field), \
|
/drivers/ssb/ |
D | pci.c | 180 #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/input/misc/ |
D | ims-pcu.c | 1110 #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/input/touchscreen/ |
D | edt-ft5x06.c | 331 #define EDT_ATTR(_field, _mode, _addr_m06, _addr_m09, \ argument 333 struct edt_ft5x06_attribute edt_ft5x06_attr_##_field = { \ 334 .dattr = __ATTR(_field, _mode, \ 337 .field_offset = offsetof(struct edt_ft5x06_ts_data, _field), \
|
/drivers/ide/ |
D | ide-tape.c | 1697 #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/ |
D | debug.c | 727 #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/ |
D | ar9003_phy.c | 2016 #define PCT(_field) (common->cc_survey._field * 100 / common->cc_survey.cycles) in ar9003_hw_bb_watchdog_dbg_info() argument
|