Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/infiniband/sw/rdmavt/
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-6.1.9/drivers/infiniband/sw/rxe/
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()
Drxe_verbs.h400 u64 mmap_offset; member
/linux-6.1.9/arch/um/drivers/
Dvhost_user.h99 u64 mmap_offset; member
Dvirtio_uml.c613 region_out->mmap_offset = mem_offset; in vhost_user_init_mem_region()
/linux-6.1.9/drivers/gpu/drm/i915/gem/
Di915_gem_object_types.h86 u64 (*mmap_offset)(struct drm_i915_gem_object *obj); member
Di915_gem_mman.c664 GEM_BUG_ON(obj->ops->mmap_offset || obj->ops->mmap_ops); in mmap_offset_attach()
718 if (obj->ops->mmap_offset) { in __assign_mmap_offset()
722 *offset = obj->ops->mmap_offset(obj); in __assign_mmap_offset()
Di915_gem_ttm.c1161 .mmap_offset = i915_ttm_mmap_offset,
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1047 uint64_t offset = args->mmap_offset; in kfd_ioctl_alloc_memory_of_gpu()
1136 args->mmap_offset = offset; in kfd_ioctl_alloc_memory_of_gpu()
1142 args->mmap_offset = KFD_MMAP_TYPE_MMIO in kfd_ioctl_alloc_memory_of_gpu()
2907 unsigned long mmap_offset; in kfd_mmap() local
2914 mmap_offset = vma->vm_pgoff << PAGE_SHIFT; in kfd_mmap()
2915 gpu_id = KFD_MMAP_GET_GPU_ID(mmap_offset); in kfd_mmap()
2919 switch (mmap_offset & KFD_MMAP_TYPE_MASK) { in kfd_mmap()
/linux-6.1.9/include/rdma/
Drdma_vt.h416 u32 mmap_offset; member
/linux-6.1.9/include/uapi/linux/
Dkfd_ioctl.h388 __u64 mmap_offset; /* to KFD (userptr), from KFD (mmap offset) */ member
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.h305 uint64_t *mmap_offset);
Damdgpu_amdkfd_gpuvm.c2248 uint64_t *mmap_offset) in amdgpu_amdkfd_gpuvm_import_dmabuf() argument
2283 if (mmap_offset) in amdgpu_amdkfd_gpuvm_import_dmabuf()
2284 *mmap_offset = amdgpu_bo_mmap_offset(bo); in amdgpu_amdkfd_gpuvm_import_dmabuf()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dmain.c3394 u64 mmap_offset; in UVERBS_HANDLER() local
3406 mmap_offset = mlx5_entry_to_mmap_offset(entry); in UVERBS_HANDLER()
3412 &mmap_offset, sizeof(mmap_offset)); in UVERBS_HANDLER()
3508 u64 mmap_offset; in UVERBS_HANDLER() local
3533 mmap_offset = mlx5_entry_to_mmap_offset(entry); in UVERBS_HANDLER()
3539 &mmap_offset, sizeof(mmap_offset)); in UVERBS_HANDLER()
/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gem.c276 static uint64_t mmap_offset(struct drm_gem_object *obj) in mmap_offset() function
299 offset = mmap_offset(obj); in msm_gem_mmap_offset()
/linux-6.1.9/drivers/infiniband/hw/erdma/
Derdma_verbs.c237 u32 size, u8 mmap_flag, u64 *mmap_offset) in erdma_user_mmap_entry_insert() argument
258 *mmap_offset = rdma_user_mmap_get_offset(&entry->rdma_entry); in erdma_user_mmap_entry_insert()
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_mman.c874 if (obj->ops->mmap_offset) in can_mmap()
/linux-6.1.9/drivers/infiniband/hw/irdma/
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()