pasid 33 arch/csky/include/asm/asid.h void asid_new_context(struct asid_info *info, atomic64_t *pasid, pasid 43 arch/csky/include/asm/asid.h atomic64_t *pasid, unsigned int cpu, pasid 48 arch/csky/include/asm/asid.h asid = atomic64_read(pasid); pasid 71 arch/csky/include/asm/asid.h asid_new_context(info, pasid, cpu, mm); pasid 79 arch/csky/mm/asid.c static u64 new_context(struct asid_info *info, atomic64_t *pasid, pasid 83 arch/csky/mm/asid.c u64 asid = atomic64_read(pasid); pasid 137 arch/csky/mm/asid.c void asid_new_context(struct asid_info *info, atomic64_t *pasid, pasid 145 arch/csky/mm/asid.c asid = atomic64_read(pasid); pasid 147 arch/csky/mm/asid.c asid = new_context(info, pasid, mm); pasid 148 arch/csky/mm/asid.c atomic64_set(pasid, asid); pasid 32 arch/powerpc/include/asm/opal.h int64_t opal_npu_init_context(uint64_t phb_id, int pasid, uint64_t msr, pasid 55 arch/x86/events/amd/iommu.c PMU_FORMAT_ATTR(pasid, "config:40-59"); pasid 172 drivers/crypto/hisilicon/qm.c #define INIT_QC_COMMON(qc, base, pasid) do { \ pasid 180 drivers/crypto/hisilicon/qm.c (qc)->pasid = pasid; \ pasid 216 drivers/crypto/hisilicon/qm.c __le16 pasid; pasid 231 drivers/crypto/hisilicon/qm.c __le16 pasid; pasid 1196 drivers/crypto/hisilicon/qm.c static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, int pasid) pasid 1219 drivers/crypto/hisilicon/qm.c INIT_QC_COMMON(sqc, qp->sqe_dma, pasid); pasid 1246 drivers/crypto/hisilicon/qm.c INIT_QC_COMMON(cqc, qp->cqe_dma, pasid); pasid 1277 drivers/crypto/hisilicon/qm.c int pasid = arg; pasid 1307 drivers/crypto/hisilicon/qm.c ret = qm_qp_ctx_cfg(qp, qp_id, pasid); pasid 198 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h int amdgpu_amdkfd_gpuvm_create_process_vm(struct kgd_dev *kgd, unsigned int pasid, pasid 202 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h struct file *filp, unsigned int pasid, pasid 61 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 107 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid); pasid 237 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 249 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | pasid 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); pasid 804 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int invalidate_tlbs_with_kiq(struct amdgpu_device *adev, uint16_t pasid) pasid 815 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c PACKET3_INVALIDATE_TLBS_PASID(pasid)); pasid 829 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c static int invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid) pasid 836 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c return invalidate_tlbs_with_kiq(adev, pasid); pasid 843 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c == pasid) { pasid 97 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 144 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static int invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid); pasid 261 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 272 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | pasid 804 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c static int invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid) pasid 819 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c (tmp & ATC_VMID0_PASID_MAPPING__PASID_MASK) == pasid) { pasid 55 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 100 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static int invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid); pasid 217 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static int kgd_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 229 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | pasid 763 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c static int invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid) pasid 778 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c (tmp & ATC_VMID0_PASID_MAPPING__PASID_MASK) == pasid) { pasid 148 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c int kgd_gfx_v9_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 160 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid | pasid 642 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c static int invalidate_tlbs_with_kiq(struct amdgpu_device *adev, uint16_t pasid, pasid 655 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c PACKET3_INVALIDATE_TLBS_PASID(pasid) | pasid 670 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c int kgd_gfx_v9_invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid) pasid 684 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c return invalidate_tlbs_with_kiq(adev, pasid, flush_type); pasid 691 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c == pasid) { pasid 29 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h int kgd_gfx_v9_set_pasid_vmid_mapping(struct kgd_dev *kgd, unsigned int pasid, pasid 66 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.h int kgd_gfx_v9_invalidate_tlbs(struct kgd_dev *kgd, uint16_t pasid); pasid 926 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c int amdgpu_amdkfd_gpuvm_create_process_vm(struct kgd_dev *kgd, unsigned int pasid, pasid 939 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = amdgpu_vm_init(adev, new_vm, AMDGPU_VM_CONTEXT_COMPUTE, pasid); pasid 962 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct file *filp, unsigned int pasid, pasid 977 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c ret = amdgpu_vm_make_compute(adev, avm, pasid); pasid 267 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c uint16_t pasid, uint64_t timestamp) pasid 271 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c uint64_t stamp, key = addr << 4 | pasid; pasid 100 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h unsigned pasid); pasid 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)) pasid 234 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h uint16_t pasid, uint64_t timestamp); pasid 46 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned int pasid; pasid 62 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c int pasid = -EINVAL; pasid 65 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c pasid = ida_simple_get(&amdgpu_pasid_ida, pasid 68 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c if (pasid != -ENOSPC) pasid 72 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c if (pasid >= 0) pasid 73 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c trace_amdgpu_pasid_allocated(pasid); pasid 75 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c return pasid; pasid 82 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c void amdgpu_pasid_free(unsigned int pasid) pasid 84 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c trace_amdgpu_pasid_freed(pasid); pasid 85 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c ida_simple_remove(&amdgpu_pasid_ida, pasid); pasid 94 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_free(cb->pasid); pasid 108 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c unsigned int pasid) pasid 120 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_free(pasid); pasid 145 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_free(pasid); pasid 147 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c cb->pasid = pasid; pasid 161 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_free(pasid); pasid 459 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c job->pasid = vm->pasid; pasid 61 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h unsigned pasid; pasid 74 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h void amdgpu_pasid_free(unsigned int pasid); pasid 76 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h unsigned int pasid); pasid 54 drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h unsigned pasid; pasid 45 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_vm_get_task_info(ring->adev, job->pasid, &ti); pasid 56 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h unsigned pasid; pasid 969 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c int r, pasid; pasid 986 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c pasid = amdgpu_pasid_alloc(16); pasid 987 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (pasid < 0) { pasid 989 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c pasid = 0; pasid 991 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c r = amdgpu_vm_init(adev, &fpriv->vm, AMDGPU_VM_CONTEXT_GFX, pasid); pasid 1022 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (pasid) pasid 1023 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c amdgpu_pasid_free(pasid); pasid 1049 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c unsigned int pasid; pasid 1072 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c pasid = fpriv->vm.pasid; pasid 1078 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (pasid) pasid 1079 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c amdgpu_pasid_free_delayed(pd->tbo.base.resv, pasid); pasid 88 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __field(unsigned, pasid) pasid 100 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->pasid = iv->pasid; pasid 110 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->timestamp, __entry->pasid, pasid 221 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __field(u32, pasid) pasid 231 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->pasid = vm->pasid; pasid 239 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->pasid, __get_str(ring), __entry->vmid, pasid 389 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_PROTO(unsigned pasid), pasid 390 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_ARGS(pasid), pasid 392 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __field(unsigned, pasid) pasid 395 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h __entry->pasid = pasid; pasid 397 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_printk("pasid=%u", __entry->pasid) pasid 401 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_PROTO(unsigned pasid), pasid 402 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_ARGS(pasid) pasid 406 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_PROTO(unsigned pasid), pasid 407 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h TP_ARGS(pasid) pasid 1049 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (id->pasid != job->pasid || !id->pasid_mapping || pasid 1075 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_gmc_emit_pasid_mapping(ring, job->vmid, job->pasid); pasid 1094 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c id->pasid = job->pasid; pasid 2674 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int vm_context, unsigned int pasid) pasid 2743 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (pasid) { pasid 2747 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = idr_alloc(&adev->vm_manager.pasid_idr, vm, pasid, pasid + 1, pasid 2753 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c vm->pasid = pasid; pasid 2825 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c int amdgpu_vm_make_compute(struct amdgpu_device *adev, struct amdgpu_vm *vm, unsigned int pasid) pasid 2839 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (pasid) { pasid 2843 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c r = idr_alloc(&adev->vm_manager.pasid_idr, vm, pasid, pasid + 1, pasid 2877 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (vm->pasid) { pasid 2881 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c idr_remove(&adev->vm_manager.pasid_idr, vm->pasid); pasid 2887 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_pasid_free(vm->pasid); pasid 2888 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c vm->pasid = 0; pasid 2894 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (pasid) pasid 2895 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c vm->pasid = pasid; pasid 2900 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (pasid) { pasid 2904 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c idr_remove(&adev->vm_manager.pasid_idr, pasid); pasid 2922 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (vm->pasid) { pasid 2926 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c idr_remove(&adev->vm_manager.pasid_idr, vm->pasid); pasid 2929 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c vm->pasid = 0; pasid 2950 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (vm->pasid) { pasid 2954 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c idr_remove(&adev->vm_manager.pasid_idr, vm->pasid); pasid 3096 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c void amdgpu_vm_get_task_info(struct amdgpu_device *adev, unsigned int pasid, pasid 3104 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c vm = idr_find(&adev->vm_manager.pasid_idr, pasid); pasid 260 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h unsigned int pasid; pasid 348 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h int vm_context, unsigned int pasid); pasid 349 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h int amdgpu_vm_make_compute(struct amdgpu_device *adev, struct amdgpu_vm *vm, unsigned int pasid); pasid 405 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h void amdgpu_vm_get_task_info(struct amdgpu_device *adev, unsigned int pasid, pasid 259 drivers/gpu/drm/amd/amdgpu/cik_ih.c entry->pasid = (dw[2] >> 16) & 0xffff; pasid 238 drivers/gpu/drm/amd/amdgpu/cz_ih.c entry->pasid = (dw[2] >> 16) & 0xffff; pasid 155 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c amdgpu_vm_get_task_info(adev, entry->pasid, &task_info); pasid 162 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c entry->pasid, task_info.process_name, task_info.tgid, pasid 413 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c unsigned pasid) pasid 423 drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c amdgpu_ring_emit_wreg(ring, reg, pasid); pasid 461 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c unsigned pasid) pasid 463 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c amdgpu_ring_emit_wreg(ring, mmIH_VMID_0_LUT + vmid, pasid); pasid 743 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c u32 addr, u32 mc_client, unsigned pasid) pasid 756 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c protections, vmid, pasid, addr, pasid 1269 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c entry->pasid); pasid 663 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c unsigned pasid) pasid 665 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c amdgpu_ring_emit_wreg(ring, mmIH_VMID_0_LUT + vmid, pasid); pasid 987 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c u32 addr, u32 mc_client, unsigned pasid) pasid 1000 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c protections, vmid, pasid, addr, pasid 1444 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c amdgpu_vm_get_task_info(adev, entry->pasid, &task_info); pasid 1454 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c entry->pasid); pasid 342 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c if (retry_fault && amdgpu_gmc_filter_faults(adev, addr, entry->pasid, pasid 375 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c amdgpu_vm_get_task_info(adev, entry->pasid, &task_info); pasid 382 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c entry->pasid, task_info.process_name, task_info.tgid, pasid 611 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c unsigned pasid) pasid 625 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c amdgpu_ring_emit_wreg(ring, reg, pasid); pasid 238 drivers/gpu/drm/amd/amdgpu/iceland_ih.c entry->pasid = (dw[2] >> 16) & 0xffff; pasid 276 drivers/gpu/drm/amd/amdgpu/navi10_ih.c entry->pasid = dw[3] & 0xffff; pasid 240 drivers/gpu/drm/amd/amdgpu/tonga_ih.c entry->pasid = (dw[2] >> 16) & 0xffff; pasid 459 drivers/gpu/drm/amd/amdgpu/vega10_ih.c entry->pasid = dw[3] & 0xffff; pasid 36 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c unsigned int vmid, pasid; pasid 51 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c pasid = f2g->get_atc_vmid_pasid_mapping_pasid(dev->kgd, vmid); pasid 55 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c tmp_ihre->ring_id |= pasid << 16; pasid 57 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c return (pasid != 0) && pasid 69 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c pasid = (ihre->ring_id & 0xffff0000) >> 16; pasid 70 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c if (WARN_ONCE(pasid == 0, "FW bug: No PASID in KFD interrupt")) pasid 91 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c unsigned int pasid = (ihre->ring_id & 0xffff0000) >> 16; pasid 93 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c if (pasid == 0) pasid 97 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_signal_event_interrupt(pasid, context_id, 28); pasid 99 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_signal_event_interrupt(pasid, context_id, 28); pasid 101 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_signal_event_interrupt(pasid, context_id & 0xff, 8); pasid 103 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_signal_hw_exception_event(pasid); pasid 108 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_process_vm_fault(dev->dqm, pasid); pasid 116 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_signal_vm_fault_event(dev, pasid, &info); pasid 118 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c kfd_signal_vm_fault_event(dev, pasid, NULL); pasid 131 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c process->pasid, process->is_32bit_user_mode); pasid 286 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c p->pasid, pasid 337 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c p->pasid); pasid 382 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c args->queue_id, p->pasid); pasid 858 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c dev_dbg(kfd_device, "get apertures for PASID %d", p->pasid); pasid 916 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c dev_dbg(kfd_device, "get apertures for PASID %d", p->pasid); pasid 1885 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c process->pasid, (unsigned long long) vma->vm_start, pasid 48 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c unsigned int pasid, uint64_t vmid0_address, pasid 99 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c ib_packet->bitfields5.pasid = pasid; pasid 470 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c adw_info->process->pasid, pasid 684 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c wac_info->process->pasid, pasid 788 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c (dev->kgd, vmid) == p->pasid) { pasid 790 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c vmid, p->pasid); pasid 797 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_err("Didn't find vmid for pasid %d\n", p->pasid); pasid 51 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c pmgr->pasid = 0; pasid 77 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c new_buff->pasid = 0; pasid 98 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c if (pmgr->pasid != 0) { pasid 100 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c pmgr->pasid); pasid 105 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c pmgr->pasid = p->pasid; pasid 119 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c if (pmgr->pasid != p->pasid) { pasid 121 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c p->pasid); pasid 127 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c pmgr->pasid = 0; pasid 136 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c if (pmgr->pasid != wac_info->process->pasid) { pasid 138 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c wac_info->process->pasid); pasid 149 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c if (pmgr->pasid != adw_info->process->pasid) { pasid 151 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c adw_info->process->pasid); pasid 278 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.h unsigned int pasid; pasid 43 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c unsigned int pasid, unsigned int vmid); pasid 211 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c set_pasid_vmid_mapping(dqm, q->process->pasid, q->properties.vmid); pasid 583 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pasid 625 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pasid 671 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pasid 743 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c pdd->process->pasid); pasid 840 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c set_pasid_vmid_mapping(struct device_queue_manager *dqm, unsigned int pasid, pasid 844 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c dqm->dev->kgd, pasid, vmid); pasid 1836 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c unsigned int pasid) pasid 1839 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); pasid 464 drivers/gpu/drm/amd/amdkfd/kfd_events.c void kfd_signal_event_interrupt(unsigned int pasid, uint32_t partial_id, pasid 474 drivers/gpu/drm/amd/amdkfd/kfd_events.c struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); pasid 876 drivers/gpu/drm/amd/amdkfd/kfd_events.c void kfd_signal_iommu_event(struct kfd_dev *dev, unsigned int pasid, pasid 888 drivers/gpu/drm/amd/amdkfd/kfd_events.c struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); pasid 953 drivers/gpu/drm/amd/amdkfd/kfd_events.c void kfd_signal_hw_exception_event(unsigned int pasid) pasid 960 drivers/gpu/drm/amd/amdkfd/kfd_events.c struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); pasid 974 drivers/gpu/drm/amd/amdkfd/kfd_events.c void kfd_signal_vm_fault_event(struct kfd_dev *dev, unsigned int pasid, pasid 979 drivers/gpu/drm/amd/amdkfd/kfd_events.c struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); pasid 82 drivers/gpu/drm/amd/amdkfd/kfd_events.h extern void kfd_signal_event_interrupt(unsigned int pasid, uint32_t partial_id, pasid 33 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c uint16_t source_id, client_id, pasid, vmid; pasid 44 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c pasid = SOC15_PASID_FROM_IH_ENTRY(ih_ring_entry); pasid 50 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c if (!pasid && dev->dqm->sched_policy == KFD_SCHED_POLICY_NO_HWS) { pasid 57 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c pasid = dev->kfd2kgd->get_atc_vmid_pasid_mapping_pasid( pasid 62 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c & ~pasid_mask) | pasid); pasid 66 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c client_id, source_id, vmid, pasid); pasid 72 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt")) pasid 90 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c uint16_t source_id, client_id, pasid, vmid; pasid 95 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c pasid = SOC15_PASID_FROM_IH_ENTRY(ih_ring_entry); pasid 100 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c kfd_signal_event_interrupt(pasid, context_id, 32); pasid 102 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c kfd_signal_event_interrupt(pasid, context_id & 0xfffffff, 28); pasid 104 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c kfd_signal_event_interrupt(pasid, context_id & 0xffffff, 24); pasid 106 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c kfd_signal_hw_exception_event(pasid); pasid 121 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c kfd_process_vm_fault(dev->dqm, pasid); pasid 122 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c kfd_signal_vm_fault_event(dev, pasid, &info); pasid 123 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c err = amd_iommu_bind_pasid(dev->pdev, p->pasid, p->lead_thread); pasid 141 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c amd_iommu_unbind_pasid(pdd->dev->pdev, p->pasid); pasid 145 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c static void iommu_pasid_shutdown_callback(struct pci_dev *pdev, int pasid) pasid 159 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c p = kfd_lookup_process_by_pasid(pasid); pasid 163 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pr_debug("Unbinding process %d from IOMMU\n", pasid); pasid 167 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c if (dev->dbgmgr && dev->dbgmgr->pasid == p->pasid) { pasid 191 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c static int iommu_invalid_ppr_cb(struct pci_dev *pdev, int pasid, pasid 201 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c pasid, pasid 207 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c kfd_signal_iommu_event(dev, pasid, address, pasid 235 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c err = amd_iommu_bind_pasid(kfd->pdev, p->pasid, pasid 239 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c p->pasid); pasid 84 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.pasid = qpd->pqm->process->pasid; pasid 255 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields3a.pasid = filter_param; pasid 83 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.pasid = qpd->pqm->process->pasid; pasid 298 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields3a.pasid = filter_param; pasid 95 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.pasid = qpd->pqm->process->pasid; pasid 286 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields3a.pasid = filter_param; pasid 80 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c void kfd_pasid_free(unsigned int pasid) pasid 83 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c amdgpu_pasid_free(pasid); pasid 58 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers.h uint32_t pasid:16; pasid 107 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers.h uint32_t pasid:16; pasid 147 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h uint32_t pasid:16; pasid 347 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h uint32_t pasid:16; pasid 415 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_ai.h uint32_t pasid:16; pasid 70 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_diq.h unsigned int pasid:10; pasid 153 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h uint32_t pasid:16; pasid 304 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h uint32_t pasid:16; pasid 368 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h uint32_t pasid:16; pasid 690 drivers/gpu/drm/amd/amdkfd/kfd_priv.h unsigned int pasid; pasid 764 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct kfd_process *kfd_lookup_process_by_pasid(unsigned int pasid); pasid 806 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_pasid_free(unsigned int pasid); pasid 889 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int kfd_process_vm_fault(struct device_queue_manager *dqm, unsigned int pasid); pasid 1012 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_signal_event_interrupt(unsigned int pasid, uint32_t partial_id, pasid 1015 drivers/gpu/drm/amd/amdkfd/kfd_priv.h unsigned int pasid, unsigned long address, pasid 1017 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_signal_hw_exception_event(unsigned int pasid); pasid 1028 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void kfd_signal_vm_fault_event(struct kfd_dev *dev, unsigned int pasid, pasid 85 drivers/gpu/drm/amd/amdkfd/kfd_process.c val = p->pasid; pasid 420 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->dev->id, p->pasid); pasid 471 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_pasid_free(p->pasid); pasid 526 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (dev && dev->dbgmgr && dev->dbgmgr->pasid == p->pasid) { pasid 642 drivers/gpu/drm/amd/amdkfd/kfd_process.c process->pasid = kfd_pasid_alloc(); pasid 643 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (process->pasid == 0) pasid 678 drivers/gpu/drm/amd/amdkfd/kfd_process.c kfd_pasid_free(process->pasid); pasid 788 drivers/gpu/drm/amd/amdkfd/kfd_process.c dev->kgd, drm_file, p->pasid, pasid 791 drivers/gpu/drm/amd/amdkfd/kfd_process.c ret = amdgpu_amdkfd_gpuvm_create_process_vm(dev->kgd, p->pasid, pasid 905 drivers/gpu/drm/amd/amdkfd/kfd_process.c struct kfd_process *kfd_lookup_process_by_pasid(unsigned int pasid) pasid 913 drivers/gpu/drm/amd/amdkfd/kfd_process.c if (p->pasid == pasid) { pasid 1023 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_debug("Started evicting pasid %d\n", p->pasid); pasid 1032 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_debug("Finished evicting pasid %d\n", p->pasid); pasid 1034 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_err("Failed to evict queues of pasid %d\n", p->pasid); pasid 1049 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_debug("Started restoring pasid %d\n", p->pasid); pasid 1066 drivers/gpu/drm/amd/amdkfd/kfd_process.c p->pasid, PROCESS_BACK_OFF_TIME_MS); pasid 1075 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_debug("Finished restoring pasid %d\n", p->pasid); pasid 1077 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_err("Failed to restore queues of pasid %d\n", p->pasid); pasid 1091 drivers/gpu/drm/amd/amdkfd/kfd_process.c pr_err("Failed to suspend process %d\n", p->pasid); pasid 1108 drivers/gpu/drm/amd/amdkfd/kfd_process.c p->pasid); pasid 1159 drivers/gpu/drm/amd/amdkfd/kfd_process.c f2g->invalidate_tlbs(dev->kgd, pdd->process->pasid); pasid 1175 drivers/gpu/drm/amd/amdkfd/kfd_process.c p->lead_thread->tgid, p->pasid); pasid 57 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process->pasid); pasid 302 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process->pasid, type, retval); pasid 381 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process->pasid, pasid 249 drivers/gpu/drm/amd/include/kgd_kfd_interface.h int (*set_pasid_vmid_mapping)(struct kgd_dev *kgd, unsigned int pasid, pasid 307 drivers/gpu/drm/amd/include/kgd_kfd_interface.h int (*invalidate_tlbs)(struct kgd_dev *kgd, uint16_t pasid); pasid 24 drivers/gpu/drm/msm/adreno/adreno_gpu.c u32 pasid) pasid 98 drivers/gpu/drm/msm/adreno/adreno_gpu.c ret = qcom_mdt_load(dev, fw, fwname, pasid, pasid 105 drivers/gpu/drm/msm/adreno/adreno_gpu.c ret = qcom_mdt_load(dev, fw, newname, pasid, pasid 113 drivers/gpu/drm/msm/adreno/adreno_gpu.c ret = qcom_scm_pas_auth_and_reset(pasid); pasid 133 drivers/gpu/drm/msm/adreno/adreno_gpu.c int adreno_zap_shader_load(struct msm_gpu *gpu, u32 pasid) pasid 156 drivers/gpu/drm/msm/adreno/adreno_gpu.c return zap_shader_load_mdt(gpu, adreno_gpu->info->zapfw, pasid); pasid 254 drivers/gpu/drm/msm/adreno/adreno_gpu.h int adreno_zap_shader_load(struct msm_gpu *gpu, u32 pasid); pasid 561 drivers/iommu/amd_iommu.c int type, devid, pasid, flags, tag; pasid 569 drivers/iommu/amd_iommu.c pasid = (event[0] & EVENT_DOMID_MASK_HI) | pasid 585 drivers/iommu/amd_iommu.c amd_iommu_report_page_fault(devid, pasid, address, flags); pasid 593 drivers/iommu/amd_iommu.c pasid, address, flags); pasid 605 drivers/iommu/amd_iommu.c pasid, address, flags); pasid 623 drivers/iommu/amd_iommu.c pasid, address, flags); pasid 626 drivers/iommu/amd_iommu.c pasid = ((event[0] >> 16) & 0xFFFF) pasid 631 drivers/iommu/amd_iommu.c pasid, address, flags, tag); pasid 666 drivers/iommu/amd_iommu.c fault.pasid = PPR_PASID(raw[0]); pasid 957 drivers/iommu/amd_iommu.c static void build_inv_iommu_pasid(struct iommu_cmd *cmd, u16 domid, int pasid, pasid 964 drivers/iommu/amd_iommu.c cmd->data[0] = pasid; pasid 975 drivers/iommu/amd_iommu.c static void build_inv_iotlb_pasid(struct iommu_cmd *cmd, u16 devid, int pasid, pasid 983 drivers/iommu/amd_iommu.c cmd->data[0] |= ((pasid >> 8) & 0xff) << 16; pasid 986 drivers/iommu/amd_iommu.c cmd->data[1] |= (pasid & 0xff) << 16; pasid 995 drivers/iommu/amd_iommu.c static void build_complete_ppr(struct iommu_cmd *cmd, u16 devid, int pasid, pasid 1002 drivers/iommu/amd_iommu.c cmd->data[1] = pasid; pasid 3384 drivers/iommu/amd_iommu.c static int __flush_pasid(struct protection_domain *domain, int pasid, pasid 3394 drivers/iommu/amd_iommu.c build_inv_iommu_pasid(&cmd, domain->id, pasid, address, size); pasid 3427 drivers/iommu/amd_iommu.c build_inv_iotlb_pasid(&cmd, dev_data->devid, pasid, pasid 3445 drivers/iommu/amd_iommu.c static int __amd_iommu_flush_page(struct protection_domain *domain, int pasid, pasid 3448 drivers/iommu/amd_iommu.c return __flush_pasid(domain, pasid, address, false); pasid 3451 drivers/iommu/amd_iommu.c int amd_iommu_flush_page(struct iommu_domain *dom, int pasid, pasid 3459 drivers/iommu/amd_iommu.c ret = __amd_iommu_flush_page(domain, pasid, address); pasid 3466 drivers/iommu/amd_iommu.c static int __amd_iommu_flush_tlb(struct protection_domain *domain, int pasid) pasid 3468 drivers/iommu/amd_iommu.c return __flush_pasid(domain, pasid, CMD_INV_IOMMU_ALL_PAGES_ADDRESS, pasid 3472 drivers/iommu/amd_iommu.c int amd_iommu_flush_tlb(struct iommu_domain *dom, int pasid) pasid 3479 drivers/iommu/amd_iommu.c ret = __amd_iommu_flush_tlb(domain, pasid); pasid 3486 drivers/iommu/amd_iommu.c static u64 *__get_gcr3_pte(u64 *root, int level, int pasid, bool alloc) pasid 3493 drivers/iommu/amd_iommu.c index = (pasid >> (9 * level)) & 0x1ff; pasid 3518 drivers/iommu/amd_iommu.c static int __set_gcr3(struct protection_domain *domain, int pasid, pasid 3526 drivers/iommu/amd_iommu.c pte = __get_gcr3_pte(domain->gcr3_tbl, domain->glx, pasid, true); pasid 3532 drivers/iommu/amd_iommu.c return __amd_iommu_flush_tlb(domain, pasid); pasid 3535 drivers/iommu/amd_iommu.c static int __clear_gcr3(struct protection_domain *domain, int pasid) pasid 3542 drivers/iommu/amd_iommu.c pte = __get_gcr3_pte(domain->gcr3_tbl, domain->glx, pasid, false); pasid 3548 drivers/iommu/amd_iommu.c return __amd_iommu_flush_tlb(domain, pasid); pasid 3551 drivers/iommu/amd_iommu.c int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid, pasid 3559 drivers/iommu/amd_iommu.c ret = __set_gcr3(domain, pasid, cr3); pasid 3566 drivers/iommu/amd_iommu.c int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid) pasid 3573 drivers/iommu/amd_iommu.c ret = __clear_gcr3(domain, pasid); pasid 3580 drivers/iommu/amd_iommu.c int amd_iommu_complete_ppr(struct pci_dev *pdev, int pasid, pasid 3590 drivers/iommu/amd_iommu.c build_complete_ppr(&cmd, dev_data->devid, pasid, status, pasid 46 drivers/iommu/amd_iommu_proto.h extern int amd_iommu_flush_page(struct iommu_domain *dom, int pasid, pasid 48 drivers/iommu/amd_iommu_proto.h extern int amd_iommu_flush_tlb(struct iommu_domain *dom, int pasid); pasid 49 drivers/iommu/amd_iommu_proto.h extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid, pasid 51 drivers/iommu/amd_iommu_proto.h extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid); pasid 67 drivers/iommu/amd_iommu_proto.h extern int amd_iommu_complete_ppr(struct pci_dev *pdev, int pasid, pasid 447 drivers/iommu/amd_iommu_types.h u32 pasid; /* Address space identifier */ pasid 45 drivers/iommu/amd_iommu_v2.c int pasid; /* PASID index */ pasid 75 drivers/iommu/amd_iommu_v2.c u16 pasid; pasid 155 drivers/iommu/amd_iommu_v2.c int pasid, bool alloc) pasid 165 drivers/iommu/amd_iommu_v2.c index = (pasid >> (9 * level)) & 0x1ff; pasid 189 drivers/iommu/amd_iommu_v2.c int pasid) pasid 196 drivers/iommu/amd_iommu_v2.c ptr = __get_pasid_state_ptr(dev_state, pasid, true); pasid 216 drivers/iommu/amd_iommu_v2.c static void clear_pasid_state(struct device_state *dev_state, int pasid) pasid 222 drivers/iommu/amd_iommu_v2.c ptr = __get_pasid_state_ptr(dev_state, pasid, true); pasid 234 drivers/iommu/amd_iommu_v2.c int pasid) pasid 240 drivers/iommu/amd_iommu_v2.c ptr = __get_pasid_state_ptr(dev_state, pasid, false); pasid 289 drivers/iommu/amd_iommu_v2.c amd_iommu_domain_clear_gcr3(domain, pasid_state->pasid); pasid 372 drivers/iommu/amd_iommu_v2.c amd_iommu_flush_page(dev_state->domain, pasid_state->pasid, pasid 375 drivers/iommu/amd_iommu_v2.c amd_iommu_flush_tlb(dev_state->domain, pasid_state->pasid); pasid 391 drivers/iommu/amd_iommu_v2.c dev_state->inv_ctx_cb(dev_state->pdev, pasid_state->pasid); pasid 420 drivers/iommu/amd_iommu_v2.c amd_iommu_complete_ppr(dev_state->pdev, pasid_state->pasid, pasid 438 drivers/iommu/amd_iommu_v2.c fault->pasid, pasid 543 drivers/iommu/amd_iommu_v2.c amd_iommu_complete_ppr(pdev, iommu_fault->pasid, pasid 552 drivers/iommu/amd_iommu_v2.c pasid_state = get_pasid_state(dev_state, iommu_fault->pasid); pasid 555 drivers/iommu/amd_iommu_v2.c amd_iommu_complete_ppr(dev_state->pdev, iommu_fault->pasid, pasid 578 drivers/iommu/amd_iommu_v2.c fault->pasid = iommu_fault->pasid; pasid 601 drivers/iommu/amd_iommu_v2.c int amd_iommu_bind_pasid(struct pci_dev *pdev, int pasid, pasid 622 drivers/iommu/amd_iommu_v2.c if (pasid < 0 || pasid >= dev_state->max_pasids) pasid 638 drivers/iommu/amd_iommu_v2.c pasid_state->pasid = pasid; pasid 648 drivers/iommu/amd_iommu_v2.c ret = set_pasid_state(dev_state, pasid_state, pasid); pasid 652 drivers/iommu/amd_iommu_v2.c ret = amd_iommu_domain_set_gcr3(dev_state->domain, pasid, pasid 670 drivers/iommu/amd_iommu_v2.c clear_pasid_state(dev_state, pasid); pasid 686 drivers/iommu/amd_iommu_v2.c void amd_iommu_unbind_pasid(struct pci_dev *pdev, int pasid) pasid 702 drivers/iommu/amd_iommu_v2.c if (pasid < 0 || pasid >= dev_state->max_pasids) pasid 705 drivers/iommu/amd_iommu_v2.c pasid_state = get_pasid_state(dev_state, pasid); pasid 715 drivers/iommu/amd_iommu_v2.c clear_pasid_state(dev_state, pasid_state->pasid); pasid 1685 drivers/iommu/dmar.c u8 fault_reason, int pasid, u16 source_id, pasid 1702 drivers/iommu/dmar.c PCI_FUNC(source_id & 0xFF), pasid, addr, pasid 1735 drivers/iommu/dmar.c int type, pasid; pasid 1749 drivers/iommu/dmar.c pasid = dma_frcd_pasid_value(data); pasid 1769 drivers/iommu/dmar.c pasid_present ? pasid : -1, pasid 22 drivers/iommu/intel-iommu-debugfs.c u32 pasid; pasid 175 drivers/iommu/intel-iommu-debugfs.c tbl_wlk->pasid, tbl_wlk->pasid_tbl_entry->val[2], pasid 189 drivers/iommu/intel-iommu-debugfs.c tbl_wlk->pasid = (dir_idx << PASID_PDE_SHIFT) + tbl_idx; pasid 1946 drivers/iommu/intel-iommu.c context_set_sm_rid2pasid(struct context_entry *context, unsigned long pasid) pasid 1948 drivers/iommu/intel-iommu.c context->hi |= pasid & ((1 << 20) - 1); pasid 5269 drivers/iommu/intel-iommu.c int pasid; pasid 5271 drivers/iommu/intel-iommu.c pasid = intel_pasid_alloc_id(domain, PASID_MIN, pasid 5274 drivers/iommu/intel-iommu.c if (pasid <= 0) { pasid 5278 drivers/iommu/intel-iommu.c domain->default_pasid = pasid; pasid 48 drivers/iommu/intel-pasid.c void intel_pasid_free_id(int pasid) pasid 51 drivers/iommu/intel-pasid.c idr_remove(&pasid_idr, pasid); pasid 55 drivers/iommu/intel-pasid.c void *intel_pasid_lookup_id(int pasid) pasid 60 drivers/iommu/intel-pasid.c p = idr_find(&pasid_idr, pasid); pasid 224 drivers/iommu/intel-pasid.c struct pasid_entry *intel_pasid_get_entry(struct device *dev, int pasid) pasid 233 drivers/iommu/intel-pasid.c if (WARN_ON(!pasid_table || pasid < 0 || pasid 234 drivers/iommu/intel-pasid.c pasid >= intel_pasid_get_dev_max_id(dev))) pasid 239 drivers/iommu/intel-pasid.c dir_index = pasid >> PASID_PDE_SHIFT; pasid 240 drivers/iommu/intel-pasid.c index = pasid & PASID_PTE_MASK; pasid 274 drivers/iommu/intel-pasid.c static void intel_pasid_clear_entry(struct device *dev, int pasid) pasid 278 drivers/iommu/intel-pasid.c pe = intel_pasid_get_entry(dev, pasid); pasid 400 drivers/iommu/intel-pasid.c u16 did, int pasid) pasid 404 drivers/iommu/intel-pasid.c desc.qw0 = QI_PC_DID(did) | QI_PC_PASID_SEL | QI_PC_PASID(pasid); pasid 413 drivers/iommu/intel-pasid.c iotlb_invalidation_with_pasid(struct intel_iommu *iommu, u16 did, u32 pasid) pasid 417 drivers/iommu/intel-pasid.c desc.qw0 = QI_EIOTLB_PASID(pasid) | QI_EIOTLB_DID(did) | pasid 428 drivers/iommu/intel-pasid.c struct device *dev, int pasid) pasid 445 drivers/iommu/intel-pasid.c struct device *dev, int pasid) pasid 450 drivers/iommu/intel-pasid.c pte = intel_pasid_get_entry(dev, pasid); pasid 455 drivers/iommu/intel-pasid.c intel_pasid_clear_entry(dev, pasid); pasid 460 drivers/iommu/intel-pasid.c pasid_cache_invalidation_with_pasid(iommu, did, pasid); pasid 461 drivers/iommu/intel-pasid.c iotlb_invalidation_with_pasid(iommu, did, pasid); pasid 465 drivers/iommu/intel-pasid.c devtlb_invalidation_with_pasid(iommu, dev, pasid); pasid 474 drivers/iommu/intel-pasid.c int pasid, u16 did, int flags) pasid 484 drivers/iommu/intel-pasid.c pte = intel_pasid_get_entry(dev, pasid); pasid 526 drivers/iommu/intel-pasid.c pasid_cache_invalidation_with_pasid(iommu, did, pasid); pasid 527 drivers/iommu/intel-pasid.c iotlb_invalidation_with_pasid(iommu, did, pasid); pasid 540 drivers/iommu/intel-pasid.c struct device *dev, int pasid) pasid 574 drivers/iommu/intel-pasid.c pte = intel_pasid_get_entry(dev, pasid); pasid 576 drivers/iommu/intel-pasid.c dev_err(dev, "Failed to get pasid entry of PASID %d\n", pasid); pasid 599 drivers/iommu/intel-pasid.c pasid_cache_invalidation_with_pasid(iommu, did, pasid); pasid 600 drivers/iommu/intel-pasid.c iotlb_invalidation_with_pasid(iommu, did, pasid); pasid 613 drivers/iommu/intel-pasid.c struct device *dev, int pasid) pasid 618 drivers/iommu/intel-pasid.c pte = intel_pasid_get_entry(dev, pasid); pasid 620 drivers/iommu/intel-pasid.c dev_err(dev, "Failed to get pasid entry of PASID %d\n", pasid); pasid 642 drivers/iommu/intel-pasid.c pasid_cache_invalidation_with_pasid(iommu, did, pasid); pasid 643 drivers/iommu/intel-pasid.c iotlb_invalidation_with_pasid(iommu, did, pasid); pasid 80 drivers/iommu/intel-pasid.h void intel_pasid_free_id(int pasid); pasid 81 drivers/iommu/intel-pasid.h void *intel_pasid_lookup_id(int pasid); pasid 86 drivers/iommu/intel-pasid.h struct pasid_entry *intel_pasid_get_entry(struct device *dev, int pasid); pasid 89 drivers/iommu/intel-pasid.h int pasid, u16 did, int flags); pasid 92 drivers/iommu/intel-pasid.h struct device *dev, int pasid); pasid 95 drivers/iommu/intel-pasid.h struct device *dev, int pasid); pasid 97 drivers/iommu/intel-pasid.h struct device *dev, int pasid); pasid 108 drivers/iommu/intel-svm.c desc.qw0 = QI_EIOTLB_PASID(svm->pasid) | pasid 116 drivers/iommu/intel-svm.c desc.qw0 = QI_EIOTLB_PASID(svm->pasid) | pasid 129 drivers/iommu/intel-svm.c desc.qw0 = QI_DEV_EIOTLB_PASID(svm->pasid) | pasid 195 drivers/iommu/intel-svm.c intel_pasid_tear_down_entry(svm->iommu, sdev->dev, svm->pasid); pasid 210 drivers/iommu/intel-svm.c int intel_svm_bind_mm(struct device *dev, int *pasid, int flags, struct svm_dev_ops *ops) pasid 233 drivers/iommu/intel-svm.c } else if (pasid) { pasid 239 drivers/iommu/intel-svm.c if (pasid && !(flags & SVM_FLAG_PRIVATE_PASID)) { pasid 247 drivers/iommu/intel-svm.c if (svm->pasid >= pasid_max) { pasid 250 drivers/iommu/intel-svm.c svm->pasid); pasid 278 drivers/iommu/intel-svm.c if (ret || !pasid) { pasid 326 drivers/iommu/intel-svm.c svm->pasid = ret; pasid 336 drivers/iommu/intel-svm.c intel_pasid_free_id(svm->pasid); pasid 346 drivers/iommu/intel-svm.c svm->pasid, FLPT_DEFAULT_DID, pasid 352 drivers/iommu/intel-svm.c intel_pasid_free_id(svm->pasid); pasid 367 drivers/iommu/intel-svm.c svm->pasid, FLPT_DEFAULT_DID, pasid 378 drivers/iommu/intel-svm.c *pasid = svm->pasid; pasid 388 drivers/iommu/intel-svm.c int intel_svm_unbind_mm(struct device *dev, int pasid) pasid 400 drivers/iommu/intel-svm.c svm = intel_pasid_lookup_id(pasid); pasid 417 drivers/iommu/intel-svm.c intel_pasid_tear_down_entry(iommu, dev, svm->pasid); pasid 422 drivers/iommu/intel-svm.c intel_pasid_free_id(svm->pasid); pasid 446 drivers/iommu/intel-svm.c int intel_svm_is_pasid_valid(struct device *dev, int pasid) pasid 457 drivers/iommu/intel-svm.c svm = intel_pasid_lookup_id(pasid); pasid 485 drivers/iommu/intel-svm.c u64 pasid:20; pasid 565 drivers/iommu/intel-svm.c if (!svm || svm->pasid != req->pasid) { pasid 567 drivers/iommu/intel-svm.c svm = intel_pasid_lookup_id(req->pasid); pasid 575 drivers/iommu/intel-svm.c iommu->name, req->pasid, ((unsigned long long *)req)[0], pasid 630 drivers/iommu/intel-svm.c sdev->ops->fault_cb(sdev->dev, req->pasid, req->addr, pasid 646 drivers/iommu/intel-svm.c resp.qw0 = QI_PGRP_PASID(req->pasid) | pasid 1116 drivers/iommu/iommu.c if ((pasid_valid && prm->pasid != msg->pasid) || pasid 136 drivers/misc/ocxl/afu_irq.c trace_ocxl_afu_irq_alloc(ctx->pasid, irq->id, irq->virq, irq->hw_irq); pasid 156 drivers/misc/ocxl/afu_irq.c trace_ocxl_afu_irq_free(ctx->pasid, irq->id); pasid 809 drivers/misc/ocxl/config.c int ocxl_config_terminate_pasid(struct pci_dev *dev, int afu_control, int pasid) pasid 819 drivers/misc/ocxl/config.c pasid); pasid 824 drivers/misc/ocxl/config.c val |= pasid & OCXL_DVSEC_PASID_MASK; pasid 837 drivers/misc/ocxl/config.c pasid); pasid 10 drivers/misc/ocxl/context.c int pasid; pasid 19 drivers/misc/ocxl/context.c pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base, pasid 21 drivers/misc/ocxl/context.c if (pasid < 0) { pasid 24 drivers/misc/ocxl/context.c return pasid; pasid 29 drivers/misc/ocxl/context.c ctx->pasid = pasid; pasid 84 drivers/misc/ocxl/context.c rc = ocxl_link_add_pe(ctx->afu->fn->link, ctx->pasid, pidr, ctx->tidr, pasid 127 drivers/misc/ocxl/context.c pasid_off = ctx->pasid - ctx->afu->pasid_base; pasid 146 drivers/misc/ocxl/context.c ctx->pasid, vmf->address, offset); pasid 229 drivers/misc/ocxl/context.c rc = ocxl_config_terminate_pasid(dev, afu_control_pos, ctx->pasid); pasid 231 drivers/misc/ocxl/context.c trace_ocxl_terminate_pasid(ctx->pasid, rc); pasid 249 drivers/misc/ocxl/context.c rc = ocxl_link_remove_pe(ctx->afu->fn->link, ctx->pasid); pasid 285 drivers/misc/ocxl/context.c idr_remove(&ctx->afu->contexts_idr, ctx->pasid); pasid 79 drivers/misc/ocxl/file.c pr_debug("%s for context %d\n", __func__, ctx->pasid); pasid 104 drivers/misc/ocxl/file.c arg.pasid = ctx->pasid; pasid 141 drivers/misc/ocxl/file.c ctx->pasid, ctx->tidr); pasid 212 drivers/misc/ocxl/file.c pr_debug("%s for context %d, command %s\n", __func__, ctx->pasid, pasid 297 drivers/misc/ocxl/file.c pr_debug("%s for context %d\n", __func__, ctx->pasid); pasid 330 drivers/misc/ocxl/file.c pr_debug("%s for context %d\n", __func__, ctx->pasid); pasid 495 drivers/misc/ocxl/link.c int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, pasid 507 drivers/misc/ocxl/link.c if (pasid > SPA_PASID_MAX) pasid 511 drivers/misc/ocxl/link.c pe_handle = pasid & SPA_PE_MASK; pasid 568 drivers/misc/ocxl/link.c trace_ocxl_context_add(current->pid, spa->spa_mem, pasid, pidr, tidr); pasid 575 drivers/misc/ocxl/link.c int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) pasid 582 drivers/misc/ocxl/link.c if (pasid > SPA_PASID_MAX) pasid 585 drivers/misc/ocxl/link.c pe_handle = pasid & SPA_PE_MASK; pasid 611 drivers/misc/ocxl/link.c int ocxl_link_remove_pe(void *link_handle, int pasid) pasid 619 drivers/misc/ocxl/link.c if (pasid > SPA_PASID_MAX) pasid 640 drivers/misc/ocxl/link.c pe_handle = pasid & SPA_PE_MASK; pasid 650 drivers/misc/ocxl/link.c trace_ocxl_context_remove(current->pid, spa->spa_mem, pasid, pasid 72 drivers/misc/ocxl/ocxl_internal.h int pasid; pasid 131 drivers/misc/ocxl/ocxl_internal.h int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid); pasid 12 drivers/misc/ocxl/trace.h TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr), pasid 13 drivers/misc/ocxl/trace.h TP_ARGS(pid, spa, pasid, pidr, tidr), pasid 18 drivers/misc/ocxl/trace.h __field(int, pasid) pasid 26 drivers/misc/ocxl/trace.h __entry->pasid = pasid; pasid 34 drivers/misc/ocxl/trace.h __entry->pasid, pasid 41 drivers/misc/ocxl/trace.h TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr), pasid 42 drivers/misc/ocxl/trace.h TP_ARGS(pid, spa, pasid, pidr, tidr) pasid 46 drivers/misc/ocxl/trace.h TP_PROTO(pid_t pid, void *spa, int pasid, u32 pidr, u32 tidr), pasid 47 drivers/misc/ocxl/trace.h TP_ARGS(pid, spa, pasid, pidr, tidr) pasid 51 drivers/misc/ocxl/trace.h TP_PROTO(int pasid, int rc), pasid 52 drivers/misc/ocxl/trace.h TP_ARGS(pasid, rc), pasid 55 drivers/misc/ocxl/trace.h __field(int, pasid) pasid 60 drivers/misc/ocxl/trace.h __entry->pasid = pasid; pasid 65 drivers/misc/ocxl/trace.h __entry->pasid, pasid 110 drivers/misc/ocxl/trace.h TP_PROTO(int pasid, int irq_id, unsigned int virq, int hw_irq), pasid 111 drivers/misc/ocxl/trace.h TP_ARGS(pasid, irq_id, virq, hw_irq), pasid 114 drivers/misc/ocxl/trace.h __field(int, pasid) pasid 121 drivers/misc/ocxl/trace.h __entry->pasid = pasid; pasid 128 drivers/misc/ocxl/trace.h __entry->pasid, pasid 136 drivers/misc/ocxl/trace.h TP_PROTO(int pasid, int irq_id), pasid 137 drivers/misc/ocxl/trace.h TP_ARGS(pasid, irq_id), pasid 140 drivers/misc/ocxl/trace.h __field(int, pasid) pasid 145 drivers/misc/ocxl/trace.h __entry->pasid = pasid; pasid 150 drivers/misc/ocxl/trace.h __entry->pasid, pasid 79 include/linux/amd-iommu.h extern int amd_iommu_bind_pasid(struct pci_dev *pdev, int pasid, pasid 91 include/linux/amd-iommu.h extern void amd_iommu_unbind_pasid(struct pci_dev *pdev, int pasid); pasid 117 include/linux/amd-iommu.h int pasid, pasid 169 include/linux/amd-iommu.h typedef void (*amd_iommu_invalidate_ctx)(struct pci_dev *pdev, int pasid); pasid 346 include/linux/intel-iommu.h #define QI_PC_PASID(pasid) (((u64)pasid) << 32) pasid 356 include/linux/intel-iommu.h #define QI_EIOTLB_PASID(pasid) (((u64)pasid) << 32) pasid 375 include/linux/intel-iommu.h #define QI_PGRP_PASID(pasid) (((u64)(pasid)) << 32) pasid 685 include/linux/intel-iommu.h int pasid; pasid 14 include/linux/intel-svm.h void (*fault_cb)(struct device *dev, int pasid, u64 address, pasid 77 include/linux/intel-svm.h extern int intel_svm_bind_mm(struct device *dev, int *pasid, int flags, pasid 95 include/linux/intel-svm.h extern int intel_svm_unbind_mm(struct device *dev, int pasid); pasid 110 include/linux/intel-svm.h extern int intel_svm_is_pasid_valid(struct device *dev, int pasid); pasid 114 include/linux/intel-svm.h static inline int intel_svm_bind_mm(struct device *dev, int *pasid, pasid 120 include/linux/intel-svm.h static inline int intel_svm_unbind_mm(struct device *dev, int pasid) pasid 125 include/linux/intel-svm.h static inline int intel_svm_is_pasid_valid(struct device *dev, int pasid) pasid 432 include/misc/ocxl.h int afu_control_offset, int pasid); pasid 469 include/misc/ocxl.h int ocxl_link_add_pe(void *link_handle, int pasid, u32 pidr, u32 tidr, pasid 477 include/misc/ocxl.h int ocxl_link_remove_pe(void *link_handle, int pasid); pasid 75 include/uapi/linux/iommu.h __u32 pasid; pasid 96 include/uapi/linux/iommu.h __u32 pasid; pasid 150 include/uapi/linux/iommu.h __u32 pasid; pasid 41 include/uapi/misc/ocxl.h __u32 pasid; /* PASID assigned to the current context */