/linux/drivers/staging/rtl8723bs/include/ |
A D | rtw_ht.h | 81 #define SET_HT_CTRL_CSI_STEERING(_pEleStart, _val) SET_BITS_TO_LE_1BYTE((_pEleStart)+2, 6, 2, _… argument 82 #define SET_HT_CTRL_NDP_ANNOUNCEMENT(_pEleStart, _val) SET_BITS_TO_LE_1BYTE((_pEleStart)+3, 0, 1,… argument 86 …ne SET_EXT_CAPABILITY_ELE_BSS_COEXIST(_pEleStart, _val) SET_BITS_TO_LE_1BYTE((_pEleStart), 0, 1,… argument 96 …_HT_CAP_TXBF_RECEIVE_NDP_CAP(_pEleStart, _val) SET_BITS_TO_LE_4BYTE(((u8 *)(_pEleStart))+21, 3… argument 97 …HT_CAP_TXBF_TRANSMIT_NDP_CAP(_pEleStart, _val) SET_BITS_TO_LE_4BYTE(((u8 *)(_pEleStart))+21, 4,… argument 98 …BF_EXPLICIT_COMP_STEERING_CAP(_pEleStart, _val) SET_BITS_TO_LE_4BYTE(((u8 *)(_pEleStart))+21, 10,… argument 99 …BF_EXPLICIT_COMP_FEEDBACK_CAP(_pEleStart, _val) SET_BITS_TO_LE_4BYTE(((u8 *)(_pEleStart))+21, 15,… argument 100 …BF_COMP_STEERING_NUM_ANTENNAS(_pEleStart, _val) SET_BITS_TO_LE_4BYTE(((u8 *)(_pEleStart))+21, 23, … argument
|
A 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/drivers/net/wireless/intel/iwlwifi/ |
A D | iwl-csr.h | 290 #define CSR_HW_REV_DASH(_val) (((_val) & 0x0000003) >> 0) argument 291 #define CSR_HW_REV_STEP(_val) (((_val) & 0x000000C) >> 2) argument 292 #define CSR_HW_REV_TYPE(_val) (((_val) & 0x000FFF0) >> 4) argument 295 #define CSR_HW_RFID_FLAVOR(_val) (((_val) & 0x000000F) >> 0) argument 296 #define CSR_HW_RFID_DASH(_val) (((_val) & 0x00000F0) >> 4) argument 297 #define CSR_HW_RFID_STEP(_val) (((_val) & 0x0000F00) >> 8) argument 298 #define CSR_HW_RFID_TYPE(_val) (((_val) & 0x0FFF000) >> 12) argument 299 #define CSR_HW_RFID_IS_CDB(_val) (((_val) & 0x10000000) >> 28) argument 300 #define CSR_HW_RFID_IS_JACKET(_val) (((_val) & 0x20000000) >> 29) argument 348 #define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF) argument
|
/linux/drivers/staging/r8188eu/include/ |
A D | basic_types.h | 32 #define EF1BYTE(_val) \ argument 33 ((u8)(_val)) 34 #define EF2BYTE(_val) \ argument 35 (le16_to_cpu(_val)) 36 #define EF4BYTE(_val) \ argument 37 (le32_to_cpu(_val)) 49 #define WRITEEF1BYTE(_ptr, _val) \ argument 51 (*((u8 *)(_ptr))) = EF1BYTE(_val) \ 54 #define WRITEEF2BYTE(_ptr, _val) \ argument 56 (*((u16 *)(_ptr))) = EF2BYTE(_val) \ [all …]
|
/linux/drivers/net/ethernet/amd/xgbe/ |
A D | xgbe-common.h | 1423 (_var) |= cpu_to_le32((((_val) & \ 1443 _prefix##_##_field##_WIDTH, (_val)) 1453 _prefix##_##_field##_WIDTH, (_val)) 1478 _reg##_##_field##_WIDTH, (_val)); \ 1504 _reg##_##_field##_WIDTH, (_val)); \ 1528 _reg##_##_field##_WIDTH, (_val)); \ 1543 _prefix##_##_field##_WIDTH, (_val)) 1568 _prefix##_##_field##_WIDTH, (_val)) 1644 _prefix##_##_field##_WIDTH, (_val)) 1677 _prefix##_##_field##_WIDTH, (_val)) [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
A 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/include/linux/ |
A D | bitfield.h | 44 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument 49 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ 50 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ 78 #define FIELD_FIT(_mask, _val) \ argument 81 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \ 92 #define FIELD_PREP(_mask, _val) \ argument 94 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ 95 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \
|
/linux/drivers/pinctrl/mvebu/ |
A 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/arch/mips/include/asm/ |
A D | mips-gic.h | 131 uint64_t _val; \ 134 _val = __raw_readq(addr); \ 135 _val &= ~BIT_ULL(intr % 64); \ 136 _val |= (uint64_t)val << (intr % 64); \ 137 __raw_writeq(_val, addr); \ 139 uint32_t _val; \ 142 _val = __raw_readl(addr); \ 143 _val &= ~BIT(intr % 32); \ 144 _val |= val << (intr % 32); \ 145 __raw_writel(_val, addr); \
|
/linux/arch/openrisc/include/asm/ |
A 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/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
A 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/drivers/pinctrl/sunxi/ |
A D | pinctrl-sunxi.h | 190 #define SUNXI_FUNCTION(_val, _name) \ argument 193 .muxval = _val, \ 196 #define SUNXI_FUNCTION_VARIANT(_val, _name, _variant) \ argument 199 .muxval = _val, \ 203 #define SUNXI_FUNCTION_IRQ(_val, _irq) \ argument 206 .muxval = _val, \ 210 #define SUNXI_FUNCTION_IRQ_BANK(_val, _bank, _irq) \ argument 213 .muxval = _val, \
|
/linux/drivers/net/wireless/ath/ath11k/ |
A D | dp.h | 1188 #define HTT_USR_RATE_PREAMBLE(_val) \ argument 1190 #define HTT_USR_RATE_BW(_val) \ argument 1191 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_BW_M, _val) 1192 #define HTT_USR_RATE_NSS(_val) \ argument 1194 #define HTT_USR_RATE_MCS(_val) \ argument 1196 #define HTT_USR_RATE_GI(_val) \ argument 1197 FIELD_GET(HTT_PPDU_STATS_USER_RATE_FLAGS_GI_M, _val) 1198 #define HTT_USR_RATE_DCM(_val) \ argument 1269 #define HTT_USR_CMPLTN_IS_AMPDU(_val) \ argument 1271 #define HTT_USR_CMPLTN_LONG_RETRY(_val) \ argument [all …]
|
/linux/drivers/media/tuners/ |
A 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/arch/x86/include/asm/ |
A D | rmwcc.h | 53 #define GEN_BINARY_RMWcc_6(op, var, cc, vcon, _val, arg0) \ argument 55 __CLOBBERS_MEM(), [val] vcon (_val)) 66 #define GEN_BINARY_SUFFIXED_RMWcc(op, suffix, var, cc, vcon, _val, clobbers...)\ argument 68 __CLOBBERS_MEM(clobbers), [val] vcon (_val))
|
/linux/drivers/gpu/drm/i915/gvt/ |
A D | reg.h | 97 #define IS_MASKED_BITS_ENABLED(_val, _b) \ argument 98 (((_val) & _MASKED_BIT_ENABLE(_b)) == _MASKED_BIT_ENABLE(_b)) 99 #define IS_MASKED_BITS_DISABLED(_val, _b) \ argument 100 ((_val) & _MASKED_BIT_DISABLE(_b))
|
/linux/include/rdma/ |
A D | uverbs_ioctl.h | 948 s64 _val; \ 950 _uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \ 953 (*(_to)) = _val; \ 959 u64 _val; \ 961 _uverbs_get_const_unsigned(&_val, _attrs_bundle, _idx, \ 963 (*(_to)) = _val; \ 969 s64 _val; \ 972 _uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \ 975 (*(_to)) = _val; \ 981 u64 _val; \ [all …]
|
A D | rdma_netlink.h | 32 #define MODULE_ALIAS_RDMA_NETLINK(_index, _val) \ argument 35 BUILD_BUG_ON(_index != _val); \ 37 MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))
|
/linux/drivers/net/ethernet/synopsys/ |
A D | dwc-xlgmac.h | 117 typeof(val) _val = (val); \ 118 _val = (_val << _pos) & GENMASK(_pos + _len - 1, _pos); \ 119 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \ 126 typeof(val) _val = (val); \ 127 _val = (_val << _pos) & GENMASK(_pos + _len - 1, _pos); \ 128 _var = (_var & ~GENMASK(_pos + _len - 1, _pos)) | _val; \
|
/linux/arch/mips/include/asm/sn/ |
A D | agent.h | 33 #define SET_HUB_NIC(_my_cpuid, _val) \ argument 34 (HUB_S(HUB_NIC_ADDR(_my_cpuid), (_val)))
|
/linux/arch/mips/ath25/ |
A D | devices.h | 7 #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) argument
|
/linux/include/asm-generic/ |
A D | barrier.h | 237 __unqual_scalar_typeof(*ptr) _val; \ 238 _val = smp_cond_load_relaxed(ptr, cond_expr); \ 240 (typeof(*ptr))_val; \
|
/linux/arch/arm64/include/asm/ |
A D | arch_timer.h | 91 u64 _val; \ 94 _val = erratum_handler(read_ ## reg)(); \ 97 _val; \
|
/linux/drivers/power/supply/ |
A D | max77650-charger.c | 64 #define MAX77650_CHARGER_VCHGIN_MIN_SHIFT(_val) ((_val) << 5) argument 67 #define MAX77650_CHARGER_ICHGIN_LIM_SHIFT(_val) ((_val) << 2) argument
|
/linux/drivers/pinctrl/mediatek/ |
A D | pinctrl-paris.h | 37 #define MTK_FUNCTION(_val, _name) \ argument 39 .muxval = _val, \
|