mgpu_info 162 drivers/gpu/drm/amd/amdgpu/amdgpu.h extern struct amdgpu_mgpu_info mgpu_info; mgpu_info 1964 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c mutex_lock(&mgpu_info.mutex); mgpu_info 1971 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (mgpu_info.num_dgpu < 2) mgpu_info 1974 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c for (i = 0; i < mgpu_info.num_dgpu; i++) { mgpu_info 1975 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c gpu_ins = &(mgpu_info.gpu_ins[i]); mgpu_info 1990 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c mutex_unlock(&mgpu_info.mutex); mgpu_info 150 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c struct amdgpu_mgpu_info mgpu_info = { mgpu_info 151 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c .mutex = __MUTEX_INITIALIZER(mgpu_info.mutex), mgpu_info 52 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mutex_lock(&mgpu_info.mutex); mgpu_info 54 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c for (i = 0; i < mgpu_info.num_gpu; i++) { mgpu_info 55 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c gpu_instance = &(mgpu_info.gpu_ins[i]); mgpu_info 57 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.gpu_ins[i] = mgpu_info 58 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.gpu_ins[mgpu_info.num_gpu - 1]; mgpu_info 59 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.num_gpu--; mgpu_info 61 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.num_apu--; mgpu_info 63 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.num_dgpu--; mgpu_info 68 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mutex_unlock(&mgpu_info.mutex); mgpu_info 112 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mutex_lock(&mgpu_info.mutex); mgpu_info 114 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (mgpu_info.num_gpu >= MAX_GPU_INSTANCE) { mgpu_info 116 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mutex_unlock(&mgpu_info.mutex); mgpu_info 120 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c gpu_instance = &(mgpu_info.gpu_ins[mgpu_info.num_gpu]); mgpu_info 124 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.num_gpu++; mgpu_info 126 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.num_apu++; mgpu_info 128 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mgpu_info.num_dgpu++; mgpu_info 130 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c mutex_unlock(&mgpu_info.mutex);