Lines Matching refs:pide

202 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide)  in sba_dump_pdir_entry()  argument
205 __le64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
206 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]); in sba_dump_pdir_entry()
211 rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
216 (rcnt == (pide & (BITS_PER_LONG - 1))) in sba_dump_pdir_entry()
239 uint pide = 0; in sba_check_pdir() local
254 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir()
260 pide++; in sba_check_pdir()
346 unsigned long pide = ~0UL, tpide; in sba_search_bitmap() local
369 pide = tpide; in sba_search_bitmap()
404 pide = tpide; in sba_search_bitmap()
426 return (pide); in sba_search_bitmap()
446 unsigned long pide; in sba_alloc_range() local
448 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
449 if (pide >= (ioc->res_size << 3)) { in sba_alloc_range()
450 pide = sba_search_bitmap(ioc, dev, pages_needed); in sba_alloc_range()
451 if (pide >= (ioc->res_size << 3)) in sba_alloc_range()
458 if(0x00 != ((u8 *) ioc->pdir_base)[pide*sizeof(u64) + 7]) { in sba_alloc_range()
459 sba_dump_pdir_entry(ioc, "sba_search_bitmap() botched it?", pide); in sba_alloc_range()
464 __func__, size, pages_needed, pide, in sba_alloc_range()
481 return (pide); in sba_alloc_range()
497 unsigned int pide = PDIR_INDEX(iovp); in sba_free_range() local
498 unsigned int ridx = pide >> 3; /* convert bit to byte address */ in sba_free_range()
504 unsigned long m = RESMAP_MASK(bits_not_wanted) >> (pide & (BITS_PER_LONG - 1)); in sba_free_range()
508 bits_not_wanted, m, pide, res_ptr, *res_ptr); in sba_free_range()
718 int pide; in sba_map_single() local
739 pide = sba_alloc_range(ioc, dev, size); in sba_map_single()
740 iovp = (dma_addr_t) pide << IOVP_SHIFT; in sba_map_single()
745 pdir_start = &(ioc->pdir_base[pide]); in sba_map_single()