Lines Matching refs:protection_domain
114 static void update_domain(struct protection_domain *domain);
115 static int protection_domain_init(struct protection_domain *domain);
124 struct protection_domain domain;
193 static struct protection_domain *to_pdomain(struct iommu_domain *dom) in to_pdomain()
195 return container_of(dom, struct protection_domain, domain); in to_pdomain()
198 static struct dma_ops_domain* to_dma_ops_domain(struct protection_domain *domain) in to_dma_ops_domain()
1236 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages()
1267 static void domain_flush_pages(struct protection_domain *domain, in domain_flush_pages()
1274 static void domain_flush_tlb(struct protection_domain *domain) in domain_flush_tlb()
1280 static void domain_flush_tlb_pde(struct protection_domain *domain) in domain_flush_tlb_pde()
1285 static void domain_flush_complete(struct protection_domain *domain) in domain_flush_complete()
1305 static void domain_flush_devices(struct protection_domain *domain) in domain_flush_devices()
1325 static bool increase_address_space(struct protection_domain *domain, in increase_address_space()
1347 static u64 *alloc_pte(struct protection_domain *domain, in alloc_pte()
1406 static u64 *fetch_pte(struct protection_domain *domain, in fetch_pte()
1467 static int iommu_map_page(struct protection_domain *dom, in iommu_map_page()
1512 static unsigned long iommu_unmap_page(struct protection_domain *dom, in iommu_unmap_page()
1595 static void add_domain_to_list(struct protection_domain *domain) in add_domain_to_list()
1608 static void del_domain_from_list(struct protection_domain *domain) in del_domain_from_list()
1672 static void free_pagetable(struct protection_domain *domain) in DEFINE_FREE_PT_FN()
1732 static void free_gcr3_table(struct protection_domain *domain) in free_gcr3_table()
1824 static bool dma_ops_domain(struct protection_domain *domain) in dma_ops_domain()
1829 static void set_dte_entry(u16 devid, struct protection_domain *domain, in set_dte_entry()
1897 struct protection_domain *domain) in do_attach()
1951 struct protection_domain *domain) in __attach_device()
2067 struct protection_domain *domain) in attach_device()
2118 struct protection_domain *domain; in __detach_device()
2134 struct protection_domain *domain; in detach_device()
2253 static struct protection_domain *get_domain(struct device *dev) in get_domain()
2255 struct protection_domain *domain; in get_domain()
2277 static void update_device_table(struct protection_domain *domain) in update_device_table()
2294 static void update_domain(struct protection_domain *domain) in update_domain()
2422 struct protection_domain *domain; in map_page()
2444 struct protection_domain *domain; in unmap_page()
2491 struct protection_domain *domain; in map_sg()
2571 struct protection_domain *domain; in unmap_sg()
2595 struct protection_domain *domain; in alloc_coherent()
2650 struct protection_domain *domain; in free_coherent()
2811 static void cleanup_domain(struct protection_domain *domain) in cleanup_domain()
2828 static void protection_domain_free(struct protection_domain *domain) in protection_domain_free()
2841 static int protection_domain_init(struct protection_domain *domain) in protection_domain_init()
2853 static struct protection_domain *protection_domain_alloc(void) in protection_domain_alloc()
2855 struct protection_domain *domain; in protection_domain_alloc()
2876 struct protection_domain *pdomain; in amd_iommu_domain_alloc()
2921 struct protection_domain *domain; in amd_iommu_domain_free()
2985 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_attach_device()
3021 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_map()
3043 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_unmap()
3059 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_iova_to_phys()
3172 struct protection_domain *dom = to_pdomain(domain); in amd_iommu_flush_iotlb_all()
3230 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_direct_map()
3251 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_enable_v2()
3296 static int __flush_pasid(struct protection_domain *domain, int pasid, in __flush_pasid()
3357 static int __amd_iommu_flush_page(struct protection_domain *domain, int pasid, in __amd_iommu_flush_page()
3366 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_page()
3378 static int __amd_iommu_flush_tlb(struct protection_domain *domain, int pasid) in __amd_iommu_flush_tlb()
3386 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_tlb()
3430 static int __set_gcr3(struct protection_domain *domain, int pasid, in __set_gcr3()
3447 static int __clear_gcr3(struct protection_domain *domain, int pasid) in __clear_gcr3()
3466 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_set_gcr3()
3480 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_clear_gcr3()
3511 struct protection_domain *pdomain; in amd_iommu_get_v2_domain()