Lines Matching refs:dma_addr
73 unsigned long dma_addr; in net_devmem_alloc_dmabuf() local
78 dma_addr = gen_pool_alloc_owner(binding->chunk_pool, PAGE_SIZE, in net_devmem_alloc_dmabuf()
80 if (!dma_addr) in net_devmem_alloc_dmabuf()
83 offset = dma_addr - owner->base_dma_addr; in net_devmem_alloc_dmabuf()
97 unsigned long dma_addr = net_devmem_get_dma_addr(niov); in net_devmem_free_dmabuf() local
99 if (WARN_ON(!gen_pool_has_addr(binding->chunk_pool, dma_addr, in net_devmem_free_dmabuf()
103 gen_pool_free(binding->chunk_pool, dma_addr, PAGE_SIZE); in net_devmem_free_dmabuf()
241 dma_addr_t dma_addr = sg_dma_address(sg); in net_devmem_bind_dmabuf() local
254 owner->base_dma_addr = dma_addr; in net_devmem_bind_dmabuf()
258 err = gen_pool_add_owner(binding->chunk_pool, dma_addr, in net_devmem_bind_dmabuf()
259 dma_addr, len, dev_to_node(&dev->dev), in net_devmem_bind_dmabuf()