/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-csr.h | 296 #define CSR_HW_REV_STEP_DASH(_val) ((_val) & CSR_HW_IF_CONFIG_REG_MSK_MAC_STEP_DASH) argument 297 #define CSR_HW_REV_TYPE(_val) (((_val) & 0x000FFF0) >> 4) argument 300 #define CSR_HW_RFID_FLAVOR(_val) (((_val) & 0x000000F) >> 0) argument 301 #define CSR_HW_RFID_DASH(_val) (((_val) & 0x00000F0) >> 4) argument 302 #define CSR_HW_RFID_STEP(_val) (((_val) & 0x0000F00) >> 8) argument 303 #define CSR_HW_RFID_TYPE(_val) (((_val) & 0x0FFF000) >> 12) argument 304 #define CSR_HW_RFID_IS_CDB(_val) (((_val) & 0x10000000) >> 28) argument 305 #define CSR_HW_RFID_IS_JACKET(_val) (((_val) & 0x20000000) >> 29) argument 359 #define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF) argument
|
D | iwl-prph.h | 355 #define WFPM_OTP_CFG1_IS_JACKET(_val) (((_val) & 0x00000020) >> WFPM_OTP_BZ_BNJ_JACKET_BIT) argument 356 #define WFPM_OTP_CFG1_IS_CDB(_val) (((_val) & 0x00000010) >> WFPM_OTP_BZ_BNJ_CDB_BIT) argument 372 #define CNVI_AUX_MISC_CHIP_MAC_STEP(_val) (((_val) & 0xf000000) >> 24) argument 373 #define CNVI_AUX_MISC_CHIP_PROD_TYPE(_val) ((_val) & 0xfff) argument
|
/linux-6.12.1/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-common.h | 1451 #define SET_BITS(_var, _index, _width, _val) \ argument 1454 (_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \ 1460 #define SET_BITS_LE(_var, _index, _width, _val) \ argument 1463 (_var) |= cpu_to_le32((((_val) & \ 1480 #define XGMAC_SET_BITS(_var, _prefix, _field, _val) \ argument 1483 _prefix##_##_field##_WIDTH, (_val)) 1490 #define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \ argument 1493 _prefix##_##_field##_WIDTH, (_val)) 1510 #define XGMAC_IOWRITE(_pdata, _reg, _val) \ argument 1511 iowrite32((_val), (_pdata)->xgmac_regs + _reg) [all …]
|
/linux-6.12.1/drivers/staging/rtl8723bs/include/ |
D | basic_types.h | 39 #define EF1BYTE(_val) \ argument 40 ((u8)(_val)) 41 #define EF2BYTE(_val) \ argument 42 (le16_to_cpu(_val)) 43 #define EF4BYTE(_val) \ argument 44 (le32_to_cpu(_val)) 56 #define WRITEEF1BYTE(_ptr, _val) \ argument 58 (*((u8 *)(_ptr))) = EF1BYTE(_val); \ 61 #define WRITEEF2BYTE(_ptr, _val) \ argument 63 (*((u16 *)(_ptr))) = EF2BYTE(_val); \ [all …]
|
/linux-6.12.1/drivers/clk/sophgo/ |
D | clk-cv18xx-pll.h | 61 #define PLL_SET_PRE_DIV_SEL(_reg, _val) \ argument 62 _CV1800_SET_FIELD((_reg), (_val), _PLL_PRE_DIV_SEL_FIELD) 63 #define PLL_SET_POST_DIV_SEL(_reg, _val) \ argument 64 _CV1800_SET_FIELD((_reg), (_val), _PLL_POST_DIV_SEL_FIELD) 65 #define PLL_SET_SEL_MODE(_reg, _val) \ argument 66 _CV1800_SET_FIELD((_reg), (_val), _PLL_SEL_MODE_FIELD) 67 #define PLL_SET_DIV_SEL(_reg, _val) \ argument 68 _CV1800_SET_FIELD((_reg), (_val), _PLL_DIV_SEL_FIELD) 69 #define PLL_SET_ICTRL(_reg, _val) \ argument 70 _CV1800_SET_FIELD((_reg), (_val), _PLL_ICTRL_FIELD)
|
D | clk-cv18xx-common.h | 62 #define cv1800_clk_regfield_get(_val, _reg) \ argument 63 (((_val) >> (_reg)->shift) & GENMASK((_reg)->width - 1, 0)) 64 #define cv1800_clk_regfield_set(_val, _new, _reg) \ argument 65 (((_val) & ~cv1800_clk_regfield_genmask((_reg))) | \ 68 #define _CV1800_SET_FIELD(_reg, _val, _field) \ argument 69 (((_reg) & ~(_field)) | FIELD_PREP((_field), (_val)))
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/ |
D | base.h | 49 #define SET_80211_PS_POLL_AID(_hdr, _val) \ argument 50 (*(u16 *)((u8 *)(_hdr) + 2) = _val) 51 #define SET_80211_PS_POLL_BSSID(_hdr, _val) \ argument 52 ether_addr_copy(((u8 *)(_hdr)) + 4, (u8 *)(_val)) 53 #define SET_80211_PS_POLL_TA(_hdr, _val) \ argument 54 ether_addr_copy(((u8 *)(_hdr))+10, (u8 *)(_val)) 56 #define SET_80211_HDR_ADDRESS1(_hdr, _val) \ argument 57 CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8 *)(_val)) 58 #define SET_80211_HDR_ADDRESS2(_hdr, _val) \ argument 59 CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8 *)(_val)) [all …]
|
/linux-6.12.1/include/linux/ |
D | bitfield.h | 63 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument 68 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ 70 (0 + (_val)) : 0, \ 99 #define FIELD_FIT(_mask, _val) \ argument 102 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \ 113 #define FIELD_PREP(_mask, _val) \ argument 115 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ 116 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \ 133 #define FIELD_PREP_CONST(_mask, _val) \ argument 138 BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \ [all …]
|
/linux-6.12.1/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.h | 157 #define _MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ argument 159 .val = _val, \ 167 #define MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ argument 168 _MPP_VAR_FUNCTION(_val, _name, _subname, _mask) 170 #define MPP_VAR_FUNCTION(_val, _name, _subname, _mask) \ argument 171 _MPP_VAR_FUNCTION(_val, _name, NULL, _mask) 174 #define MPP_FUNCTION(_val, _name, _subname) \ argument 175 MPP_VAR_FUNCTION(_val, _name, _subname, (u8)-1)
|
/linux-6.12.1/tools/include/linux/ |
D | bitfield.h | 60 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument 65 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ 66 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ 95 #define FIELD_FIT(_mask, _val) \ argument 98 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \ 109 #define FIELD_PREP(_mask, _val) \ argument 111 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ 112 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \
|
/linux-6.12.1/arch/openrisc/include/asm/ |
D | spr.h | 16 #define mtspr(_spr, _val) __asm__ __volatile__ ( \ argument 18 : : "K" (_spr), "r" (_val)) 19 #define mtspr_off(_spr, _off, _val) __asm__ __volatile__ ( \ argument 21 : : "r" (_off), "r" (_val), "K" (_spr))
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | errata_list.h | 67 #define ALT_SVPBMT(_val, prot) \ argument 73 : "=r"(_val) \ 85 #define ALT_THEAD_PMA(_val) \ argument 97 : "+r"(_val) \ 103 #define ALT_THEAD_PMA(_val) argument
|
/linux-6.12.1/arch/mips/include/asm/ |
D | mips-gic.h | 141 uint64_t _val; \ 144 _val = __raw_readq(addr); \ 145 _val &= ~BIT_ULL(intr % 64); \ 146 _val |= (uint64_t)val << (intr % 64); \ 147 __raw_writeq(_val, addr); \ 149 uint32_t _val; \ 152 _val = __raw_readl(addr); \ 153 _val &= ~BIT(intr % 32); \ 154 _val |= val << (intr % 32); \ 155 __raw_writel(_val, addr); \
|
/linux-6.12.1/drivers/pinctrl/sunxi/ |
D | pinctrl-sunxi.h | 198 #define SUNXI_FUNCTION(_val, _name) \ argument 201 .muxval = _val, \ 204 #define SUNXI_FUNCTION_VARIANT(_val, _name, _variant) \ argument 207 .muxval = _val, \ 211 #define SUNXI_FUNCTION_IRQ(_val, _irq) \ argument 214 .muxval = _val, \ 218 #define SUNXI_FUNCTION_IRQ_BANK(_val, _bank, _irq) \ argument 221 .muxval = _val, \
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | fw.h | 324 #define FW_CMD_IO_UPDATE(rtlpriv, _val) \ argument 325 rtlpriv->rtlhal.fwcmd_iomap = _val; 327 #define FW_CMD_IO_SET(rtlpriv, _val) \ argument 329 rtl_write_word(rtlpriv, LBUS_MON_ADDR, (u16)_val); \ 330 FW_CMD_IO_UPDATE(rtlpriv, _val); \ 333 #define FW_CMD_PARA_SET(rtlpriv, _val) \ argument 335 rtl_write_dword(rtlpriv, LBUS_ADDR_MASK, _val); \ 336 rtlpriv->rtlhal.fwcmd_ioparam = _val; \
|
/linux-6.12.1/arch/x86/include/asm/ |
D | rmwcc.h | 48 #define GEN_BINARY_RMWcc_6(op, var, cc, vcon, _val, arg0) \ argument 50 __CLOBBERS_MEM(), [val] vcon (_val)) 61 #define GEN_BINARY_SUFFIXED_RMWcc(op, suffix, var, cc, vcon, _val, clobbers...)\ argument 63 __CLOBBERS_MEM(clobbers), [val] vcon (_val))
|
/linux-6.12.1/drivers/media/tuners/ |
D | mc44s803_priv.h | 179 #define MC44S803_REG_SM(_val, _reg) \ argument 180 (((_val) << _reg##_S) & (_reg)) 183 #define MC44S803_REG_MS(_val, _reg) \ argument 184 (((_val) & (_reg)) >> _reg##_S)
|
/linux-6.12.1/drivers/dma/ |
D | fsl-edma-common.h | 268 #define edma_write_tcdreg_c(chan, _tcd, _val, __name) \ argument 270 __iomem __le64 : edma_writeq(chan->edma, (u64 __force)(_val), &_tcd->__name), \ 271 __iomem __le32 : edma_writel(chan->edma, (u32 __force)(_val), &_tcd->__name), \ 272 __iomem __le16 : edma_writew(chan->edma, (u16 __force)(_val), &_tcd->__name), \ 273 __iomem u8 : edma_writeb(chan->edma, _val, &_tcd->__name) \ 326 #define fsl_edma_set_tcd_to_le_c(_tcd, _val, _field) \ argument 328 __le64 : (_tcd)->_field = cpu_to_le64(_val), \ 329 __le32 : (_tcd)->_field = cpu_to_le32(_val), \ 330 __le16 : (_tcd)->_field = cpu_to_le16(_val) \ 333 #define fsl_edma_set_tcd_to_le(_chan, _tcd, _val, _field) \ argument [all …]
|
/linux-6.12.1/drivers/iio/common/inv_sensors/ |
D | inv_sensors_timestamp.c | 14 #define INV_SENSORS_TIMESTAMP_JITTER(_val, _jitter) \ argument 15 (div_s64((_val) * (_jitter), 1000)) 16 #define INV_SENSORS_TIMESTAMP_MIN(_val, _jitter) \ argument 17 (((_val) * (1000 - (_jitter))) / 1000) 18 #define INV_SENSORS_TIMESTAMP_MAX(_val, _jitter) \ argument 19 (((_val) * (1000 + (_jitter))) / 1000)
|
/linux-6.12.1/drivers/net/wireless/ath/ath11k/ |
D | dp.h | 1252 #define HTT_USR_RATE_PREAMBLE(_val) \ argument 1253 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_PREAMBLE_M, _val) 1254 #define HTT_USR_RATE_BW(_val) \ argument 1255 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_BW_M, _val) 1256 #define HTT_USR_RATE_NSS(_val) \ argument 1257 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_NSS_M, _val) 1258 #define HTT_USR_RATE_MCS(_val) \ argument 1259 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_MCS_M, _val) 1260 #define HTT_USR_RATE_GI(_val) \ argument 1261 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_GI_M, _val) [all …]
|
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_est.h | 40 typeof(val) _val = (val); \ 41 (_val > 4 ? GENMASK(18, 16) : \ 42 _val > 2 ? GENMASK(17, 16) : \
|
/linux-6.12.1/drivers/gpu/drm/i915/gvt/ |
D | reg.h | 93 #define IS_MASKED_BITS_ENABLED(_val, _b) \ argument 94 (((_val) & _MASKED_BIT_ENABLE(_b)) == _MASKED_BIT_ENABLE(_b)) 95 #define IS_MASKED_BITS_DISABLED(_val, _b) \ argument 96 ((_val) & _MASKED_BIT_DISABLE(_b))
|
/linux-6.12.1/drivers/net/wireless/ath/ath12k/ |
D | dp.h | 1442 #define HTT_USR_RATE_PREAMBLE(_val) \ argument 1443 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_PREAMBLE_M) 1444 #define HTT_USR_RATE_BW(_val) \ argument 1445 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_BW_M) 1446 #define HTT_USR_RATE_NSS(_val) \ argument 1447 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_NSS_M) 1448 #define HTT_USR_RATE_MCS(_val) \ argument 1449 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_MCS_M) 1450 #define HTT_USR_RATE_GI(_val) \ argument 1451 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_GI_M) [all …]
|
/linux-6.12.1/include/rdma/ |
D | rdma_netlink.h | 34 #define MODULE_ALIAS_RDMA_NETLINK(_index, _val) \ argument 37 BUILD_BUG_ON(_index != _val); \ 39 MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))
|
/linux-6.12.1/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac.h | 118 typeof(val) _val = (val); \ 119 _val = (_val << _pos) & GENMASK(_pos + _len - 1, _pos); \ 120 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \ 127 typeof(val) _val = (val); \ 128 _val = (_val << _pos) & GENMASK(_pos + _len - 1, _pos); \ 129 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \
|