Home
last modified time | relevance | path

Searched refs:kgd_mem (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.h50 struct kgd_mem { struct
136 int amdgpu_amdkfd_evict_userptr(struct kgd_mem *mem, struct mm_struct *mm);
163 int amdgpu_amdkfd_add_gws_to_process(void *info, void *gws, struct kgd_mem **mem);
225 void *vm, struct kgd_mem **mem,
228 struct kgd_dev *kgd, struct kgd_mem *mem, uint64_t *size);
230 struct kgd_dev *kgd, struct kgd_mem *mem, void *vm);
232 struct kgd_dev *kgd, struct kgd_mem *mem, void *vm);
234 struct kgd_dev *kgd, struct kgd_mem *mem, bool intr);
236 struct kgd_mem *mem, void **kptr, uint64_t *size);
246 struct kgd_mem **mem, uint64_t *size,
Damdgpu_amdkfd_gpuvm.c77 struct kgd_mem *mem) in check_if_add_bo_to_vm()
403 static uint64_t get_pte_flags(struct amdgpu_device *adev, struct kgd_mem *mem) in get_pte_flags()
448 static int add_bo_to_vm(struct amdgpu_device *adev, struct kgd_mem *mem, in add_bo_to_vm()
519 static void add_kgd_mem_to_kfd_bo_list(struct kgd_mem *mem, in add_kgd_mem_to_kfd_bo_list()
537 static void remove_kgd_mem_from_kfd_bo_list(struct kgd_mem *mem, in remove_kgd_mem_from_kfd_bo_list()
560 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr) in init_user_pages()
636 static int reserve_bo_and_vm(struct kgd_mem *mem, in reserve_bo_and_vm()
686 static int reserve_bo_and_cond_vms(struct kgd_mem *mem, in reserve_bo_and_cond_vms()
1147 void *vm, struct kgd_mem **mem, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1195 *mem = kzalloc(sizeof(struct kgd_mem), GFP_KERNEL); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
[all …]
Damdgpu_object.h114 struct kgd_mem *kfd_bo;
Damdgpu_amdkfd.c724 int amdgpu_amdkfd_evict_userptr(struct kgd_mem *mem, struct mm_struct *mm) in amdgpu_amdkfd_evict_userptr()
/Linux-v5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_chardev.c1322 pdd->vm, (struct kgd_mem **) &mem, &offset, in kfd_ioctl_alloc_memory_of_gpu()
1353 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->kgd, (struct kgd_mem *)mem, NULL); in kfd_ioctl_alloc_memory_of_gpu()
1390 (struct kgd_mem *)mem, &size); in kfd_ioctl_free_memory_of_gpu()
1473 peer->kgd, (struct kgd_mem *)mem, peer_pdd->vm); in kfd_ioctl_map_memory_to_gpu()
1484 err = amdgpu_amdkfd_gpuvm_sync_memory(dev->kgd, (struct kgd_mem *) mem, true); in kfd_ioctl_map_memory_to_gpu()
1580 peer->kgd, (struct kgd_mem *)mem, peer_pdd->vm); in kfd_ioctl_unmap_memory_from_gpu()
1727 (struct kgd_mem **)&mem, &size, in kfd_ioctl_import_dmabuf()
1746 amdgpu_amdkfd_gpuvm_free_memory_of_gpu(dev->kgd, (struct kgd_mem *)mem, NULL); in kfd_ioctl_import_dmabuf()
Dkfd_process.c642 static void kfd_process_free_gpuvm(struct kgd_mem *mem, in kfd_process_free_gpuvm()
662 struct kgd_mem *mem = NULL; in kfd_process_alloc_gpuvm()
695 (struct kgd_mem *)mem, kptr, NULL); in kfd_process_alloc_gpuvm()
Dkfd_process_queue_manager.c84 struct kgd_mem *mem = NULL; in pqm_set_gws()
/Linux-v5.10/drivers/gpu/drm/amd/include/
Dkgd_kfd_interface.h42 struct kgd_mem;