Lines Matching refs:pdir_base
201 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
234 u64 *pptr = ioc->pdir_base; /* pdir ptr */ in sba_check_pdir()
453 if(0x00 != ((u8 *) ioc->pdir_base)[pide*sizeof(u64) + 7]) { in sba_alloc_range()
613 u64 *pdir_ptr = &ioc->pdir_base[PDIR_INDEX(iovp)]; in sba_mark_invalid()
747 pdir_start = &(ioc->pdir_base[pide]); in sba_map_single()
1117 unsigned long pdir_base; in sba_alloc_pdir() local
1120 pdir_base = __get_free_pages(GFP_KERNEL, pdir_order); in sba_alloc_pdir()
1121 if (NULL == (void *) pdir_base) { in sba_alloc_pdir()
1135 return (void *) pdir_base; in sba_alloc_pdir()
1156 if (((virt_to_phys(pdir_base)+pdir_size-1) & PIRANHA_ADDR_MASK) == PIRANHA_ADDR_VAL) { in sba_alloc_pdir()
1160 free_pages(pdir_base, pdir_order); in sba_alloc_pdir()
1162 pdir_base = new_pdir; in sba_alloc_pdir()
1180 free_pages( pdir_base, pdir_order); in sba_alloc_pdir()
1185 pdir_base = new_pdir + 1024*1024; in sba_alloc_pdir()
1207 memset((void *) pdir_base, 0, pdir_size); in sba_alloc_pdir()
1208 return (void *) pdir_base; in sba_alloc_pdir()
1287 ioc->pdir_base = (void *) __get_free_pages(GFP_KERNEL, in sba_ioc_init_pluto()
1289 if (!ioc->pdir_base) in sba_ioc_init_pluto()
1292 memset(ioc->pdir_base, 0, ioc->pdir_size); in sba_ioc_init_pluto()
1295 __func__, ioc->pdir_base, ioc->pdir_size); in sba_ioc_init_pluto()
1305 WARN_ON((((unsigned long) ioc->pdir_base) & PAGE_MASK) != (unsigned long) ioc->pdir_base); in sba_ioc_init_pluto()
1306 WRITE_REG(virt_to_phys(ioc->pdir_base), ioc->ioc_hpa + IOC_PDIR_BASE); in sba_ioc_init_pluto()
1370 ioc->pdir_base[PDIR_INDEX(iova_space_size/2)] = SBA_AGPGART_COOKIE; in sba_ioc_init_pluto()
1424 ioc->pdir_base = sba_alloc_pdir(pdir_size); in sba_ioc_init()
1427 __func__, ioc->pdir_base, pdir_size); in sba_ioc_init()
1438 WRITE_REG64(virt_to_phys(ioc->pdir_base), ioc->ioc_hpa + IOC_PDIR_BASE); in sba_ioc_init()
1711 sba_dev->ioc[i].pdir_base[0] = 0xeeffc0addbba0080ULL; in sba_common_init()
1732 iterate_pages( sba_dev->ioc[i].pdir_base, sba_dev->ioc[i].pdir_size, in sba_common_init()