Searched refs:vmf (Results 1 – 1 of 1) sorted by relevance
748 static vm_fault_t mbochs_region_vm_fault(struct vm_fault *vmf) in mbochs_region_vm_fault() argument750 struct vm_area_struct *vma = vmf->vma; in mbochs_region_vm_fault()752 pgoff_t page_offset = (vmf->address - vma->vm_start) >> PAGE_SHIFT; in mbochs_region_vm_fault()757 vmf->page = mbochs_get_page(mdev_state, page_offset); in mbochs_region_vm_fault()758 if (!vmf->page) in mbochs_region_vm_fault()786 static vm_fault_t mbochs_dmabuf_vm_fault(struct vm_fault *vmf) in mbochs_dmabuf_vm_fault() argument788 struct vm_area_struct *vma = vmf->vma; in mbochs_dmabuf_vm_fault()791 if (WARN_ON(vmf->pgoff >= dmabuf->pagecount)) in mbochs_dmabuf_vm_fault()794 vmf->page = dmabuf->pages[vmf->pgoff]; in mbochs_dmabuf_vm_fault()795 get_page(vmf->page); in mbochs_dmabuf_vm_fault()