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 …]
2403 mutex_lock(&mgpu_info.mutex); in amdgpu_device_enable_mgpu_fan_boost()2410 if (mgpu_info.num_dgpu < 2) in amdgpu_device_enable_mgpu_fan_boost()2413 for (i = 0; i < mgpu_info.num_dgpu; i++) { in amdgpu_device_enable_mgpu_fan_boost()2414 gpu_ins = &(mgpu_info.gpu_ins[i]); in amdgpu_device_enable_mgpu_fan_boost()2427 mutex_unlock(&mgpu_info.mutex); in amdgpu_device_enable_mgpu_fan_boost()2476 mutex_lock(&mgpu_info.mutex); in amdgpu_device_ip_late_init()2491 if (mgpu_info.num_dgpu == adev->gmc.xgmi.num_physical_nodes) { in amdgpu_device_ip_late_init()2492 for (i = 0; i < mgpu_info.num_gpu; i++) { in amdgpu_device_ip_late_init()2493 gpu_instance = &(mgpu_info.gpu_ins[i]); in amdgpu_device_ip_late_init()2506 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;