Lines Matching refs:aperture

1304 		 * if unity mapping is in aperture range mark the page
1305 * as allocated in the aperture
1309 dma_dom->aperture[0]->bitmap);
1362 * the aperture. Maybe it could be enhanced in the future to a more
1374 * Used to reserve address ranges in the aperture (e.g. for exclusion
1389 __set_bit(page, dom->aperture[index]->bitmap);
1394 * This function is used to add a new aperture range to an existing
1395 * aperture in case of dma_ops domain allocation or address allocation
1412 dma_dom->aperture[index] = kzalloc(sizeof(struct aperture_range), gfp);
1413 if (!dma_dom->aperture[index])
1416 dma_dom->aperture[index]->bitmap = (void *)get_zeroed_page(gfp);
1417 if (!dma_dom->aperture[index]->bitmap)
1420 dma_dom->aperture[index]->offset = dma_dom->aperture_size;
1433 dma_dom->aperture[index]->pte_pages[i] = pte_page;
1457 iommu->exclusion_start >= dma_dom->aperture[index]->offset
1469 * Check for areas already mapped as present in the new aperture
1474 for (i = dma_dom->aperture[index]->offset;
1491 free_page((unsigned long)dma_dom->aperture[index]->bitmap);
1493 kfree(dma_dom->aperture[index]);
1494 dma_dom->aperture[index] = NULL;
1519 unsigned long offset = dom->aperture[i]->offset >> PAGE_SHIFT;
1521 if (dom->aperture[i]->offset >= dma_mask)
1527 address = iommu_area_alloc(dom->aperture[i]->bitmap,
1531 address = dom->aperture[i]->offset +
1584 struct aperture_range *range = dom->aperture[i];
1752 if (!dom->aperture[i])
1754 free_page((unsigned long)dom->aperture[i]->bitmap);
1755 kfree(dom->aperture[i]);
1799 dma_dom->aperture[0]->bitmap[0] = 1;
2322 * This function fetches the PTE for a given address in the aperture
2327 struct aperture_range *aperture;
2330 aperture = dom->aperture[APERTURE_RANGE_INDEX(address)];
2331 if (!aperture)
2334 pte = aperture->pte_pages[APERTURE_PAGE_INDEX(address)];
2338 aperture->pte_pages[APERTURE_PAGE_INDEX(address)] = pte_page;
2388 struct aperture_range *aperture;
2394 aperture = dom->aperture[APERTURE_RANGE_INDEX(address)];
2395 if (!aperture)
2398 pte = aperture->pte_pages[APERTURE_PAGE_INDEX(address)];
2455 * aperture was successfully enlarged by 128 MB, try