Home
last modified time | relevance | path

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

12

/linux/scripts/coccinelle/api/
H 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/pci/
H A Dmmap.c32 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range()
67 nr = vma_pages(vma); in pci_mmap_fits()
/linux/drivers/misc/ocxl/
H 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()
H A Dsysfs.c133 if ((vma_pages(vma) + vma->vm_pgoff) > in global_mmio_mmap()
/linux/arch/alpha/kernel/
H A Dpci-sysfs.c42 nr = vma_pages(vma); in __pci_mmap_fits()
262 nr = vma_pages(vma); in __legacy_mmap_fits()
/linux/include/linux/
H A Dbinfmts.h21 unsigned long vma_pages; member
/linux/kernel/dma/
H A Dops_helpers.c40 unsigned long user_count = vma_pages(vma); in dma_common_mmap()
H A Dmapping.c722 if (vma->vm_pgoff >= count || vma_pages(vma) > count - vma->vm_pgoff) in dma_free_noncontiguous()
726 vma_pages(vma) << PAGE_SHIFT, vma->vm_page_prot); in dma_free_noncontiguous()
H A Dcoherent.c241 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent()
H A Ddirect.c544 unsigned long user_count = vma_pages(vma); in dma_direct_mmap()
/linux/mm/
H A Dinterval_tree.c20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
H A Dmmap.c1887 nr_accounted += vma_pages(vma); in arch_get_unmapped_area_topdown()
1909 unsigned long charged = vma_pages(vma);
H A Dpagewalk.c631 vea = vba + vma_pages(vma); in walk_page_mapping()
/linux/drivers/xen/
H A Dprivcmd-buf.c137 unsigned long count = vma_pages(vma); in privcmd_buf_mmap()
H A Dgntalloc.c496 int count = vma_pages(vma); in gntalloc_mmap()
/linux/fs/cramfs/
H A 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/drivers/soc/aspeed/
H A Daspeed-lpc-ctrl.c55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
H A Daspeed-p2a-ctrl.c113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap()
/linux/drivers/dma-buf/
H A Ddma-buf.c161 if (vma->vm_pgoff + vma_pages(vma) > in dma_buf_mmap_internal()
1483 if (pgoff + vma_pages(vma) < pgoff) in dma_buf_mmap()
1487 if (pgoff + vma_pages(vma) > in dma_buf_mmap()
/linux/drivers/gpu/drm/gma500/
H A Dfbdev.c30 unsigned long page_num = vma_pages(vma); in psb_fbdev_vm_fault()
/linux/drivers/gpu/drm/ttm/
H A Dttm_bo_vm.c212 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
/linux/fs/
H A Dexec.c188 long diff = (long)(pages - bprm->vma_pages); in acct_arg_size()
193 bprm->vma_pages = pages; in acct_arg_size()
233 acct_arg_size(bprm, vma_pages(vma)); in get_arg_page()
/linux/arch/powerpc/kvm/
H A Dbook3s_xive_native.c316 if (vma_pages(vma) > 4) in kvmppc_xive_native_mmap()
320 if (vma_pages(vma) > KVMPPC_XIVE_NR_IRQS * 2) in kvmppc_xive_native_mmap()
/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.c220 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu()
/linux/drivers/tee/
H A Dtee_shm.c447 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT) in tee_shm_fop_mmap()

12