Lines Matching refs:kgd_mem

78 		struct kgd_mem *mem)  in kfd_mem_is_attached()
316 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo()
505 static uint64_t get_pte_flags(struct amdgpu_device *adev, struct kgd_mem *mem) in get_pte_flags()
551 kfd_mem_dmamap_userptr(struct kgd_mem *mem, in kfd_mem_dmamap_userptr()
644 kfd_mem_dmamap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmamap_sg_bo()
699 kfd_mem_dmamap_attachment(struct kgd_mem *mem, in kfd_mem_dmamap_attachment()
718 kfd_mem_dmaunmap_userptr(struct kgd_mem *mem, in kfd_mem_dmaunmap_userptr()
767 kfd_mem_dmaunmap_sg_bo(struct kgd_mem *mem, in kfd_mem_dmaunmap_sg_bo()
795 kfd_mem_dmaunmap_attachment(struct kgd_mem *mem, in kfd_mem_dmaunmap_attachment()
815 static int kfd_mem_export_dmabuf(struct kgd_mem *mem) in kfd_mem_export_dmabuf()
835 kfd_mem_attach_dmabuf(struct amdgpu_device *adev, struct kgd_mem *mem, in kfd_mem_attach_dmabuf()
868 static int kfd_mem_attach(struct amdgpu_device *adev, struct kgd_mem *mem, in kfd_mem_attach()
1018 static void add_kgd_mem_to_kfd_bo_list(struct kgd_mem *mem, in add_kgd_mem_to_kfd_bo_list()
1031 static void remove_kgd_mem_from_kfd_bo_list(struct kgd_mem *mem, in remove_kgd_mem_from_kfd_bo_list()
1051 static int init_user_pages(struct kgd_mem *mem, uint64_t user_addr, in init_user_pages()
1145 static int reserve_bo_and_vm(struct kgd_mem *mem, in reserve_bo_and_vm()
1186 static int reserve_bo_and_cond_vms(struct kgd_mem *mem, in reserve_bo_and_cond_vms()
1249 static int unmap_bo_from_gpuvm(struct kgd_mem *mem, in unmap_bo_from_gpuvm()
1271 static int update_gpuvm_pte(struct kgd_mem *mem, in update_gpuvm_pte()
1293 static int map_bo_to_gpuvm(struct kgd_mem *mem, in map_bo_to_gpuvm()
1717 void *drm_priv, struct kgd_mem **mem, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1786 *mem = kzalloc(sizeof(struct kgd_mem), GFP_KERNEL); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1908 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv, in amdgpu_amdkfd_gpuvm_free_memory_of_gpu()
2023 struct amdgpu_device *adev, struct kgd_mem *mem, in amdgpu_amdkfd_gpuvm_map_memory_to_gpu()
2128 int amdgpu_amdkfd_gpuvm_dmaunmap_mem(struct kgd_mem *mem, void *drm_priv) in amdgpu_amdkfd_gpuvm_dmaunmap_mem()
2160 struct amdgpu_device *adev, struct kgd_mem *mem, void *drm_priv) in amdgpu_amdkfd_gpuvm_unmap_memory_from_gpu()
2214 struct amdgpu_device *adev, struct kgd_mem *mem, bool intr) in amdgpu_amdkfd_gpuvm_sync_memory()
2291 int amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel(struct kgd_mem *mem, in amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel()
2351 void amdgpu_amdkfd_gpuvm_unmap_gtt_bo_from_kernel(struct kgd_mem *mem) in amdgpu_amdkfd_gpuvm_unmap_gtt_bo_from_kernel()
2376 struct kgd_mem **mem, uint64_t *size, in import_obj_create()
2389 *mem = kzalloc(sizeof(struct kgd_mem), GFP_KERNEL); in import_obj_create()
2447 struct kgd_mem **mem, uint64_t *size, in amdgpu_amdkfd_gpuvm_import_dmabuf_fd()
2480 int amdgpu_amdkfd_gpuvm_export_dmabuf(struct kgd_mem *mem, in amdgpu_amdkfd_gpuvm_export_dmabuf()
2508 unsigned long cur_seq, struct kgd_mem *mem) in amdgpu_amdkfd_evict_userptr()
2547 struct kgd_mem *mem, *tmp_mem; in update_invalid_user_pages()
2650 struct kgd_mem *mem, *tmp_mem; in validate_invalid_user_pages()
2743 struct kgd_mem *mem, *tmp_mem; in confirm_valid_user_pages_locked()
2902 struct kgd_mem *mem; in amdgpu_amdkfd_gpuvm_restore_process_bos()
3096 int amdgpu_amdkfd_add_gws_to_process(void *info, void *gws, struct kgd_mem **mem) in amdgpu_amdkfd_add_gws_to_process()
3105 *mem = kzalloc(sizeof(struct kgd_mem), GFP_KERNEL); in amdgpu_amdkfd_add_gws_to_process()
3164 struct kgd_mem *kgd_mem = (struct kgd_mem *)mem; in amdgpu_amdkfd_remove_gws_from_process() local
3165 struct amdgpu_bo *gws_bo = kgd_mem->bo; in amdgpu_amdkfd_remove_gws_from_process()
3170 remove_kgd_mem_from_kfd_bo_list(kgd_mem, process_info); in amdgpu_amdkfd_remove_gws_from_process()
3181 amdgpu_sync_free(&kgd_mem->sync); in amdgpu_amdkfd_remove_gws_from_process()
3183 mutex_destroy(&kgd_mem->lock); in amdgpu_amdkfd_remove_gws_from_process()
3208 bool amdgpu_amdkfd_bo_mapped_to_dev(void *drm_priv, struct kgd_mem *mem) in amdgpu_amdkfd_bo_mapped_to_dev()