Lines Matching refs:gang_id
316 idr_remove(&adev->mes.gang_id_idr, gang->gang_id); in amdgpu_mes_destroy_process()
345 int *gang_id) in amdgpu_mes_add_gang() argument
390 gang->gang_id = r; in amdgpu_mes_add_gang()
391 *gang_id = r; in amdgpu_mes_add_gang()
415 int amdgpu_mes_remove_gang(struct amdgpu_device *adev, int gang_id) in amdgpu_mes_remove_gang() argument
425 gang = idr_find(&adev->mes.gang_id_idr, gang_id); in amdgpu_mes_remove_gang()
427 DRM_ERROR("gang id %d doesn't exist\n", gang_id); in amdgpu_mes_remove_gang()
438 idr_remove(&adev->mes.gang_id_idr, gang->gang_id); in amdgpu_mes_remove_gang()
472 pasid, gang->gang_id); in amdgpu_mes_suspend()
501 pasid, gang->gang_id); in amdgpu_mes_resume()
576 int amdgpu_mes_add_hw_queue(struct amdgpu_device *adev, int gang_id, in amdgpu_mes_add_hw_queue() argument
606 gang = idr_find(&adev->mes.gang_id_idr, gang_id); in amdgpu_mes_add_hw_queue()
608 DRM_ERROR("gang id %d doesn't exist\n", gang_id); in amdgpu_mes_add_hw_queue()
667 gang->process->pasid, gang_id, qprops->queue_type, in amdgpu_mes_add_hw_queue()
993 int amdgpu_mes_add_ring(struct amdgpu_device *adev, int gang_id, in amdgpu_mes_add_ring() argument
1008 gang = idr_find(&adev->mes.gang_id_idr, gang_id); in amdgpu_mes_add_ring()
1010 DRM_ERROR("gang id %d doesn't exist\n", gang_id); in amdgpu_mes_add_ring()
1067 r = amdgpu_mes_add_hw_queue(adev, gang_id, &qprops, &queue_id); in amdgpu_mes_add_ring()
1075 sprintf(ring->name, "gfx_%d.%d.%d", pasid, gang_id, queue_id); in amdgpu_mes_add_ring()
1077 sprintf(ring->name, "compute_%d.%d.%d", pasid, gang_id, in amdgpu_mes_add_ring()
1080 sprintf(ring->name, "sdma_%d.%d.%d", pasid, gang_id, in amdgpu_mes_add_ring()
1272 int pasid, int *gang_id, in amdgpu_mes_test_create_gang_and_queues() argument
1288 r = amdgpu_mes_add_gang(adev, pasid, &gprops, gang_id); in amdgpu_mes_test_create_gang_and_queues()
1296 r = amdgpu_mes_add_ring(adev, *gang_id, queue_type, j, in amdgpu_mes_test_create_gang_and_queues()