Searched refs:iova_space_size (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/parisc/
H A Dsba_iommu.c1257 u32 iova_space_size; sba_ioc_init_pluto() local
1268 iova_space_size = ~(READ_REG(ioc->ioc_hpa + IOC_IMASK) & 0xFFFFFFFFUL) + 1; sba_ioc_init_pluto()
1270 if ((ioc->ibase < 0xfed00000UL) && ((ioc->ibase + iova_space_size) > 0xfee00000UL)) { sba_ioc_init_pluto()
1272 iova_space_size /= 2; sba_ioc_init_pluto()
1279 iov_order = get_order(iova_space_size >> (IOVP_SHIFT - PAGE_SHIFT)); sba_ioc_init_pluto()
1280 ioc->pdir_size = (iova_space_size / IOVP_SIZE) * sizeof(u64); sba_ioc_init_pluto()
1283 __func__, ioc->ioc_hpa, iova_space_size >> 20, sba_ioc_init_pluto()
1367 __func__, (iova_space_size/2) >> 20); sba_ioc_init_pluto()
1369 ioc->pdir_base[PDIR_INDEX(iova_space_size/2)] = SBA_AGPGART_COOKIE; sba_ioc_init_pluto()
1377 u32 iova_space_size, iova_space_mask; sba_ioc_init() local
1394 iova_space_size = (u32) (totalram_pages/global_ioc_cnt); sba_ioc_init()
1397 if (iova_space_size < (1 << (20 - PAGE_SHIFT))) { sba_ioc_init()
1398 iova_space_size = 1 << (20 - PAGE_SHIFT); sba_ioc_init()
1400 else if (iova_space_size > (1 << (30 - PAGE_SHIFT))) { sba_ioc_init()
1401 iova_space_size = 1 << (30 - PAGE_SHIFT); sba_ioc_init()
1409 iov_order = get_order(iova_space_size << PAGE_SHIFT); sba_ioc_init()
1411 /* iova_space_size is now bytes, not pages */ sba_ioc_init()
1412 iova_space_size = 1 << (iov_order + PAGE_SHIFT); sba_ioc_init()
1414 ioc->pdir_size = pdir_size = (iova_space_size/IOVP_SIZE) * sizeof(u64); sba_ioc_init()
1420 iova_space_size>>20, sba_ioc_init()
H A Dccio-dma.c1255 u32 iova_space_size; ccio_ioc_init() local
1268 iova_space_size = (u32) (totalram_pages / count_parisc_driver(&ccio_driver)); ccio_ioc_init()
1272 if (iova_space_size < (1 << (20 - PAGE_SHIFT))) { ccio_ioc_init()
1273 iova_space_size = 1 << (20 - PAGE_SHIFT); ccio_ioc_init()
1275 } else if (iova_space_size > (1 << (30 - PAGE_SHIFT))) { ccio_ioc_init()
1276 iova_space_size = 1 << (30 - PAGE_SHIFT); ccio_ioc_init()
1293 iov_order = get_order(iova_space_size << PAGE_SHIFT); ccio_ioc_init()
1295 /* iova_space_size is now bytes, not pages */ ccio_ioc_init()
1296 iova_space_size = 1 << (iov_order + PAGE_SHIFT); ccio_ioc_init()
1298 ioc->pdir_size = (iova_space_size / IOVP_SIZE) * sizeof(u64); ccio_ioc_init()
1308 iova_space_size>>20, ccio_ioc_init()
1342 ioc->chainid_shift = get_order(iova_space_size) + PAGE_SHIFT - CCIO_CHAINID_SHIFT; ccio_ioc_init()

Completed in 62 milliseconds