Lines Matching refs:iova_space_size
1276 u32 iova_space_size; in sba_ioc_init_pluto() local
1287 iova_space_size = ~(READ_REG(ioc->ioc_hpa + IOC_IMASK) & 0xFFFFFFFFUL) + 1; in sba_ioc_init_pluto()
1289 if ((ioc->ibase < 0xfed00000UL) && ((ioc->ibase + iova_space_size) > 0xfee00000UL)) { in sba_ioc_init_pluto()
1291 iova_space_size /= 2; in sba_ioc_init_pluto()
1298 iov_order = get_order(iova_space_size >> (IOVP_SHIFT - PAGE_SHIFT)); in sba_ioc_init_pluto()
1299 ioc->pdir_size = (iova_space_size / IOVP_SIZE) * sizeof(u64); in sba_ioc_init_pluto()
1302 __func__, ioc->ioc_hpa, iova_space_size >> 20, in sba_ioc_init_pluto()
1386 __func__, (iova_space_size/2) >> 20); in sba_ioc_init_pluto()
1388 ioc->pdir_base[PDIR_INDEX(iova_space_size/2)] = SBA_AGPGART_COOKIE; in sba_ioc_init_pluto()
1396 u32 iova_space_size, iova_space_mask; in sba_ioc_init() local
1413 iova_space_size = (u32) (totalram_pages()/global_ioc_cnt); in sba_ioc_init()
1416 if (iova_space_size < (1 << (20 - PAGE_SHIFT))) { in sba_ioc_init()
1417 iova_space_size = 1 << (20 - PAGE_SHIFT); in sba_ioc_init()
1419 else if (iova_space_size > (1 << (30 - PAGE_SHIFT))) { in sba_ioc_init()
1420 iova_space_size = 1 << (30 - PAGE_SHIFT); in sba_ioc_init()
1428 iov_order = get_order(iova_space_size << PAGE_SHIFT); in sba_ioc_init()
1431 iova_space_size = 1 << (iov_order + PAGE_SHIFT); in sba_ioc_init()
1433 ioc->pdir_size = pdir_size = (iova_space_size/IOVP_SIZE) * sizeof(u64); in sba_ioc_init()
1439 iova_space_size>>20, in sba_ioc_init()