Lines Matching defs:dvma_pg
263 dvma_addr_t dvma_pg, size_t npages, size_t pfn_index)
266 dvma_addr_t pg_index = dvma_pg - iommu_p->dvma_base_pg;
278 (uint_t)iommu_p->dvma_base_pg, (uint_t)pg_index, dvma_pg,
328 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping);
337 mp->dmai_mapping = IOMMU_PTOB(dvma_pg) | win_pg0_off;
341 iommu_map_pages(iommu_p, mp, dvma_pg, IOMMU_BTOPR(win_size), pfn_index);
345 iommu_unmap_pages(iommu_t *iommu_p, dvma_addr_t dvma_pg, uint_t npages)
347 dvma_addr_t pg_index = IOMMU_PAGE_INDEX(iommu_p, dvma_pg);
349 for (; npages; npages--, dvma_pg++, pg_index++) {
350 DEBUG1(DBG_UNMAP_WIN|DBG_CONT, 0, " %x", dvma_pg);
354 IOMMU_PAGE_FLUSH(iommu_p, dvma_pg);
359 iommu_remap_pages(iommu_t *iommu_p, ddi_dma_impl_t *mp, dvma_addr_t dvma_pg,
362 iommu_unmap_pages(iommu_p, dvma_pg, npages);
363 iommu_map_pages(iommu_p, mp, dvma_pg, npages, pfn_index);
381 dvma_addr_t dvma_pg = IOMMU_BTOP(mp->dmai_mapping);
382 dvma_addr_t pg_index = IOMMU_PAGE_INDEX(iommu_p, dvma_pg);
401 iommu_unmap_pages(iommu_p, dvma_pg, npages);