Home
last modified time | relevance | path

Searched refs:_idx (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_phy_n_sprom.c70 #define BHND_POWER_NVAR(_idx) \ argument
71 { BHND_NVAR_ITT2GA ## _idx, BHND_NVAR_ITT5GA ## _idx, \
72 BHND_NVAR_MAXP2GA ## _idx, BHND_NVAR_PA2GA ## _idx, \
73 BHND_NVAR_PA5GA ## _idx }
/freebsd/sys/dev/mgb/
H A Dif_mgb.h179 #define MGB_NEXT_RING_IDX(_idx) (((_idx) == MGB_DMA_RING_SIZE - 1) ? 0 : ((_idx) + 1)) argument
180 #define MGB_PREV_RING_IDX(_idx) (((_idx) == 0) ? (MGB_DMA_RING_SIZE - 1) : ((_idx) - 1)) argument
/freebsd/sys/sys/
H A Drunq.h104 bool runq_is_queue_empty(struct runq *, int _idx);
106 void runq_add_idx(struct runq *, struct thread *, int _idx, int _flags);
113 typedef bool runq_pred_t(int _idx, struct rq_queue *, void *_data);
H A Dqmath.h190 int _idx = (bits) - (_tmp * (base)); \
192 "0123456789abcdef"[_idx]; \
198 int _carry = 0, _idx, _nfbits = Q_NFBITS(q), _shift = 0; \
208 _idx = ((((bits) >> _shift) * (base)) + _carry) >> (_nfbits - _shift);\
211 "0123456789abcdef"[_idx]; \
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_regs.h668 #define MT_SKEY_0(_bss, _idx) (MT_SKEY_BASE_0 + (4 * (_bss) + (_idx)) * 32) argument
669 #define MT_SKEY_1(_bss, _idx) (MT_SKEY_BASE_1 + (4 * ((_bss) & 7) + (_idx)) * 32) argument
670 #define MT_SKEY(_bss, _idx) (((_bss) & 8) ? MT_SKEY_1(_bss, _idx) : MT_SKEY_0(_bss, _idx)) argument
678 #define MT_SKEY_MODE_SHIFT(_bss, _idx) (4 * ((_idx) + 4 * ((_bss) & 1))) argument
H A Dmt76x02_util.c10 #define MT76x02_CCK_RATE(_idx, _rate) { \ argument
13 .hw_value = (MT_PHY_TYPE_CCK << 8) | (_idx), \
14 .hw_value_short = (MT_PHY_TYPE_CCK << 8) | (8 + (_idx)), \
H A Dmt76.h1162 #define CCK_RATE(_idx, _rate) { \ argument
1165 .hw_value = (MT_PHY_TYPE_CCK << 8) | (_idx), \
1166 .hw_value_short = (MT_PHY_TYPE_CCK << 8) | (4 + _idx), \
1169 #define OFDM_RATE(_idx, _rate) { \ argument
1171 .hw_value = (MT_PHY_TYPE_OFDM << 8) | (_idx), \
1172 .hw_value_short = (MT_PHY_TYPE_OFDM << 8) | (_idx), \
H A Dmac80211.c15 #define CHAN2G(_idx, _freq) { \ argument
18 .hw_value = (_idx), \
22 #define CHAN5G(_idx, _freq) { \ argument
25 .hw_value = (_idx), \
29 #define CHAN6G(_idx, _freq) { \ argument
32 .hw_value = (_idx), \
/freebsd/sys/contrib/xen/io/
H A Dring.h231 #define RING_GET_REQUEST(_r, _idx) \ argument
232 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
234 #define RING_GET_RESPONSE(_r, _idx) \ argument
235 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
/freebsd/sys/net/route/
H A Dnhop_utils.c100 _bitmask_init_idx(void *_idx, uint32_t items) in _bitmask_init_idx() argument
103 u_long *idx = (u_long *)_idx; in _bitmask_init_idx()
/freebsd/sys/riscv/riscv/
H A Daplic.c96 #define APLIC_SRC_CFG(_idx) (0x0004 + (((_idx) - 1) * 4)) argument
97 #define APLIC_TARGET(_idx) (0x3004 + (((_idx) - 1) * 4)) argument
/freebsd/sys/kern/
H A Dkern_switch.c264 __typeof(idx) _idx __unused = (idx); \
265 KASSERT(0 <= _idx && _idx < RQ_NQS, \
266 ("%s: %s out of range: %d", __func__, __STRING(idx), _idx)); \
/freebsd/sys/dev/bhnd/
H A Dbhnd_match.h136 #define BHND_MATCH_CORE_IDX(_idx) _BHND_SET_MATCH_FIELD(core_idx, _idx) argument
/freebsd/sys/ofed/include/rdma/
H A Duverbs_ioctl.h937 #define uverbs_get_const(_to, _attrs_bundle, _idx) \ argument
940 int _ret = _uverbs_get_const(&_val, _attrs_bundle, _idx, \
947 #define uverbs_get_const_default(_to, _attrs_bundle, _idx, _default) \ argument
952 _uverbs_get_const(&_val, _attrs_bundle, _idx, \
/freebsd/sys/dev/clk/rockchip/
H A Drk_cru.h50 #define GATE(_idx, _clkname, _pname, _o, _s) \ argument
52 .id = _idx, \
H A Drk3288_cru.c78 #define GATE(_idx, _clkname, _pname, _o, _s) \ argument
80 .id = _idx, \
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DGenericOptional.cpp93 ValueObjectSP GenericOptionalFrontend::GetChildAtIndex(uint32_t _idx) { in GetChildAtIndex() argument
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddebugfs_htt_stats.h19 #define ATH12K_HTT_STATS_RESET_BITMAP32_OFFSET(_idx) ((_idx) & 0x1f) argument
20 #define ATH12K_HTT_STATS_RESET_BITMAP64_OFFSET(_idx) ((_idx) & 0x3f) argument
21 #define ATH12K_HTT_STATS_RESET_BITMAP32_BIT(_idx) (1 << \ argument
22 ATH12K_HTT_STATS_RESET_BITMAP32_OFFSET(_idx))
23 #define ATH12K_HTT_STATS_RESET_BITMAP64_BIT(_idx) (1 << \ argument
24 ATH12K_HTT_STATS_RESET_BITMAP64_OFFSET(_idx))
/freebsd/sys/dev/vmware/vmci/
H A Dvmci_doorbell.c21 #define VMCI_DOORBELL_HASH(_idx) \ argument
22 vmci_hash_id((_idx), VMCI_DOORBELL_INDEX_TABLE_SIZE)
/freebsd/sys/arm/allwinner/
H A Daw_gpio.c392 #define AW_GPIO_GP_CFG(_sc, _bank, _idx) \ argument
393 (AW_GPIO_GP_BASE(_sc, _bank) + 0x00 + ((_idx) << 2))
396 #define AW_GPIO_GP_DRV(_sc, _bank, _idx) \ argument
397 (AW_GPIO_GP_BASE(_sc, _bank) + 0x14 + ((_idx) << 2))
398 #define AW_GPIO_GP_PUL(_sc, _bank, _idx) \ argument
399 (AW_GPIO_GP_BASE(_sc, _bank) + (_sc)->conf->pul_offset + ((_idx) << 2))
/freebsd/sys/dev/gpio/
H A Dgpiobusvar.h157 int gpio_pin_get_by_child_index(device_t _child, uint32_t _idx, gpio_pin_t *_gp);
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dtestmode.c29 #define REG_BAND_IDX(_list, _reg, _idx) \ argument
30 { _list.band[0] = MT_##_reg(0, _idx); \
31 _list.band[1] = MT_##_reg(1, _idx); }
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300reg.h2536 #define AR_RC0(_idx) (AR_RC0_0+(_idx)) argument
2538 #define AR_RC1(_idx) (AR_RC1_0+(_idx)) argument
2541 #define AR_CVCACHE(_idx) (AR_CVCACHE_0+(_idx)) argument
/freebsd/sys/dev/virtio/
H A Dvirtqueue.c121 #define VQ_RING_ASSERT_VALID_IDX(_vq, _idx) \ argument
122 VQASSERT((_vq), (_idx) < (_vq)->vq_nentries, \
123 "invalid ring index: %d, max: %d", (_idx), \
/freebsd/sys/dev/axgbe/
H A Dxgbe.h264 #define XGBE_GET_DESC_DATA(_ring, _idx) \ argument
266 ((_idx) & ((_ring)->rdesc_count - 1)))

12