Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-5.10/drivers/pci/
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()
/kernel/linux/linux-5.10/drivers/sbus/char/
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()
/kernel/linux/linux-5.10/arch/alpha/kernel/
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()
87 vma->vm_pgoff += bar.start >> (PAGE_SHIFT - (sparse ? 5 : 0)); in pci_mmap_resource()
259 start = vma->vm_pgoff; in __legacy_mmap_fits()
/kernel/linux/linux-5.10/drivers/char/
Dmem.c376 phys_addr_t offset = (phys_addr_t)vma->vm_pgoff << PAGE_SHIFT; in mmap_mem()
379 if (offset >> PAGE_SHIFT != vma->vm_pgoff) in mmap_mem()
386 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) in mmap_mem()
392 if (!range_is_allowed(vma->vm_pgoff, size)) in mmap_mem()
395 if (!phys_mem_access_prot_allowed(file, vma->vm_pgoff, size, in mmap_mem()
399 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in mmap_mem()
408 vma->vm_pgoff, in mmap_mem()
421 pfn = __pa((u64)vma->vm_pgoff << PAGE_SHIFT) >> PAGE_SHIFT; in mmap_kmem()
433 vma->vm_pgoff = pfn; in mmap_kmem()
/kernel/linux/linux-5.10/mm/
Dnommu.c1035 fpos = vma->vm_pgoff; in do_mmap_private()
1113 region->vm_pgoff = pgoff; in do_mmap()
1116 vma->vm_pgoff = pgoff; in do_mmap()
1151 if (pregion->vm_pgoff >= pgend) in do_mmap()
1156 rpgend = pregion->vm_pgoff + rpglen; in do_mmap()
1162 if ((pregion->vm_pgoff != pgoff || rpglen != pglen) && in do_mmap()
1163 !(pgoff >= pregion->vm_pgoff && pgend <= rpgend)) { in do_mmap()
1174 start += (pgoff - pregion->vm_pgoff) << PAGE_SHIFT; in do_mmap()
1389 region->vm_pgoff = new->vm_pgoff += npages; in split_vma()
1400 vma->vm_region->vm_pgoff = vma->vm_pgoff += npages; in split_vma()
[all …]
Dmmap.c890 vma->vm_pgoff = pgoff; in __vma_adjust()
893 next->vm_pgoff += adjust_next >> PAGE_SHIFT; in __vma_adjust()
1088 pgoff_t vm_pgoff, in can_vma_merge_before() argument
1094 if (vma->vm_pgoff == vm_pgoff) in can_vma_merge_before()
1110 pgoff_t vm_pgoff, in can_vma_merge_after() argument
1118 if (vma->vm_pgoff + vm_pglen == vm_pgoff) in can_vma_merge_after()
1217 next->vm_end, prev->vm_pgoff, NULL, in vma_merge()
1221 end, prev->vm_pgoff, NULL, prev); in vma_merge()
1238 addr, prev->vm_pgoff, NULL, next); in vma_merge()
1241 next->vm_pgoff - pglen, NULL, next); in vma_merge()
[all …]
Dinterval_tree.c15 return v->vm_pgoff; in vma_start_pgoff()
20 return v->vm_pgoff + vma_pages(v) - 1; in vma_last_pgoff()
Dinternal.h527 if (pgoff >= vma->vm_pgoff) { in vma_address()
529 ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in vma_address()
534 pgoff + compound_nr(page) - 1 >= vma->vm_pgoff) { in vma_address()
556 address = vma->vm_start + ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in vma_address_end()
Dmremap.c369 new_pgoff = vma->vm_pgoff + ((old_addr - vma->vm_start) >> PAGE_SHIFT); in move_vma()
515 pgoff += vma->vm_pgoff; in vma_to_resize()
616 ret = get_unmapped_area(vma->vm_file, new_addr, new_len, vma->vm_pgoff + in mremap_to()
762 vma->vm_pgoff, NULL)) { in SYSCALL_DEFINE5()
789 vma->vm_pgoff + in SYSCALL_DEFINE5()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-prd.c111 vma->vm_start, vma->vm_end, vma->vm_pgoff, in opal_prd_mmap()
114 addr = vma->vm_pgoff << PAGE_SHIFT; in opal_prd_mmap()
121 page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in opal_prd_mmap()
124 rc = remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, in opal_prd_mmap()
/kernel/linux/linux-5.10/kernel/dma/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_bo_vm.c326 vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node); in ttm_bo_vm_fault_reserved()
327 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
490 ((vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node)) in ttm_bo_vm_access()
581 if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET_START)) in ttm_bo_mmap()
584 bo = ttm_bo_vm_lookup(bdev, vma->vm_pgoff, vma_pages(vma)); in ttm_bo_mmap()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_vm.c133 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) in drm_vm_fault()
475 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_dma()
537 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_locked()
546 if (!vma->vm_pgoff in drm_mmap_locked()
554 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) { in drm_mmap_locked()
/kernel/linux/linux-5.10/arch/ia64/pci/
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()
/kernel/linux/linux-5.10/drivers/misc/ocxl/
Dcontext.c162 int irq_id = ocxl_irq_offset_to_id(ctx, vma->vm_pgoff << PAGE_SHIFT); in check_mmap_afu_irq()
188 if ((vma_pages(vma) + vma->vm_pgoff) > in check_mmap_mmio()
198 if ((vma->vm_pgoff << PAGE_SHIFT) < ctx->afu->irq_base_offset) in ocxl_context_mmap()
/kernel/linux/linux-5.10/arch/arm/mm/
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Dgem.c502 unsigned long vm_pgoff = vma->vm_pgoff; in __tegra_gem_mmap() local
511 vma->vm_pgoff = 0; in __tegra_gem_mmap()
520 vma->vm_pgoff = vm_pgoff; in __tegra_gem_mmap()
/kernel/linux/linux-5.10/drivers/misc/uacce/
Duacce.c205 if (vma->vm_pgoff < UACCE_MAX_REGION) in uacce_vma_close()
206 qfr = q->qfrs[vma->vm_pgoff]; in uacce_vma_close()
223 if (vma->vm_pgoff < UACCE_MAX_REGION) in uacce_fops_mmap()
224 type = vma->vm_pgoff; in uacce_fops_mmap()
/kernel/linux/linux-5.10/arch/arc/kernel/
Darc_hostlink.c22 if (io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in arc_hl_mmap()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dpci.c85 vma->vm_pgoff += (ioaddr + pci_ctrl->io_space.start) >> PAGE_SHIFT; in pci_iobar_pfn()
/kernel/linux/linux-5.10/drivers/soc/aspeed/
Daspeed-lpc-ctrl.c49 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
56 (lpc_ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_lpc_ctrl_mmap()
/kernel/linux/linux-5.10/drivers/xen/xenfs/
Dxenstored.c38 if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) in xsd_kva_mmap()
/kernel/linux/linux-5.10/drivers/vfio/pci/
Dvfio_pci_nvlink2.c124 unsigned long vm_pgoff = vma->vm_pgoff & in vfio_pci_nvgpu_mmap_fault() local
126 unsigned long pfn = nv2pg + vm_pgoff + vmf_off; in vfio_pci_nvgpu_mmap_fault()
/kernel/linux/linux-5.10/drivers/vfio/platform/
Dvfio_platform_common.c561 pgoff = vma->vm_pgoff & in vfio_platform_mmap_mmio()
569 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_platform_mmap_mmio()
571 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_platform_mmap_mmio()
580 index = vma->vm_pgoff >> (VFIO_PLATFORM_OFFSET_SHIFT - PAGE_SHIFT); in vfio_platform_mmap()
/kernel/linux/linux-5.10/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c453 pgoff = vma->vm_pgoff & in vfio_fsl_mc_mmap_mmio()
465 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_fsl_mc_mmap_mmio()
467 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_fsl_mc_mmap_mmio()
477 index = vma->vm_pgoff >> (VFIO_FSL_MC_OFFSET_SHIFT - PAGE_SHIFT); in vfio_fsl_mc_mmap()

12345678