Lines Matching refs:IOMMU_PTOB
886 xfer_sz = IOMMU_PTOB(IOMMU_BTOP(xfer_sz + pg_off)); /* page align */
921 ASSERT(IOMMU_PTOB(npages) == mp->dmai_winsize);
952 *tte_addr = tte | IOMMU_PTOB(MP_PFN0(mp)); /* map page 0 */
959 *tte_addr = tte | IOMMU_PTOB(*pfn_addr);
967 mp->dmai_mapping = mp->dmai_roffset | IOMMU_PTOB(dvma_pg);
1007 IOMMU_PTOB(npages + HAS_REDZONE(mp)),
1033 mp->dmai_mapping = mp->dmai_roffset | IOMMU_PTOB(dvma_pg);
1054 dvma_addr = IOMMU_PTOB(dvma_pg);
1289 win_p->win_size = IOMMU_PTOB(end_idx - start_idx + 1);
1297 (IOMMU_PTOB(pfn_no + 1) - 1 <= count_max))
1301 MAKE_DMA_COOKIE(cookie_p, IOMMU_PTOB(seg_pfn0) | bypass_prefix,
1302 IOMMU_PTOB(pfn_no));
1304 IOMMU_PTOB(seg_pfn0) | bypass_prefix, pfn_no);
1310 MAKE_DMA_COOKIE(cookie_p, IOMMU_PTOB(seg_pfn0) | bypass_prefix,
1311 IOMMU_PTOB(pfn_no));
1313 IOMMU_PTOB(seg_pfn0) | bypass_prefix, pfn_no, cookie_no);
1454 * count_max=MIN(count_max, IOMMU_PTOB(pfn_hi - pfn_lo + 1)-1);
1468 (IOMMU_PTOB(pfn_no + 1) - 1 <= count_max))
1836 vmem_xfree(map_p, base_addr, IOMMU_PTOB(npages));