Home
last modified time | relevance | path

Searched refs:vma_pages (Results 1 – 25 of 47) sorted by relevance

12

/linux/scripts/coccinelle/api/
A Dvma_pages.cocci3 /// Use vma_pages function on vma object instead of explicit computation.
6 // Keywords: vma_pages vma
33 + vma_pages(vma)
51 msg="WARNING: Consider using vma_pages helper on %s" % (x)
59 msg="WARNING: Consider using vma_pages helper on %s" % (x)
/linux/drivers/misc/ocxl/
A Dcontext.c167 if (vma_pages(vma) != 1) in check_mmap_afu_irq()
190 if ((vma_pages(vma) + vma->vm_pgoff) > in check_mmap_mmio()
A Dsysfs.c133 if ((vma_pages(vma) + vma->vm_pgoff) > in global_mmio_mmap()
/linux/arch/alpha/kernel/
A Dpci-sysfs.c42 nr = vma_pages(vma); in __pci_mmap_fits()
262 nr = vma_pages(vma); in __legacy_mmap_fits()
/linux/drivers/pci/
A Dmmap.c51 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range()
/linux/include/linux/
A Dbinfmts.h20 unsigned long vma_pages; member
/linux/kernel/dma/
A Dops_helpers.c39 unsigned long user_count = vma_pages(vma); in dma_common_mmap()
A Dmapping.c595 if (vma->vm_pgoff >= count || vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_pages()
599 vma_pages(vma) << PAGE_SHIFT, vma->vm_page_prot); in dma_mmap_pages()
701 vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_noncontiguous()
A Dcoherent.c233 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent()
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_ttm_glue.c75 bo = vmw_bo_vm_lookup(bdev, vma->vm_pgoff, vma_pages(vma)); in vmw_mmap()
/linux/mm/
A Dinterval_tree.c20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
A Dmmap.c1108 vm_pglen = vma_pages(vma); in can_vma_merge_after()
2623 long nrpages = vma_pages(vma); in remove_vma_list()
2782 mm->locked_vm -= vma_pages(tmp); in unlock_range()
3180 nr_accounted += vma_pages(vma); in exit_mmap()
3200 security_vm_enough_memory_mm(mm, vma_pages(vma))) in insert_vm_struct()
/linux/drivers/xen/
A Dprivcmd-buf.c136 unsigned long count = vma_pages(vma); in privcmd_buf_mmap()
A Dgntalloc.c510 int count = vma_pages(vma); in gntalloc_mmap()
/linux/drivers/char/
A Dmspec.c196 pages = vma_pages(vma); in mspec_mmap()
/linux/fs/cramfs/
A Dinode.c382 pages = min(vma_pages(vma), max_pages - pgoff); in cramfs_physmem_mmap()
404 if (pages == vma_pages(vma)) { in cramfs_physmem_mmap()
434 pgoff, address, pages, vma_pages(vma), vma->vm_start, in cramfs_physmem_mmap()
/linux/drivers/dma-buf/
A Ddma-buf.c142 if (vma->vm_pgoff + vma_pages(vma) > in dma_buf_mmap_internal()
1242 if (pgoff + vma_pages(vma) < pgoff) in dma_buf_mmap()
1246 if (pgoff + vma_pages(vma) > in dma_buf_mmap()
/linux/drivers/soc/aspeed/
A Daspeed-lpc-ctrl.c55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
A Daspeed-p2a-ctrl.c113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap()
/linux/drivers/gpu/drm/ttm/
A Dttm_bo_vm.c225 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
/linux/drivers/tee/
A Dtee_shm.c274 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT) in tee_shm_fop_mmap()
/linux/fs/
A Dexec.c189 long diff = (long)(pages - bprm->vma_pages); in acct_arg_size()
194 bprm->vma_pages = pages; in acct_arg_size()
228 acct_arg_size(bprm, vma_pages(bprm->vma)); in get_arg_page()
/linux/arch/powerpc/kvm/
A Dbook3s_xive_native.c317 if (vma_pages(vma) > 4) in kvmppc_xive_native_mmap()
321 if (vma_pages(vma) > KVMPPC_XIVE_NR_IRQS * 2) in kvmppc_xive_native_mmap()
/linux/drivers/gpu/drm/gma500/
A Dframebuffer.c94 page_num = vma_pages(vma); in psbfb_vm_fault()
/linux/drivers/gpu/drm/rockchip/
A Drockchip_drm_gem.c219 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu()

Completed in 45 milliseconds

12