Lines Matching refs:vm_start
76 unsigned long vm_start; member
84 .vm_start = CONSISTENT_BASE,
91 unsigned long addr = head->vm_start, end = head->vm_end - size; in arm_vm_region_alloc()
104 if ((addr + size) <= c->vm_start) in arm_vm_region_alloc()
116 new->vm_start = addr; in arm_vm_region_alloc()
135 if (c->vm_active && c->vm_start == addr) in arm_vm_region_find()
222 int idx = CONSISTENT_PTE_INDEX(c->vm_start); in __dma_alloc()
223 u32 off = CONSISTENT_OFFSET(c->vm_start) & (PTRS_PER_PTE-1); in __dma_alloc()
260 return (void *)c->vm_start; in __dma_alloc()
317 user_size = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; in dma_mmap()
326 kern_size = (c->vm_end - c->vm_start) >> PAGE_SHIFT; in dma_mmap()
330 ret = remap_pfn_range(vma, vma->vm_start, in dma_mmap()
388 if ((c->vm_end - c->vm_start) != size) { in dma_free_coherent()
390 __func__, c->vm_end - c->vm_start, size); in dma_free_coherent()
392 size = c->vm_end - c->vm_start; in dma_free_coherent()
395 idx = CONSISTENT_PTE_INDEX(c->vm_start); in dma_free_coherent()
396 off = CONSISTENT_OFFSET(c->vm_start) & (PTRS_PER_PTE-1); in dma_free_coherent()
398 addr = c->vm_start; in dma_free_coherent()
431 flush_tlb_kernel_range(c->vm_start, c->vm_end); in dma_free_coherent()