Home
last modified time | relevance | path

Searched refs:_val (Results 1 – 25 of 113) sorted by relevance

12345

/Linux-v6.6/drivers/staging/rtl8723bs/include/
Drtw_ht.h81 #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
Dbasic_types.h39 #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-v6.6/drivers/net/wireless/intel/iwlwifi/
Diwl-csr.h296 #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
358 #define CSR_HW_RF_STEP(_val) (((_val) >> 8) & 0xF) argument
/Linux-v6.6/drivers/net/ethernet/amd/xgbe/
Dxgbe-common.h1451 #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-v6.6/drivers/net/wireless/realtek/rtlwifi/
Dbase.h49 #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-v6.6/include/linux/
Dbitfield.h63 #define __BF_FIELD_CHECK(_mask, _reg, _val, _pfx) \ argument
68 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
69 ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
98 #define FIELD_FIT(_mask, _val) \ argument
101 !((((typeof(_mask))_val) << __bf_shf(_mask)) & ~(_mask)); \
112 #define FIELD_PREP(_mask, _val) \ argument
114 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \
115 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); \
132 #define FIELD_PREP_CONST(_mask, _val) \ argument
137 BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
[all …]
/Linux-v6.6/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.h157 #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-v6.6/tools/include/linux/
Dbitfield.h60 #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-v6.6/arch/mips/include/asm/
Dmips-gic.h131 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-v6.6/arch/openrisc/include/asm/
Dspr.h16 #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-v6.6/arch/riscv/include/asm/
Derrata_list.h58 #define ALT_SVPBMT(_val, prot) \ argument
64 : "=r"(_val) \
76 #define ALT_THEAD_PMA(_val) \ argument
88 : "+r"(_val) \
94 #define ALT_THEAD_PMA(_val) argument
/Linux-v6.6/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.h198 #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-v6.6/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dfw.h324 #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-v6.6/arch/x86/include/asm/
Drmwcc.h48 #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-v6.6/drivers/iio/common/inv_sensors/
Dinv_sensors_timestamp.c14 #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-v6.6/drivers/media/tuners/
Dmc44s803_priv.h179 #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-v6.6/drivers/net/wireless/ath/ath11k/
Ddp.h1252 #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-v6.6/drivers/gpu/drm/i915/gvt/
Dreg.h96 #define IS_MASKED_BITS_ENABLED(_val, _b) \ argument
97 (((_val) & _MASKED_BIT_ENABLE(_b)) == _MASKED_BIT_ENABLE(_b))
98 #define IS_MASKED_BITS_DISABLED(_val, _b) \ argument
99 ((_val) & _MASKED_BIT_DISABLE(_b))
/Linux-v6.6/include/rdma/
Drdma_netlink.h32 #define MODULE_ALIAS_RDMA_NETLINK(_index, _val) \ argument
35 BUILD_BUG_ON(_index != _val); \
37 MODULE_ALIAS("rdma-netlink-subsys-" __stringify(_val))
Duverbs_ioctl.h956 s64 _val; \
958 _uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
961 (*(_to)) = _val; \
967 u64 _val; \
969 _uverbs_get_const_unsigned(&_val, _attrs_bundle, _idx, \
971 (*(_to)) = _val; \
977 s64 _val; \
980 _uverbs_get_const_signed(&_val, _attrs_bundle, _idx, \
983 (*(_to)) = _val; \
989 u64 _val; \
[all …]
/Linux-v6.6/drivers/net/wireless/ath/ath12k/
Ddp.h1420 #define HTT_USR_RATE_PREAMBLE(_val) \ argument
1421 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_PREAMBLE_M)
1422 #define HTT_USR_RATE_BW(_val) \ argument
1423 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_BW_M)
1424 #define HTT_USR_RATE_NSS(_val) \ argument
1425 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_NSS_M)
1426 #define HTT_USR_RATE_MCS(_val) \ argument
1427 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_MCS_M)
1428 #define HTT_USR_RATE_GI(_val) \ argument
1429 le32_get_bits(_val, HTT_PPDU_STATS_USER_RATE_FLAGS_GI_M)
[all …]
/Linux-v6.6/drivers/net/ethernet/synopsys/
Ddwc-xlgmac.h118 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; \
/Linux-v6.6/arch/mips/include/asm/sn/
Dagent.h33 #define SET_HUB_NIC(_my_cpuid, _val) \ argument
34 (HUB_S(HUB_NIC_ADDR(_my_cpuid), (_val)))
/Linux-v6.6/arch/mips/ath25/
Ddevices.h7 #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) argument
/Linux-v6.6/drivers/nvmem/
Dlan9662-otpc.c123 void *_val, size_t bytes) in lan9662_otp_read() argument
126 u8 *val = _val; in lan9662_otp_read()
143 void *_val, size_t bytes) in lan9662_otp_write() argument
146 u8 *val = _val; in lan9662_otp_write()

12345