Home
last modified time | relevance | path

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

12

/linux-6.1.9/scripts/coccinelle/api/
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-6.1.9/drivers/pci/
Dmmap.c30 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range()
/linux-6.1.9/include/linux/
Dbinfmts.h21 unsigned long vma_pages; member
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_glue.c88 ret = vmw_bo_vm_lookup(bdev, file_priv, vma->vm_pgoff, vma_pages(vma), &bo); in vmw_mmap()
/linux-6.1.9/drivers/misc/ocxl/
Dcontext.c167 if (vma_pages(vma) != 1) in check_mmap_afu_irq()
190 if ((vma_pages(vma) + vma->vm_pgoff) > in check_mmap_mmio()
Dsysfs.c133 if ((vma_pages(vma) + vma->vm_pgoff) > in global_mmio_mmap()
/linux-6.1.9/arch/alpha/kernel/
Dpci-sysfs.c42 nr = vma_pages(vma); in __pci_mmap_fits()
262 nr = vma_pages(vma); in __legacy_mmap_fits()
/linux-6.1.9/kernel/dma/
Dops_helpers.c39 unsigned long user_count = vma_pages(vma); in dma_common_mmap()
Dmapping.c600 if (vma->vm_pgoff >= count || vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_pages()
604 vma_pages(vma) << PAGE_SHIFT, vma->vm_page_prot); in dma_mmap_pages()
706 vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_noncontiguous()
Dcoherent.c239 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent()
/linux-6.1.9/mm/
Dinterval_tree.c20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
Dmmap.c949 vm_pglen = vma_pages(vma); in can_vma_merge_after()
2162 long nrpages = vma_pages(vma); in remove_mt()
2284 vma->vm_mm->locked_vm -= vma_pages(vma); in munmap_sidetree()
3109 nr_accounted += vma_pages(vma); in exit_mmap()
3129 unsigned long charged = vma_pages(vma); in insert_vm_struct()
/linux-6.1.9/drivers/xen/
Dprivcmd-buf.c136 unsigned long count = vma_pages(vma); in privcmd_buf_mmap()
Dgntalloc.c496 int count = vma_pages(vma); in gntalloc_mmap()
/linux-6.1.9/drivers/char/
Dmspec.c196 pages = vma_pages(vma); in mspec_mmap()
/linux-6.1.9/fs/cramfs/
Dinode.c373 pages = min(vma_pages(vma), max_pages - pgoff); in cramfs_physmem_mmap()
395 if (pages == vma_pages(vma)) { in cramfs_physmem_mmap()
425 pgoff, address, pages, vma_pages(vma), vma->vm_start, in cramfs_physmem_mmap()
/linux-6.1.9/drivers/soc/aspeed/
Daspeed-lpc-ctrl.c55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
Daspeed-p2a-ctrl.c113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap()
/linux-6.1.9/drivers/dma-buf/
Ddma-buf.c145 if (vma->vm_pgoff + vma_pages(vma) > in dma_buf_mmap_internal()
1363 if (pgoff + vma_pages(vma) < pgoff) in dma_buf_mmap()
1367 if (pgoff + vma_pages(vma) > in dma_buf_mmap()
/linux-6.1.9/drivers/gpu/drm/ttm/
Dttm_bo_vm.c217 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
/linux-6.1.9/drivers/tee/
Dtee_shm.c393 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT) in tee_shm_fop_mmap()
/linux-6.1.9/drivers/gpu/drm/rockchip/
Drockchip_drm_gem.c219 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu()
/linux-6.1.9/drivers/gpu/drm/gma500/
Dframebuffer.c93 page_num = vma_pages(vma); in psbfb_vm_fault()
/linux-6.1.9/arch/powerpc/kvm/
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-6.1.9/fs/
Dexec.c188 long diff = (long)(pages - bprm->vma_pages); in acct_arg_size()
193 bprm->vma_pages = pages; in acct_arg_size()
227 acct_arg_size(bprm, vma_pages(bprm->vma)); in get_arg_page()

12