Home
last modified time | relevance | path

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

/f-stack/freebsd/net/route/
H A Dnhop_utils.c116 bitmask_copy(const struct bitmask_head *bi, void *new_idx, uint32_t new_items) in bitmask_copy() argument
120 _bitmask_init_idx(new_idx, new_items); in bitmask_copy()
125 memcpy(new_idx, bi->idx, _BLOCKS_TO_SZ(bi->blocks)); in bitmask_copy()
137 bitmask_swap(struct bitmask_head *bh, void *new_idx, uint32_t new_items, void **pidx) in bitmask_swap() argument
143 bh->idx = (u_long *)new_idx; in bitmask_swap()
H A Dnhop_utils.h190 void bitmask_swap(struct bitmask_head *bh, void *new_idx, uint32_t new_items, void **pidx);
192 int bitmask_copy(const struct bitmask_head *bi, void *new_idx, uint32_t new_items);
/f-stack/dpdk/drivers/crypto/virtio/
H A Dvirtio_ring.h132 vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old) in vring_need_event() argument
134 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old); in vring_need_event()
/f-stack/dpdk/drivers/net/virtio/
H A Dvirtio_ring.h183 vring_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old) in vring_need_event() argument
185 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old); in vring_need_event()
/f-stack/dpdk/drivers/raw/octeontx2_ep/
H A Dotx2_ep_vf.c415 uint32_t new_idx = rte_read32(iq->inst_cnt_reg); in sdp_vf_update_read_index() local
421 if (iq->reset_instr_cnt < new_idx) in sdp_vf_update_read_index()
422 new_idx -= iq->reset_instr_cnt; in sdp_vf_update_read_index()
424 new_idx += (0xffffffff - iq->reset_instr_cnt) + 1; in sdp_vf_update_read_index()
429 new_idx %= iq->nb_desc; in sdp_vf_update_read_index()
431 return new_idx; in sdp_vf_update_read_index()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_table_value.c181 void *new_idx; in resize_shared_value_storage() local
189 new_idx = NULL; in resize_shared_value_storage()
204 ipfw_objhash_bitmap_alloc(val_size, (void *)&new_idx, in resize_shared_value_storage()
221 ipfw_objhash_bitmap_merge(CHAIN_TO_VI(ch), &new_idx, &new_blocks); in resize_shared_value_storage()
228 ipfw_objhash_bitmap_swap(CHAIN_TO_VI(ch), &new_idx, &new_blocks); in resize_shared_value_storage()
241 ipfw_objhash_bitmap_free(new_idx, new_blocks); in resize_shared_value_storage()
H A Dip_fw_table.c1542 void *new_idx, *old_tablestate, *tablestate; in ipfw_resize_tables() local
1559 ipfw_objhash_bitmap_alloc(ntables, (void *)&new_idx, &new_blocks); in ipfw_resize_tables()
1577 ipfw_objhash_bitmap_merge(ni, &new_idx, &new_blocks); in ipfw_resize_tables()
1584 ipfw_objhash_bitmap_swap(ni, &new_idx, &new_blocks); in ipfw_resize_tables()
1607 ipfw_objhash_bitmap_free(new_idx, new_blocks); in ipfw_resize_tables()
H A Dip_fw_sockopt.c4270 u_long *old_idx, *new_idx; in ipfw_objhash_bitmap_merge() local
4275 new_idx = *idx; in ipfw_objhash_bitmap_merge()
4279 memcpy(&new_idx[new_blocks * i], &old_idx[old_blocks * i], in ipfw_objhash_bitmap_merge()
/f-stack/freebsd/contrib/openzfs/module/zfs/
H A Dbtree.c1056 zfs_btree_index_t new_idx; in zfs_btree_add_idx() local
1058 ASSERT0(new_idx.bti_offset); in zfs_btree_add_idx()
1059 ASSERT(!new_idx.bti_node->bth_core); in zfs_btree_add_idx()
1061 (zfs_btree_leaf_t *)new_idx.bti_node, buf, 0); in zfs_btree_add_idx()
1476 uint64_t new_idx = idx; in zfs_btree_remove_from_node() local
1480 new_idx += keep_hdr->bth_count + 1; in zfs_btree_remove_from_node()
1522 ASSERT3P(keep->btc_children[new_idx], ==, rm_hdr); in zfs_btree_remove_from_node()
1523 bt_shift_core_left(tree, keep, new_idx, keep_hdr->bth_count - new_idx, in zfs_btree_remove_from_node()
1718 uint64_t new_idx = idx; in zfs_btree_remove_idx() local
1722 new_idx += keep_hdr->bth_count + 1; // 449 in zfs_btree_remove_idx()
[all …]
/f-stack/dpdk/lib/librte_efd/
H A Drte_efd.c969 uint32_t new_idx; in efd_compute_update() local
1043 new_idx = (uint32_t) ((uintptr_t) slot_id); in efd_compute_update()
1045 rte_memcpy(EFD_KEY(new_idx, table), key, table->key_len); in efd_compute_update()
1046 current_group->key_idx[current_group->num_rules] = new_idx; in efd_compute_update()
/f-stack/dpdk/lib/librte_vhost/
H A Dvhost.h722 vhost_need_event(uint16_t event_idx, uint16_t new_idx, uint16_t old) in vhost_need_event() argument
724 return (uint16_t)(new_idx - event_idx - 1) < (uint16_t)(new_idx - old); in vhost_need_event()
/f-stack/dpdk/lib/librte_hash/
H A Drte_cuckoo_hash.c737 uint16_t sig, uint32_t new_idx, in rte_hash_cuckoo_insert_mw() argument
777 new_idx, in rte_hash_cuckoo_insert_mw()
802 uint16_t sig, uint32_t new_idx, in rte_hash_cuckoo_move_insert_mw() argument
909 new_idx, in rte_hash_cuckoo_move_insert_mw()
928 uint32_t new_idx, int32_t *ret_val) in rte_hash_cuckoo_make_space_mw() argument
954 new_idx, ret_val); in rte_hash_cuckoo_make_space_mw()
/f-stack/dpdk/drivers/net/cxgbe/
H A Dcxgbe_main.c333 u32 v, new_idx; in cxgb4_set_rspq_intr_params() local
335 new_idx = closest_thres(&adap->sge, cnt); in cxgb4_set_rspq_intr_params()
336 if (q->desc && q->pktcnt_idx != new_idx) { in cxgb4_set_rspq_intr_params()
343 &v, &new_idx); in cxgb4_set_rspq_intr_params()
347 q->pktcnt_idx = new_idx; in cxgb4_set_rspq_intr_params()
/f-stack/freebsd/arm/arm/
H A Dpmap-v6.c540 int old_idx, new_idx; in pmap_remap_vm_attr() local
544 new_idx = PTE2_ATTR2IDX(pte2_attr_tab[(int)new_attr]); in pmap_remap_vm_attr()
547 tex_class[old_idx] = tex_class[new_idx]; in pmap_remap_vm_attr()