Lines Matching refs:pide

200 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide)  in sba_dump_pdir_entry()  argument
203 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
204 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry()
209 rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
214 (rcnt == (pide & (BITS_PER_LONG - 1))) in sba_dump_pdir_entry()
237 uint pide = 0; in sba_check_pdir() local
252 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir()
258 pide++; in sba_check_pdir()
343 unsigned long pide = ~0UL, tpide; in sba_search_bitmap() local
367 pide = tpide; in sba_search_bitmap()
402 pide = tpide; in sba_search_bitmap()
424 return (pide); in sba_search_bitmap()
443 unsigned long pide; in sba_alloc_range() local
445 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
446 if (pide >= (ioc->res_size << 3)) { in sba_alloc_range()
447 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
448 if (pide >= (ioc->res_size << 3)) in sba_alloc_range()
455 if(0x00 != ((u8 *) ioc->pdir_base)[pide*sizeof(u64) + 7]) { in sba_alloc_range()
456 sba_dump_pdir_entry(ioc, "sba_search_bitmap() botched it?", pide); in sba_alloc_range()
461 __func__, size, pages_needed, pide, in sba_alloc_range()
478 return (pide); in sba_alloc_range()
494 unsigned int pide = PDIR_INDEX(iovp); in sba_free_range() local
495 unsigned int ridx = pide >> 3; /* convert bit to byte address */ in sba_free_range()
501 unsigned long m = RESMAP_MASK(bits_not_wanted) >> (pide & (BITS_PER_LONG - 1)); in sba_free_range()
505 bits_not_wanted, m, pide, res_ptr, *res_ptr); in sba_free_range()
725 int pide; in sba_map_single() local
746 pide = sba_alloc_range(ioc, dev, size); in sba_map_single()
747 iovp = (dma_addr_t) pide << IOVP_SHIFT; in sba_map_single()
752 pdir_start = &(ioc->pdir_base[pide]); in sba_map_single()