Searched refs:vm_ctx (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/imagination/ |
D | pvr_vm.c | 74 struct pvr_vm_context *pvr_vm_context_get(struct pvr_vm_context *vm_ctx) in pvr_vm_context_get() argument 76 if (vm_ctx) in pvr_vm_context_get() 77 kref_get(&vm_ctx->ref_count); in pvr_vm_context_get() 79 return vm_ctx; in pvr_vm_context_get() 87 dma_addr_t pvr_vm_get_page_table_root_addr(struct pvr_vm_context *vm_ctx) in pvr_vm_get_page_table_root_addr() argument 89 return pvr_mmu_get_root_table_dma_addr(vm_ctx->mmu_ctx); in pvr_vm_get_page_table_root_addr() 101 struct dma_resv *pvr_vm_get_dma_resv(struct pvr_vm_context *vm_ctx) in pvr_vm_get_dma_resv() argument 103 return vm_ctx->dummy_gem.resv; in pvr_vm_get_dma_resv() 138 struct pvr_vm_context *vm_ctx; member 189 return drm_gpuvm_sm_map(&bind_op->vm_ctx->gpuvm_mgr, in pvr_vm_bind_op_exec() [all …]
|
D | pvr_vm.h | 32 bool pvr_device_addr_and_size_are_valid(struct pvr_vm_context *vm_ctx, 38 int pvr_vm_map(struct pvr_vm_context *vm_ctx, 41 int pvr_vm_unmap(struct pvr_vm_context *vm_ctx, u64 device_addr, u64 size); 42 void pvr_vm_unmap_all(struct pvr_vm_context *vm_ctx); 44 dma_addr_t pvr_vm_get_page_table_root_addr(struct pvr_vm_context *vm_ctx); 45 struct dma_resv *pvr_vm_get_dma_resv(struct pvr_vm_context *vm_ctx); 54 struct pvr_gem_object *pvr_vm_find_gem_object(struct pvr_vm_context *vm_ctx, 60 pvr_vm_get_fw_mem_context(struct pvr_vm_context *vm_ctx); 63 struct pvr_vm_context *pvr_vm_context_get(struct pvr_vm_context *vm_ctx); 64 bool pvr_vm_context_put(struct pvr_vm_context *vm_ctx);
|
D | pvr_drv.c | 915 struct pvr_vm_context *vm_ctx; in pvr_ioctl_create_vm_context() local 927 vm_ctx = pvr_vm_create_context(pvr_file->pvr_dev, true); in pvr_ioctl_create_vm_context() 928 if (IS_ERR(vm_ctx)) { in pvr_ioctl_create_vm_context() 929 err = PTR_ERR(vm_ctx); in pvr_ioctl_create_vm_context() 936 vm_ctx, in pvr_ioctl_create_vm_context() 947 pvr_vm_context_put(vm_ctx); in pvr_ioctl_create_vm_context() 974 struct pvr_vm_context *vm_ctx; in pvr_ioctl_destroy_vm_context() local 979 vm_ctx = xa_erase(&pvr_file->vm_ctx_handles, args->handle); in pvr_ioctl_destroy_vm_context() 980 if (!vm_ctx) in pvr_ioctl_destroy_vm_context() 983 pvr_vm_context_put(vm_ctx); in pvr_ioctl_destroy_vm_context() [all …]
|
D | pvr_context.c | 321 ctx->vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle); in pvr_context_create() 322 if (IS_ERR(ctx->vm_ctx)) { in pvr_context_create() 323 err = PTR_ERR(ctx->vm_ctx); in pvr_context_create() 377 pvr_vm_context_put(ctx->vm_ctx); in pvr_context_create() 400 pvr_vm_context_put(ctx->vm_ctx); in pvr_context_release() 469 pvr_vm_unmap_all(ctx->vm_ctx); in pvr_destroy_contexts_for_file()
|
D | pvr_free_list.c | 54 struct pvr_vm_context *vm_ctx; in free_list_create_kernel_structure() local 71 vm_ctx = pvr_vm_context_lookup(pvr_file, args->vm_context_handle); in free_list_create_kernel_structure() 72 if (!vm_ctx) in free_list_create_kernel_structure() 75 free_list_obj = pvr_vm_find_gem_object(vm_ctx, args->free_list_gpu_addr, in free_list_create_kernel_structure() 98 pvr_vm_context_put(vm_ctx); in free_list_create_kernel_structure() 106 pvr_vm_context_put(vm_ctx); in free_list_create_kernel_structure()
|
D | pvr_context.h | 40 struct pvr_vm_context *vm_ctx; member
|
D | pvr_queue.c | 1021 struct pvr_fw_object *fw_mem_ctx_obj = pvr_vm_get_fw_mem_context(ctx->vm_ctx); in init_fw_context()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_trace.h | 331 pid_t pid, uint64_t vm_ctx), 332 TP_ARGS(p, start, end, nptes, dst, incr, flags, pid, vm_ctx), 340 __field(u64, vm_ctx) 353 __entry->vm_ctx = vm_ctx; 364 __entry->vm_ctx, __entry->start, __entry->end,
|
/linux-6.12.1/include/linux/ |
D | userfaultfd_k.h | 150 struct vm_userfaultfd_ctx vm_ctx) in is_mergeable_vm_userfaultfd_ctx() argument 152 return vma->vm_userfaultfd_ctx.ctx == vm_ctx.ctx; in is_mergeable_vm_userfaultfd_ctx() 307 struct vm_userfaultfd_ctx vm_ctx) in is_mergeable_vm_userfaultfd_ctx() argument
|
/linux-6.12.1/fs/ |
D | userfaultfd.c | 724 struct vm_userfaultfd_ctx *vm_ctx) in mremap_userfaultfd_prep() argument 734 vm_ctx->ctx = ctx; in mremap_userfaultfd_prep() 745 void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *vm_ctx, in mremap_userfaultfd_complete() argument 749 struct userfaultfd_ctx *ctx = vm_ctx->ctx; in mremap_userfaultfd_complete()
|
/linux-6.12.1/tools/testing/vma/ |
D | vma_internal.h | 603 struct vm_userfaultfd_ctx vm_ctx) in is_mergeable_vm_userfaultfd_ctx() argument
|