Searched refs:iovad (Results 1 – 2 of 2) sorted by relevance
/drivers/iommu/ |
D | iova.c | 23 init_iova_domain(struct iova_domain *iovad, unsigned long pfn_32bit) in init_iova_domain() argument 25 spin_lock_init(&iovad->iova_rbtree_lock); in init_iova_domain() 26 iovad->rbroot = RB_ROOT; in init_iova_domain() 27 iovad->cached32_node = NULL; in init_iova_domain() 28 iovad->dma_32bit_pfn = pfn_32bit; in init_iova_domain() 32 __get_cached_rbnode(struct iova_domain *iovad, unsigned long *limit_pfn) in __get_cached_rbnode() argument 34 if ((*limit_pfn != iovad->dma_32bit_pfn) || in __get_cached_rbnode() 35 (iovad->cached32_node == NULL)) in __get_cached_rbnode() 36 return rb_last(&iovad->rbroot); in __get_cached_rbnode() 38 struct rb_node *prev_node = rb_prev(iovad->cached32_node); in __get_cached_rbnode() [all …]
|
D | intel-iommu.c | 371 struct iova_domain iovad; /* iova's that belong to this domain */ member 1444 copy_reserved_iova(&reserved_iova_list, &domain->iovad); in domain_reserve_special_ranges() 1467 init_iova_domain(&domain->iovad, DMA_32BIT_PFN); in domain_init() 1527 put_iova_domain(&domain->iovad); in domain_exit() 2106 if (!reserve_iova(&domain->iovad, dma_to_mm_pfn(first_vpfn), in iommu_domain_identity_map() 2682 iova = alloc_iova(&domain->iovad, nrpages, in intel_alloc_iova() 2687 iova = alloc_iova(&domain->iovad, nrpages, IOVA_PFN(dma_mask), 1); in intel_alloc_iova() 2854 __free_iova(&domain->iovad, iova); in __intel_map_single() 2902 __free_iova(&deferred_flush[i].domain[j]->iovad, iova); in flush_unmaps() 2963 iova = find_iova(&domain->iovad, IOVA_PFN(dev_addr)); in intel_unmap_page() [all …]
|