vmid 54 arch/arm/include/asm/kvm_host.h u32 vmid; vmid 67 arch/arm/include/asm/kvm_host.h struct kvm_vmid vmid; vmid 425 arch/arm/include/asm/kvm_mmu.h struct kvm_vmid *vmid = &kvm->arch.vmid; vmid 429 arch/arm/include/asm/kvm_mmu.h vmid_field = (u64)vmid->vmid << VTTBR_VMID_SHIFT; vmid 62 arch/arm64/include/asm/kvm_host.h u32 vmid; vmid 66 arch/arm64/include/asm/kvm_host.h struct kvm_vmid vmid; vmid 597 arch/arm64/include/asm/kvm_mmu.h struct kvm_vmid *vmid = &kvm->arch.vmid; vmid 602 arch/arm64/include/asm/kvm_mmu.h vmid_field = (u64)vmid->vmid << VTTBR_VMID_SHIFT; vmid 43 drivers/firmware/qcom_scm.c __le32 vmid; vmid 484 drivers/firmware/qcom_scm.c destvm->vmid = cpu_to_le32(newvm->vmid); vmid 488 drivers/firmware/qcom_scm.c next_vm |= BIT(newvm->vmid); vmid 601 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c uint32_t vmid, uint64_t gpu_addr, vmid 638 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c job->vmid = vmid; vmid 670 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c bool amdgpu_amdkfd_is_kfd_vmid(struct amdgpu_device *adev, u32 vmid) vmid 673 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c if ((1 << vmid) & compute_vmid_bitmap) vmid 135 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h uint32_t vmid, uint64_t gpu_addr, vmid 146 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h bool amdgpu_amdkfd_is_kfd_vmid(struct amdgpu_device *adev, u32 vmid); vmid 57 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 62 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c unsigned int vmid); vmid 102 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c uint8_t vmid); vmid 104 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c uint8_t vmid); vmid 105 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 108 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid); vmid 179 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c uint32_t queue, uint32_t vmid) vmid 184 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c nv_grbm_select(adev, mec, pipe, queue, vmid); vmid 220 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 228 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c lock_srbm(kgd, 0, 0, 0, vmid); vmid 238 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c unsigned int vmid) vmid 252 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c pr_debug("pasid 0x%x vmid %d, reg value %x\n", pasid, vmid, pasid_mapping); vmid 259 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c pr_debug("ATHUB, reg %x\n", SOC15_REG_OFFSET(ATHUB, 0, mmATC_VMID0_PASID_MAPPING) + vmid); vmid 260 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(ATHUB, 0, mmATC_VMID0_PASID_MAPPING) + vmid, vmid 268 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c (1U << vmid))) vmid 274 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c 1U << vmid); vmid 279 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid, vmid 783 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c uint8_t vmid) vmid 789 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c + vmid); vmid 794 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c uint8_t vmid) vmid 800 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c + vmid); vmid 832 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c int vmid; vmid 838 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c for (vmid = 0; vmid < 16; vmid++) { vmid 839 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) vmid 841 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c if (get_atc_vmid_pasid_mapping_valid(kgd, vmid)) { vmid 842 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c if (get_atc_vmid_pasid_mapping_pasid(kgd, vmid) vmid 844 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c amdgpu_gmc_flush_gpu_tlb(adev, vmid, vmid 854 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid) vmid 858 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 859 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c pr_err("non kfd vmid %d\n", vmid); vmid 863 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c amdgpu_gmc_flush_gpu_tlb(adev, vmid, AMDGPU_GFXHUB_0, 0); vmid 913 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 919 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 921 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c vmid); vmid 929 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(GC, 0, mmGCVM_CONTEXT0_PAGE_TABLE_START_ADDR_LO32) + (vmid*2), 0); vmid 930 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(GC, 0, mmGCVM_CONTEXT0_PAGE_TABLE_START_ADDR_HI32) + (vmid*2), 0); vmid 932 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(GC, 0, mmGCVM_CONTEXT0_PAGE_TABLE_END_ADDR_LO32) + (vmid*2), vmid 934 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(GC, 0, mmGCVM_CONTEXT0_PAGE_TABLE_END_ADDR_HI32) + (vmid*2), vmid 937 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(GC, 0, mmGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32) + (vmid*2), lower_32_bits(base)); vmid 938 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c WREG32(SOC15_REG_OFFSET(GC, 0, mmGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32) + (vmid*2), upper_32_bits(base)); vmid 79 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint32_t vmid:4; vmid 93 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 98 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c unsigned int vmid); vmid 136 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static bool get_atc_vmid_pasid_mapping_valid(struct kgd_dev *kgd, uint8_t vmid); vmid 138 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint8_t vmid); vmid 141 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint64_t va, uint32_t vmid); vmid 142 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 145 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid); vmid 210 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint32_t queue, uint32_t vmid) vmid 213 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint32_t value = PIPEID(pipe) | MEID(mec) | VMID(vmid) | QUEUEID(queue); vmid 243 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 251 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c lock_srbm(kgd, 0, 0, 0, vmid); vmid 262 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c unsigned int vmid) vmid 275 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c WREG32(mmATC_VMID0_PASID_MAPPING + vmid, pasid_mapping); vmid 277 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c while (!(RREG32(mmATC_VMID_PASID_MAPPING_UPDATE_STATUS) & (1U << vmid))) vmid 279 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c WREG32(mmATC_VMID_PASID_MAPPING_UPDATE_STATUS, 1U << vmid); vmid 282 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c WREG32(mmIH_VMID_0_LUT + vmid, pasid_mapping); vmid 762 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint8_t vmid) vmid 767 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); vmid 772 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint8_t vmid) vmid 777 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); vmid 782 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint64_t va, uint32_t vmid) vmid 786 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c lock_srbm(kgd, 0, 0, 0, vmid); vmid 791 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 796 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 800 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c WREG32(mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + vmid - 8, vmid 807 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c int vmid; vmid 813 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c for (vmid = 0; vmid < 16; vmid++) { vmid 814 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) vmid 817 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c tmp = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); vmid 820 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 829 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid) vmid 833 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 838 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 51 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 56 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c unsigned int vmid); vmid 93 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint8_t vmid); vmid 95 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint8_t vmid); vmid 97 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint64_t va, uint32_t vmid); vmid 98 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 101 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid); vmid 166 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint32_t queue, uint32_t vmid) vmid 169 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint32_t value = PIPEID(pipe) | MEID(mec) | VMID(vmid) | QUEUEID(queue); vmid 199 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static void kgd_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 207 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c lock_srbm(kgd, 0, 0, 0, vmid); vmid 218 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c unsigned int vmid) vmid 232 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c WREG32(mmATC_VMID0_PASID_MAPPING + vmid, pasid_mapping); vmid 234 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c while (!(RREG32(mmATC_VMID_PASID_MAPPING_UPDATE_STATUS) & (1U << vmid))) vmid 236 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c WREG32(mmATC_VMID_PASID_MAPPING_UPDATE_STATUS, 1U << vmid); vmid 239 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c WREG32(mmIH_VMID_0_LUT + vmid, pasid_mapping); vmid 675 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint8_t vmid) vmid 680 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); vmid 685 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint8_t vmid) vmid 690 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c reg = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); vmid 741 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint64_t va, uint32_t vmid) vmid 745 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c lock_srbm(kgd, 0, 0, 0, vmid); vmid 750 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static void set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 755 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 759 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c WREG32(mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + vmid - 8, vmid 766 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c int vmid; vmid 772 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c for (vmid = 0; vmid < 16; vmid++) { vmid 773 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) vmid 776 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c tmp = RREG32(mmATC_VMID0_PASID_MAPPING + vmid); vmid 779 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 788 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static int invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid) vmid 792 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 793 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c pr_err("non kfd vmid %d\n", vmid); vmid 797 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 90 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c uint32_t queue, uint32_t vmid) vmid 95 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c soc15_grbm_select(adev, mec, pipe, queue, vmid); vmid 131 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c void kgd_gfx_v9_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 139 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c lock_srbm(kgd, 0, 0, 0, vmid); vmid 149 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c unsigned int vmid) vmid 169 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c WREG32(SOC15_REG_OFFSET(ATHUB, 0, mmATC_VMID0_PASID_MAPPING) + vmid, vmid 175 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c (1U << vmid))) vmid 180 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c 1U << vmid); vmid 183 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c WREG32(SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid, vmid 186 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c WREG32(SOC15_REG_OFFSET(ATHUB, 0, mmATC_VMID16_PASID_MAPPING) + vmid, vmid 192 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c (1U << (vmid + 16)))) vmid 197 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c 1U << (vmid + 16)); vmid 200 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c WREG32(SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT_MM) + vmid, vmid 621 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c uint8_t vmid) vmid 627 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c + vmid); vmid 632 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c uint8_t vmid) vmid 638 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c + vmid); vmid 673 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c int vmid, i; vmid 686 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c for (vmid = 0; vmid < 16; vmid++) { vmid 687 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) vmid 689 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c if (kgd_gfx_v9_get_atc_vmid_pasid_mapping_valid(kgd, vmid)) { vmid 690 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c if (kgd_gfx_v9_get_atc_vmid_pasid_mapping_pasid(kgd, vmid) vmid 693 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c amdgpu_gmc_flush_gpu_tlb(adev, vmid, vmid 703 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c int kgd_gfx_v9_invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid) vmid 708 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 709 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c pr_err("non kfd vmid %d\n", vmid); vmid 729 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c amdgpu_gmc_flush_gpu_tlb(adev, vmid, i, 0); vmid 781 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c uint64_t va, uint32_t vmid) vmid 789 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c void kgd_gfx_v9_set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 794 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c if (!amdgpu_amdkfd_is_kfd_vmid(adev, vmid)) { vmid 796 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c vmid); vmid 806 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c mmhub_v9_4_setup_vm_pt_regs(adev, 0, vmid, page_table_base); vmid 807 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c mmhub_v9_4_setup_vm_pt_regs(adev, 1, vmid, page_table_base); vmid 809 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c mmhub_v1_0_setup_vm_pt_regs(adev, vmid, page_table_base); vmid 811 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c gfxhub_v1_0_setup_vm_pt_regs(adev, vmid, page_table_base); vmid 25 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h void kgd_gfx_v9_program_sh_mem_settings(struct kgd_dev *kgd, uint32_t vmid, vmid 30 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h unsigned int vmid); vmid 59 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h uint8_t vmid); vmid 61 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h uint8_t vmid); vmid 62 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h void kgd_gfx_v9_set_vm_context_page_table_base(struct kgd_dev *kgd, uint32_t vmid, vmid 65 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h uint64_t va, uint32_t vmid); vmid 67 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h int kgd_gfx_v9_invalidate_tlbs_vmid(struct kgd_dev *kgd, uint16_t vmid); vmid 109 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c unsigned instance_bank, sh_bank, se_bank, me, pipe, queue, vmid; vmid 112 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c instance_bank = sh_bank = se_bank = me = pipe = queue = vmid = 0; vmid 138 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c vmid = (*pos & GENMASK_ULL(58, 54)) >> 54; vmid 156 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c amdgpu_gfx_select_me_pipe_q(adev, me, pipe, queue, vmid); vmid 199 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h u32 queue, u32 vmid); vmid 334 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h #define amdgpu_gfx_select_me_pipe_q(adev, me, pipe, q, vmid) (adev)->gfx.funcs->select_me_pipe_q((adev), (me), (pipe), (q), (vmid)) vmid 93 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h void (*flush_gpu_tlb)(struct amdgpu_device *adev, uint32_t vmid, vmid 96 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h uint64_t (*emit_flush_gpu_tlb)(struct amdgpu_ring *ring, unsigned vmid, vmid 99 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h void (*emit_pasid_mapping)(struct amdgpu_ring *ring, unsigned vmid, vmid 186 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_flush_gpu_tlb(adev, vmid, vmhub, type) ((adev)->gmc.gmc_funcs->flush_gpu_tlb((adev), (vmid), (vmhub), (type))) vmid 187 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_emit_flush_gpu_tlb(r, vmid, addr) (r)->adev->gmc.gmc_funcs->emit_flush_gpu_tlb((r), (vmid), (addr)) vmid 188 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h #define amdgpu_gmc_emit_pasid_mapping(r, vmid, pasid) (r)->adev->gmc.gmc_funcs->emit_pasid_mapping((r), (vmid), (pasid)) vmid 158 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c if (vm && !job->vmid) { vmid 254 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c if (job && job->vmid) vmid 255 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c amdgpu_vmid_reset(adev, ring->funcs->vmhub, job->vmid); vmid 458 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c job->vmid = id - id_mgr->ids; vmid 523 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned vmid) vmid 526 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c struct amdgpu_vmid *id = &id_mgr->ids[vmid]; vmid 90 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h unsigned vmid); vmid 50 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h unsigned vmid; vmid 39 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c if (amdgpu_ring_soft_recovery(ring, job->vmid, s_job->s_fence->parent)) { vmid 203 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c while (fence == NULL && vm && !job->vmid) { vmid 38 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h #define AMDGPU_JOB_GET_VMID(job) ((job) ? (job)->vmid : 0) vmid 55 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h unsigned vmid; vmid 408 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c bool amdgpu_ring_soft_recovery(struct amdgpu_ring *ring, unsigned int vmid, vmid 419 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c ring->funcs->soft_recovery(ring, vmid); vmid 139 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h void (*emit_vm_flush)(struct amdgpu_ring *ring, unsigned vmid, vmid 142 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h void (*emit_gds_switch)(struct amdgpu_ring *ring, uint32_t vmid, vmid 174 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h void (*soft_recovery)(struct amdgpu_ring *ring, unsigned vmid); vmid 240 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_vm_flush(r, vmid, addr) (r)->funcs->emit_vm_flush((r), (vmid), (addr)) vmid 272 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h bool amdgpu_ring_soft_recovery(struct amdgpu_ring *ring, unsigned int vmid, vmid 65 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c unsigned vmid) vmid 72 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c if (vmid == 0 || !amdgpu_mcbp) vmid 106 drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.h uint64_t amdgpu_sdma_get_csa_mc_addr(struct amdgpu_ring *ring, unsigned vmid); vmid 84 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __field(unsigned, vmid) vmid 96 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->vmid = iv->vmid; vmid 109 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->ring_id, __entry->vmid, vmid 224 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __field(u32, vmid) vmid 233 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->vmid = job->vmid; vmid 239 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->pasid, __get_str(ring), __entry->vmid, vmid 367 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_PROTO(struct amdgpu_ring *ring, unsigned vmid, vmid 369 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_ARGS(ring, vmid, pd_addr), vmid 372 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __field(u32, vmid) vmid 379 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->vmid = vmid; vmid 384 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __get_str(ring), __entry->vmid, vmid 994 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (job->vmid == 0) vmid 996 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c id = &id_mgr->ids[job->vmid]; vmid 1028 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct amdgpu_vmid *id = &id_mgr->ids[job->vmid]; vmid 1070 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c trace_amdgpu_vm_flush(ring, job->vmid, job->vm_pd_addr); vmid 1071 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_ring_emit_vm_flush(ring, job->vmid, job->vm_pd_addr); vmid 1075 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_gmc_emit_pasid_mapping(ring, job->vmid, job->pasid); vmid 1108 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_ring_emit_gds_switch(ring, job->vmid, job->gds_base, vmid 869 drivers/gpu/drm/amd/amdgpu/cik.c u32 me, u32 pipe, u32 queue, u32 vmid) vmid 874 drivers/gpu/drm/amd/amdgpu/cik.c ((vmid << SRBM_GFX_CNTL__VMID__SHIFT) & SRBM_GFX_CNTL__VMID_MASK)| vmid 30 drivers/gpu/drm/amd/amdgpu/cik.h u32 me, u32 pipe, u32 queue, u32 vmid); vmid 258 drivers/gpu/drm/amd/amdgpu/cik_ih.c entry->vmid = (dw[2] >> 8) & 0xff; vmid 227 drivers/gpu/drm/amd/amdgpu/cik_sdma.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 228 drivers/gpu/drm/amd/amdgpu/cik_sdma.c u32 extra_bits = vmid & 0xf; vmid 859 drivers/gpu/drm/amd/amdgpu/cik_sdma.c unsigned vmid, uint64_t pd_addr) vmid 864 drivers/gpu/drm/amd/amdgpu/cik_sdma.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 237 drivers/gpu/drm/amd/amdgpu/cz_ih.c entry->vmid = (dw[2] >> 8) & 0xff; vmid 1634 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c int vmid; vmid 1642 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c for (vmid = 1; vmid < 16; vmid++) { vmid 1643 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_VMID0_BASE, 2 * vmid, 0); vmid 1644 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_VMID0_SIZE, 2 * vmid, 0); vmid 1645 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_GWS_VMID0, vmid, 0); vmid 1646 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_OA_VMID0, vmid, 0); vmid 3992 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c uint32_t vmid, vmid 4001 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_VMID0_BASE) + 2 * vmid, vmid 4006 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_VMID0_SIZE) + 2 * vmid, vmid 4011 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_GWS_VMID0) + vmid, vmid 4016 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_OA_VMID0) + vmid, vmid 4457 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 4465 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c control |= ib->length_dw | (vmid << 24); vmid 4494 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 4495 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24); vmid 4573 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c unsigned vmid, uint64_t pd_addr) vmid 4575 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1868 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1882 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c control |= ib->length_dw | (vmid << 24); vmid 2333 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c unsigned vmid, uint64_t pd_addr) vmid 2337 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1895 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c int vmid; vmid 1903 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c for (vmid = 1; vmid < 16; vmid++) { vmid 1904 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c WREG32(amdgpu_gds_reg_offset[vmid].mem_base, 0); vmid 1905 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c WREG32(amdgpu_gds_reg_offset[vmid].mem_size, 0); vmid 1906 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c WREG32(amdgpu_gds_reg_offset[vmid].gws, 0); vmid 1907 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c WREG32(amdgpu_gds_reg_offset[vmid].oa, 0); vmid 2263 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 2277 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c control |= ib->length_dw | (vmid << 24); vmid 2294 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 2295 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24); vmid 3251 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c unsigned vmid, uint64_t pd_addr) vmid 3255 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 4091 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c uint32_t vmid, vmid 4100 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].mem_base); vmid 4108 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].mem_size); vmid 4116 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].gws); vmid 4124 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].oa); vmid 4129 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c static void gfx_v7_0_ring_soft_recovery(struct amdgpu_ring *ring, unsigned vmid) vmid 4137 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c value = REG_SET_FIELD(value, SQ_CMD, VM_ID, vmid); vmid 3755 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c int vmid; vmid 3763 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c for (vmid = 1; vmid < 16; vmid++) { vmid 3764 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c WREG32(amdgpu_gds_reg_offset[vmid].mem_base, 0); vmid 3765 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c WREG32(amdgpu_gds_reg_offset[vmid].mem_size, 0); vmid 3766 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c WREG32(amdgpu_gds_reg_offset[vmid].gws, 0); vmid 3767 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c WREG32(amdgpu_gds_reg_offset[vmid].oa, 0); vmid 5203 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c uint32_t vmid, vmid 5212 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].mem_base); vmid 5220 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].mem_size); vmid 5228 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].gws); vmid 5236 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c amdgpu_ring_write(ring, amdgpu_gds_reg_offset[vmid].oa); vmid 6120 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 6128 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c control |= ib->length_dw | (vmid << 24); vmid 6152 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 6153 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24); vmid 6236 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c unsigned vmid, uint64_t pd_addr) vmid 6240 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 6525 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c static void gfx_v8_0_ring_soft_recovery(struct amdgpu_ring *ring, unsigned vmid) vmid 6533 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c value = REG_SET_FIELD(value, SQ_CMD, VM_ID, vmid); vmid 2483 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c int vmid; vmid 2491 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c for (vmid = 1; vmid < 16; vmid++) { vmid 2492 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_VMID0_BASE, 2 * vmid, 0); vmid 2493 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_VMID0_SIZE, 2 * vmid, 0); vmid 2494 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_GWS_VMID0, vmid, 0); vmid 2495 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c WREG32_SOC15_OFFSET(GC, 0, mmGDS_OA_VMID0, vmid, 0); vmid 4097 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c uint32_t vmid, vmid 4106 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_VMID0_BASE) + 2 * vmid, vmid 4111 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_VMID0_SIZE) + 2 * vmid, vmid 4116 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_GWS_VMID0) + vmid, vmid 4121 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c SOC15_REG_OFFSET(GC, 0, mmGDS_OA_VMID0) + vmid, vmid 5016 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 5024 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c control |= ib->length_dw | (vmid << 24); vmid 5049 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 5050 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c u32 control = INDIRECT_BUFFER_VALID | ib->length_dw | (vmid << 24); vmid 5125 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c unsigned vmid, uint64_t pd_addr) vmid 5127 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 5467 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static void gfx_v9_0_ring_soft_recovery(struct amdgpu_ring *ring, unsigned vmid) vmid 5475 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c value = REG_SET_FIELD(value, SQ_CMD, VM_ID, vmid); vmid 38 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c void gfxhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, vmid 46 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c offset * vmid, lower_32_bits(page_table_base)); vmid 49 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c offset * vmid, upper_32_bits(page_table_base)); vmid 33 drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.h void gfxhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, vmid 161 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c entry->src_id, entry->ring_id, entry->vmid, vmid 202 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c static uint32_t gmc_v10_0_get_invalidate_req(unsigned int vmid, vmid 209 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c PER_VMID_INVALIDATE_REQ, 1 << vmid); vmid 229 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c static void gmc_v10_0_flush_vm_hub(struct amdgpu_device *adev, uint32_t vmid, vmid 233 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c u32 inv_req = gmc_v10_0_get_invalidate_req(vmid, flush_type); vmid 274 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c tmp &= 1 << vmid; vmid 306 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, vmid 321 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c gmc_v10_0_flush_vm_hub(adev, vmid, AMDGPU_MMHUB_0, 0); vmid 331 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c gmc_v10_0_flush_vm_hub(adev, vmid, AMDGPU_GFXHUB_0, 0); vmid 370 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c unsigned vmid, uint64_t pd_addr) vmid 373 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c uint32_t req = gmc_v10_0_get_invalidate_req(vmid, 0); vmid 390 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_lo32 + (2 * vmid), vmid 393 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_hi32 + (2 * vmid), vmid 398 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c req, 1 << vmid); vmid 412 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c static void gmc_v10_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid, vmid 419 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c reg = SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid; vmid 421 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c reg = SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT_MM) + vmid; vmid 365 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c static void gmc_v6_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, vmid 368 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 372 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c unsigned vmid, uint64_t pd_addr) vmid 377 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c if (vmid < 8) vmid 378 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c reg = mmVM_CONTEXT0_PAGE_TABLE_BASE_ADDR + vmid; vmid 380 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c reg = mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + (vmid - 8); vmid 384 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c amdgpu_ring_emit_wreg(ring, mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 635 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c u32 vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, VMID); vmid 645 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c protections, vmid, addr, vmid 436 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c static void gmc_v7_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, vmid 440 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 444 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c unsigned vmid, uint64_t pd_addr) vmid 448 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (vmid < 8) vmid 449 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c reg = mmVM_CONTEXT0_PAGE_TABLE_BASE_ADDR + vmid; vmid 451 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c reg = mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + vmid - 8; vmid 455 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c amdgpu_ring_emit_wreg(ring, mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 460 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c static void gmc_v7_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid, vmid 463 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c amdgpu_ring_emit_wreg(ring, mmIH_VMID_0_LUT + vmid, pasid); vmid 745 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c u32 vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, VMID); vmid 756 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c protections, vmid, pasid, addr, vmid 1247 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c u32 addr, status, mc_client, vmid; vmid 1272 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, vmid 1274 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c if (amdgpu_amdkfd_is_kfd_vmid(adev, vmid) vmid 1281 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c info->vmid = vmid; vmid 638 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c static void gmc_v8_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, vmid 642 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c WREG32(mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 646 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c unsigned vmid, uint64_t pd_addr) vmid 650 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (vmid < 8) vmid 651 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c reg = mmVM_CONTEXT0_PAGE_TABLE_BASE_ADDR + vmid; vmid 653 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c reg = mmVM_CONTEXT8_PAGE_TABLE_BASE_ADDR + vmid - 8; vmid 657 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c amdgpu_ring_emit_wreg(ring, mmVM_INVALIDATE_REQUEST, 1 << vmid); vmid 662 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c static void gmc_v8_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid, vmid 665 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c amdgpu_ring_emit_wreg(ring, mmIH_VMID_0_LUT + vmid, pasid); vmid 989 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c u32 vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, VMID); vmid 1000 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c protections, vmid, pasid, addr, vmid 1419 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c u32 addr, status, mc_client, vmid; vmid 1457 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c vmid = REG_GET_FIELD(status, VM_CONTEXT1_PROTECTION_FAULT_STATUS, vmid 1459 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c if (amdgpu_amdkfd_is_kfd_vmid(adev, vmid) vmid 1466 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c info->vmid = vmid; vmid 381 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c entry->src_id, entry->ring_id, entry->vmid, vmid 432 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static uint32_t gmc_v9_0_get_invalidate_req(unsigned int vmid, vmid 438 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c PER_VMID_INVALIDATE_REQ, 1 << vmid); vmid 485 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static void gmc_v9_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, vmid 496 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c inv_req = gmc_v9_0_get_invalidate_req(vmid, flush_type); vmid 508 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 1 << vmid); vmid 546 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (tmp & (1 << vmid)) vmid 568 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c unsigned vmid, uint64_t pd_addr) vmid 573 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c uint32_t req = gmc_v9_0_get_invalidate_req(vmid, 0); vmid 589 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_lo32 + (2 * vmid), vmid 592 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c amdgpu_ring_emit_wreg(ring, hub->ctx0_ptb_addr_hi32 + (2 * vmid), vmid 597 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c req, 1 << vmid); vmid 610 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static void gmc_v9_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid, vmid 621 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c reg = SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid; vmid 623 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c reg = SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT_MM) + vmid; vmid 41 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h void gfxhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, vmid 43 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h void mmhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, vmid 46 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.h uint32_t vmid, uint64_t value); vmid 237 drivers/gpu/drm/amd/amdgpu/iceland_ih.c entry->vmid = (dw[2] >> 8) & 0xff; vmid 58 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c void mmhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, vmid 66 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c offset * vmid, lower_32_bits(page_table_base)); vmid 69 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c offset * vmid, upper_32_bits(page_table_base)); vmid 39 drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.h void mmhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, vmid 57 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c uint32_t vmid, uint64_t value) vmid 67 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c dist * vmid + hubid * MMHUB_INSTANCE_REGISTER_OFFSET, vmid 72 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c dist * vmid + hubid * MMHUB_INSTANCE_REGISTER_OFFSET, vmid 272 drivers/gpu/drm/amd/amdgpu/navi10_ih.c entry->vmid = (dw[0] >> 24) & 0xf; vmid 132 drivers/gpu/drm/amd/amdgpu/nv.c u32 me, u32 pipe, u32 queue, u32 vmid) vmid 137 drivers/gpu/drm/amd/amdgpu/nv.c grbm_gfx_cntl = REG_SET_FIELD(grbm_gfx_cntl, GRBM_GFX_CNTL, VMID, vmid); vmid 30 drivers/gpu/drm/amd/amdgpu/nv.h u32 me, u32 pipe, u32 queue, u32 vmid); vmid 357 drivers/gpu/drm/amd/amdgpu/psp_gfx_if.h uint8_t vmid; /* +32 VMID value used for mapping of all addresses for this frame */ vmid 255 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 261 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c SDMA_PKT_INDIRECT_HEADER_VMID(vmid & 0xf)); vmid 799 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c unsigned vmid, uint64_t pd_addr) vmid 801 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 429 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 435 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c SDMA_PKT_INDIRECT_HEADER_VMID(vmid & 0xf)); vmid 1070 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c unsigned vmid, uint64_t pd_addr) vmid 1072 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 698 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 704 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c SDMA_PKT_INDIRECT_HEADER_VMID(vmid & 0xf)); vmid 1624 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c unsigned vmid, uint64_t pd_addr) vmid 1626 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 382 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 383 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c uint64_t csa_mc_addr = amdgpu_sdma_get_csa_mc_addr(ring, vmid); vmid 408 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c SDMA_PKT_INDIRECT_HEADER_VMID(vmid & 0xf)); vmid 1167 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c unsigned vmid, uint64_t pd_addr) vmid 1169 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 30 drivers/gpu/drm/amd/amdgpu/si.h u32 me, u32 pipe, u32 queue, u32 vmid); vmid 68 drivers/gpu/drm/amd/amdgpu/si_dma.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 74 drivers/gpu/drm/amd/amdgpu/si_dma.c amdgpu_ring_write(ring, DMA_IB_PACKET(DMA_PACKET_INDIRECT_BUFFER, vmid, 0)); vmid 445 drivers/gpu/drm/amd/amdgpu/si_dma.c unsigned vmid, uint64_t pd_addr) vmid 447 drivers/gpu/drm/amd/amdgpu/si_dma.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 453 drivers/gpu/drm/amd/amdgpu/si_dma.c amdgpu_ring_write(ring, 1 << vmid); /* mask */ vmid 140 drivers/gpu/drm/amd/amdgpu/si_ih.c entry->vmid = (dw[2] >> 8) & 0xff; vmid 1923 drivers/gpu/drm/amd/amdgpu/sid.h #define DMA_IB_PACKET(cmd, vmid, n) ((((cmd) & 0xF) << 28) | \ vmid 1924 drivers/gpu/drm/amd/amdgpu/sid.h (((vmid) & 0xF) << 20) | \ vmid 287 drivers/gpu/drm/amd/amdgpu/soc15.c u32 me, u32 pipe, u32 queue, u32 vmid) vmid 292 drivers/gpu/drm/amd/amdgpu/soc15.c grbm_gfx_cntl = REG_SET_FIELD(grbm_gfx_cntl, GRBM_GFX_CNTL, VMID, vmid); vmid 71 drivers/gpu/drm/amd/amdgpu/soc15.h u32 me, u32 pipe, u32 queue, u32 vmid); vmid 239 drivers/gpu/drm/amd/amdgpu/tonga_ih.c entry->vmid = (dw[2] >> 8) & 0xff; vmid 996 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 999 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_ring_write(ring, vmid); vmid 1022 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1025 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_ring_write(ring, vmid); vmid 1043 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c unsigned vmid, uint64_t pd_addr) vmid 1045 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1052 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_ring_write(ring, 1 << vmid); /* mask */ vmid 1103 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c unsigned int vmid, uint64_t pd_addr) vmid 1106 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_ring_write(ring, vmid); vmid 1110 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c amdgpu_ring_write(ring, vmid); vmid 1296 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1300 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_ring_write(ring, vmid); vmid 1326 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1329 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c amdgpu_ring_write(ring, vmid); vmid 1371 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c unsigned vmid, uint64_t pd_addr) vmid 1376 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1379 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2; vmid 1414 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c unsigned int vmid, uint64_t pd_addr) vmid 1418 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1421 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c uvd_v7_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2, vmid 839 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 842 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c amdgpu_ring_write(ring, vmid); vmid 849 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c unsigned int vmid, uint64_t pd_addr) vmid 852 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c amdgpu_ring_write(ring, vmid); vmid 856 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c amdgpu_ring_write(ring, vmid); vmid 954 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 957 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c amdgpu_ring_write(ring, vmid); vmid 990 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c unsigned int vmid, uint64_t pd_addr) vmid 994 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 997 drivers/gpu/drm/amd/amdgpu/vce_v4_0.c vce_v4_0_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2, vmid 1522 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1526 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_ring_write(ring, vmid); vmid 1560 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c unsigned vmid, uint64_t pd_addr) vmid 1565 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1568 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2; vmid 1681 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1684 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_ring_write(ring, vmid); vmid 1701 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c unsigned int vmid, uint64_t pd_addr) vmid 1705 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1708 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c vcn_v1_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2, vmid 1887 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1891 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_ring_write(ring, (vmid | (vmid << 4))); vmid 1895 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c amdgpu_ring_write(ring, (vmid | (vmid << 4))); vmid 1965 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c unsigned vmid, uint64_t pd_addr) vmid 1970 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1973 drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2; vmid 1586 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1589 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_ring_write(ring, vmid); vmid 1619 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c unsigned vmid, uint64_t pd_addr) vmid 1624 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1627 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2; vmid 1756 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1759 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_ring_write(ring, vmid); vmid 1775 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c unsigned int vmid, uint64_t pd_addr) vmid 1779 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 1782 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c vcn_v2_0_enc_ring_emit_reg_wait(ring, hub->ctx0_ptb_addr_lo32 + vmid * 2, vmid 1941 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c unsigned vmid = AMDGPU_JOB_GET_VMID(job); vmid 1945 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_ring_write(ring, (vmid | (vmid << 4))); vmid 1949 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c amdgpu_ring_write(ring, (vmid | (vmid << 4))); vmid 2015 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c unsigned vmid, uint64_t pd_addr) vmid 2020 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c pd_addr = amdgpu_gmc_emit_flush_gpu_tlb(ring, vmid, pd_addr); vmid 2023 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c data0 = hub->ctx0_ptb_addr_lo32 + vmid * 2; vmid 37 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.h unsigned vmid, uint64_t pd_addr); vmid 49 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.h unsigned int vmid, uint64_t pd_addr); vmid 61 drivers/gpu/drm/amd/amdgpu/vcn_v2_0.h unsigned vmid, uint64_t pd_addr); vmid 455 drivers/gpu/drm/amd/amdgpu/vega10_ih.c entry->vmid = (dw[0] >> 24) & 0xf; vmid 360 drivers/gpu/drm/amd/amdgpu/vi.c u32 me, u32 pipe, u32 queue, u32 vmid) vmid 365 drivers/gpu/drm/amd/amdgpu/vi.c srbm_gfx_cntl = REG_SET_FIELD(srbm_gfx_cntl, SRBM_GFX_CNTL, VMID, vmid); vmid 30 drivers/gpu/drm/amd/amdgpu/vi.h u32 me, u32 pipe, u32 queue, u32 vmid); vmid 36 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c unsigned int vmid, pasid; vmid 50 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c vmid = f2g->read_vmid_from_vmfault_reg(dev->kgd); vmid 51 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c pasid = f2g->get_atc_vmid_pasid_mapping_pasid(dev->kgd, vmid); vmid 54 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c tmp_ihre->ring_id |= vmid << 8; vmid 58 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c vmid >= dev->vm_info.first_vmid_kfd && vmid 59 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c vmid <= dev->vm_info.last_vmid_kfd; vmid 63 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c vmid = (ihre->ring_id & 0x0000ff00) >> 8; vmid 64 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c if (vmid < dev->vm_info.first_vmid_kfd || vmid 65 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c vmid > dev->vm_info.last_vmid_kfd) vmid 90 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c unsigned int vmid = (ihre->ring_id & 0x0000ff00) >> 8; vmid 115 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c if (info.vmid == vmid) vmid 1131 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c pdd->qpd.vmid != 0) vmid 1133 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c dev->kgd, args->va_addr, pdd->qpd.vmid); vmid 234 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c unsigned int index, unsigned int vmid) vmid 258 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c cntl->bitfields.vmid = (uint32_t) vmid; vmid 303 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c &cntl, i, pdd->qpd.vmid); vmid 307 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t%20s %08x\n", "vmid is :", pdd->qpd.vmid); vmid 319 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c cntl.bitfields.vmid); vmid 349 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c unsigned int vmid = 0; vmid 398 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c vmid); vmid 402 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t%20s %08x\n", "vmid is :", vmid); vmid 416 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c cntl.bitfields.vmid); vmid 723 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c reg_sq_cmd.bits.vm_id = pdd->qpd.vmid; vmid 732 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t vmid is: %u\n", pdd->qpd.vmid); vmid 763 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c unsigned int vmid; vmid 784 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c for (vmid = first_vmid_to_scan; vmid <= last_vmid_to_scan; vmid++) { vmid 786 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c (dev->kgd, vmid)) { vmid 788 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c (dev->kgd, vmid) == p->pasid) { vmid 790 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c vmid, p->pasid); vmid 796 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c if (vmid > last_vmid_to_scan) { vmid 812 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c reg_sq_cmd.bits.vm_id = vmid; vmid 199 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.h uint32_t vmid:4; vmid 43 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c unsigned int pasid, unsigned int vmid); vmid 128 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c dqm->dev->kgd, qpd->vmid, vmid 208 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c qpd->vmid = allocated_vmid; vmid 209 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c q->properties.vmid = allocated_vmid; vmid 211 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c set_pasid_vmid_mapping(dqm, q->process->pasid, q->properties.vmid); vmid 218 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c qpd->vmid, vmid 224 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c dqm->dev->kgd, qpd->sh_hidden_private_base, qpd->vmid); vmid 242 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c return amdgpu_amdkfd_submit_ib(kdev->kgd, KGD_ENGINE_MEC1, qpd->vmid, vmid 251 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c int bit = qpd->vmid - dqm->dev->vm_info.first_vmid_kfd; vmid 261 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c set_pasid_vmid_mapping(dqm, 0, qpd->vmid); vmid 264 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c qpd->vmid = 0; vmid 265 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c q->properties.vmid = 0; vmid 291 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c q->properties.vmid = qpd->vmid; vmid 680 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c qpd->vmid, vmid 841 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c unsigned int vmid) vmid 844 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c dqm->dev->kgd, pasid, vmid); vmid 1463 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c if ((dqm->sched_policy == KFD_SCHED_POLICY_NO_HWS) && (qpd->vmid != 0)) vmid 33 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c uint16_t source_id, client_id, pasid, vmid; vmid 37 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry); vmid 38 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c if (vmid < dev->vm_info.first_vmid_kfd || vmid 39 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c vmid > dev->vm_info.last_vmid_kfd) vmid 58 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c dev->kgd, vmid); vmid 66 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c client_id, source_id, vmid, pasid); vmid 90 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c uint16_t source_id, client_id, pasid, vmid; vmid 96 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry); vmid 113 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c info.vmid = vmid; vmid 121 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c prop.vmid = 0; vmid 212 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c m->cp_hqd_vmid = q->vmid; vmid 243 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c q->vmid << SDMA0_RLC0_RB_CNTL__RB_VMID__SHIFT | vmid 335 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c m->cp_hqd_vmid = q->vmid; vmid 219 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c m->cp_hqd_vmid = q->vmid; vmid 318 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c m->cp_hqd_vmid = q->vmid; vmid 357 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c q->vmid << SDMA0_RLC0_RB_CNTL__RB_VMID__SHIFT | vmid 239 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c m->cp_hqd_vmid = q->vmid; vmid 336 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c m->cp_hqd_vmid = q->vmid; vmid 375 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c q->vmid << SDMA0_RLC0_RB_CNTL__RB_VMID__SHIFT | vmid 221 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c m->cp_hqd_vmid = q->vmid; vmid 319 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c m->cp_hqd_vmid = q->vmid; vmid 356 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c q->vmid << SDMA0_RLC0_RB_CNTL__RB_VMID__SHIFT | vmid 433 drivers/gpu/drm/amd/amdkfd/kfd_priv.h unsigned int vmid; vmid 552 drivers/gpu/drm/amd/amdkfd/kfd_priv.h unsigned int vmid; vmid 1156 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (pdd->qpd.vmid) vmid 1157 drivers/gpu/drm/amd/amdkfd/kfd_process.c f2g->invalidate_tlbs_vmid(dev->kgd, pdd->qpd.vmid); vmid 176 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c q_properties->vmid = 0; vmid 38 drivers/gpu/drm/amd/amdkfd/kfd_queue.c pr_debug("Queue Process Vmid: %u\n", q->vmid); vmid 55 drivers/gpu/drm/amd/amdkfd/kfd_queue.c pr_debug("Queue Process Vmid: %u\n", q->properties.vmid); vmid 55 drivers/gpu/drm/amd/display/dc/core/dc_vm_helper.c void dc_setup_vm_context(struct dc *dc, struct dc_virtual_addr_space_config *va_config, int vmid) vmid 57 drivers/gpu/drm/amd/display/dc/core/dc_vm_helper.c dc->hwss.init_vm_ctx(dc->hwseq, dc, va_config, vmid); vmid 562 drivers/gpu/drm/amd/display/dc/dc.h void dc_setup_vm_context(struct dc *dc, struct dc_virtual_addr_space_config *va_config, int vmid); vmid 103 drivers/gpu/drm/amd/display/dc/dc_hw_types.h uint8_t vmid; vmid 1723 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c unsigned int vmid, unsigned int vmid_frame_number) vmid 2751 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c unsigned int vmid, unsigned int vmid_frame_number) vmid 2760 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c params.vertical_total_mid = vmid; vmid 350 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c int vmid) vmid 361 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c dcn20_vmid_setup(&hubbub1->vmid[vmid], &virt_config); vmid 395 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c dcn20_vmid_setup(&hubbub1->vmid[0], &phys_config); vmid 83 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h struct dcn20_vmid vmid[16]; vmid 114 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.h int vmid); vmid 690 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c VMID, address->vmid); vmid 1491 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c int vmid) vmid 1495 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c if (vmid == 0) { vmid 1506 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c dc->res_pool->hubbub->funcs->init_vm_ctx(dc->res_pool->hubbub, &config, vmid); vmid 1566 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c vm_helper_mark_vmid_used(dc->vm_helper, plane_state->address.vmid, pipe_ctx->plane_res.hubp->inst); vmid 1106 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c struct dcn20_vmid *vmid = &hubbub->vmid[i]; vmid 1108 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c vmid->ctx = ctx; vmid 1110 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c vmid->regs = &vmid_regs[i]; vmid 1111 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c vmid->shifts = &vmid_shifts; vmid 1112 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c vmid->masks = &vmid_masks; vmid 32 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c vmid->regs->reg vmid 35 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c vmid->ctx vmid 39 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c vmid->shifts->field_name, vmid->masks->field_name vmid 41 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c static void dcn20_wait_for_vmid_ready(struct dcn20_vmid *vmid) vmid 73 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c void dcn20_vmid_setup(struct dcn20_vmid *vmid, const struct dcn_vmid_page_table_config *config) vmid 95 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.c dcn20_wait_for_vmid_ready(vmid); vmid 88 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_vmid.h void dcn20_vmid_setup(struct dcn20_vmid *vmid, const struct dcn_vmid_page_table_config *config); vmid 1180 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c struct dcn20_vmid *vmid = &hubbub->vmid[i]; vmid 1182 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c vmid->ctx = ctx; vmid 1184 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c vmid->regs = &vmid_regs[i]; vmid 1185 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c vmid->shifts = &vmid_shifts; vmid 1186 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c vmid->masks = &vmid_masks; vmid 117 drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h int vmid); vmid 147 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h int vmid); vmid 242 drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h unsigned int vmid, unsigned int vmid_frame_number); vmid 41 drivers/gpu/drm/amd/display/modules/vmid/vmid.c static void add_ptb_to_table(struct core_vmid *core_vmid, unsigned int vmid, uint64_t ptb) vmid 43 drivers/gpu/drm/amd/display/modules/vmid/vmid.c core_vmid->ptb_assigned_to_vmid[vmid] = ptb; vmid 47 drivers/gpu/drm/amd/display/modules/vmid/vmid.c static void clear_entry_from_vmid_table(struct core_vmid *core_vmid, unsigned int vmid) vmid 49 drivers/gpu/drm/amd/display/modules/vmid/vmid.c core_vmid->ptb_assigned_to_vmid[vmid] = 0; vmid 94 drivers/gpu/drm/amd/display/modules/vmid/vmid.c unsigned int vmid = 0; vmid 100 drivers/gpu/drm/amd/display/modules/vmid/vmid.c vmid = get_existing_vmid_for_ptb(core_vmid, ptb); vmid 102 drivers/gpu/drm/amd/display/modules/vmid/vmid.c if (vmid == -1) { vmid 110 drivers/gpu/drm/amd/display/modules/vmid/vmid.c vmid = get_next_available_vmid(core_vmid); vmid 111 drivers/gpu/drm/amd/display/modules/vmid/vmid.c add_ptb_to_table(core_vmid, vmid, ptb); vmid 113 drivers/gpu/drm/amd/display/modules/vmid/vmid.c dc_setup_vm_context(core_vmid->dc, &va_config, vmid); vmid 116 drivers/gpu/drm/amd/display/modules/vmid/vmid.c return vmid; vmid 51 drivers/gpu/drm/amd/include/kgd_kfd_interface.h uint32_t vmid; vmid 245 drivers/gpu/drm/amd/include/kgd_kfd_interface.h void (*program_sh_mem_settings)(struct kgd_dev *kgd, uint32_t vmid, vmid 250 drivers/gpu/drm/amd/include/kgd_kfd_interface.h unsigned int vmid); vmid 296 drivers/gpu/drm/amd/include/kgd_kfd_interface.h uint8_t vmid); vmid 299 drivers/gpu/drm/amd/include/kgd_kfd_interface.h uint8_t vmid); vmid 302 drivers/gpu/drm/amd/include/kgd_kfd_interface.h uint64_t va, uint32_t vmid); vmid 306 drivers/gpu/drm/amd/include/kgd_kfd_interface.h uint32_t vmid, uint64_t page_table_base); vmid 308 drivers/gpu/drm/amd/include/kgd_kfd_interface.h int (*invalidate_tlbs_vmid)(struct kgd_dev *kgd, uint16_t vmid); vmid 1855 drivers/gpu/drm/radeon/cik.c u32 me, u32 pipe, u32 queue, u32 vmid) vmid 1859 drivers/gpu/drm/radeon/cik.c VMID(vmid & 0xf) | vmid 4498 drivers/gpu/drm/radeon/cik.c u32 vmid; vmid 5668 drivers/gpu/drm/radeon/cik.c u32 vmid = (status & FAULT_VMID_MASK) >> FAULT_VMID_SHIFT; vmid 5679 drivers/gpu/drm/radeon/cik.c protections, vmid, addr, vmid 231 drivers/gpu/drm/radeon/cik_reg.h uint32_t vmid:4; vmid 2537 drivers/gpu/drm/radeon/ni.c u32 vmid = (status & FAULT_VMID_MASK) >> FAULT_VMID_SHIFT; vmid 2680 drivers/gpu/drm/radeon/ni.c protections, vmid, addr, vmid 1342 drivers/gpu/drm/radeon/nid.h #define DMA_IB_PACKET(cmd, vmid, n) ((((cmd) & 0xF) << 28) | \ vmid 1343 drivers/gpu/drm/radeon/nid.h (((vmid) & 0xF) << 20) | \ vmid 51 drivers/gpu/drm/radeon/radeon_trace.h TP_PROTO(unsigned vmid, int ring), vmid 52 drivers/gpu/drm/radeon/radeon_trace.h TP_ARGS(vmid, ring), vmid 54 drivers/gpu/drm/radeon/radeon_trace.h __field(u32, vmid) vmid 59 drivers/gpu/drm/radeon/radeon_trace.h __entry->vmid = vmid; vmid 62 drivers/gpu/drm/radeon/radeon_trace.h TP_printk("vmid=%u, ring=%u", __entry->vmid, __entry->ring) vmid 4825 drivers/gpu/drm/radeon/si.c u32 vmid = (status & FAULT_VMID_MASK) >> FAULT_VMID_SHIFT; vmid 5071 drivers/gpu/drm/radeon/si.c protections, vmid, addr, vmid 1859 drivers/gpu/drm/radeon/sid.h #define DMA_IB_PACKET(cmd, vmid, n) ((((cmd) & 0xF) << 28) | \ vmid 1860 drivers/gpu/drm/radeon/sid.h (((vmid) & 0xF) << 20) | \ vmid 77 drivers/iommu/arm-smmu-impl.c smmu_domain->cfg.vmid += cs->id_base; vmid 459 drivers/iommu/arm-smmu-v3.c u16 vmid; vmid 563 drivers/iommu/arm-smmu-v3.c u16 vmid; vmid 859 drivers/iommu/arm-smmu-v3.c cmd[0] |= FIELD_PREP(CMDQ_TLBI_0_VMID, ent->tlbi.vmid); vmid 865 drivers/iommu/arm-smmu-v3.c cmd[0] |= FIELD_PREP(CMDQ_TLBI_0_VMID, ent->tlbi.vmid); vmid 873 drivers/iommu/arm-smmu-v3.c cmd[0] |= FIELD_PREP(CMDQ_TLBI_0_VMID, ent->tlbi.vmid); vmid 1628 drivers/iommu/arm-smmu-v3.c FIELD_PREP(STRTAB_STE_2_S2VMID, s2_cfg->vmid) | vmid 1969 drivers/iommu/arm-smmu-v3.c cmd.tlbi.vmid = 0; vmid 1972 drivers/iommu/arm-smmu-v3.c cmd.tlbi.vmid = smmu_domain->s2_cfg.vmid; vmid 2009 drivers/iommu/arm-smmu-v3.c cmd.tlbi.vmid = smmu_domain->s2_cfg.vmid; vmid 2146 drivers/iommu/arm-smmu-v3.c if (cfg->vmid) vmid 2147 drivers/iommu/arm-smmu-v3.c arm_smmu_bitmap_free(smmu->vmid_map, cfg->vmid); vmid 2188 drivers/iommu/arm-smmu-v3.c int vmid; vmid 2192 drivers/iommu/arm-smmu-v3.c vmid = arm_smmu_bitmap_alloc(smmu->vmid_map, smmu->vmid_bits); vmid 2193 drivers/iommu/arm-smmu-v3.c if (vmid < 0) vmid 2194 drivers/iommu/arm-smmu-v3.c return vmid; vmid 2196 drivers/iommu/arm-smmu-v3.c cfg->vmid = (u16)vmid; vmid 310 drivers/iommu/arm-smmu.c arm_smmu_gr0_write(smmu, ARM_SMMU_GR0_TLBIVMID, smmu_domain->cfg.vmid); vmid 380 drivers/iommu/arm-smmu.c arm_smmu_gr0_write(smmu, ARM_SMMU_GR0_TLBIVMID, smmu_domain->cfg.vmid); vmid 568 drivers/iommu/arm-smmu.c reg |= FIELD_PREP(CBA2R_VMID16, cfg->vmid); vmid 587 drivers/iommu/arm-smmu.c reg |= FIELD_PREP(CBAR_VMID, cfg->vmid); vmid 757 drivers/iommu/arm-smmu.c cfg->vmid = cfg->cbndx + 1; vmid 293 drivers/iommu/arm-smmu.h u16 vmid; vmid 191 drivers/net/ethernet/hisilicon/hns/hnae.h __u8 vmid; vmid 163 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_get_inner_port_num(struct hns_mac_cb *mac_cb, u8 vmid, u8 *port_num) vmid 174 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_cb->mac_id, vmid); vmid 182 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_cb->mac_id, vmid); vmid 191 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (vmid >= mac_cb->dsaf_dev->rcb_common[0]->max_vfn) { vmid 193 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_cb->dsaf_dev->ae_dev.name, mac_cb->mac_id, vmid); vmid 200 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c vm_queue_id = vmid * q_num_per_vf + vmid 243 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c u32 vmid, char *addr) vmid 251 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c old_entry = &mac_cb->addr_entry_idx[vmid]; vmid 256 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c ret = hns_mac_get_inner_port_num(mac_cb, (u8)vmid, vmid 277 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if ((mac_ctrl_drv->set_mac_addr) && (vmid == 0)) vmid 417 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c int hns_mac_vm_config_bc_en(struct hns_mac_cb *mac_cb, u32 vmid, bool enable) vmid 428 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c uc_mac_entry = &mac_cb->addr_entry_idx[vmid]; vmid 434 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c ret = hns_mac_get_inner_port_num(mac_cb, vmid, &port_num); vmid 432 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h int hns_mac_change_vf_addr(struct hns_mac_cb *mac_cb, u32 vmid, char *addr); vmid 461 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h u8 vmid, u8 *port_num); vmid 37 drivers/net/wireless/ath/ath10k/qmi.c dst_perms[0].vmid = QCOM_SCM_VMID_MSS_MSA; vmid 39 drivers/net/wireless/ath/ath10k/qmi.c dst_perms[1].vmid = QCOM_SCM_VMID_WLAN; vmid 45 drivers/net/wireless/ath/ath10k/qmi.c dst_perms[2].vmid = QCOM_SCM_VMID_WLAN_CE; vmid 71 drivers/net/wireless/ath/ath10k/qmi.c dst_perms.vmid = QCOM_SCM_VMID_HLOS; vmid 3170 drivers/net/wireless/broadcom/b43/phy_n.c u16 *vmid, *gain; vmid 3235 drivers/net/wireless/broadcom/b43/phy_n.c vmid = vmids[min_t(u16, pdet_range, 4)]; vmid 3245 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x08), 4, vmid); vmid 3246 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x18), 4, vmid); vmid 3253 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x94; vmid 3255 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x8e; vmid 3258 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x84; vmid 3261 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x08), 4, vmid); vmid 3262 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x18), 4, vmid); vmid 3270 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x8e; vmid 3274 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x89; vmid 3280 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x89; vmid 3284 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = 0x74; vmid 3289 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x08), 4, vmid); vmid 3291 drivers/net/wireless/broadcom/b43/phy_n.c vmid[3] = tmp16; vmid 3292 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x18), 4, vmid); vmid 2502 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 vmid; vmid 2574 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c vmid = 0x2A6; vmid 2575 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_radio_reg(pi, RADIO_2064_REG0FC, 0x3 << 0, (vmid >> 8) & 0x3); vmid 2576 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_radio_reg(pi, RADIO_2064_REG0FD, (vmid & 0xff)); vmid 373 drivers/remoteproc/qcom_q6v5_mss.c next.vmid = remote_owner ? QCOM_SCM_VMID_MSS_MSA : QCOM_SCM_VMID_HLOS; vmid 178 drivers/soc/qcom/rmtfs_mem.c u32 vmid; vmid 229 drivers/soc/qcom/rmtfs_mem.c ret = of_property_read_u32(node, "qcom,vmid", &vmid); vmid 239 drivers/soc/qcom/rmtfs_mem.c perms[0].vmid = QCOM_SCM_VMID_HLOS; vmid 241 drivers/soc/qcom/rmtfs_mem.c perms[1].vmid = vmid; vmid 271 drivers/soc/qcom/rmtfs_mem.c perm.vmid = QCOM_SCM_VMID_HLOS; vmid 1027 drivers/tty/hvc/hvc_iucv.c char vmid[9], ipuser[9]; vmid 1029 drivers/tty/hvc/hvc_iucv.c memset(vmid, 0, sizeof(vmid)); vmid 1034 drivers/tty/hvc/hvc_iucv.c memcpy(vmid, priv->info_path, 8); vmid 1040 drivers/tty/hvc/hvc_iucv.c return sprintf(buf, "%s:%s\n", vmid, ipuser); vmid 23 include/linux/qcom_scm.h int vmid; vmid 132 virt/kvm/arm/arm.c kvm->arch.vmid.vmid_gen = 0; vmid 505 virt/kvm/arm/arm.c static bool need_new_vmid_gen(struct kvm_vmid *vmid) vmid 509 virt/kvm/arm/arm.c return unlikely(READ_ONCE(vmid->vmid_gen) != current_vmid_gen); vmid 517 virt/kvm/arm/arm.c static void update_vmid(struct kvm_vmid *vmid) vmid 519 virt/kvm/arm/arm.c if (!need_new_vmid_gen(vmid)) vmid 529 virt/kvm/arm/arm.c if (!need_new_vmid_gen(vmid)) { vmid 553 virt/kvm/arm/arm.c vmid->vmid = kvm_next_vmid; vmid 558 virt/kvm/arm/arm.c WRITE_ONCE(vmid->vmid_gen, atomic64_read(&kvm_vmid_gen)); vmid 714 virt/kvm/arm/arm.c update_vmid(&vcpu->kvm->arch.vmid); vmid 763 virt/kvm/arm/arm.c if (ret <= 0 || need_new_vmid_gen(&vcpu->kvm->arch.vmid) ||