Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/ti/
H A Dk3-cppi-desc-pool.c20 void *cpumem; /* dma_alloc map */ member
37 if (pool->cpumem) in k3_cppi_desc_pool_destroy()
38 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_destroy()
85 pool->cpumem = dma_alloc_coherent(pool->dev, pool->mem_size, in k3_cppi_desc_pool_create_name()
88 if (!pool->cpumem) in k3_cppi_desc_pool_create_name()
91 ret = gen_pool_add_virt(pool->gen_pool, (unsigned long)pool->cpumem, in k3_cppi_desc_pool_create_name()
102 dma_free_coherent(pool->dev, pool->mem_size, pool->cpumem, in k3_cppi_desc_pool_create_name()
117 return addr ? pool->dma_addr + (addr - pool->cpumem) : 0; in k3_cppi_desc_pool_virt2dma()
123 return dma ? pool->cpumem + (dma - pool->dma_addr) : NULL; in k3_cppi_desc_pool_dma2virt()
153 return pool->cpumem; in k3_cppi_desc_pool_cpuaddr()