/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | bitfield.h | 128 #define FIELD_FIT(_mask, _value) \ argument 129 (!(((typeof(_mask))(_value) << __bf_shf(_mask)) & ~(_mask))) 131 #define FIELD_PREP(_mask, _value) \ argument 132 (((typeof(_mask))(_value) << __bf_shf(_mask)) & (_mask)) 135 #define FIELD_PREP_CONST(_mask, _value) \ argument 136 (((typeof(_mask))(_value) << __bf_shf(_mask)) & (_mask)) 138 #define FIELD_GET(_mask, _value) \ argument 139 ((typeof(_mask))(((_value) & (_mask)) >> __bf_shf(_mask)))
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_pfvf_vf_proto.c | 13 #define FIELD_MAX(_mask) ({ (typeof(_mask))((_mask) >> __bf_shf(_mask)); }) argument 15 #define FIELD_PREP(_mask, _val) \ argument 16 ({ ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); }) 18 #define FIELD_GET(_mask, _reg) \ argument 19 ({ (typeof(_mask))(((_reg) & (_mask)) >> __bf_shf(_mask)); })
|
/freebsd/sys/sys/ |
H A D | bitstring.h | 159 bitstr_t _mask; in bit_ntest() local 161 _mask = (_match == 0) ? 0 : _BITSTR_MASK; in bit_ntest() 166 return (0 == ((*_bitstr ^ _mask) & in bit_ntest() 169 0 != ((*_bitstr++ ^ _mask) & in bit_ntest() 175 if (*_bitstr++ != _mask) in bit_ntest() 179 0 == ((*_stopbitstr ^ _mask) & _bit_make_mask(0, _stop))); in bit_ntest() 234 bitstr_t _mask; in bit_ff_at_() local 243 _mask = _match ? 0 : _BITSTR_MASK; in bit_ff_at_() 245 _test = _mask ^ *_curbitstr; in bit_ff_at_() 249 _test = _mask ^ *(++_curbitstr); in bit_ff_at_() [all …]
|
/freebsd/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_private.h | 49 #define BHND_PMU_IND_WRITE(_sc, _src, _reg, _val, _mask) \ argument 52 BHND_PMU_ ## _src ## _DATA, (_reg), (_val), (_mask)) 57 #define BHND_PMU_CCTRL_WRITE(_sc, _reg, _val, _mask) \ argument 58 BHND_PMU_IND_WRITE((_sc), CHIP_CONTROL, (_reg), (_val), (_mask)) 63 #define BHND_PMU_REGCTRL_WRITE(_sc, _reg, _val, _mask) \ argument 64 BHND_PMU_IND_WRITE((_sc), REG_CONTROL, (_reg), (_val), (_mask)) 69 #define BHND_PMU_PLL_WRITE(_sc, _reg, _val, _mask) \ argument 70 BHND_PMU_IND_WRITE((_sc), PLL_CONTROL, (_reg), (_val), (_mask))
|
/freebsd/sys/compat/linuxkpi/common/include/linux/soc/mediatek/ |
H A D | mtk_wed.h | 36 #define mtk_wed_device_start(_dev, _mask) do { } while(0) argument 38 #define mtk_wed_device_irq_get(_dev, _mask) 0 argument 39 #define mtk_wed_device_irq_set_mask(_dev, _mask) do { } while(0) argument 45 #define mtk_wed_device_start_hw_rro(_dev, _mask, _b) do { } while(0) argument
|
/freebsd/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pcivar.h | 114 #define _BHND_PCI_REG_GET(_regval, _mask, _shift) \ argument 115 ((_regval & _mask) >> _shift) 116 #define _BHND_PCI_REG_SET(_regval, _mask, _shift, _setval) \ argument 117 (((_regval) & ~ _mask) | (((_setval) << _shift) & _mask))
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_raidz_math_scalar.c | 122 iv_t _mask; \ 124 _mask = (a).e & scalar_mul2_consts.msb; \ 125 _mask = (_mask << 1) - (_mask >> 7); \ 127 (a).e = (a).e ^ (_mask & scalar_mul2_consts.mod); \
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd_private.h | 97 #define BHND_CLKCTL_SET_4(_clkctl, _val, _mask) \ argument 99 ((_val) & (_mask)) | (BHND_CLKCTL_READ_4(_clkctl) & ~(_mask)))
|
/freebsd/sys/dev/virtio/scsi/ |
H A D | virtio_scsivar.h | 187 #define vtscsi_set_ccb_status(_ccbh, _status, _mask) do { \ argument 188 KASSERT(((_mask) & CAM_STATUS_MASK) == 0, \ 189 ("%s:%d bad mask: 0x%x", __FUNCTION__, __LINE__, (_mask))); \ 190 (_ccbh)->status &= ~(CAM_STATUS_MASK | (_mask)); \
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IntrinsicsRISCV.td | 1189 def "int_riscv_" # NAME # "_mask" : RISCVUSLoadMasked; 1193 def "int_riscv_" # NAME # "_mask" : RISCVUSLoadFFMasked; 1197 def "int_riscv_" # NAME # "_mask" : RISCVSLoadMasked; 1201 def "int_riscv_" # NAME # "_mask" : RISCVILoadMasked; 1205 def "int_riscv_" # NAME # "_mask" : RISCVUSStoreMasked; 1209 def "int_riscv_" # NAME # "_mask" : RISCVSStoreMasked; 1214 def "int_riscv_" # NAME # "_mask" : RISCVIStoreMasked; 1218 def "int_riscv_" # NAME # "_mask" : RISCVUnaryAAMasked; 1222 def "int_riscv_" # NAME # "_mask" : RISCVUnaryAAMaskedRoundingMode; 1226 def "int_riscv_" # NAME # "_mask" : RISCVUnaryABMasked; [all …]
|
H A D | IntrinsicsRISCVXTHead.td | 27 def "int_riscv_" # NAME # "_mask" : TH_VdotTernaryWideMasked;
|
H A D | IntrinsicsRISCVXsf.td | 164 def NAME # "_mask" : RISCVSFCustomVFNRCLIPMasked;
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | phy.h | 751 #define RTW89_DECL_RFK_WRF(_path, _addr, _mask, _data) \ 755 .mask = _mask, \ 758 #define RTW89_DECL_RFK_WM(_addr, _mask, _data) \ 761 .mask = _mask, \ 764 #define RTW89_DECL_RFK_WS(_addr, _mask) \ 767 .mask = _mask,} 769 #define RTW89_DECL_RFK_WC(_addr, _mask) \ 772 .mask = _mask,} 461 RTW89_DECL_RFK_WRF(_path,_addr,_mask,_data) global() argument 468 RTW89_DECL_RFK_WM(_addr,_mask,_data) global() argument 474 RTW89_DECL_RFK_WS(_addr,_mask) global() argument 479 RTW89_DECL_RFK_WC(_addr,_mask) global() argument
|
/freebsd/sys/contrib/xen/io/ |
H A D | ring.h | 395 static inline RING_IDX name##_mask(RING_IDX idx, RING_IDX ring_size) \ 404 return buf + name##_mask(idx, ring_size); \ 422 *masked_cons = name##_mask(*masked_cons + size, ring_size); \ 440 *masked_prod = name##_mask(*masked_prod + size, ring_size); \ 452 prod = name##_mask(prod, ring_size); \ 453 cons = name##_mask(cons, ring_size); \
|
/freebsd/contrib/wpa/src/common/ |
H A D | dragonfly.c | 196 struct crypto_bignum *_mask, in dragonfly_generate_scalar() argument 205 dragonfly_get_rand_2_to_r_1(_mask, order) && in dragonfly_generate_scalar() 206 crypto_bignum_add(_rand, _mask, scalar) == 0 && in dragonfly_generate_scalar()
|
H A D | dragonfly.h | 28 struct crypto_bignum *_mask,
|
/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_pwd_common.h | 74 struct crypto_bignum *_mask,
|
H A D | eap_pwd_common.c | 485 struct crypto_bignum *_mask, in eap_pwd_get_rand_mask() argument 489 _rand, _mask, scalar); in eap_pwd_get_rand_mask()
|
/freebsd/sys/netinet/libalias/ |
H A D | alias.h | 90 unsigned int LibAliasSetMode(struct libalias *, unsigned int _flags, unsigned int _mask);
|
/freebsd/sys/dev/ath/ |
H A D | if_athvar.h | 1070 #define ath_hal_getbssidmask(_ah, _mask) \ argument 1071 ((*(_ah)->ah_getBssIdMask)((_ah), (_mask))) 1072 #define ath_hal_setbssidmask(_ah, _mask) \ argument 1073 ((*(_ah)->ah_setBssIdMask)((_ah), (_mask))) 1074 #define ath_hal_intrset(_ah, _mask) \ argument 1075 ((*(_ah)->ah_setInterrupts)((_ah), (_mask)))
|
/freebsd/sys/dev/axgbe/ |
H A D | xgbe-common.h | 1753 #define XMDIO_READ_BITS(_pdata, _mmd, _reg, _mask) \ 1754 (XMDIO_READ((_pdata), _mmd, _reg) & _mask) 1760 #define XMDIO_WRITE_BITS(_pdata, _mmd, _reg, _mask, _val) \ 1763 mmd_val &= ~_mask; \ 1737 XMDIO_READ_BITS(_pdata,_mmd,_reg,_mask) global() argument 1744 XMDIO_WRITE_BITS(_pdata,_mmd,_reg,_mask,_val) global() argument
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | riscv_vector.td | 119 let Name = op # eew # "_v", IRName = op, MaskedIRName = op # "_mask", 131 let Name = op # eew64 # "_v", IRName = op, MaskedIRName = op # "_mask", 226 let Name = op # eew # "_v", IRName = op, MaskedIRName = op # "_mask", 238 let Name = op # eew64 # "_v", IRName = op, MaskedIRName = op # "_mask", 381 MaskedIRName = IR # "_mask", 414 MaskedIRName = IR # "_mask", 469 MaskedIRName = IR # "_mask", 504 MaskedIRName = IR # "_mask", 546 MaskedIRName = IR # "_mask", 758 MaskedIRName = op # nf # "_mask", [all …]
|
/freebsd/contrib/file/src/ |
H A D | file.h | 368 uint64_t _mask; /* for use with numeric and date types */ member 374 #define num_mask _u._mask
|
/freebsd/sys/dev/ath/ath_hal/ |
H A D | ah_internal.h | 470 #define ath_hal_setInterrupts(_ah, _mask) \ argument 471 (_ah)->ah_setInterrupts(_ah, _mask)
|
/freebsd/sys/arm64/rockchip/ |
H A D | rk_pinctrl.c | 126 #define RK_PINFIX(_bank, _pin, _reg, _bit, _mask) \ argument 132 .mask = _mask, \
|