Lines Matching refs:ioptex
194 int ioptex, i; in __sbus_iommu_map_page() local
214 ioptex = bit_map_string_get(&iommu->usemap, npages, pfn); in __sbus_iommu_map_page()
215 if (ioptex < 0) in __sbus_iommu_map_page()
217 busa0 = iommu->start + (ioptex << PAGE_SHIFT); in __sbus_iommu_map_page()
218 iopte0 = &iommu->page_table[ioptex]; in __sbus_iommu_map_page()
287 unsigned int ioptex = (busa - iommu->start) >> PAGE_SHIFT; in sbus_iommu_unmap_page() local
292 iopte_val(iommu->page_table[ioptex + i]) = 0; in sbus_iommu_unmap_page()
296 bit_map_clear(&iommu->usemap, ioptex, npages); in sbus_iommu_unmap_page()
320 int ioptex; in sbus_iommu_alloc() local
340 ioptex = bit_map_string_get(&iommu->usemap, len >> PAGE_SHIFT, in sbus_iommu_alloc()
342 if (ioptex < 0) in sbus_iommu_alloc()
345 iopte += ioptex; in sbus_iommu_alloc()
387 *dma_handle = iommu->start + (ioptex << PAGE_SHIFT); in sbus_iommu_alloc()
401 int ioptex = (busa - iommu->start) >> PAGE_SHIFT; in sbus_iommu_free() local
410 iopte += ioptex; in sbus_iommu_free()
418 bit_map_clear(&iommu->usemap, ioptex, len >> PAGE_SHIFT); in sbus_iommu_free()