Searched refs:mgpu_info (Results 1 – 4 of 4) sorted by relevance
52 mutex_lock(&mgpu_info.mutex); in amdgpu_unregister_gpu_instance()54 for (i = 0; i < mgpu_info.num_gpu; i++) { in amdgpu_unregister_gpu_instance()55 gpu_instance = &(mgpu_info.gpu_ins[i]); in amdgpu_unregister_gpu_instance()57 mgpu_info.gpu_ins[i] = in amdgpu_unregister_gpu_instance()58 mgpu_info.gpu_ins[mgpu_info.num_gpu - 1]; in amdgpu_unregister_gpu_instance()59 mgpu_info.num_gpu--; in amdgpu_unregister_gpu_instance()61 mgpu_info.num_apu--; in amdgpu_unregister_gpu_instance()63 mgpu_info.num_dgpu--; in amdgpu_unregister_gpu_instance()68 mutex_unlock(&mgpu_info.mutex); in amdgpu_unregister_gpu_instance()104 mutex_lock(&mgpu_info.mutex); in amdgpu_register_gpu_instance()[all …]
2394 mutex_lock(&mgpu_info.mutex); in amdgpu_device_enable_mgpu_fan_boost()2401 if (mgpu_info.num_dgpu < 2) in amdgpu_device_enable_mgpu_fan_boost()2404 for (i = 0; i < mgpu_info.num_dgpu; i++) { in amdgpu_device_enable_mgpu_fan_boost()2405 gpu_ins = &(mgpu_info.gpu_ins[i]); in amdgpu_device_enable_mgpu_fan_boost()2418 mutex_unlock(&mgpu_info.mutex); in amdgpu_device_enable_mgpu_fan_boost()2467 mutex_lock(&mgpu_info.mutex); in amdgpu_device_ip_late_init()2482 if (mgpu_info.num_dgpu == adev->gmc.xgmi.num_physical_nodes) { in amdgpu_device_ip_late_init()2483 for (i = 0; i < mgpu_info.num_gpu; i++) { in amdgpu_device_ip_late_init()2484 gpu_instance = &(mgpu_info.gpu_ins[i]); in amdgpu_device_ip_late_init()2497 mutex_unlock(&mgpu_info.mutex); in amdgpu_device_ip_late_init()
156 struct amdgpu_mgpu_info mgpu_info = { variable157 .mutex = __MUTEX_INITIALIZER(mgpu_info.mutex),
182 extern struct amdgpu_mgpu_info mgpu_info;