| /f-stack/freebsd/sys/ |
| H A D | types.h | 327 _x = (_x & 0x5555) + ((_x & 0xaaaa) >> 1); in __bitcount16() 328 _x = (_x & 0x3333) + ((_x & 0xcccc) >> 2); in __bitcount16() 329 _x = (_x + (_x >> 4)) & 0x0f0f; in __bitcount16() 330 _x = (_x + (_x >> 8)) & 0x00ff; in __bitcount16() 340 _x = (_x + (_x >> 4)) & 0x0f0f0f0f; in __bitcount32() 341 _x = (_x + (_x >> 8)); in __bitcount32() 342 _x = (_x + (_x >> 16)) & 0x000000ff; in __bitcount32() 353 _x = (_x + (_x >> 4)) & 0x0f0f0f0f0f0f0f0f; in __bitcount64() 354 _x = (_x + (_x >> 8)); in __bitcount64() 355 _x = (_x + (_x >> 16)); in __bitcount64() [all …]
|
| /f-stack/dpdk/drivers/net/nfp/ |
| H A D | nfp_net_ctrl.h | 212 #define NFP_NET_CFG_RSS_MASK_of(_x) ((_x) & 0x7f) argument 237 #define NFP_NET_CFG_TXR_ADDR(_x) (NFP_NET_CFG_TXR_BASE + ((_x) * 0x8)) argument 239 ((_x) * 0x8)) 240 #define NFP_NET_CFG_TXR_SZ(_x) (NFP_NET_CFG_TXR_BASE + 0x400 + (_x)) argument 241 #define NFP_NET_CFG_TXR_VEC(_x) (NFP_NET_CFG_TXR_BASE + 0x440 + (_x)) argument 242 #define NFP_NET_CFG_TXR_PRIO(_x) (NFP_NET_CFG_TXR_BASE + 0x480 + (_x)) argument 244 ((_x) * 0x4)) 261 ((_x) * 0x4)) 274 #define NFP_NET_CFG_ICR(_x) (NFP_NET_CFG_ICR_BASE + (_x)) argument 312 ((_x) * 0x10)) [all …]
|
| /f-stack/freebsd/mips/include/ |
| H A D | endian.h | 89 __bswap16_var(__uint16_t _x) in __bswap16_var() argument 92 return ((_x >> 8) | ((_x << 8) & 0xff00)); in __bswap16_var() 96 __bswap32_var(__uint32_t _x) in __bswap32_var() argument 99 return ((_x >> 24) | ((_x >> 8) & 0xff00) | ((_x << 8) & 0xff0000) | in __bswap32_var() 100 ((_x << 24) & 0xff000000)); in __bswap32_var() 104 __bswap64_var(__uint64_t _x) in __bswap64_var() argument 107 return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) | in __bswap64_var() 108 ((_x >> 8) & 0xff000000) | ((_x << 8) & ((__uint64_t)0xff << 32)) | in __bswap64_var() 109 ((_x << 24) & ((__uint64_t)0xff << 40)) | in __bswap64_var() 110 ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56))); in __bswap64_var()
|
| /f-stack/dpdk/lib/librte_eal/ppc/include/ |
| H A D | rte_byteorder.h | 23 static inline uint16_t rte_arch_bswap16(uint16_t _x) in rte_arch_bswap16() argument 25 return (_x >> 8) | ((_x << 8) & 0xff00); in rte_arch_bswap16() 33 static inline uint32_t rte_arch_bswap32(uint32_t _x) in rte_arch_bswap32() argument 35 return (_x >> 24) | ((_x >> 8) & 0xff00) | ((_x << 8) & 0xff0000) | in rte_arch_bswap32() 36 ((_x << 24) & 0xff000000); in rte_arch_bswap32() 45 static inline uint64_t rte_arch_bswap64(uint64_t _x) in rte_arch_bswap64() argument 47 return (_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) | in rte_arch_bswap64() 48 ((_x >> 8) & 0xff000000) | ((_x << 8) & (0xffULL << 32)) | in rte_arch_bswap64() 49 ((_x << 24) & (0xffULL << 40)) | in rte_arch_bswap64() 50 ((_x << 40) & (0xffULL << 48)) | ((_x << 56)); in rte_arch_bswap64()
|
| /f-stack/freebsd/arm/include/ |
| H A D | endian.h | 78 __bswap64(__uint64_t _x) in __bswap64() argument 81 return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) | in __bswap64() 82 ((_x >> 8) & 0xff000000) | ((_x << 8) & ((__uint64_t)0xff << 32)) | in __bswap64() 83 ((_x << 24) & ((__uint64_t)0xff << 40)) | in __bswap64() 84 ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56))); in __bswap64()
|
| /f-stack/dpdk/app/test-flow-perf/ |
| H A D | config.h | 5 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x) argument 6 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x) argument 7 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x) argument
|
| /f-stack/dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_nsp.h | 20 typeof(_mask) _x = (_mask); \ 21 (typeof(_x))(((_reg) & (_x)) >> __bf_shf(_x)); \ 26 typeof(_mask) _x = (_mask); \ 27 !((((typeof(_x))_val) << __bf_shf(_x)) & ~(_x)); \ 32 typeof(_mask) _x = (_mask); \ 33 ((typeof(_x))(_val) << __bf_shf(_x)) & (_x); \
|
| H A D | nfp_nsp_eth.c | 21 typeof(_mask) _x = (_mask); \ 22 (typeof(_x))(((_reg) & (_x)) >> __bf_shf(_x)); \ 27 typeof(_mask) _x = (_mask); \ 28 !((((typeof(_x))_val) << __bf_shf(_x)) & ~(_x)); \ 33 typeof(_mask) _x = (_mask); \ 34 ((typeof(_x))(_val) << __bf_shf(_x)) & (_x); \ 550 typeof(mask) _x = (mask); \ 551 nfp_eth_set_bit_config(nsp, raw_idx, _x, __bf_shf(_x), \
|
| H A D | nfp_cpp_pcie_ops.c | 45 #define NFP_PCIE_BAR_PCIE2CPP_ACTION_BASEADDRESS(_x) (((_x) & 0x1f) << 16) argument 46 #define NFP_PCIE_BAR_PCIE2CPP_BASEADDRESS(_x) (((_x) & 0xffff) << 0) argument 47 #define NFP_PCIE_BAR_PCIE2CPP_LENGTHSELECT(_x) (((_x) & 0x3) << 27) argument 51 #define NFP_PCIE_BAR_PCIE2CPP_MAPTYPE(_x) (((_x) & 0x7) << 29) argument 52 #define NFP_PCIE_BAR_PCIE2CPP_MAPTYPE_OF(_x) (((_x) >> 29) & 0x7) argument 57 #define NFP_PCIE_BAR_PCIE2CPP_TARGET_BASEADDRESS(_x) (((_x) & 0xf) << 23) argument 58 #define NFP_PCIE_BAR_PCIE2CPP_TOKEN_BASEADDRESS(_x) (((_x) & 0x3) << 21) argument
|
| H A D | nfp_rtsym.c | 106 typeof(x) _x = (x); \ 107 ((((_x) - 1) | __round_mask(_x, y)) + 1); \ 112 typeof(x) _x = (x); \ 113 ((_x) & ~__round_mask(_x, y)); \
|
| /f-stack/freebsd/net/route/ |
| H A D | nhop_utils.h | 154 #define CHT_SLIST_FOREACH(_head, _PX, _x) \ argument 156 for (_x = CHT_FIRST(_head, _i); _x; _x = _PX##_next(_x)) 162 typeof(*(_head)->ptr) _x, _y; \ 164 _x = CHT_FIRST(_head, _old_idx); \ 165 _y = _x; \ 167 _y = _PX##_next(_x); \ 168 _new_idx = _PX##_hash_obj(_x) & (_new_hsize - 1);\ 169 _PX##_next(_x) = _CHT_FIRST(_new_ptr, _new_idx);\ 170 _CHT_FIRST(_new_ptr, _new_idx) = _x; \ 171 _x = _y; \
|
| /f-stack/freebsd/netinet/ |
| H A D | sctp_uio.h | 1127 #define SCTP_STAT_INCR(_x) SCTP_STAT_INCR_BY(_x,1) argument 1128 #define SCTP_STAT_DECR(_x) SCTP_STAT_DECR_BY(_x,1) argument 1130 #define SCTP_STAT_INCR_BY(_x,_d) (SCTP_BASE_STATS[PCPU_GET(cpuid)]._x += _d) argument 1131 #define SCTP_STAT_DECR_BY(_x,_d) (SCTP_BASE_STATS[PCPU_GET(cpuid)]._x -= _d) argument 1133 #define SCTP_STAT_INCR_BY(_x,_d) atomic_add_int(&SCTP_BASE_STAT(_x), _d) argument 1137 #define SCTP_STAT_INCR_COUNTER32(_x) SCTP_STAT_INCR(_x) argument 1138 #define SCTP_STAT_INCR_COUNTER64(_x) SCTP_STAT_INCR(_x) argument 1139 #define SCTP_STAT_INCR_GAUGE32(_x) SCTP_STAT_INCR(_x) argument 1140 #define SCTP_STAT_DECR_COUNTER32(_x) SCTP_STAT_DECR(_x) argument 1141 #define SCTP_STAT_DECR_COUNTER64(_x) SCTP_STAT_DECR(_x) argument [all …]
|
| /f-stack/tools/compat/include/netinet/ |
| H A D | sctp_uio.h | 1127 #define SCTP_STAT_INCR(_x) SCTP_STAT_INCR_BY(_x,1) argument 1128 #define SCTP_STAT_DECR(_x) SCTP_STAT_DECR_BY(_x,1) argument 1130 #define SCTP_STAT_INCR_BY(_x,_d) (SCTP_BASE_STATS[PCPU_GET(cpuid)]._x += _d) argument 1131 #define SCTP_STAT_DECR_BY(_x,_d) (SCTP_BASE_STATS[PCPU_GET(cpuid)]._x -= _d) argument 1133 #define SCTP_STAT_INCR_BY(_x,_d) atomic_add_int(&SCTP_BASE_STAT(_x), _d) argument 1137 #define SCTP_STAT_INCR_COUNTER32(_x) SCTP_STAT_INCR(_x) argument 1138 #define SCTP_STAT_INCR_COUNTER64(_x) SCTP_STAT_INCR(_x) argument 1139 #define SCTP_STAT_INCR_GAUGE32(_x) SCTP_STAT_INCR(_x) argument 1140 #define SCTP_STAT_DECR_COUNTER32(_x) SCTP_STAT_DECR(_x) argument 1141 #define SCTP_STAT_DECR_COUNTER64(_x) SCTP_STAT_DECR(_x) argument [all …]
|
| /f-stack/dpdk/lib/librte_eal/x86/include/ |
| H A D | rte_byteorder.h | 26 static inline uint16_t rte_arch_bswap16(uint16_t _x) in rte_arch_bswap16() argument 28 uint16_t x = _x; in rte_arch_bswap16() 41 static inline uint32_t rte_arch_bswap32(uint32_t _x) in rte_arch_bswap32() argument 43 uint32_t x = _x; in rte_arch_bswap32()
|
| H A D | rte_byteorder_64.h | 21 static inline uint64_t rte_arch_bswap64(uint64_t _x) in rte_arch_bswap64() argument 23 uint64_t x = _x; in rte_arch_bswap64()
|
| /f-stack/freebsd/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300eep.h | 419 #define SWAP16(_x) ( (u_int16_t)( (((const u_int8_t *)(&_x))[0] ) |\ argument 422 #define SWAP32(_x) ((u_int32_t)( \ argument 423 (((const u_int8_t *)(&_x))[0]) | \ 424 (((const u_int8_t *)(&_x))[1]<< 8) | \ 425 (((const u_int8_t *)(&_x))[2]<<16) | \ 426 (((const u_int8_t *)(&_x))[3]<<24))) 431 #define SWAP16(_x) ( (u_int16_t)( (((const u_int8_t *)(&_x))[1] ) |\ argument 434 #define SWAP32(_x) ((u_int32_t)( \ argument 435 (((const u_int8_t *)(&_x))[3]) | \ 436 (((const u_int8_t *)(&_x))[2]<< 8) | \ [all …]
|
| H A D | ar9300phy.h | 41 #define AR_CHAN_OFFSET(_x) (AR_CHAN_BASE + offsetof(struct chn_reg_map, _x)) argument 294 #define AR_MRC_OFFSET(_x) (AR_MRC_BASE + offsetof(struct mrc_reg_map, _x)) argument 329 #define AR_BBB_OFFSET(_x) (AR_BBB_BASE + offsetof(struct bbb_reg_map, _x)) argument 337 #define AR_AGC_OFFSET(_x) (AR_AGC_BASE + offsetof(struct agc_reg_map, _x)) argument 524 #define AR_SM_OFFSET(_x) (AR_SM_BASE + offsetof(struct sm_reg_map, _x)) argument 1209 #define AR_CHAN1_OFFSET(_x) (AR_CHAN1_BASE + offsetof(struct chn1_reg_map, _x)) argument 1237 #define AR_AGC1_OFFSET(_x) (AR_AGC1_BASE + offsetof(struct agc1_reg_map, _x)) argument 1272 #define AR_SM1_OFFSET(_x) (AR_SM1_BASE + offsetof(struct sm1_reg_map, _x)) argument 1354 #define AR_AGC2_OFFSET(_x) (AR_AGC2_BASE + offsetof(struct agc2_reg_map, _x)) argument 1375 #define AR_SM2_OFFSET(_x) (AR_SM2_BASE + offsetof(struct sm2_reg_map, _x)) argument [all …]
|
| H A D | ar9300reg.h | 26 #define AR_MAC_DMA_OFFSET(_x) offsetof(struct mac_dma_reg, _x) argument 447 #define AR_MAC_QCU_OFFSET(_x) offsetof(struct mac_qcu_reg, _x) argument 550 #define AR_MAC_DCU_OFFSET(_x) offsetof(struct mac_dcu_reg, _x) argument 728 #define AR9300_HOSTIF_OFFSET(_x) offsetof(struct host_intf_reg, _x) argument 1090 #define AR_OTP_EFUSE_OFFSET(_x) offsetof(struct efuse_reg_WLAN, _x) argument 1100 #define AR_RTC_OFFSET(_x) offsetof(struct rtc_reg, _x) argument 1171 #define AR_RTC_SYNC_OFFSET(_x) offsetof(struct rtc_sync_reg, _x) argument 1211 #define AR_AN_OFFSET(_x) offsetof(struct analog_intf_reg_csr, _x) argument 1310 #define AR_MAC_PCU_OFFSET(_x) offsetof(struct mac_pcu_reg, _x) argument 2472 #define AR_SVD_OFFSET(_x) offsetof(struct svd_reg, _x) argument [all …]
|
| /f-stack/dpdk/drivers/common/sfc_efx/base/ |
| H A D | efx_types.h | 271 #define __NOSWAP16(_x) (_x) argument 272 #define __NOSWAP32(_x) (_x) argument 273 #define __NOSWAP64(_x) (_x) argument 277 #define __CPU_TO_LE_16(_x) ((uint16_t)__SWAP16(_x)) argument 278 #define __LE_TO_CPU_16(_x) ((uint16_t)__SWAP16(_x)) argument 282 #define __CPU_TO_LE_32(_x) ((uint32_t)__SWAP32(_x)) argument 283 #define __LE_TO_CPU_32(_x) ((uint32_t)__SWAP32(_x)) argument 287 #define __CPU_TO_LE_64(_x) ((uint64_t)__SWAP64(_x)) argument 315 #define __NATIVE_8(_x) (uint8_t)(_x) argument 375 #define FIX_LINT(_x) (_x + fix_lint) argument [all …]
|
| /f-stack/tools/libxo/libxo/ |
| H A D | xo_encoder.h | 122 #define XO_STRINGIFY(_x) #_x argument 123 #define XO_STRINGIFY2(_x) XO_STRINGIFY(_x) argument
|
| /f-stack/dpdk/drivers/net/axgbe/ |
| H A D | axgbe_ethdev.h | 76 #define AXGMAC_FIFO_ALIGN(_x) \ argument 77 (((_x) + AXGMAC_FIFO_UNIT - 1) & ~(XGMAC_FIFO_UNIT - 1)) 88 #define AXGMAC_FLOW_CONTROL_ALIGN(_x) \ argument 89 (((_x) + AXGMAC_FLOW_CONTROL_UNIT - 1) & \ 91 #define AXGMAC_FLOW_CONTROL_VALUE(_x) \ argument 92 (((_x) < 1024) ? 0 : ((_x) / AXGMAC_FLOW_CONTROL_UNIT) - 2)
|
| /f-stack/freebsd/mips/atheros/ |
| H A D | ar934x_nfcreg.h | 57 #define AR934X_NFC_REG_LOOKUP(_x) (0x44 + (_i) * 4) argument 141 #define AR934X_NFC_INT_DEV_RDY(_x) BIT(4 + (_x)) argument
|
| /f-stack/tools/libxo/encoder/cbor/ |
| H A D | enc_cbor.c | 95 #define CBOR_MAJOR(_x) ((_x) & CBOR_MAJOR_MASK) argument 96 #define CBOR_MAJOR_VAL(_x) ((_x) << CBOR_MAJOR_SHIFT) argument 97 #define CBOR_MINOR_VAL(_x) ((_x) & CBOR_MINOR_MASK) argument
|
| /f-stack/dpdk/drivers/net/nfp/nfpcore/nfp-common/ |
| H A D | nfp_resid.h | 156 typeof(x) _x = (x); \ 157 (NFP_FAMILY_IS_ARCH_TH(_x) ? NFP_CHIP_ARCH_TH : \ 158 NFP_FAMILY_IS_ARCH_YD(_x) ? NFP_CHIP_ARCH_YD : -1) \
|
| /f-stack/tools/libxo/tests/core/ |
| H A D | test_03.c | 70 #define TO_ULL(_x) ((unsigned long long) _x) in main() argument
|