_field 224 arch/arm64/kernel/cpuinfo.c #define CPUREGS_ATTR_RO(_name, _field) \ _field 231 arch/arm64/kernel/cpuinfo.c return sprintf(buf, "0x%016x\n", info->reg_##_field); \ _field 7 arch/mips/ath25/devices.h #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) _field 50 arch/powerpc/platforms/cell/spufs/spu_utils.h #define LSCSA_BYTE_OFFSET(_field) \ _field 51 arch/powerpc/platforms/cell/spufs/spu_utils.h ((char *)(&(dummy->_field)) - (char *)(&(dummy->gprs[0].slot[0]))) _field 52 arch/powerpc/platforms/cell/spufs/spu_utils.h #define LSCSA_QW_OFFSET(_field) (LSCSA_BYTE_OFFSET(_field) >> 4) _field 177 arch/x86/platform/ts5500/ts5500.c #define TS5500_ATTR_BOOL(_field) \ _field 178 arch/x86/platform/ts5500/ts5500.c static ssize_t _field##_show(struct device *dev, \ _field 183 arch/x86/platform/ts5500/ts5500.c return sprintf(buf, "%d\n", sbc->_field); \ _field 185 arch/x86/platform/ts5500/ts5500.c static DEVICE_ATTR_RO(_field) _field 185 drivers/bcma/sprom.c #define SPEX(_field, _offset, _mask, _shift) \ _field 186 drivers/bcma/sprom.c bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift)) _field 188 drivers/bcma/sprom.c #define SPEX32(_field, _offset, _mask, _shift) \ _field 189 drivers/bcma/sprom.c bus->sprom._field = ((((u32)sprom[SPOFF((_offset)+2)] << 16 | \ _field 192 drivers/bcma/sprom.c #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ _field 194 drivers/bcma/sprom.c SPEX(_field[0], _offset + 0, _mask, _shift); \ _field 195 drivers/bcma/sprom.c SPEX(_field[1], _offset + 2, _mask, _shift); \ _field 196 drivers/bcma/sprom.c SPEX(_field[2], _offset + 4, _mask, _shift); \ _field 197 drivers/bcma/sprom.c SPEX(_field[3], _offset + 6, _mask, _shift); \ _field 198 drivers/bcma/sprom.c SPEX(_field[4], _offset + 8, _mask, _shift); \ _field 199 drivers/bcma/sprom.c SPEX(_field[5], _offset + 10, _mask, _shift); \ _field 200 drivers/bcma/sprom.c SPEX(_field[6], _offset + 12, _mask, _shift); \ _field 201 drivers/bcma/sprom.c SPEX(_field[7], _offset + 14, _mask, _shift); \ _field 228 drivers/edac/thunderx_edac.c #define DEBUGFS_FIELD_ATTR(_type, _field) \ _field 229 drivers/edac/thunderx_edac.c static ssize_t thunderx_##_type##_##_field##_read(struct file *file, \ _field 236 drivers/edac/thunderx_edac.c snprintf(buf, count, "0x%016llx", pdata->_field); \ _field 241 drivers/edac/thunderx_edac.c static ssize_t thunderx_##_type##_##_field##_write(struct file *file, \ _field 248 drivers/edac/thunderx_edac.c res = kstrtoull_from_user(data, count, 0, &pdata->_field); \ _field 253 drivers/edac/thunderx_edac.c DEBUGFS_STRUCT(_field, 0600, \ _field 254 drivers/edac/thunderx_edac.c thunderx_##_type##_##_field##_write, \ _field 255 drivers/edac/thunderx_edac.c thunderx_##_type##_##_field##_read) \ _field 292 drivers/edac/thunderx_edac.c #define LMC_DEBUGFS_ENT(_field) DEBUGFS_FIELD_ATTR(lmc, _field) _field 33 drivers/firmware/dmi-id.c #define DMI_ATTR(_name, _mode, _show, _field) \ _field 35 drivers/firmware/dmi-id.c .field = _field } _field 37 drivers/firmware/dmi-id.c #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ _field 39 drivers/firmware/dmi-id.c DMI_ATTR(_name, _mode, sys_dmi_field_show, _field); _field 173 drivers/firmware/dmi-id.c #define ADD_DMI_ATTR(_name, _field) \ _field 174 drivers/firmware/dmi-id.c if (dmi_get_system_info(_field)) \ _field 268 drivers/firmware/dmi-sysfs.c #define DMI_SYSFS_SEL_FIELD(_field) \ _field 269 drivers/firmware/dmi-sysfs.c static ssize_t dmi_sysfs_sel_##_field(struct dmi_sysfs_entry *entry, \ _field 277 drivers/firmware/dmi-sysfs.c return sprintf(buf, "%u\n", sel._field); \ _field 279 drivers/firmware/dmi-sysfs.c static DMI_SYSFS_MAPPED_ATTR(sel, _field) _field 1699 drivers/ide/ide-tape.c #define ide_tape_devset_rw_field(_name, _field) \ _field 1700 drivers/ide/ide-tape.c ide_tape_devset_get(_name, _field) \ _field 1701 drivers/ide/ide-tape.c ide_tape_devset_set(_name, _field) \ _field 1704 drivers/ide/ide-tape.c #define ide_tape_devset_r_field(_name, _field) \ _field 1705 drivers/ide/ide-tape.c ide_tape_devset_get(_name, _field) \ _field 145 drivers/iio/health/afe440x.h #define AFE440X_ATTR(_name, _field, _table) \ _field 150 drivers/iio/health/afe440x.h .field = _field, \ _field 1096 drivers/input/misc/ims-pcu.c #define IMS_PCU_ATTR(_field, _mode) \ _field 1097 drivers/input/misc/ims-pcu.c struct ims_pcu_attribute ims_pcu_attr_##_field = { \ _field 1098 drivers/input/misc/ims-pcu.c .dattr = __ATTR(_field, _mode, \ _field 1101 drivers/input/misc/ims-pcu.c .field_offset = offsetof(struct ims_pcu, _field), \ _field 1102 drivers/input/misc/ims-pcu.c .field_length = sizeof(((struct ims_pcu *)NULL)->_field), \ _field 1105 drivers/input/misc/ims-pcu.c #define IMS_PCU_RO_ATTR(_field) \ _field 1106 drivers/input/misc/ims-pcu.c IMS_PCU_ATTR(_field, S_IRUGO) _field 1107 drivers/input/misc/ims-pcu.c #define IMS_PCU_RW_ATTR(_field) \ _field 1108 drivers/input/misc/ims-pcu.c IMS_PCU_ATTR(_field, S_IRUGO | S_IWUSR) _field 1439 drivers/input/misc/ims-pcu.c #define IMS_PCU_OFN_BIT_ATTR(_field, _addr, _nr) \ _field 1440 drivers/input/misc/ims-pcu.c struct ims_pcu_ofn_bit_attribute ims_pcu_ofn_attr_##_field = { \ _field 1441 drivers/input/misc/ims-pcu.c .dattr = __ATTR(_field, S_IWUSR | S_IRUGO, \ _field 348 drivers/input/touchscreen/edt-ft5x06.c #define EDT_ATTR(_field, _mode, _addr_m06, _addr_m09, _addr_ev, \ _field 350 drivers/input/touchscreen/edt-ft5x06.c struct edt_ft5x06_attribute edt_ft5x06_attr_##_field = { \ _field 351 drivers/input/touchscreen/edt-ft5x06.c .dattr = __ATTR(_field, _mode, \ _field 354 drivers/input/touchscreen/edt-ft5x06.c .field_offset = offsetof(struct edt_ft5x06_ts_data, _field), \ _field 1008 drivers/input/touchscreen/elants_i2c.c #define __ELANTS_FIELD_SIZE(_field) \ _field 1009 drivers/input/touchscreen/elants_i2c.c sizeof(((struct elants_data *)NULL)->_field) _field 1010 drivers/input/touchscreen/elants_i2c.c #define __ELANTS_VERIFY_SIZE(_field) \ _field 1011 drivers/input/touchscreen/elants_i2c.c (BUILD_BUG_ON_ZERO(__ELANTS_FIELD_SIZE(_field) > 2) + \ _field 1012 drivers/input/touchscreen/elants_i2c.c __ELANTS_FIELD_SIZE(_field)) _field 1013 drivers/input/touchscreen/elants_i2c.c #define ELANTS_VERSION_ATTR(_field) \ _field 1014 drivers/input/touchscreen/elants_i2c.c struct elants_version_attribute elants_ver_attr_##_field = { \ _field 1015 drivers/input/touchscreen/elants_i2c.c .dattr = __ATTR(_field, S_IRUGO, \ _field 1017 drivers/input/touchscreen/elants_i2c.c .field_offset = offsetof(struct elants_data, _field), \ _field 1018 drivers/input/touchscreen/elants_i2c.c .field_size = __ELANTS_VERIFY_SIZE(_field), \ _field 1413 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_GET_BITS(_var, _prefix, _field) \ _field 1415 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1416 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH) _field 1418 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ _field 1420 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1421 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH, (_val)) _field 1423 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_GET_BITS_LE(_var, _prefix, _field) \ _field 1425 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1426 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH) _field 1428 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ _field 1430 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1431 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH, (_val)) _field 1443 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_IOREAD_BITS(_pdata, _reg, _field) \ _field 1445 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1446 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1451 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_IOWRITE_BITS(_pdata, _reg, _field, _val) \ _field 1455 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1456 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1468 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_MTL_IOREAD_BITS(_pdata, _n, _reg, _field) \ _field 1470 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1471 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1477 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_MTL_IOWRITE_BITS(_pdata, _n, _reg, _field, _val) \ _field 1481 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1482 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1493 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_DMA_IOREAD_BITS(_channel, _reg, _field) \ _field 1495 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1496 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1501 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XGMAC_DMA_IOWRITE_BITS(_channel, _reg, _field, _val) \ _field 1505 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1506 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1513 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XPCS_GET_BITS(_var, _prefix, _field) \ _field 1515 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1516 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH) _field 1518 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XPCS_SET_BITS(_var, _prefix, _field, _val) \ _field 1520 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1521 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH, (_val)) _field 1538 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XSIR_GET_BITS(_var, _prefix, _field) \ _field 1540 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1541 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH) _field 1543 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XSIR_SET_BITS(_var, _prefix, _field, _val) \ _field 1545 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1546 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH, (_val)) _field 1551 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XSIR0_IOREAD_BITS(_pdata, _reg, _field) \ _field 1553 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1554 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1559 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XSIR0_IOWRITE_BITS(_pdata, _reg, _field, _val) \ _field 1563 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1564 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1571 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XSIR1_IOREAD_BITS(_pdata, _reg, _field) \ _field 1573 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1574 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1579 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XSIR1_IOWRITE_BITS(_pdata, _reg, _field, _val) \ _field 1583 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1584 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1594 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XRXTX_IOREAD_BITS(_pdata, _reg, _field) \ _field 1596 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1597 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1602 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XRXTX_IOWRITE_BITS(_pdata, _reg, _field, _val) \ _field 1606 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1607 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1614 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XP_GET_BITS(_var, _prefix, _field) \ _field 1616 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1617 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH) _field 1619 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XP_SET_BITS(_var, _prefix, _field, _val) \ _field 1621 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1622 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH, (_val)) _field 1627 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XP_IOREAD_BITS(_pdata, _reg, _field) \ _field 1629 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1630 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1635 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XP_IOWRITE_BITS(_pdata, _reg, _field, _val) \ _field 1639 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1640 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 1647 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XI2C_GET_BITS(_var, _prefix, _field) \ _field 1649 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1650 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH) _field 1652 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XI2C_SET_BITS(_var, _prefix, _field, _val) \ _field 1654 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_INDEX, \ _field 1655 drivers/net/ethernet/amd/xgbe/xgbe-common.h _prefix##_##_field##_WIDTH, (_val)) _field 1660 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XI2C_IOREAD_BITS(_pdata, _reg, _field) \ _field 1662 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1663 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH) _field 1668 drivers/net/ethernet/amd/xgbe/xgbe-common.h #define XI2C_IOWRITE_BITS(_pdata, _reg, _field, _val) \ _field 1672 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_INDEX, \ _field 1673 drivers/net/ethernet/amd/xgbe/xgbe-common.h _reg##_##_field##_WIDTH, (_val)); \ _field 456 drivers/net/ethernet/atheros/alx/hw.h #define ALX_GET_FIELD(_data, _field) \ _field 457 drivers/net/ethernet/atheros/alx/hw.h (((_data) >> _field ## _SHIFT) & _field ## _MASK) _field 459 drivers/net/ethernet/atheros/alx/hw.h #define ALX_SET_FIELD(_data, _field, _value) do { \ _field 460 drivers/net/ethernet/atheros/alx/hw.h (_data) &= ~(_field ## _MASK << _field ## _SHIFT); \ _field 461 drivers/net/ethernet/atheros/alx/hw.h (_data) |= ((_value) & _field ## _MASK) << _field ## _SHIFT;\ _field 63 drivers/net/ethernet/qlogic/qed/qed_mcp.c #define DRV_MB_WR(_p_hwfn, _p_ptt, _field, _val) \ _field 65 drivers/net/ethernet/qlogic/qed/qed_mcp.c offsetof(struct public_drv_mb, _field), _val) _field 67 drivers/net/ethernet/qlogic/qed/qed_mcp.c #define DRV_MB_RD(_p_hwfn, _p_ptt, _field) \ _field 69 drivers/net/ethernet/qlogic/qed/qed_mcp.c offsetof(struct public_drv_mb, _field)) _field 201 drivers/net/ethernet/sfc/mcdi.h #define MCDI_PTR(_buf, _field) \ _field 202 drivers/net/ethernet/sfc/mcdi.h _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) _field 205 drivers/net/ethernet/sfc/mcdi.h #define _MCDI_DWORD(_buf, _field) \ _field 206 drivers/net/ethernet/sfc/mcdi.h ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) _field 208 drivers/net/ethernet/sfc/mcdi.h #define MCDI_BYTE(_buf, _field) \ _field 209 drivers/net/ethernet/sfc/mcdi.h ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \ _field 210 drivers/net/ethernet/sfc/mcdi.h *MCDI_PTR(_buf, _field)) _field 211 drivers/net/ethernet/sfc/mcdi.h #define MCDI_WORD(_buf, _field) \ _field 212 drivers/net/ethernet/sfc/mcdi.h ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \ _field 213 drivers/net/ethernet/sfc/mcdi.h le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field))) _field 214 drivers/net/ethernet/sfc/mcdi.h #define MCDI_SET_DWORD(_buf, _field, _value) \ _field 215 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), EFX_DWORD_0, _value) _field 216 drivers/net/ethernet/sfc/mcdi.h #define MCDI_DWORD(_buf, _field) \ _field 217 drivers/net/ethernet/sfc/mcdi.h EFX_DWORD_FIELD(*_MCDI_DWORD(_buf, _field), EFX_DWORD_0) _field 218 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_1(_buf, _field, _name1, _value1) \ _field 219 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), \ _field 221 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_2(_buf, _field, _name1, _value1, \ _field 223 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_2(*_MCDI_DWORD(_buf, _field), \ _field 226 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_3(_buf, _field, _name1, _value1, \ _field 228 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_3(*_MCDI_DWORD(_buf, _field), \ _field 232 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_4(_buf, _field, _name1, _value1, \ _field 235 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_4(*_MCDI_DWORD(_buf, _field), \ _field 240 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_5(_buf, _field, _name1, _value1, \ _field 243 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_5(*_MCDI_DWORD(_buf, _field), \ _field 249 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_6(_buf, _field, _name1, _value1, \ _field 253 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_6(*_MCDI_DWORD(_buf, _field), \ _field 260 drivers/net/ethernet/sfc/mcdi.h #define MCDI_POPULATE_DWORD_7(_buf, _field, _name1, _value1, \ _field 264 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_7(*_MCDI_DWORD(_buf, _field), \ _field 272 drivers/net/ethernet/sfc/mcdi.h #define MCDI_SET_QWORD(_buf, _field, _value) \ _field 274 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_1(_MCDI_DWORD(_buf, _field)[0], \ _field 276 drivers/net/ethernet/sfc/mcdi.h EFX_POPULATE_DWORD_1(_MCDI_DWORD(_buf, _field)[1], \ _field 279 drivers/net/ethernet/sfc/mcdi.h #define MCDI_QWORD(_buf, _field) \ _field 280 drivers/net/ethernet/sfc/mcdi.h (EFX_DWORD_FIELD(_MCDI_DWORD(_buf, _field)[0], EFX_DWORD_0) | \ _field 281 drivers/net/ethernet/sfc/mcdi.h (u64)EFX_DWORD_FIELD(_MCDI_DWORD(_buf, _field)[1], EFX_DWORD_0) << 32) _field 282 drivers/net/ethernet/sfc/mcdi.h #define MCDI_FIELD(_ptr, _type, _field) \ _field 285 drivers/net/ethernet/sfc/mcdi.h _MCDI_PTR(_ptr, MC_CMD_ ## _type ## _ ## _field ## _OFST & ~3),\ _field 286 drivers/net/ethernet/sfc/mcdi.h MC_CMD_ ## _type ## _ ## _field ## _LBN & 0x1f, \ _field 287 drivers/net/ethernet/sfc/mcdi.h (MC_CMD_ ## _type ## _ ## _field ## _LBN & 0x1f) + \ _field 288 drivers/net/ethernet/sfc/mcdi.h MC_CMD_ ## _type ## _ ## _field ## _WIDTH - 1) _field 290 drivers/net/ethernet/sfc/mcdi.h #define _MCDI_ARRAY_PTR(_buf, _field, _index, _align) \ _field 291 drivers/net/ethernet/sfc/mcdi.h (_MCDI_PTR(_buf, _MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, _align))\ _field 292 drivers/net/ethernet/sfc/mcdi.h + (_index) * _MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _LEN, _align)) _field 295 drivers/net/ethernet/sfc/mcdi.h #define MCDI_ARRAY_STRUCT_PTR(_buf, _field, _index) \ _field 296 drivers/net/ethernet/sfc/mcdi.h ((efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4)) _field 297 drivers/net/ethernet/sfc/mcdi.h #define MCDI_VAR_ARRAY_LEN(_len, _field) \ _field 298 drivers/net/ethernet/sfc/mcdi.h min_t(size_t, MC_CMD_ ## _field ## _MAXNUM, \ _field 299 drivers/net/ethernet/sfc/mcdi.h ((_len) - MC_CMD_ ## _field ## _OFST) / MC_CMD_ ## _field ## _LEN) _field 300 drivers/net/ethernet/sfc/mcdi.h #define MCDI_ARRAY_WORD(_buf, _field, _index) \ _field 301 drivers/net/ethernet/sfc/mcdi.h (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \ _field 303 drivers/net/ethernet/sfc/mcdi.h _MCDI_ARRAY_PTR(_buf, _field, _index, 2))) _field 304 drivers/net/ethernet/sfc/mcdi.h #define _MCDI_ARRAY_DWORD(_buf, _field, _index) \ _field 305 drivers/net/ethernet/sfc/mcdi.h (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \ _field 306 drivers/net/ethernet/sfc/mcdi.h (efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4)) _field 307 drivers/net/ethernet/sfc/mcdi.h #define MCDI_SET_ARRAY_DWORD(_buf, _field, _index, _value) \ _field 308 drivers/net/ethernet/sfc/mcdi.h EFX_SET_DWORD_FIELD(*_MCDI_ARRAY_DWORD(_buf, _field, _index), \ _field 310 drivers/net/ethernet/sfc/mcdi.h #define MCDI_ARRAY_DWORD(_buf, _field, _index) \ _field 311 drivers/net/ethernet/sfc/mcdi.h EFX_DWORD_FIELD(*_MCDI_ARRAY_DWORD(_buf, _field, _index), EFX_DWORD_0) _field 312 drivers/net/ethernet/sfc/mcdi.h #define _MCDI_ARRAY_QWORD(_buf, _field, _index) \ _field 313 drivers/net/ethernet/sfc/mcdi.h (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \ _field 314 drivers/net/ethernet/sfc/mcdi.h (efx_dword_t *)_MCDI_ARRAY_PTR(_buf, _field, _index, 4)) _field 315 drivers/net/ethernet/sfc/mcdi.h #define MCDI_SET_ARRAY_QWORD(_buf, _field, _index, _value) \ _field 317 drivers/net/ethernet/sfc/mcdi.h EFX_SET_DWORD_FIELD(_MCDI_ARRAY_QWORD(_buf, _field, _index)[0],\ _field 319 drivers/net/ethernet/sfc/mcdi.h EFX_SET_DWORD_FIELD(_MCDI_ARRAY_QWORD(_buf, _field, _index)[1],\ _field 326 drivers/net/ethernet/sfc/mcdi.h #define MCDI_EVENT_FIELD(_ev, _field) \ _field 327 drivers/net/ethernet/sfc/mcdi.h EFX_QWORD_FIELD(_ev, MCDI_EVENT_ ## _field) _field 170 drivers/net/ethernet/sfc/siena_sriov.c #define EFX_FIELD_MASK(_field) \ _field 171 drivers/net/ethernet/sfc/siena_sriov.c ((1 << _field ## _WIDTH) - 1) _field 541 drivers/net/wireless/ath/ath10k/debugfs_sta.c #define PRINT_TID_STATS(_field, _tabs) \ _field 548 drivers/net/wireless/ath/ath10k/debugfs_sta.c j, stats[j]._field); \ _field 726 drivers/net/wireless/ath/ath5k/debug.c #define CC_PRINT(_struct, _field) \ _field 727 drivers/net/wireless/ath/ath5k/debug.c _struct._field, \ _field 729 drivers/net/wireless/ath/ath5k/debug.c _struct._field * 100 / _struct.cycles : 0 _field 2151 drivers/net/wireless/ath/ath9k/ar9003_phy.c #define PCT(_field) (common->cc_survey._field * 100 / common->cc_survey.cycles) _field 193 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h #define BT_MBOX_MSG(_notif, _num, _field) \ _field 194 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\ _field 195 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h >> BT_MBOX##_num##_##_field##_POS) _field 197 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h #define BT_MBOX_PRINT(_num, _field, _end) \ _field 200 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h #_field, \ _field 201 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h BT_MBOX_MSG(notif, _num, _field), \ _field 560 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_get_field(_dev, _reg, _field) \ _field 561 drivers/net/wireless/mediatek/mt76/mt76.h FIELD_GET(_field, mt76_rr(dev, _reg)) _field 563 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_rmw_field(_dev, _reg, _field, _val) \ _field 564 drivers/net/wireless/mediatek/mt76/mt76.h mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val)) _field 566 drivers/net/wireless/mediatek/mt76/mt76.h #define __mt76_rmw_field(_dev, _reg, _field, _val) \ _field 567 drivers/net/wireless/mediatek/mt76/mt76.h __mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val)) _field 297 drivers/net/wireless/mediatek/mt7601u/mt7601u.h #define mt76_rmw_field(_dev, _reg, _field, _val) \ _field 298 drivers/net/wireless/mediatek/mt7601u/mt7601u.h mt76_rmw(_dev, _reg, _field, FIELD_PREP(_field, _val)) _field 3439 drivers/scsi/qla2xxx/qla_init.c #define PRINT_FIELD(_field, _flag, _str) { \ _field 3440 drivers/scsi/qla2xxx/qla_init.c if (a0->_field & _flag) {\ _field 179 drivers/ssb/pci.c #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ _field 181 drivers/ssb/pci.c SPEX(_field[0], _offset + 0, _mask, _shift); \ _field 182 drivers/ssb/pci.c SPEX(_field[1], _offset + 2, _mask, _shift); \ _field 183 drivers/ssb/pci.c SPEX(_field[2], _offset + 4, _mask, _shift); \ _field 184 drivers/ssb/pci.c SPEX(_field[3], _offset + 6, _mask, _shift); \ _field 185 drivers/ssb/pci.c SPEX(_field[4], _offset + 8, _mask, _shift); \ _field 186 drivers/ssb/pci.c SPEX(_field[5], _offset + 10, _mask, _shift); \ _field 187 drivers/ssb/pci.c SPEX(_field[6], _offset + 12, _mask, _shift); \ _field 188 drivers/ssb/pci.c SPEX(_field[7], _offset + 14, _mask, _shift); \ _field 319 fs/ceph/xattr.c #define XATTR_LAYOUT_FIELD(_type, _name, _field) \ _field 321 fs/ceph/xattr.c .name = CEPH_XATTR_NAME2(_type, _name, _field), \ _field 322 fs/ceph/xattr.c .name_size = sizeof (CEPH_XATTR_NAME2(_type, _name, _field)), \ _field 323 fs/ceph/xattr.c .getxattr_cb = ceph_vxattrcb_ ## _name ## _ ## _field, \ _field 941 include/linux/ide.h #define ide_devset_rw_field(_name, _field) \ _field 942 include/linux/ide.h ide_devset_get(_name, _field); \ _field 943 include/linux/ide.h ide_devset_set(_name, _field); \ _field 946 include/linux/ide.h #define ide_devset_rw_flag(_name, _field) \ _field 947 include/linux/ide.h ide_devset_get_flag(_name, _field); \ _field 948 include/linux/ide.h ide_devset_set_flag(_name, _field); \ _field 391 include/uapi/linux/genwqe/genwqe_card.h #define ATS_SET_FLAGS(_struct, _field, _flags) \ _field 392 include/uapi/linux/genwqe/genwqe_card.h (((_flags) & 0xf) << (44 - (4 * (offsetof(_struct, _field) / 8)))) _field 137 mm/vmscan.c #define prefetch_prev_lru_page(_page, _base, _field) \ _field 143 mm/vmscan.c prefetch(&prev->_field); \ _field 147 mm/vmscan.c #define prefetch_prev_lru_page(_page, _base, _field) do { } while (0) _field 151 mm/vmscan.c #define prefetchw_prev_lru_page(_page, _base, _field) \ _field 157 mm/vmscan.c prefetchw(&prev->_field); \ _field 161 mm/vmscan.c #define prefetchw_prev_lru_page(_page, _base, _field) do { } while (0) _field 1177 tools/perf/ui/browsers/hists.c #define __HPP_COLOR_PERCENT_FN(_type, _field) \ _field 1178 tools/perf/ui/browsers/hists.c static u64 __hpp_get_##_field(struct hist_entry *he) \ _field 1180 tools/perf/ui/browsers/hists.c return he->stat._field; \ _field 1188 tools/perf/ui/browsers/hists.c return hpp__fmt(fmt, hpp, he, __hpp_get_##_field, " %*.2f%%", \ _field 1192 tools/perf/ui/browsers/hists.c #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ _field 1193 tools/perf/ui/browsers/hists.c static u64 __hpp_get_acc_##_field(struct hist_entry *he) \ _field 1195 tools/perf/ui/browsers/hists.c return he->stat_acc->_field; \ _field 1212 tools/perf/ui/browsers/hists.c return hpp__fmt(fmt, hpp, he, __hpp_get_acc_##_field, \ _field 43 tools/perf/ui/gtk/hists.c #define __HPP_COLOR_PERCENT_FN(_type, _field) \ _field 44 tools/perf/ui/gtk/hists.c static u64 he_get_##_field(struct hist_entry *he) \ _field 46 tools/perf/ui/gtk/hists.c return he->stat._field; \ _field 53 tools/perf/ui/gtk/hists.c return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ _field 57 tools/perf/ui/gtk/hists.c #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ _field 58 tools/perf/ui/gtk/hists.c static u64 he_get_acc_##_field(struct hist_entry *he) \ _field 60 tools/perf/ui/gtk/hists.c return he->stat_acc->_field; \ _field 67 tools/perf/ui/gtk/hists.c return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ _field 277 tools/perf/ui/hist.c #define __HPP_COLOR_PERCENT_FN(_type, _field) \ _field 278 tools/perf/ui/hist.c static u64 he_get_##_field(struct hist_entry *he) \ _field 280 tools/perf/ui/hist.c return he->stat._field; \ _field 286 tools/perf/ui/hist.c return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ _field 290 tools/perf/ui/hist.c #define __HPP_ENTRY_PERCENT_FN(_type, _field) \ _field 294 tools/perf/ui/hist.c return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ _field 298 tools/perf/ui/hist.c #define __HPP_SORT_FN(_type, _field) \ _field 302 tools/perf/ui/hist.c return __hpp__sort(a, b, he_get_##_field); \ _field 305 tools/perf/ui/hist.c #define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ _field 306 tools/perf/ui/hist.c static u64 he_get_acc_##_field(struct hist_entry *he) \ _field 308 tools/perf/ui/hist.c return he->stat_acc->_field; \ _field 314 tools/perf/ui/hist.c return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ _field 318 tools/perf/ui/hist.c #define __HPP_ENTRY_ACC_PERCENT_FN(_type, _field) \ _field 322 tools/perf/ui/hist.c return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ _field 326 tools/perf/ui/hist.c #define __HPP_SORT_ACC_FN(_type, _field) \ _field 330 tools/perf/ui/hist.c return __hpp__sort_acc(a, b, he_get_acc_##_field); \ _field 333 tools/perf/ui/hist.c #define __HPP_ENTRY_RAW_FN(_type, _field) \ _field 334 tools/perf/ui/hist.c static u64 he_get_raw_##_field(struct hist_entry *he) \ _field 336 tools/perf/ui/hist.c return he->stat._field; \ _field 342 tools/perf/ui/hist.c return hpp__fmt(fmt, hpp, he, he_get_raw_##_field, " %*"PRIu64, \ _field 346 tools/perf/ui/hist.c #define __HPP_SORT_RAW_FN(_type, _field) \ _field 350 tools/perf/ui/hist.c return __hpp__sort(a, b, he_get_raw_##_field); \ _field 354 tools/perf/ui/hist.c #define HPP_PERCENT_FNS(_type, _field) \ _field 355 tools/perf/ui/hist.c __HPP_COLOR_PERCENT_FN(_type, _field) \ _field 356 tools/perf/ui/hist.c __HPP_ENTRY_PERCENT_FN(_type, _field) \ _field 357 tools/perf/ui/hist.c __HPP_SORT_FN(_type, _field) _field 359 tools/perf/ui/hist.c #define HPP_PERCENT_ACC_FNS(_type, _field) \ _field 360 tools/perf/ui/hist.c __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ _field 361 tools/perf/ui/hist.c __HPP_ENTRY_ACC_PERCENT_FN(_type, _field) \ _field 362 tools/perf/ui/hist.c __HPP_SORT_ACC_FN(_type, _field) _field 364 tools/perf/ui/hist.c #define HPP_RAW_FNS(_type, _field) \ _field 365 tools/perf/ui/hist.c __HPP_ENTRY_RAW_FN(_type, _field) \ _field 366 tools/perf/ui/hist.c __HPP_SORT_RAW_FN(_type, _field) _field 857 tools/perf/util/data-convert-bt.c #define __NON_SAMPLE_SET_FIELD(_name, _type, _field) \ _field 859 tools/perf/util/data-convert-bt.c ret = value_set_##_type(cw, event, #_field, _event->_name._field);\