Home
last modified time | relevance | path

Searched refs:vm_pgoff (Results 1 – 25 of 102) 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.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()
/drivers/char/
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()
Dmspec.c187 if (vma->vm_pgoff != 0) in mspec_mmap()
/drivers/gpu/drm/vmwgfx/
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()
/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()
/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()
/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()
/drivers/gpu/drm/tegra/
Dgem.c515 unsigned long vm_pgoff = vma->vm_pgoff; in __tegra_gem_mmap() local
524 vma->vm_pgoff = 0; in __tegra_gem_mmap()
533 vma->vm_pgoff = vm_pgoff; in __tegra_gem_mmap()
/drivers/gpu/drm/ttm/
Dttm_bo_vm.c222 vma->vm_pgoff - drm_vma_node_start(&bo->base.vma_node); in ttm_bo_vm_fault_reserved()
223 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()
/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c351 pgoff = vma->vm_pgoff & in vfio_fsl_mc_mmap_mmio()
363 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_fsl_mc_mmap_mmio()
365 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_fsl_mc_mmap_mmio()
377 index = vma->vm_pgoff >> (VFIO_FSL_MC_OFFSET_SHIFT - PAGE_SHIFT); in vfio_fsl_mc_mmap()
/drivers/vfio/platform/
Dvfio_platform_common.c546 pgoff = vma->vm_pgoff & in vfio_platform_mmap_mmio()
554 vma->vm_pgoff = (region.addr >> PAGE_SHIFT) + pgoff; in vfio_platform_mmap_mmio()
556 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in vfio_platform_mmap_mmio()
566 index = vma->vm_pgoff >> (VFIO_PLATFORM_OFFSET_SHIFT - PAGE_SHIFT); in vfio_platform_mmap()
/drivers/soc/aspeed/
Daspeed-lpc-ctrl.c55 if (vma->vm_pgoff + vma_pages(vma) > lpc_ctrl->mem_size >> PAGE_SHIFT) in aspeed_lpc_ctrl_mmap()
62 (lpc_ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_lpc_ctrl_mmap()
Daspeed-p2a-ctrl.c113 if (vma->vm_pgoff + vma_pages(vma) > ctrl->mem_size >> PAGE_SHIFT) in aspeed_p2a_mmap()
120 (ctrl->mem_base >> PAGE_SHIFT) + vma->vm_pgoff, in aspeed_p2a_mmap()
/drivers/misc/habanalabs/common/
Ddevice.c180 unsigned long vm_pgoff; in hl_mmap() local
187 vm_pgoff = vma->vm_pgoff; in hl_mmap()
188 vma->vm_pgoff = HL_MMAP_OFFSET_VALUE_GET(vm_pgoff); in hl_mmap()
190 switch (vm_pgoff & HL_MMAP_TYPE_MASK) { in hl_mmap()
Dcommand_buffer.c500 handle = vma->vm_pgoff; in hl_cb_mmap()
501 vma->vm_pgoff = 0; in hl_cb_mmap()
562 vma->vm_pgoff = handle; in hl_cb_mmap()
/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.c305 vma->vm_pgoff = 0; in __videobuf_mmap_mapper()
322 (long int)buf->bsize, vma->vm_pgoff, buf->i); in __videobuf_mmap_mapper()
/drivers/infiniband/sw/rxe/
Drxe_mmap.c66 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; in rxe_mmap()
/drivers/xen/
Dgntalloc.c514 priv, vm_priv, vma->vm_pgoff, count); in gntalloc_mmap()
516 gref = find_grefs(priv, vma->vm_pgoff << PAGE_SHIFT, count); in gntalloc_mmap()
/drivers/infiniband/sw/rdmavt/
Dmmap.c71 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; in rvt_mmap()
/drivers/gpu/drm/gma500/
Dframebuffer.c131 if (vma->vm_pgoff != 0) in psbfb_mmap()
133 if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) in psbfb_mmap()
/drivers/gpu/drm/virtio/
Dvirtgpu_vram.c46 vma->vm_pgoff -= drm_vma_node_start(&obj->vma_node); in virtio_gpu_vram_mmap()

12345