Searched refs:ioptex (Results 1 – 1 of 1) sorted by relevance
193 int ioptex, i; in __sbus_iommu_map_phys() local216 ioptex = bit_map_string_get(&iommu->usemap, npages, pfn); in __sbus_iommu_map_phys()217 if (ioptex < 0) in __sbus_iommu_map_phys()219 busa0 = iommu->start + (ioptex << PAGE_SHIFT); in __sbus_iommu_map_phys()220 iopte0 = &iommu->page_table[ioptex]; in __sbus_iommu_map_phys()289 unsigned int ioptex = (busa - iommu->start) >> PAGE_SHIFT; in sbus_iommu_unmap_phys() local294 iopte_val(iommu->page_table[ioptex + i]) = 0; in sbus_iommu_unmap_phys()298 bit_map_clear(&iommu->usemap, ioptex, npages); in sbus_iommu_unmap_phys()322 int ioptex; in sbus_iommu_alloc() local342 ioptex = bit_map_string_get(&iommu->usemap, len >> PAGE_SHIFT, in sbus_iommu_alloc()[all …]