Lines Matching refs:protection_domain

102 static void update_domain(struct protection_domain *domain);
103 static int protection_domain_init(struct protection_domain *domain);
112 struct protection_domain domain;
185 static struct protection_domain *to_pdomain(struct iommu_domain *dom) in to_pdomain()
187 return container_of(dom, struct protection_domain, domain); in to_pdomain()
190 static struct dma_ops_domain* to_dma_ops_domain(struct protection_domain *domain) in to_dma_ops_domain()
1268 static void __domain_flush_pages(struct protection_domain *domain, in __domain_flush_pages()
1299 static void domain_flush_pages(struct protection_domain *domain, in domain_flush_pages()
1306 static void domain_flush_tlb(struct protection_domain *domain) in domain_flush_tlb()
1312 static void domain_flush_tlb_pde(struct protection_domain *domain) in domain_flush_tlb_pde()
1317 static void domain_flush_complete(struct protection_domain *domain) in domain_flush_complete()
1334 static void domain_flush_np_cache(struct protection_domain *domain, in domain_flush_np_cache()
1351 static void domain_flush_devices(struct protection_domain *domain) in domain_flush_devices()
1448 static void free_pagetable(struct protection_domain *domain) in free_pagetable()
1466 static bool increase_address_space(struct protection_domain *domain, in increase_address_space()
1497 static u64 *alloc_pte(struct protection_domain *domain, in alloc_pte()
1585 static u64 *fetch_pte(struct protection_domain *domain, in fetch_pte()
1660 static int iommu_map_page(struct protection_domain *dom, in iommu_map_page()
1723 static unsigned long iommu_unmap_page(struct protection_domain *dom, in iommu_unmap_page()
1857 static void free_gcr3_table(struct protection_domain *domain) in free_gcr3_table()
1949 static bool dma_ops_domain(struct protection_domain *domain) in dma_ops_domain()
1954 static void set_dte_entry(u16 devid, struct protection_domain *domain, in set_dte_entry()
2035 struct protection_domain *domain) in do_attach()
2063 struct protection_domain *domain = dev_data->domain; in do_detach()
2165 struct protection_domain *domain) in attach_device()
2232 struct protection_domain *domain; in detach_device()
2356 static struct protection_domain *get_domain(struct device *dev) in get_domain()
2358 struct protection_domain *domain; in get_domain()
2380 static void update_device_table(struct protection_domain *domain) in update_device_table()
2397 static void update_domain(struct protection_domain *domain) in update_domain()
2524 struct protection_domain *domain; in map_page()
2546 struct protection_domain *domain; in unmap_page()
2593 struct protection_domain *domain; in map_sg()
2683 struct protection_domain *domain; in unmap_sg()
2707 struct protection_domain *domain; in alloc_coherent()
2762 struct protection_domain *domain; in free_coherent()
2908 static void cleanup_domain(struct protection_domain *domain) in cleanup_domain()
2925 static void protection_domain_free(struct protection_domain *domain) in protection_domain_free()
2936 static int protection_domain_init(struct protection_domain *domain) in protection_domain_init()
2948 static struct protection_domain *protection_domain_alloc(void) in protection_domain_alloc()
2950 struct protection_domain *domain; in protection_domain_alloc()
2969 struct protection_domain *pdomain; in amd_iommu_domain_alloc()
3014 struct protection_domain *domain; in amd_iommu_domain_free()
3078 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_attach_device()
3114 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_map()
3139 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_unmap()
3155 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_iova_to_phys()
3272 struct protection_domain *dom = to_pdomain(domain); in amd_iommu_flush_iotlb_all()
3333 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_direct_map()
3353 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_enable_v2()
3397 static int __flush_pasid(struct protection_domain *domain, int pasid, in __flush_pasid()
3458 static int __amd_iommu_flush_page(struct protection_domain *domain, int pasid, in __amd_iommu_flush_page()
3467 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_page()
3479 static int __amd_iommu_flush_tlb(struct protection_domain *domain, int pasid) in __amd_iommu_flush_tlb()
3487 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_flush_tlb()
3531 static int __set_gcr3(struct protection_domain *domain, int pasid, in __set_gcr3()
3548 static int __clear_gcr3(struct protection_domain *domain, int pasid) in __clear_gcr3()
3567 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_set_gcr3()
3581 struct protection_domain *domain = to_pdomain(dom); in amd_iommu_domain_clear_gcr3()
3612 struct protection_domain *pdomain; in amd_iommu_get_v2_domain()