Home
last modified time | relevance | path

Searched refs:pasid (Results 1 – 4 of 4) sorted by relevance

/drivers/iommu/
Damd_iommu_v2.c53 int pasid; /* PASID index */ member
78 u16 pasid; member
101 static void unbind_pasid(struct device_state *dev_state, int pasid);
186 int pasid, bool alloc) in __get_pasid_state_ptr() argument
196 index = (pasid >> (9 * level)) & 0x1ff; in __get_pasid_state_ptr()
220 int pasid) in set_pasid_state() argument
227 ptr = __get_pasid_state_ptr(dev_state, pasid, true); in set_pasid_state()
247 static void clear_pasid_state(struct device_state *dev_state, int pasid) in clear_pasid_state() argument
253 ptr = __get_pasid_state_ptr(dev_state, pasid, true); in clear_pasid_state()
265 int pasid) in get_pasid_state() argument
[all …]
Damd_iommu_proto.h51 extern int amd_iommu_flush_page(struct iommu_domain *dom, int pasid,
53 extern int amd_iommu_flush_tlb(struct iommu_domain *dom, int pasid);
54 extern int amd_iommu_domain_set_gcr3(struct iommu_domain *dom, int pasid,
56 extern int amd_iommu_domain_clear_gcr3(struct iommu_domain *dom, int pasid);
63 extern int amd_iommu_complete_ppr(struct pci_dev *pdev, int pasid,
Damd_iommu.c723 fault.pasid = PPR_PASID(raw[0]); in iommu_handle_ppr_entry()
944 static void build_inv_iommu_pasid(struct iommu_cmd *cmd, u16 domid, int pasid, in build_inv_iommu_pasid() argument
951 cmd->data[0] = pasid & PASID_MASK; in build_inv_iommu_pasid()
962 static void build_inv_iotlb_pasid(struct iommu_cmd *cmd, u16 devid, int pasid, in build_inv_iotlb_pasid() argument
970 cmd->data[0] |= (pasid & 0xff) << 16; in build_inv_iotlb_pasid()
973 cmd->data[1] |= ((pasid >> 8) & 0xfff) << 16; in build_inv_iotlb_pasid()
982 static void build_complete_ppr(struct iommu_cmd *cmd, u16 devid, int pasid, in build_complete_ppr() argument
989 cmd->data[1] = pasid & PASID_MASK; in build_complete_ppr()
3570 static int __flush_pasid(struct protection_domain *domain, int pasid, in __flush_pasid() argument
3580 build_inv_iommu_pasid(&cmd, domain->id, pasid, address, size); in __flush_pasid()
[all …]
Damd_iommu_types.h379 u32 pasid; /* Address space identifier */ member