Searched refs:iova_space_size (Results 1 – 2 of 2) sorted by relevance
1313 u32 iova_space_size; in ccio_ioc_init() local1331 iova_space_size = 1024 * 1024; in ccio_ioc_init()1334 iova_space_size = 512 * 1024 * 1024; in ccio_ioc_init()1337 iova_space_size = (u32)(physmem / ccio_mem_ratio); in ccio_ioc_init()1353 iov_order = get_order(iova_space_size) >> (IOVP_SHIFT - PAGE_SHIFT); in ccio_ioc_init()1356 iova_space_size = 1 << (iov_order + IOVP_SHIFT); in ccio_ioc_init()1358 ioc->pdir_size = (iova_space_size / IOVP_SIZE) * sizeof(u64); in ccio_ioc_init()1366 __FUNCTION__, ioc->ioc_hpa, physmem>>20, iova_space_size>>20, in ccio_ioc_init()1400 ioc->chainid_shift = get_order(iova_space_size) + PAGE_SHIFT - CCIO_CHAINID_SHIFT; in ccio_ioc_init()
1548 u32 iova_space_size, iova_space_mask; in sba_ioc_init() local1568 iova_space_size = (u32) (physmem/(sba_mem_ratio*global_ioc_cnt)); in sba_ioc_init()1571 if (iova_space_size < 1024*1024) { in sba_ioc_init()1572 iova_space_size = 1024*1024; in sba_ioc_init()1575 else if (iova_space_size > 512*1024*1024) { in sba_ioc_init()1576 iova_space_size = 512*1024*1024; in sba_ioc_init()1585 iov_order = get_order(iova_space_size >> (IOVP_SHIFT-PAGE_SHIFT)); in sba_ioc_init()1588 iova_space_size = 1 << (iov_order + IOVP_SHIFT); in sba_ioc_init()1590 ioc->pdir_size = pdir_size = (iova_space_size/IOVP_SIZE) * sizeof(u64); in sba_ioc_init()1599 iova_space_size>>20, iov_order + PAGE_SHIFT, pdir_size); in sba_ioc_init()