/freebsd/sys/dev/e1000/ |
H A D | e1000_regs.h | 94 #define E1000_EITR(_n) (0x01680 + (0x4 * (_n))) argument 190 #define E1000_INVM_DATA_REG(_n) (0x12120 + 4*(_n)) argument 215 #define E1000_I210_TQAVHC(_n) (0x300C + 0x40 * (_n)) argument 220 #define E1000_TQAVARBCTRL_QUEUE_PRI(_n, _p) ((_p) << (2 * (_n))) argument 222 #define E1000_I210_TQAVCC(_n) (0x3004 + 0x40 * (_n)) argument 230 #define E1000_PQGPTC(_n) (0x010014 + (0x100 * (_n))) argument 233 #define E1000_I210_TXPBS_SIZE(_n, _s) ((_s) << (6 * (_n))) argument 245 #define E1000_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) : \ argument 246 (0x0C000 + ((_n) * 0x40))) 247 #define E1000_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) : \ argument [all …]
|
/freebsd/sys/dev/igc/ |
H A D | igc_regs.h | 39 #define IGC_EITR(_n) (0x01680 + (0x4 * (_n))) argument 88 #define IGC_INVM_DATA_REG(_n) (0x12120 + 4*(_n)) argument 100 #define IGC_RDBAL(_n) ((_n) < 4 ? (0x02800 + ((_n) * 0x100)) : \ argument 101 (0x0C000 + ((_n) * 0x40))) 102 #define IGC_RDBAH(_n) ((_n) < 4 ? (0x02804 + ((_n) * 0x100)) : \ argument 103 (0x0C004 + ((_n) * 0x40))) 104 #define IGC_RDLEN(_n) ((_n) < 4 ? (0x02808 + ((_n) * 0x100)) : \ argument 105 (0x0C008 + ((_n) * 0x40))) 106 #define IGC_SRRCTL(_n) ((_n) < 4 ? (0x0280C + ((_n) * 0x100)) : \ argument 107 (0x0C00C + ((_n) * 0x40))) [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | bitfield.h | 41 #define _uX_get_bits(_n) \ argument 42 static __inline uint ## _n ## _t \ 43 u ## _n ## _get_bits(uint ## _n ## _t v, uint ## _n ## _t f) \ 53 #define _leX_get_bits(_n) \ argument 54 static __inline uint ## _n ## _t \ 55 le ## _n ## _get_bits(__le ## _n v, uint ## _n ## _t f) \ 57 return ((le ## _n ## _to_cpu(v) & f) / ___lsb(f)); \ 64 #define _uX_encode_bits(_n) \ argument 65 static __inline uint ## _n ## _t \ 66 u ## _n ## _encode_bits(uint ## _n ## _t v, uint ## _n ## _t f) \ [all …]
|
H A D | netdevice.h | 250 #define init_dummy_netdev(_n) \ argument 251 linuxkpi_init_dummy_netdev(_n) 254 #define netif_napi_del(_n) \ argument 255 linuxkpi_netif_napi_del(_n) 256 #define napi_schedule_prep(_n) \ argument 257 linuxkpi_napi_schedule_prep(_n) 258 #define __napi_schedule(_n) \ argument 259 linuxkpi___napi_schedule(_n) 260 #define napi_schedule(_n) \ argument 261 linuxkpi_napi_schedule(_n) [all …]
|
H A D | cleanup.h | 19 #define DEFINE_GUARD(_n, _dt, _lock, _unlock) \ argument 21 typedef _dt guard_ ## _n ## _t; \ 24 guard_ ## _n ## _create( _dt _T) \ 33 guard_ ## _n ## _destroy(_dt *t) \ 42 #define guard(_n) \ argument 43 guard_ ## _n ## _t guard_ ## _n ## _ ## __COUNTER__ \ 44 __cleanup(guard_ ## _n ## _destroy) = guard_ ## _n ## _create
|
H A D | log2.h | 37 __typeof(n) _n = (n); \ 38 _n != 0 && (_n & (_n - 1)) == 0; \
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ipf_rb.h | 12 #define RBI_LINK(_n, _t) \ argument 13 struct _n##_rb_link { \ 20 #define RBI_HEAD(_n, _t) \ argument 21 struct _n##_rb_head { \ 27 #define RBI_CODE(_n, _t, _f, _cmp) \ argument 29 typedef void (*_n##_rb_walker_t)(_t *, void *); \ 31 _t * _n##_rb_delete(struct _n##_rb_head *, _t *); \ 32 void _n##_rb_init(struct _n##_rb_head *); \ 33 void _n##_rb_insert(struct _n##_rb_head *, _t *); \ 34 _t * _n##_rb_search(struct _n##_rb_head *, void *); \ [all …]
|
/freebsd/tools/test/netfibs/ |
H A D | forwarding.sh | 359 local _maxfibs _addr _n _testno i _rc _ec 362 _n="$3" 369 _txt="${_n}_${i}" 596 local _n _reply _line _edge _type _fib _count _rc _ec _status 597 _n="$1" 627 eval _em="\${rc_${_n}_${_edge}_${_type}_${_fib}}" 640 "${_status}" ${testno} "${_n}_${_edge}_${_type}_${_fib}" \ 663 local _n i _edge _type _rc 664 _n="$1" 672 0) eval rc_${_n}_${_edge}_${_type}_${i}=1 [all …]
|
H A D | initiator.sh | 275 local _n _transfer i testno _txt _fibtxt _rc _ec _p 276 _n="$1" 284 _txt="${_n}${i}" 370 local _n _o _f testno i _fibtxt 371 _n="$1" 382 _fibtxt="${_n}_${i}_l ${_f} ${i} ${PEERLINKLOCAL}" 389 _fibtxt="${_n}_${i}_a ${_f} ${i} ${PEERADDR}" 402 local _fibtxt _reply _n _o _rc _fib _f _opts 403 _n=$1 427 _msg="START ${_n}" [all …]
|
H A D | reflector.sh | 293 local _opts fib _n _o 294 _n="$1" 314 print_debug "./reflect -p ${CTRLPORT} -T ${_o} -t ${_n}${fib} ${_opts}" 315 ./reflect -p ${CTRLPORT} -T ${_o} -t ${_n}${fib} ${_opts} 376 local _opts _n _o 377 _n="$1" 392 "-t ${_n} ${_opts} -A 2001:2:ff01::2" 394 -t ${_n} ${_opts} -A 2001:2:ff01::2 423 local _opts fib _n _o 424 _n="$1" [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | efx_annote.h | 53 #define __in_ecount(_n) argument 54 #define __in_ecount_opt(_n) argument 55 #define __in_bcount(_n) argument 56 #define __in_bcount_opt(_n) argument 60 #define __out_ecount(_n) argument 61 #define __out_ecount_opt(_n) argument 62 #define __out_ecount_part(_n, _l) argument 63 #define __out_bcount(_n) argument 64 #define __out_bcount_opt(_n) argument 65 #define __out_bcount_part(_n, _l) argument [all …]
|
/freebsd/sys/contrib/dev/athk/ |
H A D | reg.h | 43 #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) argument 56 #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) argument 57 #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) argument 58 #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) argument 59 #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) argument 60 #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) argument 61 #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) argument 62 #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) argument 63 #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28) argument
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | regs.h | 110 #define MT_INT_RX_DONE(_n) BIT(_n) argument 113 #define MT_INT_TX_DONE(_n) BIT((_n) + 4) argument 233 #define MT_WF_PHY_RXTD(_n) (MT_WF_PHY_RXTD_BASE + ((_n) << 2)) argument 235 #define MT7663_WF_PHY_RXTD(_n) (MT_WF_PHY(0x25b0) + ((_n) << 2)) argument 245 #define MT_WF_PHY_RXTD2(_n) (MT_WF_PHY_RXTD2_BASE + ((_n) << 2)) argument 247 #define MT_WF_PHY_RFINTF3_0(_n) MT_WF_PHY(0x1100 + (_n) * 0x400) argument 271 #define MT_AGG_ARxCR_LIMIT_SHIFT(_n) (4 * (_n)) argument 272 #define MT_AGG_ARxCR_LIMIT(_n) GENMASK(2 + \ argument 273 MT_AGG_ARxCR_LIMIT_SHIFT(_n), \ 274 MT_AGG_ARxCR_LIMIT_SHIFT(_n)) [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_regs.h | 28 #define MT_EFUSE_DATA(_n) (MT_EFUSE_DATA_BASE + ((_n) << 2)) argument 109 #define MT_INT_RX_DONE(_n) BIT(_n) argument 112 #define MT_INT_TX_DONE(_n) BIT((_n) + 4) argument 143 #define MT_WMM_AIFSN_SHIFT(_n) ((_n) * 4) argument 147 #define MT_WMM_CWMIN_SHIFT(_n) ((_n) * 4) argument 151 #define MT_WMM_CWMAX_SHIFT(_n) ((_n) * 4) argument 154 #define MT_WMM_TXOP(_n) (MT_WMM_TXOP_BASE + (((_n) / 2) << 2)) argument 155 #define MT_WMM_TXOP_SHIFT(_n) (((_n) & 1) * 16) argument 194 #define MT_BCN_OFFSET(_n) (MT_BCN_OFFSET_BASE + ((_n) << 2)) argument 226 #define MT_LED_CTRL_REPLAY(_n) BIT(0 + (8 * (_n))) argument [all …]
|
H A D | mt792x_regs.h | 25 #define MT_PLE_AC_QEMPTY(_n) MT_PLE(0x500 + 0x40 * (_n)) argument 180 #define MT_AGG_AWSCR0(_band, _n) MT_WF_AGG(_band, 0x05c + (_n) * 4) argument 181 #define MT_AGG_PCR0(_band, _n) MT_WF_AGG(_band, 0x06c + (_n) * 4) argument 215 #define MT_ARB_DRNGR0(_band, _n) MT_WF_ARB(_band, 0x194 + (_n) * 4) argument 410 #define MT_DMASHDL_GROUP_QUOTA(_n) MT_DMA_SHDL(0x020 + ((_n) << 2)) argument 414 #define MT_DMASHDL_Q_MAP(_n) MT_DMA_SHDL(0x060 + ((_n) << 2)) argument 416 #define MT_DMASHDL_Q_MAP_SHIFT(_n) (4 * ((_n) % 8)) argument 418 #define MT_DMASHDL_SCHED_SET(_n) MT_DMA_SHDL(0x070 + ((_n) << 2)) argument 456 #define MT_UWFDMA0_TX_RING_EXT_CTRL(_n) MT_UWFDMA0(0x600 + ((_n) << 2)) argument
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_iovar.h | 86 #define BHND_NVRAM_IOPS_DEFN(_n) \ argument 87 static bhnd_nvram_iop_read bhnd_nvram_ ## _n ## _read; \ 88 static bhnd_nvram_iop_read_ptr bhnd_nvram_ ## _n ## _read_ptr; \ 89 static bhnd_nvram_iop_write bhnd_nvram_ ## _n ## _write; \ 90 static bhnd_nvram_iop_write_ptr bhnd_nvram_ ## _n ## _write_ptr;\ 91 static bhnd_nvram_iop_getsize bhnd_nvram_ ## _n ## _getsize; \ 92 static bhnd_nvram_iop_setsize bhnd_nvram_ ## _n ## _setsize; \ 93 static bhnd_nvram_iop_free bhnd_nvram_ ## _n ## _free; \ 95 static struct bhnd_nvram_iops bhnd_nvram_ ## _n ## _ops = { \ 96 .read = bhnd_nvram_ ## _n ## _read, \ [all …]
|
/freebsd/crypto/openssh/regress/unittests/hostkeys/ |
H A D | mktestdata.sh | 12 _n=$1 14 test "x$_n" = "x1" && _ecdsa_bits=384 15 test "x$_n" = "x2" && _ecdsa_bits=521 16 ssh-keygen -qt rsa -b 1024 -C "RSA #$_n" -N "" -f rsa_$_n 17 ssh-keygen -qt dsa -b 1024 -C "DSA #$_n" -N "" -f dsa_$_n 18 ssh-keygen -qt ecdsa -b $_ecdsa_bits -C "ECDSA #$_n" -N "" -f ecdsa_$_n 19 ssh-keygen -qt ed25519 -C "ED25519 #$_n" -N "" -f ed25519_$_n 21 rm -f rsa_$_n dsa_$_n ecdsa_$_n ed25519_$_n
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | regs.h | 28 #define MT_INT_RX_DONE(_n) BIT(_n) argument 31 #define MT_INT_TX_DONE(_n) BIT((_n) + 4) argument 189 #define MT_AGG_ARxCR_LIMIT_SHIFT(_n) (4 * (_n)) argument 190 #define MT_AGG_ARxCR_LIMIT(_n) GENMASK(2 + \ argument 191 MT_AGG_ARxCR_LIMIT_SHIFT(_n), \ 192 MT_AGG_ARxCR_LIMIT_SHIFT(_n)) 196 #define MT_AGG_LIMIT_AC(_n) GENMASK(((_n) + 1) * 8 - 1, (_n) * 8) argument 272 #define MT_WMM_AIFSN_SHIFT(_n) ((_n) * 4) argument 275 #define MT_WMM_CWMAX(_n) (MT_WMM_CWMAX_BASE + (((_n) / 2) << 2)) argument 276 #define MT_WMM_CWMAX_SHIFT(_n) (((_n) & 1) * 16) argument [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_netdev.c | 65 #define NAPI_TRACE(_n) if (debug_napi & DNAPI_TRACE) \ argument 67 (unsigned int)ticks, _n, (uintmax_t)(_n)->state, \ 68 (int)(_n)->state, LKPI_NAPI_FLAGS) 69 #define NAPI_TRACE2D(_n, _d) if (debug_napi & DNAPI_TRACE) \ argument 71 (unsigned int)ticks, _n, (uintmax_t)(_n)->state, \ 72 (int)(_n)->state, LKPI_NAPI_FLAGS, _d) 73 #define NAPI_TRACE_TASK(_n, _p, _c) if (debug_napi & DNAPI_TRACE_TASK) \ argument 76 (unsigned int)ticks, _n, (uintmax_t)(_n)->state, \ 77 (int)(_n)->state, LKPI_NAPI_FLAGS, _p, _c, (_n)->rx_count) 85 #define NAPI_TRACE(_n) do { } while(0) argument [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212reg.h | 332 #define AR_RATE_DURATION(_n) (AR_RATE_DURATION_0 + ((_n)<<2)) argument 335 #define AR_KEYTABLE(_n) (AR_KEYTABLE_0 + ((_n)*32)) argument 980 #define AR_KEYTABLE_KEY0(_n) (AR_KEYTABLE(_n) + 0) /* key bit 0-31 */ argument 981 #define AR_KEYTABLE_KEY1(_n) (AR_KEYTABLE(_n) + 4) /* key bit 32-47 */ argument 982 #define AR_KEYTABLE_KEY2(_n) (AR_KEYTABLE(_n) + 8) /* key bit 48-79 */ argument 983 #define AR_KEYTABLE_KEY3(_n) (AR_KEYTABLE(_n) + 12) /* key bit 80-95 */ argument 984 #define AR_KEYTABLE_KEY4(_n) (AR_KEYTABLE(_n) + 16) /* key bit 96-127 */ argument 985 #define AR_KEYTABLE_TYPE(_n) (AR_KEYTABLE(_n) + 20) /* key type */ argument 994 #define AR_KEYTABLE_MAC0(_n) (AR_KEYTABLE(_n) + 24) /* MAC address 1-32 */ argument 995 #define AR_KEYTABLE_MAC1(_n) (AR_KEYTABLE(_n) + 28) /* MAC address 33-47 */ argument
|
/freebsd/sys/tests/ |
H A D | ktest.h | 89 #define KTEST_MODULE_DECLARE(_n, _t) \ argument 91 .name = #_n, \ 97 #_n, \ 102 DECLARE_MODULE(ktest_##_n, _module_data, SI_SUB_PSEUDO, SI_ORDER_ANY); \ 103 MODULE_VERSION(ktest_##_n, 1); \ 104 MODULE_DEPEND(ktest_##_n, ktestmod, 1, 1, 1); \ 105 MODULE_DEPEND(ktest_##_n, netlink, 1, 1, 1); \
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwm_notif_wait.c | 84 #define IWM_WAIT_LOCK_INIT(_n, _s) \ argument 85 mtx_init(&(_n)->lk_mtx, (_s), "iwm wait_notif", MTX_DEF); 86 #define IWM_WAIT_LOCK(_n) mtx_lock(&(_n)->lk_mtx) argument 87 #define IWM_WAIT_UNLOCK(_n) mtx_unlock(&(_n)->lk_mtx) argument 88 #define IWM_WAIT_LOCK_DESTROY(_n) mtx_destroy(&(_n)->lk_mtx) argument
|
/freebsd/sys/net/ |
H A D | netmap_legacy.h | 203 #define _IO(_c, _n) CTL_CODE(_WIN_NM_IOCTL_TYPE, ((_n) + 0x800) , \ argument 205 #define _IO_direct(_c, _n) CTL_CODE(_WIN_NM_IOCTL_TYPE, ((_n) + 0x800) , \ argument 208 #define _IOWR(_c, _n, _s) _IO(_c, _n) argument
|
/freebsd/crypto/libecc/src/fp/ |
H A D | fp_sqrt.c | 117 fp_t _n = &__n; in fp_sqrt() local 138 ret = fp_copy(_n, n); EG(ret, err); in fp_sqrt() 141 ret = fp_init(sqrt1, _n->ctx); EG(ret, err); in fp_sqrt() 142 ret = fp_init(sqrt2, _n->ctx); EG(ret, err); in fp_sqrt() 150 ret = nn_cmp(&(_n->ctx->p), &two_nn, &cmp); EG(ret, err); in fp_sqrt() 152 ret = fp_copy(sqrt1, _n); EG(ret, err); in fp_sqrt() 153 ret = fp_copy(sqrt2, _n); EG(ret, err); in fp_sqrt() 159 ret = fp_iszero(_n, &iszero); EG(ret, err); in fp_sqrt() 167 if (legendre(_n) != 1) { in fp_sqrt() 176 ret = nn_copy(&q, &(_n->ctx->p)); EG(ret, err); in fp_sqrt() [all …]
|
/freebsd/sys/dev/ath/ |
H A D | ah_osdep.h | 67 #define OS_DELAY(_n) DELAY(_n) argument 70 #define OS_MEMZERO(_a, _n) bzero((_a), (_n)) argument 71 #define OS_MEMCPY(_d, _s, _n) memcpy(_d,_s,_n) argument
|