Lines Matching defs:pide
193 * @pide: pdir index.
198 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide)
201 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]);
202 unsigned long *rptr = (unsigned long *) &(ioc->res_map[(pide >>3) & ~(sizeof(unsigned long) - 1)]);
207 rptr, pide & (BITS_PER_LONG - 1), *rptr);
212 (rcnt == (pide & (BITS_PER_LONG - 1)))
235 uint pide = 0;
250 sba_dump_pdir_entry(ioc, msg, pide);
256 pide++;
341 unsigned long pide = ~0UL, tpide;
364 pide = tpide;
399 pide = tpide;
421 return (pide);
440 unsigned long pide;
442 pide = sba_search_bitmap(ioc, dev, pages_needed);
443 if (pide >= (ioc->res_size << 3)) {
444 pide = sba_search_bitmap(ioc, dev, pages_needed);
445 if (pide >= (ioc->res_size << 3))
452 if(0x00 != ((u8 *) ioc->pdir_base)[pide*sizeof(u64) + 7]) {
453 sba_dump_pdir_entry(ioc, "sba_search_bitmap() botched it?", pide);
458 __func__, size, pages_needed, pide,
475 return (pide);
491 unsigned int pide = PDIR_INDEX(iovp);
492 unsigned int ridx = pide >> 3; /* convert bit to byte address */
498 unsigned long m = RESMAP_MASK(bits_not_wanted) >> (pide & (BITS_PER_LONG - 1));
502 bits_not_wanted, m, pide, res_ptr, *res_ptr);
712 int pide;
733 pide = sba_alloc_range(ioc, dev, size);
734 iovp = (dma_addr_t) pide << IOVP_SHIFT;
739 pdir_start = &(ioc->pdir_base[pide]);