Searched refs:ioptex (Results 1 – 1 of 1) sorted by relevance
194 int ioptex, i; in __sbus_iommu_map_page() local214 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() local292 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() local340 ioptex = bit_map_string_get(&iommu->usemap, len >> PAGE_SHIFT, in sbus_iommu_alloc()[all …]