/linux/drivers/infiniband/sw/rdmavt/ |
H A D | mmap.c | 20 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 D | rxe_mmap.c | 131 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 D | rxe_verbs.h | 401 u64 mmap_offset; member
|
/linux/arch/um/drivers/ |
H A D | vhost_user.h | 99 u64 mmap_offset; member
|
H A D | virtio_uml.c | 614 region_out->mmap_offset = mem_offset; in vhost_user_init_mem_region()
|
/linux/include/uapi/drm/ |
H A D | ivpu_accel.h | 256 __u64 mmap_offset; member
|
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_object_types.h | 88 u64 (*mmap_offset)(struct drm_i915_gem_object *obj); member
|
H A D | i915_gem_mman.c | 725 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 D | i915_gem_ttm.c | 1236 .mmap_offset = i915_ttm_mmap_offset,
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_chardev.c | 1049 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 D | rdma_vt.h | 416 u32 mmap_offset; member
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd.h | 336 uint64_t *mmap_offset);
|
H A D | amdgpu_amdkfd_gpuvm.c | 2377 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 D | main.c | 3772 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 D | ivpu_gem.c | 369 args->mmap_offset = drm_vma_node_offset_addr(&obj->vma_node); in ivpu_bo_info_ioctl()
|
/linux/drivers/gpu/drm/msm/ |
H A D | msm_gem.c | 372 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 D | kfd_ioctl.h | 433 __u64 mmap_offset; /* to KFD (userptr), from KFD (mmap offset) */ member
|
/linux/drivers/infiniband/hw/erdma/ |
H A D | erdma_verbs.c | 283 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 D | ib_verbs.c | 4431 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 D | i915_gem_mman.c | 876 if (obj->ops->mmap_offset) in can_mmap()
|
/linux/drivers/infiniband/hw/irdma/ |
H A D | verbs.c | 144 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()
|