/linux-6.1.9/scripts/coccinelle/api/ |
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-6.1.9/drivers/pci/ |
D | mmap.c | 30 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range()
|
/linux-6.1.9/include/linux/ |
D | binfmts.h | 21 unsigned long vma_pages; member
|
/linux-6.1.9/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_glue.c | 88 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/ |
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()
|
D | sysfs.c | 133 if ((vma_pages(vma) + vma->vm_pgoff) > in global_mmio_mmap()
|
/linux-6.1.9/arch/alpha/kernel/ |
D | pci-sysfs.c | 42 nr = vma_pages(vma); in __pci_mmap_fits() 262 nr = vma_pages(vma); in __legacy_mmap_fits()
|
/linux-6.1.9/kernel/dma/ |
D | ops_helpers.c | 39 unsigned long user_count = vma_pages(vma); in dma_common_mmap()
|
D | mapping.c | 600 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()
|
D | coherent.c | 239 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent()
|
/linux-6.1.9/mm/ |
D | interval_tree.c | 20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
|
D | mmap.c | 949 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/ |
D | privcmd-buf.c | 136 unsigned long count = vma_pages(vma); in privcmd_buf_mmap()
|
D | gntalloc.c | 496 int count = vma_pages(vma); in gntalloc_mmap()
|
/linux-6.1.9/drivers/char/ |
D | mspec.c | 196 pages = vma_pages(vma); in mspec_mmap()
|
/linux-6.1.9/fs/cramfs/ |
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-6.1.9/drivers/soc/aspeed/ |
D | aspeed-lpc-ctrl.c | 55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
|
D | aspeed-p2a-ctrl.c | 113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap()
|
/linux-6.1.9/drivers/dma-buf/ |
D | dma-buf.c | 145 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/ |
D | ttm_bo_vm.c | 217 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
|
/linux-6.1.9/drivers/tee/ |
D | tee_shm.c | 393 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT) in tee_shm_fop_mmap()
|
/linux-6.1.9/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_gem.c | 219 unsigned long user_count = vma_pages(vma); in rockchip_drm_gem_object_mmap_iommu()
|
/linux-6.1.9/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 93 page_num = vma_pages(vma); in psbfb_vm_fault()
|
/linux-6.1.9/arch/powerpc/kvm/ |
D | book3s_xive_native.c | 317 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/ |
D | exec.c | 188 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()
|