Lines Matching refs:vm_userfaultfd_ctx

372 	ctx = vmf->vma->vm_userfaultfd_ctx.ctx;  in handle_userfault()
634 if (vma->vm_userfaultfd_ctx.ctx == release_new_ctx) { in userfaultfd_event_wait_completion()
635 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in userfaultfd_event_wait_completion()
665 octx = vma->vm_userfaultfd_ctx.ctx; in dup_userfaultfd()
667 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in dup_userfaultfd()
705 vma->vm_userfaultfd_ctx.ctx = ctx; in dup_userfaultfd()
734 struct vm_userfaultfd_ctx *vm_ctx) in mremap_userfaultfd_prep()
738 ctx = vma->vm_userfaultfd_ctx.ctx; in mremap_userfaultfd_prep()
746 void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *vm_ctx, in mremap_userfaultfd_complete()
778 ctx = vma->vm_userfaultfd_ctx.ctx; in userfaultfd_remove()
816 struct userfaultfd_ctx *ctx = vma->vm_userfaultfd_ctx.ctx; in userfaultfd_unmap_prep()
882 BUG_ON(!!vma->vm_userfaultfd_ctx.ctx ^ in userfaultfd_release()
884 if (vma->vm_userfaultfd_ctx.ctx != ctx) { in userfaultfd_release()
899 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in userfaultfd_release()
1357 BUG_ON(!!cur->vm_userfaultfd_ctx.ctx ^ in userfaultfd_register()
1385 if (cur->vm_userfaultfd_ctx.ctx && in userfaultfd_register()
1386 cur->vm_userfaultfd_ctx.ctx != ctx) in userfaultfd_register()
1407 BUG_ON(vma->vm_userfaultfd_ctx.ctx && in userfaultfd_register()
1408 vma->vm_userfaultfd_ctx.ctx != ctx); in userfaultfd_register()
1414 if (vma->vm_userfaultfd_ctx.ctx == ctx && in userfaultfd_register()
1426 ((struct vm_userfaultfd_ctx){ ctx })); in userfaultfd_register()
1448 vma->vm_userfaultfd_ctx.ctx = ctx; in userfaultfd_register()
1530 BUG_ON(!!cur->vm_userfaultfd_ctx.ctx ^ in userfaultfd_unregister()
1560 if (!vma->vm_userfaultfd_ctx.ctx) in userfaultfd_unregister()
1577 wake_userfault(vma->vm_userfaultfd_ctx.ctx, &range); in userfaultfd_unregister()
1606 vma->vm_userfaultfd_ctx = NULL_VM_UFFD_CTX; in userfaultfd_unregister()