Lines Matching defs:pg_index
266 dvma_addr_t pg_index = dvma_pg - iommu_p->dvma_base_pg;
267 uint64_t *tte_addr = iommu_p->iommu_tsb_vaddr + pg_index;
278 (uint_t)iommu_p->dvma_base_pg, (uint_t)pg_index, dvma_pg,
281 for (i = pfn_index; i < pfn_last; i++, pg_index++, tte_addr++) {
288 "iommu_map_pages: pg_index=%x tte=%08x.%08x\n",
289 pg_index, HI32(cur_tte), LO32(cur_tte));
299 ASSERT(tte_addr == iommu_p->iommu_tsb_vaddr + pg_index);
303 pg_index);
304 ASSERT(TTE_IS_INVALID(iommu_p->iommu_tsb_vaddr[pg_index]));
347 dvma_addr_t pg_index = IOMMU_PAGE_INDEX(iommu_p, dvma_pg);
349 for (; npages; npages--, dvma_pg++, pg_index++) {
351 IOMMU_UNLOAD_TTE(iommu_p, pg_index);
382 dvma_addr_t pg_index = IOMMU_PAGE_INDEX(iommu_p, dvma_pg);
394 for (; npages; npages--, pg_index++) {
395 DEBUG1(DBG_UNMAP_WIN|DBG_CONT, dip, " %x", pg_index);
396 IOMMU_UNLOAD_TTE(iommu_p, pg_index);