Lines Matching refs:vma
125 coda_vm_open(struct vm_area_struct *vma) in coda_vm_open() argument
128 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_open()
133 cvm_ops->host_vm_ops->open(vma); in coda_vm_open()
137 coda_vm_close(struct vm_area_struct *vma) in coda_vm_close() argument
140 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_close()
143 cvm_ops->host_vm_ops->close(vma); in coda_vm_close()
146 vma->vm_ops = cvm_ops->host_vm_ops; in coda_vm_close()
153 coda_file_mmap(struct file *coda_file, struct vm_area_struct *vma) in coda_file_mmap() argument
168 if (WARN_ON(coda_file != vma->vm_file)) in coda_file_mmap()
171 count = vma->vm_end - vma->vm_start; in coda_file_mmap()
172 ppos = vma->vm_pgoff * PAGE_SIZE; in coda_file_mmap()
203 vma->vm_file = get_file(host_file); in coda_file_mmap()
204 ret = call_mmap(vma->vm_file, vma); in coda_file_mmap()
214 cvm_ops->host_vm_ops = vma->vm_ops; in coda_file_mmap()
215 if (vma->vm_ops) in coda_file_mmap()
216 cvm_ops->vm_ops = *vma->vm_ops; in coda_file_mmap()
223 vma->vm_ops = &cvm_ops->vm_ops; in coda_file_mmap()