Home
last modified time | relevance | path

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

12345

/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()
/drivers/sbus/char/
Dflash.c65 if ((vma->vm_pgoff << PAGE_SHIFT) > size) in flash_mmap()
67 addr = vma->vm_pgoff + (addr >> PAGE_SHIFT); in flash_mmap()
69 if (vma->vm_end - (vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT)) > size) in flash_mmap()
70 size = vma->vm_end - (vma->vm_start + (vma->vm_pgoff << PAGE_SHIFT)); in flash_mmap()
/drivers/char/
Dmem.c372 phys_addr_t offset = (phys_addr_t)vma->vm_pgoff << PAGE_SHIFT; in mmap_mem()
375 if (offset >> PAGE_SHIFT != vma->vm_pgoff) in mmap_mem()
382 if (!valid_mmap_phys_addr_range(vma->vm_pgoff, size)) in mmap_mem()
388 if (!range_is_allowed(vma->vm_pgoff, size)) in mmap_mem()
391 if (!phys_mem_access_prot_allowed(file, vma->vm_pgoff, size, in mmap_mem()
395 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in mmap_mem()
404 vma->vm_pgoff, in mmap_mem()
417 pfn = __pa((u64)vma->vm_pgoff << PAGE_SHIFT) >> PAGE_SHIFT; in mmap_kmem()
429 vma->vm_pgoff = pfn; in mmap_kmem()
Dmspec.c188 if (vma->vm_pgoff != 0) in mspec_mmap()
/drivers/gpu/drm/ttm/
Dttm_bo_vm.c214 vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node); in ttm_bo_vm_fault()
215 page_last = vma_pages(vma) + vma->vm_pgoff - in ttm_bo_vm_fault()
434 if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET_START)) in ttm_bo_mmap()
437 bo = ttm_bo_vm_lookup(bdev, vma->vm_pgoff, vma_pages(vma)); in ttm_bo_mmap()
477 if (vma->vm_pgoff != 0) in ttm_fbdev_mmap()
/drivers/gpu/drm/
Ddrm_vm.c134 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) in drm_vm_fault()
478 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_dma()
540 vma->vm_start, vma->vm_end, vma->vm_pgoff); in drm_mmap_locked()
549 if (!vma->vm_pgoff in drm_mmap_locked()
557 if (drm_ht_find_item(&dev->map_hash, vma->vm_pgoff, &hash)) { in drm_mmap_locked()
/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()
Dsysfs.c98 if ((vma_pages(vma) + vma->vm_pgoff) > in global_mmio_mmap()
/drivers/gpu/drm/tegra/
Dgem.c453 unsigned long vm_pgoff = vma->vm_pgoff; in __tegra_gem_mmap() local
462 vma->vm_pgoff = 0; in __tegra_gem_mmap()
471 vma->vm_pgoff = vm_pgoff; in __tegra_gem_mmap()
/drivers/gpu/drm/vc4/
Dvc4_bo.c706 unsigned long vm_pgoff; in vc4_mmap() local
746 vm_pgoff = vma->vm_pgoff; in vc4_mmap()
747 vma->vm_pgoff = 0; in vc4_mmap()
750 vma->vm_pgoff = vm_pgoff; in vc4_mmap()
/drivers/soc/aspeed/
Daspeed-lpc-ctrl.c49 if (vma->vm_pgoff + vsize > lpc_ctrl->mem_base + lpc_ctrl->mem_size) in aspeed_lpc_ctrl_mmap()
56 (lpc_ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_lpc_ctrl_mmap()
Daspeed-p2a-ctrl.c113 if (vma->vm_pgoff + vsize > ctrl->mem_base + ctrl->mem_size) in aspeed_p2a_mmap()
120 (ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_p2a_mmap()
/drivers/vfio/platform/
Dvfio_platform_common.c563 pgoff = vma->vm_pgoff & in vfio_platform_mmap_mmio()
571 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_platform_mmap_mmio()
573 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_platform_mmap_mmio()
582 index = vma->vm_pgoff >> (VFIO_PLATFORM_OFFSET_SHIFT - PAGE_SHIFT); in vfio_platform_mmap()
/drivers/vfio/pci/
Dvfio_pci_nvlink2.c122 unsigned long vm_pgoff = vma->vm_pgoff & in vfio_pci_nvgpu_mmap_fault() local
124 unsigned long pfn = nv2pg + vm_pgoff + vmf_off; in vfio_pci_nvgpu_mmap_fault()
/drivers/xen/xenfs/
Dxenstored.c38 if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) in xsd_kva_mmap()
/drivers/xen/xenbus/
Dxenbus_dev_backend.c99 if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) in xenbus_backend_mmap()
/drivers/video/fbdev/
Dsbuslib.c56 if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) in sbusfb_mmap_helper()
59 off = vma->vm_pgoff << PAGE_SHIFT; in sbusfb_mmap_helper()
/drivers/media/v4l2-core/
Dvideobuf-dma-contig.c311 vma->vm_pgoff = 0; in __videobuf_mmap_mapper()
328 (long int)buf->bsize, vma->vm_pgoff, buf->i); in __videobuf_mmap_mapper()
/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1901 unsigned long vm_pgoff; in kfd_mmap() local
1908 vm_pgoff = vma->vm_pgoff; in kfd_mmap()
1909 vma->vm_pgoff = KFD_MMAP_OFFSET_VALUE_GET(vm_pgoff); in kfd_mmap()
1910 gpu_id = KFD_MMAP_GPU_ID_GET(vm_pgoff); in kfd_mmap()
1914 switch (vm_pgoff & KFD_MMAP_TYPE_MASK) { in kfd_mmap()
/drivers/infiniband/sw/rxe/
Drxe_mmap.c94 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; in rxe_mmap()
/drivers/xen/
Dgntalloc.c525 priv, vm_priv, vma->vm_pgoff, count); in gntalloc_mmap()
527 gref = find_grefs(priv, vma->vm_pgoff << PAGE_SHIFT, count); in gntalloc_mmap()
/drivers/infiniband/sw/rdmavt/
Dmmap.c114 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; in rvt_mmap()
/drivers/gpu/drm/udl/
Dudl_fb.c167 if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) in udl_fb_mmap()
170 offset = vma->vm_pgoff << PAGE_SHIFT; in udl_fb_mmap()
/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c179 if (vma->vm_pgoff) in i40iw_mmap()
180 vma->vm_pgoff += I40IW_PF_FIRST_PUSH_PAGE_INDEX - 1; in i40iw_mmap()
184 if (vma->vm_pgoff) in i40iw_mmap()
185 vma->vm_pgoff += I40IW_VF_FIRST_PUSH_PAGE_INDEX - 1; in i40iw_mmap()
188 vma->vm_pgoff += db_addr_offset >> PAGE_SHIFT; in i40iw_mmap()
190 if (vma->vm_pgoff == (db_addr_offset >> PAGE_SHIFT)) { in i40iw_mmap()
194 if ((vma->vm_pgoff - (push_offset >> PAGE_SHIFT)) % 2) in i40iw_mmap()
201 vma->vm_pgoff + (pci_resource_start(ucontext->iwdev->ldev->pcidev, 0) >> PAGE_SHIFT), in i40iw_mmap()
/drivers/uio/
Duio.c659 if (vma->vm_pgoff < MAX_UIO_MAPS) { in uio_find_mem_index()
660 if (idev->info->mem[vma->vm_pgoff].size == 0) in uio_find_mem_index()
662 return (int)vma->vm_pgoff; in uio_find_mem_index()

12345