Home
last modified time | relevance | path

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

12345678

/linux-6.6.21/drivers/pci/
Dmmap.c30 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range()
43 vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT); in pci_mmap_resource_range()
47 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in pci_mmap_resource_range()
/linux-6.6.21/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()
/linux-6.6.21/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()
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-6.6.21/mm/
Dmmap.c665 vma->vm_pgoff = pgoff; in vma_expand()
710 vma->vm_pgoff = pgoff; in vma_shrink()
775 pgoff_t vm_pgoff, struct vm_userfaultfd_ctx vm_userfaultfd_ctx, in can_vma_merge_before() argument
780 if (vma->vm_pgoff == vm_pgoff) in can_vma_merge_before()
798 pgoff_t vm_pgoff, struct vm_userfaultfd_ctx vm_userfaultfd_ctx, in can_vma_merge_after() argument
805 if (vma->vm_pgoff + vm_pglen == vm_pgoff) in can_vma_merge_after()
903 vma_pgoff = prev->vm_pgoff; in vma_merge()
977 vma_pgoff = next->vm_pgoff - pglen; in vma_merge()
979 vma_pgoff = curr->vm_pgoff; in vma_merge()
1013 vma->vm_pgoff = vma_pgoff; in vma_merge()
[all …]
Dnommu.c980 fpos = vma->vm_pgoff; in do_mmap_private()
1060 region->vm_pgoff = pgoff; in do_mmap()
1063 vma->vm_pgoff = pgoff; in do_mmap()
1098 if (pregion->vm_pgoff >= pgend) in do_mmap()
1103 rpgend = pregion->vm_pgoff + rpglen; in do_mmap()
1109 if ((pregion->vm_pgoff != pgoff || rpglen != pglen) && in do_mmap()
1110 !(pgoff >= pregion->vm_pgoff && pgend <= rpgend)) { in do_mmap()
1121 start += (pgoff - pregion->vm_pgoff) << PAGE_SHIFT; in do_mmap()
1343 region->vm_pgoff = new->vm_pgoff += npages; in split_vma()
1360 vma->vm_region->vm_pgoff = vma->vm_pgoff += npages; in split_vma()
[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()
/linux-6.6.21/drivers/vfio/cdx/
Dmain.c126 pgoff = vma->vm_pgoff & in vfio_cdx_mmap_mmio()
133 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_cdx_mmap_mmio()
136 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_cdx_mmap_mmio()
148 index = vma->vm_pgoff >> (VFIO_CDX_OFFSET_SHIFT - PAGE_SHIFT); in vfio_cdx_mmap()
/linux-6.6.21/drivers/char/
Dmem.c358 phys_addr_t offset = (phys_addr_t)vma->vm_pgoff << PAGE_SHIFT; in mmap_mem()
361 if (offset >> PAGE_SHIFT != vma->vm_pgoff) in mmap_mem()
368 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) in mmap_mem()
374 if (!range_is_allowed(vma->vm_pgoff, size)) in mmap_mem()
377 if (!phys_mem_access_prot_allowed(file, vma->vm_pgoff, size, in mmap_mem()
381 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in mmap_mem()
390 vma->vm_pgoff, in mmap_mem()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_glue.c85 if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET_START)) in vmw_mmap()
88 ret = vmw_bo_vm_lookup(bdev, file_priv, vma->vm_pgoff, vma_pages(vma), &bo); in vmw_mmap()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Dopal-prd.c117 vma->vm_start, vma->vm_end, vma->vm_pgoff, in opal_prd_mmap()
120 addr = vma->vm_pgoff << PAGE_SHIFT; in opal_prd_mmap()
127 page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in opal_prd_mmap()
130 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, in opal_prd_mmap()
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-6.6.21/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()
/linux-6.6.21/drivers/accel/habanalabs/common/
Dmemory_mgr.c241 handle = vma->vm_pgoff << PAGE_SHIFT;
242 vma->vm_pgoff = 0;
297 vma->vm_pgoff = handle >> PAGE_SHIFT;
/linux-6.6.21/drivers/gpu/drm/
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-6.6.21/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()
/linux-6.6.21/drivers/misc/uacce/
Duacce.c204 if (vma->vm_pgoff < UACCE_MAX_REGION) { in uacce_vma_close()
205 struct uacce_qfile_region *qfr = q->qfrs[vma->vm_pgoff]; in uacce_vma_close()
208 q->qfrs[vma->vm_pgoff] = NULL; in uacce_vma_close()
226 if (vma->vm_pgoff < UACCE_MAX_REGION) in uacce_fops_mmap()
227 type = vma->vm_pgoff; in uacce_fops_mmap()
/linux-6.6.21/drivers/misc/ocxl/
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-6.6.21/arch/arm/mm/
Dfault-armv.c144 pgoff = vma->vm_pgoff + ((addr - vma->vm_start) >> PAGE_SHIFT); in make_coherent()
162 offset = (pgoff - mpnt->vm_pgoff) << PAGE_SHIFT; in make_coherent()
/linux-6.6.21/drivers/gpu/drm/ttm/
Dttm_bo_vm.c211 vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node); in ttm_bo_vm_fault_reserved()
212 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault_reserved()
413 ((vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node)) in ttm_bo_vm_access()
/linux-6.6.21/arch/arc/kernel/
Darc_hostlink.c22 if (io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in arc_hl_mmap()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_iter_vma_offset.c33 offset = address - vma->vm_start + (vma->vm_pgoff << page_shift); in get_vma_offset()
/linux-6.6.21/arch/xtensa/kernel/
Dpci.c85 vma->vm_pgoff += (ioaddr + pci_ctrl->io_space.start) >> PAGE_SHIFT; in pci_iobar_pfn()
/linux-6.6.21/drivers/vfio/fsl-mc/
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-6.6.21/drivers/gpu/drm/tegra/
Dgem.c570 unsigned long vm_pgoff = vma->vm_pgoff; in __tegra_gem_mmap() local
579 vma->vm_pgoff = 0; in __tegra_gem_mmap()
588 vma->vm_pgoff = vm_pgoff; in __tegra_gem_mmap()
/linux-6.6.21/kernel/bpf/
Dringbuf.c266 if (vma->vm_pgoff != 0 || vma->vm_end - vma->vm_start != PAGE_SIZE) in ringbuf_map_mmap_kern()
273 vma->vm_pgoff + RINGBUF_PGOFF); in ringbuf_map_mmap_kern()
283 if (vma->vm_pgoff == 0) in ringbuf_map_mmap_user()
293 return remap_vmalloc_range(vma, rb_map->rb, vma->vm_pgoff + RINGBUF_PGOFF); in ringbuf_map_mmap_user()

12345678