Home
last modified time | relevance | path

Searched refs:vm_pgoff (Results 1 – 25 of 185) sorted by relevance

12345678

/linux/drivers/pci/
A Dmmap.c31 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 Dflash.c62 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 Dpci-sysfs.c29 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 Dnommu.c1021 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 Dmmap.c886 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 Dinterval_tree.c15 return v->vm_pgoff; in vma_start_pgoff()
20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
A Dinternal.h438 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 Dmremap.c620 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 Dmem.c365 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 Dopal-prd.c110 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 Dmemtrace.c55 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 Dops_helpers.c41 unsigned long off = vma->vm_pgoff; in dma_common_mmap()
54 page_to_pfn(page) + vma->vm_pgoff, in dma_common_mmap()
A Dmapping.c595 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 Dvmwgfx_ttm_glue.c72 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 Ddrm_vm.c128 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 Dpci.c454 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 Dcontext.c164 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 Dfault-armv.c142 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 Duacce.c188 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 Dgem.c518 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 Dttm_bo_vm.c224 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 Dvfio_fsl_mc.c366 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 Dvfio_platform_common.c547 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 Darc_hostlink.c22 if (io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in arc_hl_mmap()
/linux/arch/xtensa/kernel/
A Dpci.c85 vma->vm_pgoff += (ioaddr + pci_ctrl->io_space.start) >> PAGE_SHIFT; in pci_iobar_pfn()

Completed in 45 milliseconds

12345678