Lines Matching refs:protection_domain
82 static int domain_enable_v2(struct protection_domain *domain, int pasids);
180 static struct protection_domain *to_pdomain(struct iommu_domain *dom) in to_pdomain()
182 return container_of(dom, struct protection_domain, domain); in to_pdomain()
1340 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages()
1371 static void domain_flush_pages(struct protection_domain *domain, in domain_flush_pages()
1415 void amd_iommu_domain_flush_tlb_pde(struct protection_domain *domain) in amd_iommu_domain_flush_tlb_pde()
1420 void amd_iommu_domain_flush_complete(struct protection_domain *domain) in amd_iommu_domain_flush_complete()
1437 static void domain_flush_np_cache(struct protection_domain *domain, in domain_flush_np_cache()
1454 static void domain_flush_devices(struct protection_domain *domain) in domain_flush_devices()
1526 static void free_gcr3_table(struct protection_domain *domain) in free_gcr3_table()
1539 struct protection_domain *domain, bool ats, bool ppr) in set_dte_entry()
1633 struct protection_domain *domain) in do_attach()
1665 struct protection_domain *domain = dev_data->domain; in do_detach()
1737 struct protection_domain *domain) in attach_device()
1814 struct protection_domain *domain; in detach_device()
1924 static void update_device_table(struct protection_domain *domain) in update_device_table()
1939 void amd_iommu_update_and_flush_device_table(struct protection_domain *domain) in amd_iommu_update_and_flush_device_table()
1945 void amd_iommu_domain_update(struct protection_domain *domain) in amd_iommu_domain_update()
1965 static void cleanup_domain(struct protection_domain *domain) in cleanup_domain()
1982 static void protection_domain_free(struct protection_domain *domain) in protection_domain_free()
1996 static int protection_domain_init_v1(struct protection_domain *domain, int mode) in protection_domain_init_v1()
2021 static int protection_domain_init_v2(struct protection_domain *domain) in protection_domain_init_v2()
2039 static struct protection_domain *protection_domain_alloc(unsigned int type) in protection_domain_alloc()
2042 struct protection_domain *domain; in protection_domain_alloc()
2090 struct protection_domain *domain; in amd_iommu_domain_alloc()
2112 struct protection_domain *domain; in amd_iommu_domain_free()
2158 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_attach_device()
2195 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_iotlb_sync_map()
2206 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_map_pages()
2253 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_unmap_pages()
2272 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_iova_to_phys()
2367 struct protection_domain *dom = to_pdomain(domain); in amd_iommu_flush_iotlb_all()
2379 struct protection_domain *dom = to_pdomain(domain); in amd_iommu_iotlb_sync()
2463 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_direct_map()
2476 static int domain_enable_v2(struct protection_domain *domain, int pasids) in domain_enable_v2()
2501 struct protection_domain *pdom = to_pdomain(dom); in amd_iommu_domain_enable_v2()
2525 static int __flush_pasid(struct protection_domain *domain, u32 pasid, in __flush_pasid()
2587 static int __amd_iommu_flush_page(struct protection_domain *domain, u32 pasid, in __amd_iommu_flush_page()
2596 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_page()
2608 static int __amd_iommu_flush_tlb(struct protection_domain *domain, u32 pasid) in __amd_iommu_flush_tlb()
2616 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_tlb()
2660 static int __set_gcr3(struct protection_domain *domain, u32 pasid, in __set_gcr3()
2677 static int __clear_gcr3(struct protection_domain *domain, u32 pasid) in __clear_gcr3()
2696 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_set_gcr3()
2710 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_clear_gcr3()