Searched refs:pasid (Results 1 - 25 of 120) sorted by path

12345

/linux-master/drivers/misc/ocxl/
H A DMakefile4 ocxl-y += main.o pci.o config.o file.o pasid.o mmio.o
/linux-master/include/uapi/misc/
H A Docxl.h41 __u32 pasid; /* PASID assigned to the current context */ member in struct:ocxl_ioctl_metadata
/linux-master/arch/csky/include/asm/
H A Dasid.h33 void asid_new_context(struct asid_info *info, atomic64_t *pasid,
39 * @pasid: Pointer to the current ASID batch
43 atomic64_t *pasid, unsigned int cpu,
48 asid = atomic64_read(pasid);
71 asid_new_context(info, pasid, cpu, mm);
42 asid_check_context(struct asid_info *info, atomic64_t *pasid, unsigned int cpu, struct mm_struct *mm) argument
/linux-master/arch/csky/mm/
H A Dasid.c79 static u64 new_context(struct asid_info *info, atomic64_t *pasid, argument
83 u64 asid = atomic64_read(pasid);
133 * @pasid: Pointer to the current ASID batch allocated. It will be updated
137 void asid_new_context(struct asid_info *info, atomic64_t *pasid, argument
145 asid = atomic64_read(pasid);
147 asid = new_context(info, pasid, mm);
148 atomic64_set(pasid, asid);
/linux-master/arch/x86/events/amd/
H A Diommu.c54 PMU_FORMAT_ATTR(pasid, "config:40-59");
/linux-master/arch/x86/include/asm/fpu/
H A Dtypes.h311 u64 pasid; member in struct:ia32_pasid_state
/linux-master/arch/x86/kernel/
H A Dtraps.c571 u32 pasid; local
596 pasid = mm_get_enqcmd_pasid(current->mm);
605 wrmsrl(MSR_IA32_PASID, pasid | MSR_IA32_PASID_VALID);
/linux-master/drivers/crypto/hisilicon/
H A Dqm.c1911 static int qm_sq_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) argument
1928 sqc.pasid = cpu_to_le16(pasid);
1937 static int qm_cq_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) argument
1958 cqc.pasid = cpu_to_le16(pasid);
1966 static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) argument
1972 ret = qm_sq_ctx_cfg(qp, qp_id, pasid);
1976 return qm_cq_ctx_cfg(qp, qp_id, pasid);
1984 u32 pasid local
[all...]
H A Dqm_common.h34 __le16 pasid; member in struct:qm_sqc
49 __le16 pasid; member in struct:qm_cqc
/linux-master/drivers/dma/idxd/
H A Dcdev.c45 unsigned int pasid; member in struct:idxd_user_context
55 static void idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid);
132 idxd_device_drain_pasid(idxd, ctx->pasid);
135 /* The wq disable in the disable pasid function will drain the wq */
138 dev_err(dev, "wq disable pasid failed.\n");
145 idxd_cdev_evl_drain_pasid(wq, ctx->pasid);
197 ptr = xa_cmpxchg(&wq->upasid_xa, ctx->pasid, ctx, NULL, GFP_KERNEL);
199 dev_warn(&wq->idxd->pdev->dev, "xarray cmpxchg failed for pasid %u\n",
200 ctx->pasid);
204 void idxd_user_counter_increment(struct idxd_wq *wq, u32 pasid, in argument
229 unsigned int pasid; local
333 idxd_cdev_evl_drain_pasid(struct idxd_wq *wq, u32 pasid) argument
647 idxd_copy_cr(struct idxd_wq *wq, ioasid_t pasid, unsigned long addr, void *cr, int len) argument
[all...]
H A Ddebugfs.c35 "wq idx %u op %#x pasid %u batch idx %u\n"
40 entry->e.pasid, entry->e.batch_idx, entry->e.fault_addr);
H A Ddevice.c304 static void __idxd_wq_set_pasid_locked(struct idxd_wq *wq, int pasid) argument
314 wqcfg.pasid = pasid;
320 int idxd_wq_set_pasid(struct idxd_wq *wq, int pasid) argument
328 __idxd_wq_set_pasid_locked(wq, pasid);
352 wqcfg.pasid = 0;
585 void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid) argument
590 operand = pasid;
593 dev_dbg(dev, "pasid %d drained\n", pasid);
1430 u32 pasid = wq_dedicated(wq) ? idxd->pasid : 0; local
[all...]
H A Didxd.h98 ioasid_t pasid; member in struct:idxd_irq_entry
339 unsigned int pasid; member in struct:idxd_device
754 void idxd_device_drain_pasid(struct idxd_device *idxd, int pasid);
771 int idxd_wq_set_pasid(struct idxd_wq *wq, int pasid);
794 int idxd_copy_cr(struct idxd_wq *wq, ioasid_t pasid, unsigned long addr,
796 void idxd_user_counter_increment(struct idxd_wq *wq, u32 pasid, int index);
H A Dinit.c114 ie->pasid = IOMMU_PASID_INVALID;
566 ioasid_t pasid; local
577 pasid = iommu_alloc_global_pasid(dev);
578 if (pasid == IOMMU_PASID_INVALID)
585 ret = iommu_attach_device_pasid(domain, dev, pasid);
587 dev_err(dev, "failed to attach device pasid %d, domain type %d",
588 pasid, domain->type);
589 iommu_free_global_pasid(pasid);
595 idxd->pasid = pasid;
[all...]
H A Dirq.c85 if (ie->pasid != IOMMU_PASID_INVALID)
86 desc.pasid = ie->pasid;
243 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULTS);
255 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULTS);
273 copied = idxd_copy_cr(wq, entry_head->pasid, entry_head->fault_addr,
287 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULT_FAILS);
296 idxd_user_counter_increment(wq, entry_head->pasid, COUNTER_FAULT_FAILS);
H A Dregisters.h273 u64 pasid:20; member in struct:sw_err_reg::__anon14
317 u64 pasid:20; member in struct:evlcfg_reg::__anon16
332 u32 pasid:20; member in struct:msix_perm::__anon17
377 u32 pasid:20; member in struct:wqcfg::__anon19
597 u64 pasid:20; member in struct:__evl_entry
H A Dsubmit.c22 desc->hw->pasid = idxd->pasid;
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd.h295 struct amdgpu_vm *avm, u32 pasid);
H A Damdgpu_amdkfd_gc_9_4_3.c224 u32 pasid, unsigned int vmid, uint32_t xcc_inst)
239 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid |
223 kgd_gfx_v9_4_3_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, unsigned int vmid, uint32_t xcc_inst) argument
H A Damdgpu_amdkfd_gfx_v10.c95 static int kgd_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument
105 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid |
108 pr_debug("pasid 0x%x vmid %d, reg value %x\n", pasid, vmid, pasid_mapping);
128 /* Mapping vmid to pasid also for IH block */
H A Damdgpu_amdkfd_gfx_v10_3.c96 static int set_pasid_vmid_mapping_v10_3(struct amdgpu_device *adev, unsigned int pasid, argument
99 uint32_t value = pasid << IH_VMID_0_LUT__PASID__SHIFT;
101 /* Mapping vmid to pasid also for IH block */
102 pr_debug("mapping vmid %d -> pasid %d in IH block for GFX client\n",
103 vmid, pasid);
H A Damdgpu_amdkfd_gfx_v11.c92 static int set_pasid_vmid_mapping_v11(struct amdgpu_device *adev, unsigned int pasid, argument
95 uint32_t value = pasid << IH_VMID_0_LUT__PASID__SHIFT;
97 /* Mapping vmid to pasid also for IH block */
98 pr_debug("mapping vmid %d -> pasid %d in IH block for GFX client\n",
99 vmid, pasid);
H A Damdgpu_amdkfd_gfx_v7.c93 static int kgd_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument
102 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid |
111 /* Mapping vmid to pasid also for IH block */
H A Damdgpu_amdkfd_gfx_v8.c87 static int kgd_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument
97 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid |
106 /* Mapping vmid to pasid also for IH block */
H A Damdgpu_amdkfd_gfx_v9.c101 int kgd_gfx_v9_set_pasid_vmid_mapping(struct amdgpu_device *adev, u32 pasid, argument
111 uint32_t pasid_mapping = (pasid == 0) ? 0 : (uint32_t)pasid |
133 /* Mapping vmid to pasid also for IH block */
150 /* Mapping vmid to pasid also for IH block */
980 * process whose pasid is provided as a parameter. The process could have ZERO
984 * @pasid: Identifies the process for which this query call is invoked
986 * belong to process with given pasid
1017 * Determine if VMID from above step maps to pasid provided as parameter. If
1018 * it matches agrregate the wave count. That the VMID will not match pasid i
1024 kgd_gfx_v9_get_cu_occupancy(struct amdgpu_device *adev, int pasid, int *pasid_wave_cnt, int *max_waves_per_cu, uint32_t inst) argument
[all...]

Completed in 325 milliseconds

12345