| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_utils.c | 136 if (pool->n_trunk_valid == pool->n_trunk) { in mlx5_ipool_grow() 319 if (pool->gc && (lc != pool->gc || in mlx5_ipool_allocate_from_global() 531 trunk = pool->trunks[pool->free_list]; in mlx5_ipool_malloc() 626 pool->cfg.free(pool->trunks); in mlx5_ipool_free() 700 pool->cfg.free(pool->cache[i]->lc); in mlx5_ipool_destroy() 701 pool->cfg.free(pool->cache[i]); in mlx5_ipool_destroy() 750 pool->cfg.free(pool->bmp_mem); in mlx5_ipool_flush_cache() 780 pool->cfg.free(pool->bmp_mem); in mlx5_ipool_get_next_cache() 817 pool->cfg.type, pool->cfg.size, pool->n_trunk_valid, in mlx5_ipool_dump() 822 pool->cfg.type, pool->n_entry, pool->trunk_new, in mlx5_ipool_dump() [all …]
|
| H A D | mlx5_utils.h | 388 int mlx5_ipool_destroy(struct mlx5_indexed_pool *pool); 396 void mlx5_ipool_dump(struct mlx5_indexed_pool *pool); 595 #define ILIST_INSERT(pool, head, idx, elem, field) \ argument 602 (peer) = mlx5_ipool_get(pool, *(head)); \ 609 #define ILIST_REMOVE(pool, head, idx, elem, field) \ argument 616 (pool, (elem)->field.prev); \ 622 (pool, (elem)->field.next); \ 630 #define ILIST_FOREACH(pool, head, idx, elem, field) \ argument 634 (idx) ? mlx5_ipool_get(pool, idx) : NULL) 649 #define SILIST_FOREACH(pool, head, idx, elem, field) \ argument [all …]
|
| /dpdk/drivers/net/bnxt/tf_core/ |
| H A D | bitalloc.c | 74 pool->size = 0; in ba_init() 86 pool->size = size; in ba_init() 107 ba_free(pool, i); in ba_init() 140 pool->free_count--; in ba_alloc_helper() 213 pool->free_count--; in ba_alloc_reverse_helper() 244 if (pool->size > size) in ba_alloc_index_helper() 261 pool->free_count--; in ba_alloc_index_helper() 352 pool->free_count++; in ba_free_helper() 387 return (int)(pool->size) - (int)(pool->free_count); in ba_inuse_count() 458 pool->free_count == pool->size) in ba_find_next_inuse() [all …]
|
| H A D | bitalloc.h | 68 int ba_init(struct bitalloc *pool, int size, bool free); 73 int ba_alloc(struct bitalloc *pool); 74 int ba_alloc_index(struct bitalloc *pool, int index); 79 int ba_alloc_reverse(struct bitalloc *pool); 87 int ba_inuse(struct bitalloc *pool, int index); 93 int ba_inuse_free(struct bitalloc *pool, int index); 101 int ba_find_next_inuse(struct bitalloc *pool, int idx); 107 int ba_find_next_inuse_free(struct bitalloc *pool, int idx); 113 int ba_free(struct bitalloc *pool, int index); 118 int ba_free_count(struct bitalloc *pool); [all …]
|
| H A D | tf_em_hash_internal.c | 42 struct dpool *pool; in tf_em_hash_insert_int_entry() local 59 pool = (struct dpool *)tfs->em_pool[parms->dir]; in tf_em_hash_insert_int_entry() 60 index = dpool_alloc(pool, in tf_em_hash_insert_int_entry() 89 dpool_free(pool, index); in tf_em_hash_insert_int_entry() 110 dpool_set_entry_data(pool, index, parms->flow_handle); in tf_em_hash_insert_int_entry() 126 struct dpool *pool; in tf_em_hash_delete_int_entry() local 141 pool = (struct dpool *)tfs->em_pool[parms->dir]; in tf_em_hash_delete_int_entry() 142 dpool_free(pool, parms->index); in tf_em_hash_delete_int_entry() 159 struct dpool *pool; in tf_em_move_int_entry() local 176 pool = (struct dpool *)tfs->em_pool[parms->dir]; in tf_em_move_int_entry() [all …]
|
| H A D | tf_tcam_shared.c | 50 struct bitalloc *pool; member 350 struct bitalloc *pool; in tf_tcam_shared_unbind() local 416 pool = tcam_shared_wc->db[dir][pool_id].pool; in tf_tcam_shared_unbind() 484 struct bitalloc *pool; in tf_tcam_shared_alloc() local 535 pool = tcam_shared_wc->db[parms->dir][id].pool; in tf_tcam_shared_alloc() 566 struct bitalloc *pool; in tf_tcam_shared_free() local 632 pool = tcam_shared_wc->db[parms->dir][id].pool; in tf_tcam_shared_free() 685 struct bitalloc *pool; in tf_tcam_shared_set() local 739 pool = tcam_shared_wc->db[parms->dir][id].pool; in tf_tcam_shared_set() 795 struct bitalloc *pool; in tf_tcam_shared_get() local [all …]
|
| H A D | tf_rm.c | 64 struct bitalloc *pool; member 747 rc = ba_init(db[i].pool, in tf_rm_create_db() 791 tfp_free((void *)db->pool); in tf_rm_create_db() 987 rc = ba_init(db[i].pool, in tf_rm_create_db_no_reservation() 1031 tfp_free((void *)db->pool); in tf_rm_create_db_no_reservation() 1146 *pool = rm_db->db[tmp_subtype].pool; in tf_rm_get_pool() 1170 struct bitalloc *pool; in tf_rm_allocate() local 1196 id = ba_alloc(pool); in tf_rm_allocate() 1234 struct bitalloc *pool; in tf_rm_free() local 1277 struct bitalloc *pool; in tf_rm_is_allocated() local [all …]
|
| /dpdk/lib/acl/ |
| H A D | tb_mem.c | 25 size = sz + pool->alignment - 1; in tb_pool() 30 siglongjmp(pool->fail, -ENOMEM); in tb_pool() 34 block->pool = pool; in tb_pool() 36 block->next = pool->block; in tb_pool() 37 pool->block = block; in tb_pool() 39 pool->alloc += size; in tb_pool() 57 block = pool->block; in tb_alloc() 59 new_sz = (size > pool->min_alloc) ? size : pool->min_alloc; in tb_alloc() 60 block = tb_pool(pool, new_sz); in tb_alloc() 77 pool->block = NULL; in tb_free_pool() [all …]
|
| H A D | tb_mem.h | 22 struct tb_mem_pool *pool; member 36 void *tb_alloc(struct tb_mem_pool *pool, size_t size); 37 void tb_free_pool(struct tb_mem_pool *pool);
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_npa_debug.c | 11 npa_pool_dump(__io struct npa_pool_s *pool) in npa_pool_dump() argument 15 pool->ena, pool->nat_align, pool->stack_caching); in npa_pool_dump() 17 pool->stack_way_mask, pool->buf_offset); in npa_pool_dump() 21 pool->stack_max_pages, pool->stack_pages); in npa_pool_dump() 26 pool->stack_offset, pool->shift, pool->avg_level); in npa_pool_dump() 28 pool->avg_con, pool->fc_ena, pool->fc_stype); in npa_pool_dump() 30 pool->fc_hyst_bits, pool->fc_up_crossing); in npa_pool_dump() 39 pool->err_int_ena); in npa_pool_dump() 43 pool->thresh_int_ena, pool->thresh_up); in npa_pool_dump() 45 pool->thresh_qint_idx, pool->err_qint_idx); in npa_pool_dump() [all …]
|
| H A D | cnxk_telemetry_npa.c | 118 __io struct npa_pool_s *pool; in cnxk_tel_npa_pool() local 147 pool = &rsp->pool; in cnxk_tel_npa_pool() 149 CNXK_TEL_DICT_INT(d, pool, ena, w1_); in cnxk_tel_npa_pool() 154 CNXK_TEL_DICT_INT(d, pool, buf_size, w1_); in cnxk_tel_npa_pool() 157 CNXK_TEL_DICT_INT(d, pool, op_pc, w3_); in cnxk_tel_npa_pool() 159 CNXK_TEL_DICT_INT(d, pool, shift, w4_); in cnxk_tel_npa_pool() 161 CNXK_TEL_DICT_INT(d, pool, avg_con, w4_); in cnxk_tel_npa_pool() 162 CNXK_TEL_DICT_INT(d, pool, fc_ena, w4_); in cnxk_tel_npa_pool() 167 CNXK_TEL_DICT_PTR(d, pool, fc_addr, w5_); in cnxk_tel_npa_pool() 169 CNXK_TEL_DICT_PTR(d, pool, ptr_end, w7_); in cnxk_tel_npa_pool() [all …]
|
| H A D | roc_npa.c | 44 struct npa_pool_s *pool) in npa_aura_pool_init() argument 65 mbox_memcpy(&pool_init_req->pool, pool, sizeof(*pool)); in npa_aura_pool_init() 107 pool_req->pool.ena = 0; in npa_aura_pool_fini() 337 pool->ena = 1; in npa_aura_pool_pair_alloc() 341 pool->shift = pool->shift < 8 ? 0 : pool->shift - 8; in npa_aura_pool_pair_alloc() 342 pool->ptr_start = 0; in npa_aura_pool_pair_alloc() 343 pool->ptr_end = ~0; in npa_aura_pool_pair_alloc() 348 pool->avg_con = 0; in npa_aura_pool_pair_alloc() 401 if (pool == NULL) { in roc_npa_pool_create() 405 pool = &defpool; in roc_npa_pool_create() [all …]
|
| /dpdk/drivers/mempool/octeontx/ |
| H A D | rte_mempool_octeontx.c | 15 uintptr_t pool; in octeontx_fpavf_alloc() local 37 mp->pool_id = (uint64_t)pool; in octeontx_fpavf_alloc() 48 uintptr_t pool; in octeontx_fpavf_free() local 49 pool = (uintptr_t)mp->pool_id; in octeontx_fpavf_free() 74 uintptr_t pool; in octeontx_fpavf_enqueue() local 77 pool = (uintptr_t)mp->pool_id; in octeontx_fpavf_enqueue() 79 pool &= ~(uint64_t)FPA_GPOOL_MASK; in octeontx_fpavf_enqueue() 91 uintptr_t pool; in octeontx_fpavf_dequeue() local 94 pool = (uintptr_t)mp->pool_id; in octeontx_fpavf_dequeue() 122 uintptr_t pool; in octeontx_fpavf_get_count() local [all …]
|
| H A D | octeontx_fpavf.c | 103 struct fpavf_res pool[FPA_VF_MAX]; member 129 res = &fpadev.pool[i]; in octeontx_fpa_gpool_alloc() 156 if (fpadev.pool[i].vf_id != gpool) in octeontx_get_fpavf() 159 return &fpadev.pool[i]; in octeontx_get_fpavf() 200 if (gpool != fpadev.pool[i].vf_id) in octeontx_fpa_handle_valid() 203 res = &fpadev.pool[i]; in octeontx_fpa_handle_valid() 731 fpadev.pool[i].domain_id = ~0; in octeontx_fpavf_setup() 733 fpadev.pool[i].sz128 = 0; in octeontx_fpavf_setup() 734 fpadev.pool[i].bar0 = NULL; in octeontx_fpavf_setup() 766 fpadev.pool[vf_idx].bar0 = bar0; in octeontx_fpavf_identify() [all …]
|
| /dpdk/drivers/bus/dpaa/base/qbman/ |
| H A D | bman.c | 185 struct bman_pool *pool = NULL; in bman_new_pool() local 205 pool = kmalloc(sizeof(*pool), GFP_KERNEL); in bman_new_pool() 206 if (!pool) in bman_new_pool() 208 pool->params = *params; in bman_new_pool() 210 atomic_set(&pool->in_use, 1); in bman_new_pool() 213 pool->params.bpid = bpid; in bman_new_pool() 215 return pool; in bman_new_pool() 222 kfree(pool); in bman_new_pool() 233 kfree(pool); in bman_free_pool() 238 return &pool->params; in bman_get_params() [all …]
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_rxtx_vec_common.h | 108 struct rte_mempool *pool; in bnxt_tx_cmp_vec_fast() local 115 pool = txr->tx_buf_ring[cons]->pool; in bnxt_tx_cmp_vec_fast() 117 rte_mempool_put_bulk(pool, (void **)&txr->tx_buf_ring[cons], num); in bnxt_tx_cmp_vec_fast() 123 rte_mempool_put_bulk(pool, (void **)&txr->tx_buf_ring[cons], in bnxt_tx_cmp_vec_fast() 139 struct rte_mempool *pool; in bnxt_tx_cmp_vec() local 149 pool = txr->tx_buf_ring[cons]->pool; in bnxt_tx_cmp_vec() 155 if (!mbuf || mbuf->pool != pool) in bnxt_tx_cmp_vec() 161 rte_mempool_put_bulk(pool, in bnxt_tx_cmp_vec()
|
| /dpdk/drivers/raw/ioat/ |
| H A D | ioat_rawdev_test.c | 18 static struct rte_mempool *pool; variable 52 srcs[i] = rte_pktmbuf_alloc(pool); in do_multi_copies() 137 src = rte_pktmbuf_alloc(pool); in test_enqueue_copies() 138 dst = rte_pktmbuf_alloc(pool); in test_enqueue_copies() 193 src = rte_pktmbuf_alloc(pool); in test_enqueue_copies() 194 dst = rte_pktmbuf_alloc(pool); in test_enqueue_copies() 301 src = rte_pktmbuf_alloc(pool); in test_burst_capacity() 302 dst = rte_pktmbuf_alloc(pool); in test_burst_capacity() 642 if (pool == NULL) { in ioat_rawdev_test() 720 rte_mempool_free(pool); in ioat_rawdev_test() [all …]
|
| /dpdk/app/test-crypto-perf/ |
| H A D | cperf_test_common.c | 39 m->pool = mp; in fill_single_seg_mbuf() 70 m->pool = mp; in fill_multi_seg_mbuf() 147 struct rte_mempool **pool) in cperf_alloc_common_memory() argument 161 *pool = rte_crypto_op_pool_create( in cperf_alloc_common_memory() 165 if (*pool == NULL) { in cperf_alloc_common_memory() 171 rte_mempool_obj_iter(*pool, mempool_asym_obj_init, NULL); in cperf_alloc_common_memory() 232 *pool = rte_mempool_create_empty(pool_name, in cperf_alloc_common_memory() 235 if (*pool == NULL) { in cperf_alloc_common_memory() 244 ret = rte_mempool_set_ops_byname(*pool, in cperf_alloc_common_memory() 253 ret = rte_mempool_populate_default(*pool); in cperf_alloc_common_memory() [all …]
|
| /dpdk/app/test-eventdev/ |
| H A D | test_perf_common.h | 64 struct rte_mempool *pool; member 100 struct rte_mempool *const pool = t->pool;\ 111 perf_process_last_stage(struct rte_mempool *const pool, in perf_process_last_stage() argument 126 rte_mempool_put_bulk(pool, bufs, buf_sz); in perf_process_last_stage() 132 perf_process_last_stage_latency(struct rte_mempool *const pool, in perf_process_last_stage_latency() argument 151 rte_mempool_put_bulk(pool, bufs, buf_sz); in perf_process_last_stage_latency() 187 void perf_worker_cleanup(struct rte_mempool *const pool, uint8_t dev_id,
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_rxtx_vec.h | 22 rte_mempool_put_bulk(tx_entry->mbuf->pool, (void **)tx_entry, in hns3_tx_bulk_free_buffers() 36 if (nb_free && m->pool != free[0]->pool) { in hns3_tx_bulk_free_buffers() 37 rte_mempool_put_bulk(free[0]->pool, (void **)free, in hns3_tx_bulk_free_buffers() 45 rte_mempool_put_bulk(free[0]->pool, (void **)free, nb_free); in hns3_tx_bulk_free_buffers()
|
| /dpdk/app/test/ |
| H A D | test_table.c | 31 struct rte_mempool *pool = NULL; variable 83 rte_mempool_free(pool); in app_free_resources() 91 pool = rte_mempool_lookup("mempool"); in app_init_mbuf_pools() 92 if (!pool) { in app_init_mbuf_pools() 93 pool = rte_pktmbuf_pool_create( in app_init_mbuf_pools() 98 if (pool == NULL) in app_init_mbuf_pools()
|
| H A D | test_table_ports.c | 53 mbuf[0] = (void *)rte_pktmbuf_alloc(pool); in test_port_ring_reader() 66 mbuf[i] = rte_pktmbuf_alloc(pool); in test_port_ring_reader() 133 mbuf[0] = rte_pktmbuf_alloc(pool); in test_port_ring_writer() 148 mbuf[i] = rte_pktmbuf_alloc(pool); in test_port_ring_writer() 164 mbuf[i] = rte_pktmbuf_alloc(pool); in test_port_ring_writer() 178 mbuf[i] = rte_pktmbuf_alloc(pool); in test_port_ring_writer()
|
| /dpdk/drivers/net/hinic/base/ |
| H A D | hinic_compat.h | 133 #define pci_pool_alloc(pool, handle) dma_pool_alloc(pool, handle) argument 134 #define pci_pool_free(pool, vaddr, addr) dma_pool_free(pool, vaddr, addr) argument 138 void dma_pool_destroy(struct dma_pool *pool); 139 void *dma_pool_alloc(struct pci_pool *pool, dma_addr_t *dma_addr); 140 void dma_pool_free(struct pci_pool *pool, void *vaddr, dma_addr_t dma);
|
| /dpdk/drivers/bus/dpaa/include/ |
| H A D | fsl_bman.h | 275 void bman_free_pool(struct bman_pool *pool); 285 const struct bman_pool_params *bman_get_params(const struct bman_pool *pool); 296 int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num, 310 int bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num, 326 u32 bman_query_free_buffers(struct bman_pool *pool); 333 int bman_update_pool_thresholds(struct bman_pool *pool, const u32 *thresholds);
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cnxk_cryptodev_ops.c | 187 struct rte_mempool *pool; in cnxk_cpt_metabuf_mempool_create() local 220 if (pool == NULL) { in cnxk_cpt_metabuf_mempool_create() 227 meta_info->pool = pool; in cnxk_cpt_metabuf_mempool_create() 238 rte_mempool_free(meta_info->pool); in cnxk_cpt_metabuf_mempool_destroy() 240 meta_info->pool = NULL; in cnxk_cpt_metabuf_mempool_destroy() 562 struct rte_mempool *pool) in sym_session_configure() argument 600 rte_mempool_put(pool, priv); in sym_session_configure() 609 struct rte_mempool *pool) in cnxk_cpt_sym_session_configure() argument 625 struct rte_mempool *pool; in sym_session_clear() local 637 pool = rte_mempool_from_obj(priv); in sym_session_clear() [all …]
|