• Home
  • Raw
  • Download

Lines Matching refs:mm

91 void free_mqd_hiq_sdma(struct mqd_manager *mm, void *mqd,  in free_mqd_hiq_sdma()  argument
98 void mqd_symmetrically_map_cu_mask(struct mqd_manager *mm, in mqd_symmetrically_map_cu_mask() argument
104 bool wgp_mode_req = KFD_GC_VERSION(mm->dev) >= IP_VERSION(10, 0, 0); in mqd_symmetrically_map_cu_mask()
108 int inc = cu_inc * NUM_XCC(mm->dev->xcc_mask); in mqd_symmetrically_map_cu_mask()
109 int xcc_inst = inst + ffs(mm->dev->xcc_mask) - 1; in mqd_symmetrically_map_cu_mask()
111 amdgpu_amdkfd_get_cu_info(mm->dev->adev, &cu_info); in mqd_symmetrically_map_cu_mask()
113 cu_active_per_node = cu_info.cu_active_number / mm->dev->kfd->num_nodes; in mqd_symmetrically_map_cu_mask()
131 cu_bitmap_sh_mul = (KFD_GC_VERSION(mm->dev) >= IP_VERSION(11, 0, 0) && in mqd_symmetrically_map_cu_mask()
132 KFD_GC_VERSION(mm->dev) < IP_VERSION(12, 0, 0)) ? 2 : 1; in mqd_symmetrically_map_cu_mask()
206 int kfd_hiq_load_mqd_kiq(struct mqd_manager *mm, void *mqd, in kfd_hiq_load_mqd_kiq() argument
210 return mm->dev->kfd2kgd->hiq_mqd_load(mm->dev->adev, mqd, pipe_id, in kfd_hiq_load_mqd_kiq()
214 int kfd_destroy_mqd_cp(struct mqd_manager *mm, void *mqd, in kfd_destroy_mqd_cp() argument
218 return mm->dev->kfd2kgd->hqd_destroy(mm->dev->adev, mqd, type, timeout, in kfd_destroy_mqd_cp()
222 void kfd_free_mqd_cp(struct mqd_manager *mm, void *mqd, in kfd_free_mqd_cp() argument
226 amdgpu_amdkfd_free_gtt_mem(mm->dev->adev, mqd_mem_obj->gtt_mem); in kfd_free_mqd_cp()
229 kfd_gtt_sa_free(mm->dev, mqd_mem_obj); in kfd_free_mqd_cp()
233 bool kfd_is_occupied_cp(struct mqd_manager *mm, void *mqd, in kfd_is_occupied_cp() argument
237 return mm->dev->kfd2kgd->hqd_is_occupied(mm->dev->adev, queue_address, in kfd_is_occupied_cp()
241 int kfd_load_mqd_sdma(struct mqd_manager *mm, void *mqd, in kfd_load_mqd_sdma() argument
245 return mm->dev->kfd2kgd->hqd_sdma_load(mm->dev->adev, mqd, in kfd_load_mqd_sdma()
254 int kfd_destroy_mqd_sdma(struct mqd_manager *mm, void *mqd, in kfd_destroy_mqd_sdma() argument
259 return mm->dev->kfd2kgd->hqd_sdma_destroy(mm->dev->adev, mqd, timeout); in kfd_destroy_mqd_sdma()
262 bool kfd_is_occupied_sdma(struct mqd_manager *mm, void *mqd, in kfd_is_occupied_sdma() argument
266 return mm->dev->kfd2kgd->hqd_sdma_is_occupied(mm->dev->adev, mqd); in kfd_is_occupied_sdma()
288 uint64_t kfd_mqd_stride(struct mqd_manager *mm, in kfd_mqd_stride() argument
291 return mm->mqd_size; in kfd_mqd_stride()