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()
1358 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages()
1389 static void domain_flush_pages(struct protection_domain *domain, in domain_flush_pages()
1433 void amd_iommu_domain_flush_tlb_pde(struct protection_domain *domain) in amd_iommu_domain_flush_tlb_pde()
1438 void amd_iommu_domain_flush_complete(struct protection_domain *domain) in amd_iommu_domain_flush_complete()
1455 static void domain_flush_np_cache(struct protection_domain *domain, in domain_flush_np_cache()
1472 static void domain_flush_devices(struct protection_domain *domain) in domain_flush_devices()
1544 static void free_gcr3_table(struct protection_domain *domain) in free_gcr3_table()
1557 struct protection_domain *domain, bool ats, bool ppr) in set_dte_entry()
1651 struct protection_domain *domain) in do_attach()
1683 struct protection_domain *domain = dev_data->domain; in do_detach()
1757 struct protection_domain *domain) in attach_device()
1834 struct protection_domain *domain; in detach_device()
1944 static void update_device_table(struct protection_domain *domain) in update_device_table()
1959 void amd_iommu_update_and_flush_device_table(struct protection_domain *domain) in amd_iommu_update_and_flush_device_table()
1965 void amd_iommu_domain_update(struct protection_domain *domain) in amd_iommu_domain_update()
1985 static void cleanup_domain(struct protection_domain *domain) in cleanup_domain()
2002 static void protection_domain_free(struct protection_domain *domain) in protection_domain_free()
2016 static int protection_domain_init_v1(struct protection_domain *domain, int mode) in protection_domain_init_v1()
2041 static int protection_domain_init_v2(struct protection_domain *domain) in protection_domain_init_v2()
2059 static struct protection_domain *protection_domain_alloc(unsigned int type) in protection_domain_alloc()
2062 struct protection_domain *domain; in protection_domain_alloc()
2114 struct protection_domain *domain; in amd_iommu_domain_alloc()
2136 struct protection_domain *domain; in amd_iommu_domain_free()
2158 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_attach_device()
2193 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_iotlb_sync_map()
2204 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_map_pages()
2251 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_unmap_pages()
2270 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_iova_to_phys()
2365 struct protection_domain *dom = to_pdomain(domain); in amd_iommu_flush_iotlb_all()
2377 struct protection_domain *dom = to_pdomain(domain); in amd_iommu_iotlb_sync()
2465 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_direct_map()
2478 static int domain_enable_v2(struct protection_domain *domain, int pasids) in domain_enable_v2()
2503 struct protection_domain *pdom = to_pdomain(dom); in amd_iommu_domain_enable_v2()
2527 static int __flush_pasid(struct protection_domain *domain, u32 pasid, in __flush_pasid()
2589 static int __amd_iommu_flush_page(struct protection_domain *domain, u32 pasid, in __amd_iommu_flush_page()
2598 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_page()
2610 static int __amd_iommu_flush_tlb(struct protection_domain *domain, u32 pasid) in __amd_iommu_flush_tlb()
2618 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_tlb()
2662 static int __set_gcr3(struct protection_domain *domain, u32 pasid, in __set_gcr3()
2679 static int __clear_gcr3(struct protection_domain *domain, u32 pasid) in __clear_gcr3()
2698 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_set_gcr3()
2712 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_clear_gcr3()