id_mgr 203 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 211 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c fences = kmalloc_array(sizeof(void *), id_mgr->num_ids, GFP_KERNEL); id_mgr 217 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c list_for_each_entry((*idle), &id_mgr->ids_lru, list) { id_mgr 225 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c if (&(*idle)->list == &id_mgr->ids_lru) { id_mgr 339 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 347 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c list_for_each_entry_reverse((*id), &id_mgr->ids_lru, list) { id_mgr 412 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 417 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_lock(&id_mgr->lock); id_mgr 448 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c list_move_tail(&id->list, &id_mgr->ids_lru); id_mgr 458 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c job->vmid = id - id_mgr->ids; id_mgr 463 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_unlock(&id_mgr->lock); id_mgr 471 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr; id_mgr 475 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 476 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_lock(&id_mgr->lock); id_mgr 479 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c if (atomic_inc_return(&id_mgr->reserved_vmid_num) > id_mgr 482 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c atomic_dec(&id_mgr->reserved_vmid_num); id_mgr 487 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c idle = list_first_entry(&id_mgr->ids_lru, struct amdgpu_vmid, list); id_mgr 490 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_unlock(&id_mgr->lock); id_mgr 494 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_unlock(&id_mgr->lock); id_mgr 502 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 504 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_lock(&id_mgr->lock); id_mgr 507 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c &id_mgr->ids_lru); id_mgr 509 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c atomic_dec(&id_mgr->reserved_vmid_num); id_mgr 511 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_unlock(&id_mgr->lock); id_mgr 525 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 526 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid *id = &id_mgr->ids[vmid]; id_mgr 528 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_lock(&id_mgr->lock); id_mgr 536 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_unlock(&id_mgr->lock); id_mgr 551 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = id_mgr 552 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c &adev->vm_manager.id_mgr[i]; id_mgr 554 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 1; j < id_mgr->num_ids; ++j) id_mgr 571 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = id_mgr 572 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c &adev->vm_manager.id_mgr[i]; id_mgr 574 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_init(&id_mgr->lock); id_mgr 575 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c INIT_LIST_HEAD(&id_mgr->ids_lru); id_mgr 576 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c atomic_set(&id_mgr->reserved_vmid_num, 0); id_mgr 579 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c for (j = 1; j < id_mgr->num_ids; ++j) { id_mgr 581 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_sync_create(&id_mgr->ids[j].active); id_mgr 582 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c list_add_tail(&id_mgr->ids[j].list, &id_mgr->ids_lru); id_mgr 599 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid_mgr *id_mgr = id_mgr 600 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c &adev->vm_manager.id_mgr[i]; id_mgr 602 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c mutex_destroy(&id_mgr->lock); id_mgr 604 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid *id = &id_mgr->ids[j]; id_mgr 989 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 996 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c id = &id_mgr->ids[job->vmid]; id_mgr 1027 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub]; id_mgr 1028 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_vmid *id = &id_mgr->ids[job->vmid]; id_mgr 1048 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mutex_lock(&id_mgr->lock); id_mgr 1052 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mutex_unlock(&id_mgr->lock); id_mgr 1084 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mutex_lock(&id_mgr->lock); id_mgr 1089 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mutex_unlock(&id_mgr->lock); id_mgr 1093 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mutex_lock(&id_mgr->lock); id_mgr 1097 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c mutex_unlock(&id_mgr->lock); id_mgr 296 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h struct amdgpu_vmid_mgr id_mgr[AMDGPU_MAX_VMHUBS]; id_mgr 1750 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (i = 0; i < adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids; i++) { id_mgr 1973 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (i = 0; i < adev->vm_manager.id_mgr[0].num_ids; i++) { id_mgr 3810 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (i = 0; i < adev->vm_manager.id_mgr[0].num_ids; i++) { id_mgr 2515 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (i = 0; i < adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids; i++) { id_mgr 773 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 774 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c adev->vm_manager.id_mgr[AMDGPU_MMHUB_0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 899 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c adev->vm_manager.id_mgr[0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 1028 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c adev->vm_manager.id_mgr[0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 1154 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c adev->vm_manager.id_mgr[0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 1302 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->vm_manager.id_mgr[AMDGPU_GFXHUB_0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 1303 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->vm_manager.id_mgr[AMDGPU_MMHUB_0].num_ids = AMDGPU_NUM_OF_VMIDS; id_mgr 1304 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c adev->vm_manager.id_mgr[AMDGPU_MMHUB_1].num_ids = AMDGPU_NUM_OF_VMIDS;