/linux/scripts/coccinelle/api/ |
H A D | vma_pages.cocci | 3 /// 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 D | mmap.c | 32 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 D | context.c | 167 if (vma_pages(vma) != 1) in check_mmap_afu_irq() 190 if ((vma_pages(vma) + vma->vm_pgoff) > in check_mmap_mmio()
|
H A D | sysfs.c | 133 if ((vma_pages(vma) + vma->vm_pgoff) > in global_mmio_mmap()
|
/linux/include/linux/ |
H A D | binfmts.h | 21 unsigned long vma_pages; member
|
/linux/arch/alpha/kernel/ |
H A D | pci-sysfs.c | 42 nr = vma_pages(vma); in __pci_mmap_fits() 262 nr = vma_pages(vma); in __legacy_mmap_fits()
|
/linux/mm/ |
H A D | interval_tree.c | 20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
|
H A D | vma.c | 123 if (vmg->prev->vm_pgoff + vma_pages(vmg->prev) == vmg->pgoff) in can_vma_merge_after() 1241 nrpages = vma_pages(next); in vms_gather_munmap_vmas()
|
/linux/kernel/dma/ |
H A D | ops_helpers.c | 40 unsigned long user_count = vma_pages(vma); in dma_common_mmap()
|
H A D | coherent.c | 241 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent()
|
H A D | mapping.c | 722 if (vma->vm_pgoff >= count || vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_pages() 726 vma_pages(vma) << PAGE_SHIFT, vma->vm_page_prot); in dma_mmap_pages()
|
H A D | direct.c | 544 unsigned long user_count = vma_pages(vma); in dma_direct_mmap()
|
/linux/drivers/xen/ |
H A D | privcmd-buf.c | 137 unsigned long count = vma_pages(vma); in privcmd_buf_mmap()
|
H A D | gntalloc.c | 496 int count = vma_pages(vma); in gntalloc_mmap()
|
/linux/fs/cramfs/ |
H A D | inode.c | 373 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 D | aspeed-lpc-ctrl.c | 55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
|
H A D | aspeed-p2a-ctrl.c | 113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap()
|
/linux/drivers/dma-buf/ |
H A D | dma-buf.c | 161 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 D | fbdev.c | 30 unsigned long page_num = vma_pages(vma); in psb_fbdev_vm_fault()
|
/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_bo_vm.c | 212 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
|
/linux/fs/ |
H A D | exec.c | 188 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 D | book3s_xive_native.c | 316 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 D | rockchip_drm_gem.c | 220 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu()
|
/linux/drivers/tee/ |
H A D | tee_shm.c | 447 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT) in tee_shm_fop_mmap()
|
/linux/tools/testing/vma/ |
H A D | vma_internal.h | 618 static inline unsigned long vma_pages(struct vm_area_struct *vma) in vma_pages() function
|