| /dpdk/drivers/net/sfc/ |
| H A D | sfc_nic_dma.c | 46 struct rte_mempool_memhdr *memhdr, in sfc_nic_dma_register_mempool_chunk() argument 57 if (memhdr->iova == RTE_BAD_IOVA) in sfc_nic_dma_register_mempool_chunk() 64 nic_base = sfc_nic_dma_map(&sas->nic_dma_info, memhdr->iova, in sfc_nic_dma_register_mempool_chunk() 65 memhdr->len); in sfc_nic_dma_register_mempool_chunk() 69 rc = efx_nic_dma_config_add(sa->nic, memhdr->iova, memhdr->len, in sfc_nic_dma_register_mempool_chunk() 74 memhdr->addr, (uint64_t)memhdr->iova, memhdr->len, in sfc_nic_dma_register_mempool_chunk() 82 memhdr->addr, (uint64_t)memhdr->iova, memhdr->len, in sfc_nic_dma_register_mempool_chunk()
|
| /dpdk/lib/mempool/ |
| H A D | rte_mempool.c | 291 memhdr->free_cb(memhdr, memhdr->opaque); in rte_mempool_free_memchunks() 292 rte_free(memhdr); in rte_mempool_free_memchunks() 334 memhdr = rte_zmalloc("MEMPOOL_MEMHDR", sizeof(*memhdr), 0); in rte_mempool_populate_iova() 335 if (memhdr == NULL) in rte_mempool_populate_iova() 338 memhdr->mp = mp; in rte_mempool_populate_iova() 339 memhdr->addr = vaddr; in rte_mempool_populate_iova() 340 memhdr->iova = iova; in rte_mempool_populate_iova() 341 memhdr->len = len; in rte_mempool_populate_iova() 342 memhdr->free_cb = free_cb; in rte_mempool_populate_iova() 343 memhdr->opaque = opaque; in rte_mempool_populate_iova() [all …]
|
| H A D | rte_mempool.h | 175 typedef void (rte_mempool_memchunk_free_cb_t)(struct rte_mempool_memhdr *memhdr, 956 void *opaque, struct rte_mempool_memhdr *memhdr,
|
| /dpdk/drivers/mempool/bucket/ |
| H A D | rte_mempool_bucket.c | 369 struct rte_mempool_memhdr *memhdr, in count_underfilled_buckets() argument 379 align = (uintptr_t)RTE_PTR_ALIGN_CEIL(memhdr->addr, bucket_page_sz) - in count_underfilled_buckets() 380 (uintptr_t)memhdr->addr; in count_underfilled_buckets() 382 for (iter = (uint8_t *)memhdr->addr + align; in count_underfilled_buckets() 383 iter < (uint8_t *)memhdr->addr + memhdr->len; in count_underfilled_buckets()
|
| /dpdk/app/test-pmd/ |
| H A D | testpmd.c | 981 pid, memhdr->addr); in dma_unmap_cb() 985 ret = rte_dev_dma_unmap(dev_info.device, memhdr->addr, 0, memhdr->len); in dma_unmap_cb() 990 memhdr->addr, dev_info.device->name); in dma_unmap_cb() 993 ret = rte_extmem_unregister(memhdr->addr, memhdr->len); in dma_unmap_cb() 996 "unable to un-register addr 0x%p\n", memhdr->addr); in dma_unmap_cb() 1002 struct rte_mempool_memhdr *memhdr, unsigned mem_idx __rte_unused) in dma_map_cb() argument 1008 ret = rte_extmem_register(memhdr->addr, memhdr->len, NULL, 0, in dma_map_cb() 1012 "unable to register addr 0x%p\n", memhdr->addr); in dma_map_cb() 1023 pid, memhdr->addr); in dma_map_cb() 1026 ret = rte_dev_dma_map(dev_info.device, memhdr->addr, 0, memhdr->len); in dma_map_cb() [all …]
|
| /dpdk/drivers/net/mlx4/ |
| H A D | mlx4_mr.c | 1206 struct rte_mempool_memhdr *memhdr, in mlx4_mr_update_ext_mp_cb() argument 1214 uintptr_t addr = (uintptr_t)memhdr->addr; in mlx4_mr_update_ext_mp_cb() 1215 size_t len = memhdr->len; in mlx4_mr_update_ext_mp_cb() 1330 struct rte_mempool_memhdr *memhdr, in mlx4_mr_update_mp_cb() argument 1341 (uintptr_t)memhdr->addr); in mlx4_mr_update_mp_cb()
|
| /dpdk/drivers/common/mlx5/ |
| H A D | mlx5_common_mr.c | 1288 struct rte_mempool_memhdr *memhdr, in mlx5_range_from_mempool_chunk() argument 1292 uintptr_t start = (uintptr_t)memhdr->addr; in mlx5_range_from_mempool_chunk() 1297 range->end = RTE_ALIGN_CEIL(start + memhdr->len, page_size); in mlx5_range_from_mempool_chunk()
|
| /dpdk/drivers/net/af_xdp/ |
| H A D | rte_eth_af_xdp.c | 963 struct rte_mempool_memhdr *memhdr; in get_base_addr() local 966 memhdr = STAILQ_FIRST(&mp->mem_list); in get_base_addr() 967 memhdr_addr = (uintptr_t)memhdr->addr; in get_base_addr()
|
| /dpdk/app/test/ |
| H A D | test_mempool.c | 481 __rte_unused struct rte_mempool_memhdr *memhdr, in test_mp_mem_init() argument
|
| /dpdk/examples/ntb/ |
| H A D | ntb_fwd.c | 1229 ntb_mempool_mz_free(__rte_unused struct rte_mempool_memhdr *memhdr, in ntb_mempool_mz_free() argument
|