MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dma_pool_alloc

Function dma_pool_alloc

dpdk/drivers/net/hinic/base/hinic_pmd_hwdev.c:308–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void *dma_pool_alloc(struct pci_pool *pool, dma_addr_t *dma_addr)
309{
310 void *buf;
311
312 buf = hinic_dma_mem_zalloc(pool->hwdev, pool->elem_size, dma_addr,
313 (u32)pool->align, SOCKET_ID_ANY);
314 if (buf)
315 rte_atomic32_inc(&pool->inuse);
316
317 return buf;
318}
319
320void dma_pool_free(struct pci_pool *pool, void *vaddr, dma_addr_t dma)
321{

Callers

nothing calls this directly

Calls 2

hinic_dma_mem_zallocFunction · 0.85
rte_atomic32_incFunction · 0.50

Tested by

no test coverage detected