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