Lines Matching refs:mqd
34 static inline struct v11_compute_mqd *get_mqd(void *mqd) in get_mqd() argument
36 return (struct v11_compute_mqd *)mqd; in get_mqd()
39 static inline struct v11_sdma_mqd *get_sdma_mqd(void *mqd) in get_sdma_mqd() argument
41 return (struct v11_sdma_mqd *)mqd; in get_sdma_mqd()
44 static void update_cu_mask(struct mqd_manager *mm, void *mqd, in update_cu_mask() argument
57 m = get_mqd(mqd); in update_cu_mask()
105 static void init_mqd(struct mqd_manager *mm, void **mqd, in init_mqd() argument
164 *mqd = m; in init_mqd()
170 static int load_mqd(struct mqd_manager *mm, void *mqd, in load_mqd() argument
178 r = mm->dev->kfd2kgd->hqd_load(mm->dev->adev, mqd, pipe_id, queue_id, in load_mqd()
184 static void update_mqd(struct mqd_manager *mm, void *mqd, in update_mqd() argument
190 m = get_mqd(mqd); in update_mqd()
242 update_cu_mask(mm, mqd, minfo); in update_mqd()
248 static uint32_t read_doorbell_id(void *mqd) in read_doorbell_id() argument
250 struct v11_compute_mqd *m = (struct v11_compute_mqd *)mqd; in read_doorbell_id()
255 static int get_wave_state(struct mqd_manager *mm, void *mqd, in get_wave_state() argument
263 m = get_mqd(mqd); in get_wave_state()
292 static void init_mqd_hiq(struct mqd_manager *mm, void **mqd, in init_mqd_hiq() argument
298 init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); in init_mqd_hiq()
300 m = get_mqd(*mqd); in init_mqd_hiq()
306 static void init_mqd_sdma(struct mqd_manager *mm, void **mqd, in init_mqd_sdma() argument
316 *mqd = m; in init_mqd_sdma()
325 static void update_mqd_sdma(struct mqd_manager *mm, void *mqd, in update_mqd_sdma() argument
331 m = get_sdma_mqd(mqd); in update_mqd_sdma()
376 struct mqd_manager *mqd; in mqd_manager_init_v11() local
381 mqd = kzalloc(sizeof(*mqd), GFP_KERNEL); in mqd_manager_init_v11()
382 if (!mqd) in mqd_manager_init_v11()
385 mqd->dev = dev; in mqd_manager_init_v11()
390 mqd->allocate_mqd = allocate_mqd; in mqd_manager_init_v11()
391 mqd->init_mqd = init_mqd; in mqd_manager_init_v11()
392 mqd->free_mqd = kfd_free_mqd_cp; in mqd_manager_init_v11()
393 mqd->load_mqd = load_mqd; in mqd_manager_init_v11()
394 mqd->update_mqd = update_mqd; in mqd_manager_init_v11()
395 mqd->destroy_mqd = kfd_destroy_mqd_cp; in mqd_manager_init_v11()
396 mqd->is_occupied = kfd_is_occupied_cp; in mqd_manager_init_v11()
397 mqd->mqd_size = sizeof(struct v11_compute_mqd); in mqd_manager_init_v11()
398 mqd->get_wave_state = get_wave_state; in mqd_manager_init_v11()
400 mqd->debugfs_show_mqd = debugfs_show_mqd; in mqd_manager_init_v11()
406 mqd->allocate_mqd = allocate_hiq_mqd; in mqd_manager_init_v11()
407 mqd->init_mqd = init_mqd_hiq; in mqd_manager_init_v11()
408 mqd->free_mqd = free_mqd_hiq_sdma; in mqd_manager_init_v11()
409 mqd->load_mqd = kfd_hiq_load_mqd_kiq; in mqd_manager_init_v11()
410 mqd->update_mqd = update_mqd; in mqd_manager_init_v11()
411 mqd->destroy_mqd = kfd_destroy_mqd_cp; in mqd_manager_init_v11()
412 mqd->is_occupied = kfd_is_occupied_cp; in mqd_manager_init_v11()
413 mqd->mqd_size = sizeof(struct v11_compute_mqd); in mqd_manager_init_v11()
415 mqd->debugfs_show_mqd = debugfs_show_mqd; in mqd_manager_init_v11()
417 mqd->read_doorbell_id = read_doorbell_id; in mqd_manager_init_v11()
421 mqd->allocate_mqd = allocate_mqd; in mqd_manager_init_v11()
422 mqd->init_mqd = init_mqd_hiq; in mqd_manager_init_v11()
423 mqd->free_mqd = kfd_free_mqd_cp; in mqd_manager_init_v11()
424 mqd->load_mqd = load_mqd; in mqd_manager_init_v11()
425 mqd->update_mqd = update_mqd; in mqd_manager_init_v11()
426 mqd->destroy_mqd = kfd_destroy_mqd_cp; in mqd_manager_init_v11()
427 mqd->is_occupied = kfd_is_occupied_cp; in mqd_manager_init_v11()
428 mqd->mqd_size = sizeof(struct v11_compute_mqd); in mqd_manager_init_v11()
430 mqd->debugfs_show_mqd = debugfs_show_mqd; in mqd_manager_init_v11()
435 mqd->allocate_mqd = allocate_sdma_mqd; in mqd_manager_init_v11()
436 mqd->init_mqd = init_mqd_sdma; in mqd_manager_init_v11()
437 mqd->free_mqd = free_mqd_hiq_sdma; in mqd_manager_init_v11()
438 mqd->load_mqd = kfd_load_mqd_sdma; in mqd_manager_init_v11()
439 mqd->update_mqd = update_mqd_sdma; in mqd_manager_init_v11()
440 mqd->destroy_mqd = kfd_destroy_mqd_sdma; in mqd_manager_init_v11()
441 mqd->is_occupied = kfd_is_occupied_sdma; in mqd_manager_init_v11()
442 mqd->mqd_size = sizeof(struct v11_sdma_mqd); in mqd_manager_init_v11()
444 mqd->debugfs_show_mqd = debugfs_show_mqd_sdma; in mqd_manager_init_v11()
449 kfree(mqd); in mqd_manager_init_v11()
453 return mqd; in mqd_manager_init_v11()