Lines Matching refs:drm_amdgpu
64 int drm_amdgpu[MAX_CARDS_SUPPORTED]; variable
301 drm_amdgpu[amd_index] = fd; in amdgpu_open_devices()
315 if (drm_amdgpu[i] >=0) in amdgpu_close_devices()
316 close(drm_amdgpu[i]); in amdgpu_close_devices()
326 if (drm_amdgpu[0] >=0) { in amdgpu_print_devices()
328 drmVersionPtr retval = drmGetVersion(drm_amdgpu[0]); in amdgpu_print_devices()
342 for (i = 0; i < MAX_CARDS_SUPPORTED && drm_amdgpu[i] >=0; i++) in amdgpu_print_devices()
343 if (drmGetDevice2(drm_amdgpu[i], in amdgpu_print_devices()
380 for (i = 0; i < MAX_CARDS_SUPPORTED && drm_amdgpu[i] >= 0; i++) { in amdgpu_find_device()
381 if (drmGetDevice2(drm_amdgpu[i], in amdgpu_find_device()
405 if (amdgpu_device_initialize(drm_amdgpu[0], &major_version, in amdgpu_disable_suites()
460 drm_amdgpu[i] = -1; in main()
506 if (drm_amdgpu[0] < 0) { in main()
526 i = drm_amdgpu[0]; in main()
527 drm_amdgpu[0] = drm_amdgpu[test_device_index]; in main()
528 drm_amdgpu[test_device_index] = i; in main()