/drivers/gpu/drm/ |
D | drm_vm.c | 99 static int drm_do_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in drm_do_vm_fault() argument 127 resource_size_t offset = (unsigned long)vmf->virtual_address - in drm_do_vm_fault() 158 vmf->page = page; in drm_do_vm_fault() 172 static int drm_do_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in drm_do_vm_fault() argument 188 static int drm_do_vm_shm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in drm_do_vm_shm_fault() argument 198 offset = (unsigned long)vmf->virtual_address - vma->vm_start; in drm_do_vm_shm_fault() 204 vmf->page = page; in drm_do_vm_shm_fault() 290 static int drm_do_vm_dma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in drm_do_vm_dma_fault() argument 304 offset = (unsigned long)vmf->virtual_address - vma->vm_start; /* vm_[pg]off[set] should be 0 */ in drm_do_vm_dma_fault() 309 vmf->page = page; in drm_do_vm_dma_fault() [all …]
|
/drivers/staging/lustre/lustre/llite/ |
D | llite_mmap.c | 291 static int ll_fault0(struct vm_area_struct *vma, struct vm_fault *vmf) in ll_fault0() argument 302 io = ll_fault_io_init(vma, &env, &nest, vmf->pgoff, &ra_flags); in ll_fault0() 311 vio->u.fault.fault.ft_vmf = vmf; in ll_fault0() 325 vmf->page = NULL; in ll_fault0() 340 static int ll_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in ll_fault() argument 353 result = ll_fault0(vma, vmf); in ll_fault() 356 struct page *vmpage = vmf->page; in ll_fault() 363 vmf->page = NULL; in ll_fault() 380 static int ll_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) in ll_page_mkwrite() argument 389 result = ll_page_mkwrite0(vma, vmf->page, &retry); in ll_page_mkwrite() [all …]
|
D | vvp_io.c | 608 struct vm_fault *vmf = cfio->fault.ft_vmf; in vvp_io_kernel_fault() local 610 cfio->fault.ft_flags = filemap_fault(cfio->ft_vma, vmf); in vvp_io_kernel_fault() 613 if (vmf->page) { in vvp_io_kernel_fault() 616 vmf->page, vmf->page->mapping, vmf->page->index, in vvp_io_kernel_fault() 617 (long)vmf->page->flags, page_count(vmf->page), in vvp_io_kernel_fault() 618 page_private(vmf->page), vmf->virtual_address); in vvp_io_kernel_fault() 620 lock_page(vmf->page); in vvp_io_kernel_fault() 624 cfio->ft_vmpage = vmf->page; in vvp_io_kernel_fault() 629 CDEBUG(D_PAGE, "got addr %p - SIGBUS\n", vmf->virtual_address); in vvp_io_kernel_fault() 634 CDEBUG(D_PAGE, "got addr %p - OOM\n", vmf->virtual_address); in vvp_io_kernel_fault()
|
/drivers/gpu/drm/ttm/ |
D | ttm_bo_vm.c | 46 struct vm_fault *vmf) in ttm_bo_vm_fault_idle() argument 64 if (vmf->flags & FAULT_FLAG_ALLOW_RETRY) { in ttm_bo_vm_fault_idle() 66 if (vmf->flags & FAULT_FLAG_RETRY_NOWAIT) in ttm_bo_vm_fault_idle() 89 static int ttm_bo_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in ttm_bo_vm_fault() argument 101 unsigned long address = (unsigned long)vmf->virtual_address; in ttm_bo_vm_fault() 118 if (vmf->flags & FAULT_FLAG_ALLOW_RETRY) { in ttm_bo_vm_fault() 119 if (!(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) { in ttm_bo_vm_fault() 165 ret = ttm_bo_vm_fault_idle(bo, vma, vmf); in ttm_bo_vm_fault() 170 !(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) { in ttm_bo_vm_fault()
|
/drivers/video/fbdev/core/ |
D | fb_defio.c | 41 struct vm_fault *vmf) in fb_deferred_io_fault() argument 47 offset = vmf->pgoff << PAGE_SHIFT; in fb_deferred_io_fault() 63 page->index = vmf->pgoff; in fb_deferred_io_fault() 65 vmf->page = page; in fb_deferred_io_fault() 95 struct vm_fault *vmf) in fb_deferred_io_mkwrite() argument 97 struct page *page = vmf->page; in fb_deferred_io_mkwrite()
|
/drivers/misc/cxl/ |
D | context.c | 109 static int cxl_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in cxl_mmap_fault() argument 112 unsigned long address = (unsigned long)vmf->virtual_address; in cxl_mmap_fault() 115 offset = vmf->pgoff << PAGE_SHIFT; in cxl_mmap_fault() 143 vmf->page = ctx->ff_page; in cxl_mmap_fault()
|
/drivers/gpu/drm/gma500/ |
D | gem.c | 174 int psb_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in psb_gem_fault() argument 207 page_offset = ((unsigned long) vmf->virtual_address - vma->vm_start) in psb_gem_fault() 215 ret = vm_insert_pfn(vma, (unsigned long)vmf->virtual_address, pfn); in psb_gem_fault()
|
D | framebuffer.c | 114 static int psbfb_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in psbfb_vm_fault() argument 128 address = (unsigned long)vmf->virtual_address - (vmf->pgoff << PAGE_SHIFT); in psbfb_vm_fault()
|
/drivers/char/agp/ |
D | alpha-agp.c | 15 struct vm_fault *vmf) in alpha_core_agp_vm_fault() argument 22 dma_addr = (unsigned long)vmf->virtual_address - vma->vm_start in alpha_core_agp_vm_fault() 34 vmf->page = page; in alpha_core_agp_vm_fault()
|
/drivers/gpu/drm/udl/ |
D | udl_gem.c | 103 int udl_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in udl_gem_fault() argument 110 page_offset = ((unsigned long)vmf->virtual_address - vma->vm_start) >> in udl_gem_fault() 117 ret = vm_insert_page(vma, (unsigned long)vmf->virtual_address, page); in udl_gem_fault()
|
D | udl_drv.h | 137 int udl_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
|
/drivers/gpu/drm/vgem/ |
D | vgem_drv.c | 89 static int vgem_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in vgem_gem_fault() argument 98 page_offset = ((unsigned long)vmf->virtual_address - vma->vm_start) >> in vgem_gem_fault() 108 ret = vm_insert_page(vma, (unsigned long)vmf->virtual_address, in vgem_gem_fault()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_gem.c | 367 struct vm_area_struct *vma, struct vm_fault *vmf) in fault_1d() argument 374 pgoff = ((unsigned long)vmf->virtual_address - in fault_1d() 385 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in fault_1d() 388 return vm_insert_mixed(vma, (unsigned long)vmf->virtual_address, pfn); in fault_1d() 393 struct vm_area_struct *vma, struct vm_fault *vmf) in fault_2d() argument 421 pgoff = ((unsigned long)vmf->virtual_address - in fault_2d() 433 vaddr = vmf->virtual_address - ((pgoff - base_pgoff) << PAGE_SHIFT); in fault_2d() 477 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in fault_2d() 505 int omap_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in omap_gem_fault() argument 530 ret = fault_2d(obj, vma, vmf); in omap_gem_fault() [all …]
|
/drivers/char/ |
D | mspec.c | 200 mspec_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in mspec_fault() argument 204 pgoff_t index = vmf->pgoff; in mspec_fault() 236 vm_insert_pfn(vma, (unsigned long)vmf->virtual_address, pfn); in mspec_fault()
|
/drivers/hwtracing/intel_th/ |
D | msu.c | 1213 static int msc_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in msc_mmap_fault() argument 1218 vmf->page = msc_buffer_get_page(msc, vmf->pgoff); in msc_mmap_fault() 1219 if (!vmf->page) in msc_mmap_fault() 1222 get_page(vmf->page); in msc_mmap_fault() 1223 vmf->page->mapping = vma->vm_file->f_mapping; in msc_mmap_fault() 1224 vmf->page->index = vmf->pgoff; in msc_mmap_fault()
|
/drivers/staging/rdma/hfi1/ |
D | file_ops.c | 490 u8 subctxt, mapio = 0, vmf = 0, type; in hfi1_file_mmap() local 625 vmf = 1; in hfi1_file_mmap() 653 vmf = 1; in hfi1_file_mmap() 659 vmf = 1; in hfi1_file_mmap() 666 vmf = 1; in hfi1_file_mmap() 679 vmf = 1; in hfi1_file_mmap() 698 __func__, ctxt, subctxt, type, mapio, vmf, memaddr, memlen, in hfi1_file_mmap() 701 if (vmf) { in hfi1_file_mmap() 720 static int vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in vma_fault() argument 724 page = vmalloc_to_page((void *)(vmf->pgoff << PAGE_SHIFT)); in vma_fault() [all …]
|
/drivers/gpu/drm/msm/ |
D | msm_gem.c | 201 int msm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in msm_gem_fault() argument 225 pgoff = ((unsigned long)vmf->virtual_address - in msm_gem_fault() 230 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in msm_gem_fault() 233 ret = vm_insert_mixed(vma, (unsigned long)vmf->virtual_address, pfn); in msm_gem_fault()
|
/drivers/media/v4l2-core/ |
D | videobuf-dma-sg.c | 438 static int videobuf_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in videobuf_vm_fault() argument 443 (unsigned long)vmf->virtual_address, in videobuf_vm_fault() 449 clear_user_highpage(page, (unsigned long)vmf->virtual_address); in videobuf_vm_fault() 450 vmf->page = page; in videobuf_vm_fault()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_gem.c | 484 int exynos_drm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in exynos_drm_gem_fault() argument 492 page_offset = ((unsigned long)vmf->virtual_address - in exynos_drm_gem_fault() 502 ret = vm_insert_mixed(vma, (unsigned long)vmf->virtual_address, pfn); in exynos_drm_gem_fault()
|
D | exynos_drm_gem.h | 121 int exynos_drm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
|
/drivers/xen/ |
D | privcmd.c | 601 static int privcmd_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in privcmd_fault() argument 605 vmf->pgoff, vmf->virtual_address); in privcmd_fault()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_ttm.c | 118 struct vm_fault *vmf) 128 r = ttm_vm_ops->fault(vma, vmf);
|
/drivers/gpu/drm/tegra/ |
D | gem.c | 431 static int tegra_bo_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in tegra_bo_fault() argument 442 offset = ((unsigned long)vmf->virtual_address - vma->vm_start) >> PAGE_SHIFT; in tegra_bo_fault() 445 err = vm_insert_page(vma, (unsigned long)vmf->virtual_address, page); in tegra_bo_fault()
|
/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 109 static int qxl_ttm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in qxl_ttm_fault() argument 117 r = ttm_vm_ops->fault(vma, vmf); in qxl_ttm_fault()
|
/drivers/uio/ |
D | uio.c | 594 static int uio_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in uio_vma_fault() argument 609 offset = (vmf->pgoff - mi) << PAGE_SHIFT; in uio_vma_fault() 617 vmf->page = page; in uio_vma_fault()
|