Searched refs:dma_dom (Results 1 – 1 of 1) sorted by relevance
939 static int dma_ops_unity_map(struct dma_ops_domain *dma_dom, in dma_ops_unity_map() argument947 ret = iommu_map_page(&dma_dom->domain, addr, addr, e->prot, in dma_ops_unity_map()955 if (addr < dma_dom->aperture_size) in dma_ops_unity_map()957 dma_dom->aperture[0]->bitmap); in dma_ops_unity_map()988 static int init_unity_mappings_for_device(struct dma_ops_domain *dma_dom, in init_unity_mappings_for_device() argument997 ret = dma_ops_unity_map(dma_dom, e); in init_unity_mappings_for_device()1046 static int alloc_new_range(struct dma_ops_domain *dma_dom, in alloc_new_range() argument1049 int index = dma_dom->aperture_size >> APERTURE_RANGE_SHIFT; in alloc_new_range()1060 dma_dom->aperture[index] = kzalloc(sizeof(struct aperture_range), gfp); in alloc_new_range()1061 if (!dma_dom->aperture[index]) in alloc_new_range()[all …]