Lines Matching full:area
16 struct vm_struct *area = find_vm_area(cpu_addr); in dma_common_find_pages() local
18 if (!area || area->flags != VM_DMA_COHERENT) in dma_common_find_pages()
20 return area->pages; in dma_common_find_pages()
26 struct vm_struct *area; in __dma_common_pages_remap() local
28 area = get_vm_area_caller(size, VM_DMA_COHERENT, caller); in __dma_common_pages_remap()
29 if (!area) in __dma_common_pages_remap()
32 if (map_vm_area(area, prot, pages)) { in __dma_common_pages_remap()
33 vunmap(area->addr); in __dma_common_pages_remap()
37 return area; in __dma_common_pages_remap()
47 struct vm_struct *area; in dma_common_pages_remap() local
49 area = __dma_common_pages_remap(pages, size, prot, caller); in dma_common_pages_remap()
50 if (!area) in dma_common_pages_remap()
53 area->pages = pages; in dma_common_pages_remap()
55 return area->addr; in dma_common_pages_remap()
67 struct vm_struct *area; in dma_common_contiguous_remap() local
76 area = __dma_common_pages_remap(pages, size, prot, caller); in dma_common_contiguous_remap()
80 if (!area) in dma_common_contiguous_remap()
82 return area->addr; in dma_common_contiguous_remap()
90 struct vm_struct *area = find_vm_area(cpu_addr); in dma_common_free_remap() local
92 if (!area || area->flags != VM_DMA_COHERENT) { in dma_common_free_remap()
93 WARN(1, "trying to free invalid coherent area: %p\n", cpu_addr); in dma_common_free_remap()