Home
last modified time | relevance | path

Searched refs:pdir_size (Results 1 – 2 of 2) sorted by relevance

/drivers/parisc/
Dsba_iommu.c690 (ioc->pdir_size / sizeof(u64) * IOVP_SIZE) ))); in sba_dma_supported()
1120 sba_alloc_pdir(unsigned int pdir_size) in sba_alloc_pdir() argument
1123 unsigned long pdir_order = get_order(pdir_size); in sba_alloc_pdir()
1161 if (((virt_to_phys(pdir_base)+pdir_size-1) & PIRANHA_ADDR_MASK) == PIRANHA_ADDR_VAL) { in sba_alloc_pdir()
1171 new_pdir += pdir_size; in sba_alloc_pdir()
1174 pdir_size <<=1; in sba_alloc_pdir()
1208 pdir_size -= 128*1024; in sba_alloc_pdir()
1212 memset((void *) pdir_base, 0, pdir_size); in sba_alloc_pdir()
1286 ioc->pdir_size = (iova_space_size / IOVP_SIZE) * sizeof(u64); in sba_ioc_init_pluto()
1293 get_order(ioc->pdir_size)); in sba_ioc_init_pluto()
[all …]
Dccio-dma.c228 u32 pdir_size; /* bytes, function of IOV Space size */ member
673 BUG_ON(idx >= (ioc->pdir_size / sizeof(u64))); in ccio_mark_invalid()
1274 ioc->pdir_size = (iova_space_size / IOVP_SIZE) * sizeof(u64); in ccio_ioc_init()
1276 BUG_ON(ioc->pdir_size > 8 * 1024 * 1024); /* max pdir size <= 8MB */ in ccio_ioc_init()
1279 BUG_ON((1 << get_order(ioc->pdir_size)) != (ioc->pdir_size >> PAGE_SHIFT)); in ccio_ioc_init()
1288 get_order(ioc->pdir_size)); in ccio_ioc_init()
1292 memset(ioc->pdir_base, 0, ioc->pdir_size); in ccio_ioc_init()
1298 ioc->res_size = (ioc->pdir_size / sizeof(u64)) >> 3; in ccio_ioc_init()