/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | mcdi.h | 202 #define MCDI_PTR(_buf, _field) \ argument 203 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 208 #define MCDI_STRUCT_PTR(_buf, _field) \ argument 209 _MCDI_PTR(_buf, _field ## _OFST) 212 #define _MCDI_DWORD(_buf, _field) \ argument 213 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 214 #define _MCDI_STRUCT_DWORD(_buf, _field) \ argument 215 ((_buf) + (_MCDI_CHECK_ALIGN(_field ## _OFST, 4) >> 2)) 217 #define MCDI_STRUCT_SET_BYTE(_buf, _field, _value) do { \ argument 218 BUILD_BUG_ON(_field ## _LEN != 1); \ [all …]
|
D | mae.c | 635 #define CHECK(_mcdi, _field) ({ \ argument 636 enum mask_type typ = classify_mask((const u8 *)&mask->_field, \ 637 sizeof(mask->_field)); \ 644 mask_type_name(typ), #_field); \ 648 #define CHECK_BIT(_mcdi, _field) ({ \ argument 649 enum mask_type typ = mask->_field ? MASK_ONES : MASK_ZEROES; \ 656 mask_type_name(typ), #_field); \ 732 #define UNSUPPORTED(_field) ({ \ argument 733 enum mask_type typ = classify_mask((const u8 *)&mask->_field, \ 734 sizeof(mask->_field)); \ [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | mcdi.h | 204 #define MCDI_PTR(_buf, _field) \ argument 205 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 208 #define _MCDI_DWORD(_buf, _field) \ argument 209 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 211 #define MCDI_BYTE(_buf, _field) \ argument 212 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \ 213 *MCDI_PTR(_buf, _field)) 214 #define MCDI_WORD(_buf, _field) \ argument 215 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \ 216 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field))) [all …]
|
/linux-6.6.21/drivers/cdx/controller/ |
D | mcdi.h | 210 #define MCDI_PTR(_buf, _field) \ argument 211 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 215 #define _MCDI_DWORD(_buf, _field) \ argument 216 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 218 #define MCDI_BYTE(_buf, _field) \ argument 219 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \ 220 *MCDI_PTR(_buf, _field)) 221 #define MCDI_WORD(_buf, _field) \ argument 222 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2), \ 223 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field))) [all …]
|
/linux-6.6.21/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 1475 #define XGMAC_GET_BITS(_var, _prefix, _field) \ argument 1477 _prefix##_##_field##_INDEX, \ 1478 _prefix##_##_field##_WIDTH) 1480 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ argument 1482 _prefix##_##_field##_INDEX, \ 1483 _prefix##_##_field##_WIDTH, (_val)) 1485 #define XGMAC_GET_BITS_LE(_var, _prefix, _field) \ argument 1487 _prefix##_##_field##_INDEX, \ 1488 _prefix##_##_field##_WIDTH) 1490 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ argument [all …]
|
/linux-6.6.21/tools/perf/ui/ |
D | hist.c | 343 #define __HPP_COLOR_PERCENT_FN(_type, _field) \ argument 344 static u64 he_get_##_field(struct hist_entry *he) \ 346 return he->stat._field; \ 352 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 356 #define __HPP_ENTRY_PERCENT_FN(_type, _field) \ argument 360 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 364 #define __HPP_SORT_FN(_type, _field) \ argument 368 return __hpp__sort(a, b, he_get_##_field); \ 371 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ argument 372 static u64 he_get_acc_##_field(struct hist_entry *he) \ [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/api/ |
D | coex.h | 136 #define BT_MBOX_MSG(_notif, _num, _field) \ argument 137 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\ 138 >> BT_MBOX##_num##_##_field##_POS) 140 #define BT_MBOX_PRINT(_num, _field, _end) \ argument 143 #_field, \ 144 BT_MBOX_MSG(notif, _num, _field), \
|
/linux-6.6.21/arch/powerpc/platforms/cell/spufs/ |
D | spu_utils.h | 50 #define LSCSA_BYTE_OFFSET(_field) \ argument 51 ((char *)(&(dummy->_field)) - (char *)(&(dummy->gprs[0].slot[0]))) 52 #define LSCSA_QW_OFFSET(_field) (LSCSA_BYTE_OFFSET(_field) >> 4) argument
|
/linux-6.6.21/arch/mips/ath25/ |
D | devices.h | 7 #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) argument
|
/linux-6.6.21/drivers/net/ethernet/atheros/alx/ |
D | hw.h | 456 #define ALX_GET_FIELD(_data, _field) \ argument 457 (((_data) >> _field ## _SHIFT) & _field ## _MASK) 459 #define ALX_SET_FIELD(_data, _field, _value) do { \ argument 460 (_data) &= ~(_field ## _MASK << _field ## _SHIFT); \ 461 (_data) |= ((_value) & _field ## _MASK) << _field ## _SHIFT;\
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/firmware/ |
D | dmi-id.c | 33 #define DMI_ATTR(_name, _mode, _show, _field) \ argument 35 .field = _field } 37 #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ argument 39 DMI_ATTR(_name, _mode, sys_dmi_field_show, _field); 182 #define ADD_DMI_ATTR(_name, _field) \ argument 183 if (dmi_get_system_info(_field)) \
|
D | dmi-sysfs.c | 268 #define DMI_SYSFS_SEL_FIELD(_field) \ argument 269 static ssize_t dmi_sysfs_sel_##_field(struct dmi_sysfs_entry *entry, \ 277 return sprintf(buf, "%u\n", sel._field); \ 279 static DMI_SYSFS_MAPPED_ATTR(sel, _field)
|
/linux-6.6.21/drivers/input/touchscreen/ |
D | hycon-hy46xx.c | 154 #define HYCON_ATTR_U8(_field, _mode, _address, _limit_low, _limit_high) \ argument 155 struct hycon_hy46xx_attribute hycon_hy46xx_attr_##_field = { \ 156 .dattr = __ATTR(_field, _mode, \ 159 .field_offset = offsetof(struct hycon_hy46xx_data, _field), \ 165 #define HYCON_ATTR_BOOL(_field, _mode, _address) \ argument 166 struct hycon_hy46xx_attribute hycon_hy46xx_attr_##_field = { \ 167 .dattr = __ATTR(_field, _mode, \ 170 .field_offset = offsetof(struct hycon_hy46xx_data, _field), \
|
D | elants_i2c.c | 1259 #define __ELANTS_FIELD_SIZE(_field) \ argument 1260 sizeof(((struct elants_data *)NULL)->_field) 1261 #define __ELANTS_VERIFY_SIZE(_field) \ argument 1262 (BUILD_BUG_ON_ZERO(__ELANTS_FIELD_SIZE(_field) > 2) + \ 1263 __ELANTS_FIELD_SIZE(_field)) 1264 #define ELANTS_VERSION_ATTR(_field) \ argument 1265 struct elants_version_attribute elants_ver_attr_##_field = { \ 1266 .dattr = __ATTR(_field, S_IRUGO, \ 1268 .field_offset = offsetof(struct elants_data, _field), \ 1269 .field_size = __ELANTS_VERIFY_SIZE(_field), \
|
/linux-6.6.21/arch/x86/platform/ts5500/ |
D | ts5500.c | 177 #define TS5500_ATTR_BOOL(_field) \ argument 178 static ssize_t _field##_show(struct device *dev, \ 183 return sprintf(buf, "%d\n", sbc->_field); \ 185 static DEVICE_ATTR_RO(_field)
|
/linux-6.6.21/tools/perf/ui/gtk/ |
D | hists.c | 43 #define __HPP_COLOR_PERCENT_FN(_type, _field) \ argument 44 static u64 he_get_##_field(struct hist_entry *he) \ 46 return he->stat._field; \ 53 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 57 #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ argument 58 static u64 he_get_acc_##_field(struct hist_entry *he) \ 60 return he->stat_acc->_field; \ 67 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \
|
/linux-6.6.21/drivers/iio/health/ |
D | afe440x.h | 145 #define AFE440X_ATTR(_name, _field, _table) \ argument 150 .field = _field, \
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl.c | 531 #define MLXSW_SP_ACL_MANGLE_ACTION(_htype, _offset, _mask, _shift, _field) \ argument 537 .field = MLXSW_SP_ACL_MANGLE_FIELD_##_field, \ 540 #define MLXSW_SP_ACL_MANGLE_ACTION_IP4(_offset, _mask, _shift, _field) \ argument 542 _offset, _mask, _shift, _field) 544 #define MLXSW_SP_ACL_MANGLE_ACTION_IP6(_offset, _mask, _shift, _field) \ argument 546 _offset, _mask, _shift, _field) 548 #define MLXSW_SP_ACL_MANGLE_ACTION_TCP(_offset, _mask, _shift, _field) \ argument 549 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_TCP, _offset, _mask, _shift, _field) 551 #define MLXSW_SP_ACL_MANGLE_ACTION_UDP(_offset, _mask, _shift, _field) \ argument 552 MLXSW_SP_ACL_MANGLE_ACTION(FLOW_ACT_MANGLE_HDR_TYPE_UDP, _offset, _mask, _shift, _field)
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/ |
D | dma.c | 12 #define Q_READ(_dev, _q, _field) ({ \ argument 13 u32 _offset = offsetof(struct mt76_queue_regs, _field); \ 20 _val = readl(&(_q)->regs->_field); \ 24 #define Q_WRITE(_dev, _q, _field, _val) do { \ argument 25 u32 _offset = offsetof(struct mt76_queue_regs, _field); \ 31 writel(_val, &(_q)->regs->_field); \ 36 #define Q_READ(_dev, _q, _field) readl(&(_q)->regs->_field) argument 37 #define Q_WRITE(_dev, _q, _field, _val) writel(_val, &(_q)->regs->_field) argument
|
/linux-6.6.21/drivers/net/wireless/mediatek/mt7601u/ |
D | mt7601u.h | 297 #define mt76_rmw_field(_dev, _reg, _field, _val) \ argument 298 mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val))
|
/linux-6.6.21/drivers/ssb/ |
D | pci.c | 179 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument 181 SPEX(_field[0], _offset + 0, _mask, _shift); \ 182 SPEX(_field[1], _offset + 2, _mask, _shift); \ 183 SPEX(_field[2], _offset + 4, _mask, _shift); \ 184 SPEX(_field[3], _offset + 6, _mask, _shift); \ 185 SPEX(_field[4], _offset + 8, _mask, _shift); \ 186 SPEX(_field[5], _offset + 10, _mask, _shift); \ 187 SPEX(_field[6], _offset + 12, _mask, _shift); \ 188 SPEX(_field[7], _offset + 14, _mask, _shift); \
|
/linux-6.6.21/drivers/input/misc/ |
D | ims-pcu.c | 1096 #define IMS_PCU_ATTR(_field, _mode) \ argument 1097 struct ims_pcu_attribute ims_pcu_attr_##_field = { \ 1098 .dattr = __ATTR(_field, _mode, \ 1101 .field_offset = offsetof(struct ims_pcu, _field), \ 1102 .field_length = sizeof(((struct ims_pcu *)NULL)->_field), \ 1105 #define IMS_PCU_RO_ATTR(_field) \ argument 1106 IMS_PCU_ATTR(_field, S_IRUGO) 1107 #define IMS_PCU_RW_ATTR(_field) \ argument 1108 IMS_PCU_ATTR(_field, S_IRUGO | S_IWUSR) 1439 #define IMS_PCU_OFN_BIT_ATTR(_field, _addr, _nr) \ argument [all …]
|
/linux-6.6.21/include/uapi/linux/genwqe/ |
D | genwqe_card.h | 391 #define ATS_SET_FLAGS(_struct, _field, _flags) \ argument 392 (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8))))
|
/linux-6.6.21/arch/x86/events/ |
D | perf_event.h | 694 #define hybrid(_pmu, _field) \ argument 696 typeof(&x86_pmu._field) __Fp = &x86_pmu._field; \ 699 __Fp = &hybrid_pmu(_pmu)->_field; \ 714 #define hybrid_bit(_pmu, _field) \ argument 716 bool __Fp = x86_pmu._field; \ 719 __Fp = hybrid_pmu(_pmu)->_field; \
|