/linux/drivers/pci/ |
A D | mmap.c | 31 vma->vm_pgoff -= start >> PAGE_SHIFT; in pci_mmap_page_range() 51 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range() 64 vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT); in pci_mmap_resource_range() 68 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in pci_mmap_resource_range() 93 vma->vm_pgoff += start >> PAGE_SHIFT; in pci_mmap_resource_range()
|
/linux/drivers/sbus/char/ |
A D | flash.c | 62 if ((vma->vm_pgoff << PAGE_SHIFT) > size) in flash_mmap() 64 addr = vma->vm_pgoff + (addr >> PAGE_SHIFT); in flash_mmap() 66 if (vma->vm_end - (vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT)) > size) in flash_mmap() 67 size = vma->vm_end - (vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT)); in flash_mmap()
|
/linux/arch/alpha/kernel/ |
A D | pci-sysfs.c | 29 vma->vm_pgoff += base >> PAGE_SHIFT; in hose_mmap_page_range() 31 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in hose_mmap_page_range() 43 start = vma->vm_pgoff; in __pci_mmap_fits() 89 vma->vm_pgoff += bar.start >> (PAGE_SHIFT - (sparse ? 5 : 0)); in pci_mmap_resource() 263 start = vma->vm_pgoff; in __legacy_mmap_fits()
|
/linux/mm/ |
A D | nommu.c | 1021 fpos = vma->vm_pgoff; in do_mmap_private() 1099 region->vm_pgoff = pgoff; in do_mmap() 1102 vma->vm_pgoff = pgoff; in do_mmap() 1137 if (pregion->vm_pgoff >= pgend) in do_mmap() 1142 rpgend = pregion->vm_pgoff + rpglen; in do_mmap() 1148 if ((pregion->vm_pgoff != pgoff || rpglen != pglen) && in do_mmap() 1160 start += (pgoff - pregion->vm_pgoff) << PAGE_SHIFT; in do_mmap() 1373 region->vm_pgoff = new->vm_pgoff += npages; in split_vma() 1384 vma->vm_region->vm_pgoff = vma->vm_pgoff += npages; in split_vma() 1621 pfn += vma->vm_pgoff; in vm_iomap_memory() [all …]
|
A D | mmap.c | 886 vma->vm_pgoff = pgoff; in __vma_adjust() 1081 pgoff_t vm_pgoff, in can_vma_merge_before() argument 1086 if (vma->vm_pgoff == vm_pgoff) in can_vma_merge_before() 1102 pgoff_t vm_pgoff, in can_vma_merge_after() argument 1109 if (vma->vm_pgoff + vm_pglen == vm_pgoff) in can_vma_merge_after() 1267 b->vm_pgoff == a->vm_pgoff + ((b->vm_start - a->vm_start) >> PAGE_SHIFT); in anon_vma_compatible() 1776 vma->vm_pgoff = pgoff; in mmap_region() 2426 if (vma->vm_pgoff + (size >> PAGE_SHIFT) >= vma->vm_pgoff) { in expand_upwards() 2526 vma->vm_pgoff -= grow; in expand_downwards() 3075 vma->vm_pgoff = pgoff; in do_brk_flags() [all …]
|
A D | interval_tree.c | 15 return v->vm_pgoff; in vma_start_pgoff() 20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
|
A D | internal.h | 438 if (pgoff >= vma->vm_pgoff) { in vma_address() 440 ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in vma_address() 445 pgoff + compound_nr(page) - 1 >= vma->vm_pgoff) { in vma_address() 467 address = vma->vm_start + ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in vma_address_end()
|
A D | mremap.c | 620 new_pgoff = vma->vm_pgoff + ((old_addr - vma->vm_start) >> PAGE_SHIFT); in move_vma() 759 pgoff += vma->vm_pgoff; in vma_to_resize() 852 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to() 1023 vma->vm_pgoff, NULL)) { in SYSCALL_DEFINE5() 1051 vma->vm_pgoff + in SYSCALL_DEFINE5()
|
/linux/drivers/char/ |
A D | mem.c | 365 phys_addr_t offset = (phys_addr_t)vma->vm_pgoff << PAGE_SHIFT; in mmap_mem() 368 if (offset >> PAGE_SHIFT != vma->vm_pgoff) in mmap_mem() 375 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) in mmap_mem() 381 if (!range_is_allowed(vma->vm_pgoff, size)) in mmap_mem() 384 if (!phys_mem_access_prot_allowed(file, vma->vm_pgoff, size, in mmap_mem() 388 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in mmap_mem() 397 vma->vm_pgoff, in mmap_mem()
|
/linux/arch/powerpc/platforms/powernv/ |
A D | opal-prd.c | 110 vma->vm_start, vma->vm_end, vma->vm_pgoff, in opal_prd_mmap() 113 addr = vma->vm_pgoff << PAGE_SHIFT; in opal_prd_mmap() 120 page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in opal_prd_mmap() 123 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, in opal_prd_mmap()
|
A D | memtrace.c | 55 if (vma->vm_pgoff << PAGE_SHIFT >= ent->size) in memtrace_mmap() 59 return remap_pfn_range(vma, vma->vm_start, PHYS_PFN(ent->start) + vma->vm_pgoff, in memtrace_mmap()
|
/linux/kernel/dma/ |
A D | ops_helpers.c | 41 unsigned long off = vma->vm_pgoff; in dma_common_mmap() 54 page_to_pfn(page) + vma->vm_pgoff, in dma_common_mmap()
|
A D | mapping.c | 595 if (vma->vm_pgoff >= count || vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_pages() 598 page_to_pfn(page) + vma->vm_pgoff, in dma_mmap_pages() 700 if (vma->vm_pgoff >= count || in dma_mmap_noncontiguous() 701 vma_pages(vma) > count - vma->vm_pgoff) in dma_mmap_noncontiguous()
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_ttm_glue.c | 72 if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET_START)) in vmw_mmap() 75 bo = vmw_bo_vm_lookup(bdev, vma->vm_pgoff, vma_pages(vma)); in vmw_mmap()
|
/linux/drivers/gpu/drm/ |
A D | drm_vm.c | 128 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) in drm_vm_fault() 470 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_dma() 532 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_locked() 541 if (!vma->vm_pgoff in drm_mmap_locked() 549 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) { in drm_mmap_locked()
|
/linux/arch/ia64/pci/ |
A D | pci.c | 454 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) in pci_mmap_legacy_page_range() 456 prot = phys_mem_access_prot(NULL, vma->vm_pgoff, size, in pci_mmap_legacy_page_range() 463 vma->vm_pgoff += (unsigned long)addr >> PAGE_SHIFT; in pci_mmap_legacy_page_range() 466 if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in pci_mmap_legacy_page_range()
|
/linux/drivers/misc/ocxl/ |
A D | context.c | 164 int irq_id = ocxl_irq_offset_to_id(ctx, vma->vm_pgoff << PAGE_SHIFT); in check_mmap_afu_irq() 190 if ((vma_pages(vma) + vma->vm_pgoff) > in check_mmap_mmio() 200 if ((vma->vm_pgoff << PAGE_SHIFT) < ctx->afu->irq_base_offset) in ocxl_context_mmap()
|
/linux/arch/arm/mm/ |
A D | fault-armv.c | 142 pgoff = vma->vm_pgoff + ((addr - vma->vm_start) >> PAGE_SHIFT); in make_coherent() 160 offset = (pgoff - mpnt->vm_pgoff) << PAGE_SHIFT; in make_coherent()
|
/linux/drivers/misc/uacce/ |
A D | uacce.c | 188 if (vma->vm_pgoff < UACCE_MAX_REGION) in uacce_vma_close() 189 qfr = q->qfrs[vma->vm_pgoff]; in uacce_vma_close() 206 if (vma->vm_pgoff < UACCE_MAX_REGION) in uacce_fops_mmap() 207 type = vma->vm_pgoff; in uacce_fops_mmap()
|
/linux/drivers/gpu/drm/tegra/ |
A D | gem.c | 518 unsigned long vm_pgoff = vma->vm_pgoff; in __tegra_gem_mmap() local 527 vma->vm_pgoff = 0; in __tegra_gem_mmap() 536 vma->vm_pgoff = vm_pgoff; in __tegra_gem_mmap()
|
/linux/drivers/gpu/drm/ttm/ |
A D | ttm_bo_vm.c | 224 vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node); in ttm_bo_vm_fault_reserved() 225 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved() 419 ((vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node)) in ttm_bo_vm_access()
|
/linux/drivers/vfio/fsl-mc/ |
A D | vfio_fsl_mc.c | 366 pgoff = vma->vm_pgoff & in vfio_fsl_mc_mmap_mmio() 378 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_fsl_mc_mmap_mmio() 380 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_fsl_mc_mmap_mmio() 392 index = vma->vm_pgoff >> (VFIO_FSL_MC_OFFSET_SHIFT - PAGE_SHIFT); in vfio_fsl_mc_mmap()
|
/linux/drivers/vfio/platform/ |
A D | vfio_platform_common.c | 547 pgoff = vma->vm_pgoff & in vfio_platform_mmap_mmio() 555 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_platform_mmap_mmio() 557 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_platform_mmap_mmio() 567 index = vma->vm_pgoff >> (VFIO_PLATFORM_OFFSET_SHIFT - PAGE_SHIFT); in vfio_platform_mmap()
|
/linux/arch/arc/kernel/ |
A D | arc_hostlink.c | 22 if (io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in arc_hl_mmap()
|
/linux/arch/xtensa/kernel/ |
A D | pci.c | 85 vma->vm_pgoff += (ioaddr + pci_ctrl->io_space.start) >> PAGE_SHIFT; in pci_iobar_pfn()
|