/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 | 281 static int ll_fault0(struct vm_area_struct *vma, struct vm_fault *vmf) in ll_fault0() argument 292 io = ll_fault_io_init(vma, &env, &nest, vmf->pgoff, &ra_flags); in ll_fault0() 301 vio->u.fault.ft_vmf = vmf; in ll_fault0() 321 vmf->page = NULL; in ll_fault0() 336 static int ll_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in ll_fault() argument 350 result = ll_fault0(vma, vmf); in ll_fault() 353 struct page *vmpage = vmf->page; in ll_fault() 360 vmf->page = NULL; in ll_fault() 377 static int ll_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) in ll_page_mkwrite() argument 386 result = ll_page_mkwrite0(vma, vmf->page, &retry); in ll_page_mkwrite() [all …]
|
D | vvp_io.c | 977 struct vm_fault *vmf = cfio->ft_vmf; in vvp_io_kernel_fault() local 979 cfio->ft_flags = filemap_fault(cfio->ft_vma, vmf); in vvp_io_kernel_fault() 982 if (vmf->page) { in vvp_io_kernel_fault() 985 vmf->page, vmf->page->mapping, vmf->page->index, in vvp_io_kernel_fault() 986 (long)vmf->page->flags, page_count(vmf->page), in vvp_io_kernel_fault() 987 page_private(vmf->page), vmf->virtual_address); in vvp_io_kernel_fault() 989 lock_page(vmf->page); in vvp_io_kernel_fault() 993 cfio->ft_vmpage = vmf->page; in vvp_io_kernel_fault() 998 CDEBUG(D_PAGE, "got addr %p - SIGBUS\n", vmf->virtual_address); in vvp_io_kernel_fault() 1003 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 | 47 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() 95 static int ttm_bo_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in ttm_bo_vm_fault() argument 107 unsigned long address = (unsigned long)vmf->virtual_address; in ttm_bo_vm_fault() 124 if (vmf->flags & FAULT_FLAG_ALLOW_RETRY) { in ttm_bo_vm_fault() 125 if (!(vmf->flags & FAULT_FLAG_RETRY_NOWAIT)) { in ttm_bo_vm_fault() 171 ret = ttm_bo_vm_fault_idle(bo, vma, vmf); in ttm_bo_vm_fault() 176 !(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/gpu/drm/gma500/ |
D | gem.c | 167 int psb_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in psb_gem_fault() argument 200 page_offset = ((unsigned long) vmf->virtual_address - vma->vm_start) in psb_gem_fault() 208 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/misc/cxl/ |
D | context.c | 117 static int cxl_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in cxl_mmap_fault() argument 120 unsigned long address = (unsigned long)vmf->virtual_address; in cxl_mmap_fault() 123 offset = vmf->pgoff << PAGE_SHIFT; in cxl_mmap_fault() 151 vmf->page = ctx->ff_page; in cxl_mmap_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/dax/ |
D | dax.c | 330 struct vm_fault *vmf) in __dax_dev_fault() argument 332 unsigned long vaddr = (unsigned long) vmf->virtual_address; in __dax_dev_fault() 352 phys = pgoff_to_phys(dax_dev, vmf->pgoff, PAGE_SIZE); in __dax_dev_fault() 355 vmf->pgoff); in __dax_dev_fault() 371 static int dax_dev_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in dax_dev_fault() argument 378 current->comm, (vmf->flags & FAULT_FLAG_WRITE) in dax_dev_fault() 381 rc = __dax_dev_fault(dax_dev, vma, vmf); in dax_dev_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()
|
/drivers/gpu/drm/omapdrm/ |
D | omap_gem.c | 392 struct vm_area_struct *vma, struct vm_fault *vmf) in fault_1d() argument 399 pgoff = ((unsigned long)vmf->virtual_address - in fault_1d() 410 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in fault_1d() 413 return vm_insert_mixed(vma, (unsigned long)vmf->virtual_address, in fault_1d() 419 struct vm_area_struct *vma, struct vm_fault *vmf) in fault_2d() argument 448 pgoff = ((unsigned long)vmf->virtual_address - in fault_2d() 460 vaddr = vmf->virtual_address - ((pgoff - base_pgoff) << PAGE_SHIFT); in fault_2d() 504 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in fault_2d() 534 int omap_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in omap_gem_fault() argument 559 ret = fault_2d(obj, vma, vmf); in omap_gem_fault() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | file_ops.c | 455 u8 subctxt, mapio = 0, vmf = 0, type; in hfi1_file_mmap() local 596 vmf = 1; in hfi1_file_mmap() 624 vmf = 1; in hfi1_file_mmap() 630 vmf = 1; in hfi1_file_mmap() 637 vmf = 1; in hfi1_file_mmap() 649 vmf = 1; in hfi1_file_mmap() 668 ctxt, subctxt, type, mapio, vmf, memaddr, memlen, in hfi1_file_mmap() 670 if (vmf) { in hfi1_file_mmap() 698 static int vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in vma_fault() argument 702 page = vmalloc_to_page((void *)(vmf->pgoff << PAGE_SHIFT)); in vma_fault() [all …]
|
/drivers/char/ |
D | mspec.c | 194 mspec_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in mspec_fault() argument 198 pgoff_t index = vmf->pgoff; in mspec_fault() 230 vm_insert_pfn(vma, (unsigned long)vmf->virtual_address, pfn); in mspec_fault()
|
/drivers/gpu/drm/vgem/ |
D | vgem_drv.c | 53 static int vgem_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in vgem_gem_fault() argument 57 unsigned long vaddr = (unsigned long)vmf->virtual_address; in vgem_gem_fault() 63 vmf->page = page; in vgem_gem_fault()
|
/drivers/hwtracing/intel_th/ |
D | msu.c | 1191 static int msc_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in msc_mmap_fault() argument 1196 vmf->page = msc_buffer_get_page(msc, vmf->pgoff); in msc_mmap_fault() 1197 if (!vmf->page) in msc_mmap_fault() 1200 get_page(vmf->page); in msc_mmap_fault() 1201 vmf->page->mapping = vma->vm_file->f_mapping; in msc_mmap_fault() 1202 vmf->page->index = vmf->pgoff; in msc_mmap_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 | 459 int exynos_drm_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in exynos_drm_gem_fault() argument 467 page_offset = ((unsigned long)vmf->virtual_address - in exynos_drm_gem_fault() 477 ret = vm_insert_mixed(vma, (unsigned long)vmf->virtual_address, in exynos_drm_gem_fault()
|
D | exynos_drm_gem.h | 119 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/tegra/ |
D | gem.c | 419 static int tegra_bo_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in tegra_bo_fault() argument 430 offset = ((unsigned long)vmf->virtual_address - vma->vm_start) >> PAGE_SHIFT; in tegra_bo_fault() 433 err = vm_insert_page(vma, (unsigned long)vmf->virtual_address, page); in tegra_bo_fault()
|
/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 234 pgoff = ((unsigned long)vmf->virtual_address - in msm_gem_fault() 239 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in msm_gem_fault() 242 ret = vm_insert_mixed(vma, (unsigned long)vmf->virtual_address, in msm_gem_fault()
|
/drivers/gpu/drm/etnaviv/ |
D | etnaviv_gem.c | 178 int etnaviv_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) in etnaviv_gem_fault() argument 205 pgoff = ((unsigned long)vmf->virtual_address - in etnaviv_gem_fault() 210 VERB("Inserting %p pfn %lx, pa %lx", vmf->virtual_address, in etnaviv_gem_fault() 213 ret = vm_insert_page(vma, (unsigned long)vmf->virtual_address, page); in etnaviv_gem_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/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()
|