Home
last modified time | relevance | path

Searched refs:mmap_offset (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/infiniband/sw/rdmavt/
H A Dmmap.c20 rdi->mmap_offset = PAGE_SIZE; in rvt_mmap_init()
131 if (rdi->mmap_offset == 0) in rvt_create_mmap_info()
132 rdi->mmap_offset = ALIGN(PAGE_SIZE, SHMLBA); in rvt_create_mmap_info()
133 ip->offset = rdi->mmap_offset; in rvt_create_mmap_info()
134 rdi->mmap_offset += ALIGN(size, SHMLBA); in rvt_create_mmap_info()
161 if (rdi->mmap_offset == 0) in rvt_update_mmap_info()
162 rdi->mmap_offset = PAGE_SIZE; in rvt_update_mmap_info()
163 ip->offset = rdi->mmap_offset; in rvt_update_mmap_info()
164 rdi->mmap_offset += size; in rvt_update_mmap_info()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_mmap.c131 if (rxe->mmap_offset == 0) in rxe_create_mmap_info()
132 rxe->mmap_offset = ALIGN(PAGE_SIZE, SHMLBA); in rxe_create_mmap_info()
134 ip->info.offset = rxe->mmap_offset; in rxe_create_mmap_info()
135 rxe->mmap_offset += ALIGN(size, SHMLBA); in rxe_create_mmap_info()
H A Drxe_verbs.h401 u64 mmap_offset; member
/linux/arch/um/drivers/
H A Dvhost_user.h99 u64 mmap_offset; member
H A Dvirtio_uml.c614 region_out->mmap_offset = mem_offset; in vhost_user_init_mem_region()
/linux/include/uapi/drm/
H A Divpu_accel.h256 __u64 mmap_offset; member
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_object_types.h88 u64 (*mmap_offset)(struct drm_i915_gem_object *obj); member
H A Di915_gem_mman.c725 GEM_BUG_ON(obj->ops->mmap_offset || obj->ops->mmap_ops); in mmap_offset_attach()
779 if (obj->ops->mmap_offset) { in __assign_mmap_offset()
783 *offset = obj->ops->mmap_offset(obj); in __assign_mmap_offset()
H A Di915_gem_ttm.c1236 .mmap_offset = i915_ttm_mmap_offset,
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1049 uint64_t offset = args->mmap_offset; in kfd_ioctl_alloc_memory_of_gpu()
1076 args->mmap_offset >> PAGE_SHIFT, in kfd_ioctl_alloc_memory_of_gpu()
1077 (args->mmap_offset + args->size - 1) >> PAGE_SHIFT)) { in kfd_ioctl_alloc_memory_of_gpu()
1079 args->mmap_offset); in kfd_ioctl_alloc_memory_of_gpu()
1157 args->mmap_offset = offset; in kfd_ioctl_alloc_memory_of_gpu()
1163 args->mmap_offset = KFD_MMAP_TYPE_MMIO in kfd_ioctl_alloc_memory_of_gpu()
3388 unsigned long mmap_offset; in kfd_mmap() local
3395 mmap_offset = vma->vm_pgoff << PAGE_SHIFT; in kfd_mmap()
3396 gpu_id = KFD_MMAP_GET_GPU_ID(mmap_offset); in kfd_mmap()
3400 switch (mmap_offset & KFD_MMAP_TYPE_MASK) { in kfd_mmap()
/linux/include/rdma/
H A Drdma_vt.h416 u32 mmap_offset; member
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd.h336 uint64_t *mmap_offset);
H A Damdgpu_amdkfd_gpuvm.c2377 uint64_t *mmap_offset) in import_obj_create() argument
2400 if (mmap_offset) in import_obj_create()
2401 *mmap_offset = amdgpu_bo_mmap_offset(bo); in import_obj_create()
2448 uint64_t *mmap_offset) in amdgpu_amdkfd_gpuvm_import_dmabuf_fd() argument
2465 mmap_offset); in amdgpu_amdkfd_gpuvm_import_dmabuf_fd()
/linux/drivers/infiniband/hw/mlx5/
H A Dmain.c3772 u64 mmap_offset; in UVERBS_HANDLER() local
3784 mmap_offset = mlx5_entry_to_mmap_offset(entry); in UVERBS_HANDLER()
3790 &mmap_offset, sizeof(mmap_offset)); in UVERBS_HANDLER()
3886 u64 mmap_offset; in UVERBS_HANDLER() local
3911 mmap_offset = mlx5_entry_to_mmap_offset(entry); in UVERBS_HANDLER()
3917 &mmap_offset, sizeof(mmap_offset)); in UVERBS_HANDLER()
/linux/drivers/accel/ivpu/
H A Divpu_gem.c369 args->mmap_offset = drm_vma_node_offset_addr(&obj->vma_node); in ivpu_bo_info_ioctl()
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem.c372 static uint64_t mmap_offset(struct drm_gem_object *obj) in mmap_offset() function
395 offset = mmap_offset(obj); in msm_gem_mmap_offset()
/linux/include/uapi/linux/
H A Dkfd_ioctl.h433 __u64 mmap_offset; /* to KFD (userptr), from KFD (mmap offset) */ member
/linux/drivers/infiniband/hw/erdma/
H A Derdma_verbs.c283 u32 size, u8 mmap_flag, u64 *mmap_offset) in erdma_user_mmap_entry_insert() argument
304 *mmap_offset = rdma_user_mmap_get_offset(&entry->rdma_entry); in erdma_user_mmap_entry_insert()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c4431 u64 mmap_offset; in UVERBS_HANDLER() local
4479 entry = bnxt_re_mmap_entry_insert(uctx, addr, mmap_flag, &mmap_offset); in UVERBS_HANDLER()
4486 &mmap_offset, sizeof(mmap_offset)); in UVERBS_HANDLER()
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_mman.c876 if (obj->ops->mmap_offset) in can_mmap()
/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c144 enum irdma_mmap_flag mmap_flag, u64 *mmap_offset) in irdma_user_mmap_entry_insert() argument
161 *mmap_offset = rdma_user_mmap_get_offset(&entry->rdma_entry); in irdma_user_mmap_entry_insert()