/drivers/pci/ |
D | mmap.c | 31 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/ |
D | flash.c | 62 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/ |
D | mem.c | 365 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()
|
D | mspec.c | 187 if (vma->vm_pgoff != 0) in mspec_mmap()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_glue.c | 72 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/ |
D | drm_vm.c | 128 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/ |
D | context.c | 164 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/ |
D | uacce.c | 205 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/ |
D | gem.c | 515 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/ |
D | ttm_bo_vm.c | 222 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/ |
D | vfio_fsl_mc.c | 351 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/ |
D | vfio_platform_common.c | 546 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/ |
D | aspeed-lpc-ctrl.c | 55 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()
|
D | aspeed-p2a-ctrl.c | 113 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/ |
D | device.c | 180 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()
|
D | command_buffer.c | 500 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/ |
D | xenstored.c | 38 if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) in xsd_kva_mmap()
|
/drivers/xen/xenbus/ |
D | xenbus_dev_backend.c | 99 if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) in xenbus_backend_mmap()
|
/drivers/video/fbdev/ |
D | sbuslib.c | 56 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/ |
D | videobuf-dma-contig.c | 305 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/ |
D | rxe_mmap.c | 66 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; in rxe_mmap()
|
/drivers/xen/ |
D | gntalloc.c | 514 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/ |
D | mmap.c | 71 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; in rvt_mmap()
|
/drivers/gpu/drm/gma500/ |
D | framebuffer.c | 131 if (vma->vm_pgoff != 0) in psbfb_mmap() 133 if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) in psbfb_mmap()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_vram.c | 46 vma->vm_pgoff -= drm_vma_node_start(&obj->vma_node); in virtio_gpu_vram_mmap()
|