Home
last modified time | relevance | path

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

/kernel/dma/
Dcoherent.c14 void *virt_base; member
59 dma_mem->virt_base = mem_base; in dma_init_coherent_memory()
82 memunmap(mem->virt_base); in _dma_release_coherent_memory()
164 ret = mem->virt_base + ((dma_addr_t)pageno << PAGE_SHIFT); in __dma_alloc_from_coherent()
202 if (mem && vaddr >= mem->virt_base && vaddr < in __dma_release_from_coherent()
203 (mem->virt_base + ((dma_addr_t)mem->size << PAGE_SHIFT))) { in __dma_release_from_coherent()
204 int page = (vaddr - mem->virt_base) >> PAGE_SHIFT; in __dma_release_from_coherent()
237 if (mem && vaddr >= mem->virt_base && vaddr + size <= in __dma_mmap_from_coherent()
238 (mem->virt_base + ((dma_addr_t)mem->size << PAGE_SHIFT))) { in __dma_mmap_from_coherent()
240 int start = (vaddr - mem->virt_base) >> PAGE_SHIFT; in __dma_mmap_from_coherent()