Lines Matching refs:pide

198 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide)  in sba_dump_pdir_entry()  argument
201 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
202 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry()
207 rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
212 (rcnt == (pide & (BITS_PER_LONG - 1))) in sba_dump_pdir_entry()
235 uint pide = 0; in sba_check_pdir() local
250 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir()
256 pide++; in sba_check_pdir()
341 unsigned long pide = ~0UL, tpide; in sba_search_bitmap() local
365 pide = tpide; in sba_search_bitmap()
400 pide = tpide; in sba_search_bitmap()
422 return (pide); in sba_search_bitmap()
441 unsigned long pide; in sba_alloc_range() local
443 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
444 if (pide >= (ioc->res_size << 3)) { in sba_alloc_range()
445 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
446 if (pide >= (ioc->res_size << 3)) in sba_alloc_range()
453 if(0x00 != ((u8 *) ioc->pdir_base)[pide*sizeof(u64) + 7]) { in sba_alloc_range()
454 sba_dump_pdir_entry(ioc, "sba_search_bitmap() botched it?", pide); in sba_alloc_range()
459 __func__, size, pages_needed, pide, in sba_alloc_range()
476 return (pide); in sba_alloc_range()
492 unsigned int pide = PDIR_INDEX(iovp); in sba_free_range() local
493 unsigned int ridx = pide >> 3; /* convert bit to byte address */ in sba_free_range()
499 unsigned long m = RESMAP_MASK(bits_not_wanted) >> (pide & (BITS_PER_LONG - 1)); in sba_free_range()
503 bits_not_wanted, m, pide, res_ptr, *res_ptr); in sba_free_range()
722 int pide; in sba_map_single() local
741 pide = sba_alloc_range(ioc, dev, size); in sba_map_single()
742 iovp = (dma_addr_t) pide << IOVP_SHIFT; in sba_map_single()
747 pdir_start = &(ioc->pdir_base[pide]); in sba_map_single()