Lines Matching defs:vma
672 static int ib_uverbs_mmap(struct file *filp, struct vm_area_struct *vma)
685 vma->vm_ops = &rdma_umap_ops;
686 ret = ucontext->device->mmap(ucontext, vma);
696 static void rdma_umap_open(struct vm_area_struct *vma)
698 struct ib_uverbs_file *ufile = vma->vm_file->private_data;
699 struct rdma_umap_priv *opriv = vma->vm_private_data;
717 rdma_umap_priv_init(priv, vma, opriv->entry);
730 vma->vm_private_data = NULL;
731 zap_vma_ptes(vma, vma->vm_start, vma->vm_end - vma->vm_start);
734 static void rdma_umap_close(struct vm_area_struct *vma)
736 struct ib_uverbs_file *ufile = vma->vm_file->private_data;
737 struct rdma_umap_priv *priv = vma->vm_private_data;
743 * The vma holds a reference on the struct file that created it, which
775 mm = priv->vma->vm_mm;
802 struct vm_area_struct *vma = priv->vma;
804 if (vma->vm_mm != mm)
808 zap_vma_ptes(vma, vma->vm_start,
809 vma->vm_end - vma->vm_start);