Home
last modified time | relevance | path

Searched refs:vma_pages (Results 1 – 25 of 26) 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/drivers/xen/
H A Dprivcmd-buf.c137 unsigned long count = vma_pages(vma); in privcmd_buf_mmap()
H A Dgntalloc.c505 int count = vma_pages(vma); in gntalloc_mmap()
H A Dgntdev.c1062 int count = vma_pages(vma); in gntdev_mmap()
/linux/arch/powerpc/platforms/powernv/
H A Dmemtrace.c52 unsigned long vma_nrpages = vma_pages(vma); in memtrace_mmap()
/linux/drivers/dma-buf/
H A Ddma-buf.c242 if (vma->vm_pgoff + vma_pages(vma) > in dma_buf_mmap_internal()
1614 if (pgoff + vma_pages(vma) < pgoff) in dma_buf_mmap()
1618 if (pgoff + vma_pages(vma) > in dma_buf_mmap()
/linux/tools/testing/vma/include/
H A Ddup.h1323 static inline unsigned long vma_pages(const struct vm_area_struct *vma) in vma_pages() function
1335 return vma_start_pgoff(vma) + vma_pages(vma); in vma_end_pgoff()
1352 return vma_start_anon_pgoff(vma) + vma_pages(vma); in vma_end_anon_pgoff()
/linux/kernel/dma/
H A Dcoherent.c242 unsigned long user_count = vma_pages(vma); in __dma_mmap_from_coherent()
H A Ddirect.c645 unsigned long user_count = vma_pages(vma); in dma_direct_mmap()
H A Dmapping.c789 vma_pages(vma) << PAGE_SHIFT, vma->vm_page_prot); in dma_mmap_pages()
/linux/fs/
H A Dexec.c136 long diff = (long)(pages - bprm->vma_pages); in acct_arg_size()
141 bprm->vma_pages = pages; in acct_arg_size()
173 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/accel/amdxdna/
H A Damdxdna_gem.c460 unsigned long num_pages = vma_pages(vma); in amdxdna_insert_pages()
531 unsigned long num_pages = vma_pages(vma); in amdxdna_gem_dmabuf_mmap()
/linux/drivers/tee/
H A Dtee_shm.c579 if (vma->vm_pgoff + vma_pages(vma) > shm->size >> PAGE_SHIFT) in tee_shm_fop_mmap()
/linux/drivers/iommu/
H A Ddma-iommu.c1095 if (vma->vm_pgoff >= count || vma_pages(vma) > count - vma->vm_pgoff) in iommu_dma_mmap_noncontiguous()
1713 if (off >= nr_pages || vma_pages(vma) > nr_pages - off) in iommu_dma_mmap()
/linux/include/linux/
H A Dmm.h4393 static inline unsigned long vma_pages(const struct vm_area_struct *vma) in vma_pages() function
4436 return vma_start_pgoff(vma) + vma_pages(vma); in vma_end_pgoff()
4496 return vma_start_anon_pgoff(vma) + vma_pages(vma); in vma_end_anon_pgoff()
/linux/mm/
H A Dinternal.h936 const unsigned long vma_pglen = vma_pages(vma); in folio_within_range()
H A Dvma.c1539 nrpages = vma_pages(next); in vms_gather_munmap_vmas()
3406 unsigned long charged = vma_pages(vma); in insert_vm_struct()
H A Dmemory.c2742 unsigned long count = vma_pages(vma); in __vm_map_pages()
5836 vma_off + (nr_pages - idx) > vma_pages(vma) || in finish_fault()
5949 pte_off + vma_pages(vmf->vma) - vma_off) - 1; in do_fault_around()
/linux/drivers/comedi/
H A Dcomedi_fops.c2540 n_pages = vma_pages(vma); in comedi_mmap()
/linux/virt/kvm/
H A Dkvm_main.c4084 unsigned long pages = vma_pages(vma); in kvm_vcpu_mmap()
/linux/kernel/trace/
H A Dring_buffer.c7782 nr_vma_pages = vma_pages(vma); in __rb_map_vma()

12