Home
last modified time | relevance | path

Searched refs:new_idx (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/net/route/
H A Dnhop_utils.c115 bitmask_copy(const struct bitmask_head *bi, void *new_idx, uint32_t new_items) in bitmask_copy() argument
119 _bitmask_init_idx(new_idx, new_items); in bitmask_copy()
124 memcpy(new_idx, bi->idx, _BLOCKS_TO_SZ(bi->blocks)); in bitmask_copy()
136 bitmask_swap(struct bitmask_head *bh, void *new_idx, uint32_t new_items, void **pidx) in bitmask_swap() argument
142 bh->idx = (u_long *)new_idx; in bitmask_swap()
H A Dnhop_utils.h176 void bitmask_swap(struct bitmask_head *bh, void *new_idx, uint32_t new_items, void **pidx);
178 int bitmask_copy(const struct bitmask_head *bi, void *new_idx, uint32_t new_items);
/freebsd/contrib/llvm-project/lldb/source/Interpreter/
H A DOptionValueArray.cpp119 uint32_t new_idx = UINT32_MAX; in GetSubValue() local
122 new_idx = array_count - idx; in GetSubValue()
125 new_idx = idx; in GetSubValue()
128 if (new_idx < array_count) { in GetSubValue()
129 if (m_values[new_idx]) { in GetSubValue()
131 return m_values[new_idx]->GetSubValue(exe_ctx, sub_value, error); in GetSubValue()
133 return m_values[new_idx]; in GetSubValue()
/freebsd/sys/dev/virtio/
H A Dvirtio_ring.h167 vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old) in vring_need_event() argument
170 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old); in vring_need_event()
H A Dvirtqueue.c823 uint16_t new_idx, prev_idx, event_idx, flags; in vq_ring_must_notify_host() local
826 new_idx = vq_htog16(vq, vq->vq_ring.avail->idx); in vq_ring_must_notify_host()
827 prev_idx = new_idx - vq->vq_queued_cnt; in vq_ring_must_notify_host()
830 return (vring_need_event(event_idx, new_idx, prev_idx) != 0); in vq_ring_must_notify_host()
/freebsd/crypto/openssl/crypto/engine/
H A Deng_dyn.c212 int new_idx = ENGINE_get_ex_new_index(0, NULL, NULL, NULL, in dynamic_get_data_ctx() local
214 if (new_idx == -1) { in dynamic_get_data_ctx()
223 dynamic_ex_data_idx = new_idx; in dynamic_get_data_ctx()
224 new_idx = -1; in dynamic_get_data_ctx()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_table_value.c184 void *new_idx; in resize_shared_value_storage() local
192 new_idx = NULL; in resize_shared_value_storage()
207 ipfw_objhash_bitmap_alloc(val_size, (void *)&new_idx, in resize_shared_value_storage()
224 ipfw_objhash_bitmap_merge(CHAIN_TO_VI(ch), &new_idx, &new_blocks); in resize_shared_value_storage()
231 ipfw_objhash_bitmap_swap(CHAIN_TO_VI(ch), &new_idx, &new_blocks); in resize_shared_value_storage()
244 ipfw_objhash_bitmap_free(new_idx, new_blocks); in resize_shared_value_storage()
H A Dip_fw_table.c1468 void *new_idx, *old_tablestate, *tablestate; in ipfw_resize_tables() local
1485 ipfw_objhash_bitmap_alloc(ntables, (void *)&new_idx, &new_blocks); in ipfw_resize_tables()
1503 ipfw_objhash_bitmap_merge(ni, &new_idx, &new_blocks); in ipfw_resize_tables()
1510 ipfw_objhash_bitmap_swap(ni, &new_idx, &new_blocks); in ipfw_resize_tables()
1532 ipfw_objhash_bitmap_free(new_idx, new_blocks); in ipfw_resize_tables()
H A Dip_fw_sockopt.c3325 u_long *old_idx, *new_idx; in ipfw_objhash_bitmap_merge() local
3330 new_idx = *idx; in ipfw_objhash_bitmap_merge()
3334 memcpy(&new_idx[new_blocks * i], &old_idx[old_blocks * i], in ipfw_objhash_bitmap_merge()
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DStreamTee.h73 size_t new_idx = m_streams.size(); in AppendStream() local
76 return new_idx; in AppendStream()
/freebsd/usr.sbin/bhyve/
H A Dvirtio.c478 uint16_t event_idx, new_idx, old_idx; in vq_endchains() local
492 vq->vq_save_used = new_idx = vq->vq_used->idx; in vq_endchains()
509 intr = (uint16_t)(new_idx - event_idx - 1) < in vq_endchains()
510 (uint16_t)(new_idx - old_idx); in vq_endchains()
512 intr = new_idx != old_idx && in vq_endchains()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dbtree.c1161 zfs_btree_index_t new_idx; in zfs_btree_add_idx() local
1162 VERIFY3P(zfs_btree_first_helper(tree, subtree, &new_idx), !=, in zfs_btree_add_idx()
1164 ASSERT0(new_idx.bti_offset); in zfs_btree_add_idx()
1165 ASSERT(!zfs_btree_is_core(new_idx.bti_node)); in zfs_btree_add_idx()
1167 (zfs_btree_leaf_t *)new_idx.bti_node, buf, 0); in zfs_btree_add_idx()
1582 uint32_t new_idx = idx; in zfs_btree_remove_from_node() local
1586 new_idx += keep_hdr->bth_count + 1; in zfs_btree_remove_from_node()
1628 ASSERT3P(keep->btc_children[new_idx], ==, rm_hdr); in zfs_btree_remove_from_node()
1629 bt_shift_core_left(tree, keep, new_idx, keep_hdr->bth_count - new_idx, in zfs_btree_remove_from_node()
/freebsd/sys/dev/liquidio/base/
H A Dcn23xx_pf_device.c786 uint32_t new_idx; in lio_cn23xx_pf_update_read_index() local
798 new_idx = (iq->octeon_read_index + in lio_cn23xx_pf_update_read_index()
802 return (new_idx); in lio_cn23xx_pf_update_read_index()
/freebsd/sys/security/mac_do/
H A Dmac_do.c1652 int old_idx = 1, new_idx = 1; in rule_grant_supplementary_groups() local
1662 for (; new_idx < new_ngroups; ++new_idx) { in rule_grant_supplementary_groups()
1663 const gid_t gid = new_groups[new_idx]; in rule_grant_supplementary_groups()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_ll2.c214 u16 new_idx = 0, num_bds = 0, num_bds_in_packet = 0; in ecore_ll2_txq_completion() local
231 new_idx = OSAL_LE16_TO_CPU(*p_tx->p_fw_cons); in ecore_ll2_txq_completion()
232 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in ecore_ll2_txq_completion()
770 u16 new_idx = 0, num_bds = 0; in ecore_ll2_lb_txq_completion() local
773 new_idx = OSAL_LE16_TO_CPU(*p_tx->p_fw_cons); in ecore_ll2_lb_txq_completion()
774 num_bds = ((s16)new_idx - (s16)p_tx->bds_idx); in ecore_ll2_lb_txq_completion()
/freebsd/sys/dev/iwn/
H A Dif_iwn.c3804 int diff, min_retries, max_retries, new_idx, loop_end; in iwn_ampdu_index_check() local
3806 new_idx = idx - IWN_LONG_RETRY_LIMIT_LOG; in iwn_ampdu_index_check()
3807 if (new_idx < 0) in iwn_ampdu_index_check()
3808 new_idx += IWN_TX_RING_COUNT; in iwn_ampdu_index_check()
3814 if (!iwn_ampdu_check_bitmap(bitmap, start, new_idx)) { in iwn_ampdu_index_check()
3815 data = &ring->data[new_idx]; in iwn_ampdu_index_check()
3820 ring->qid, new_idx); in iwn_ampdu_index_check()
3829 data = &ring->data[new_idx]; in iwn_ampdu_index_check()
3830 diff = idx - new_idx; in iwn_ampdu_index_check()
3835 if ((new_idx % 2) == 0) in iwn_ampdu_index_check()
[all …]