Lines Matching defs:pide

304  * @pide: pdir index.
309 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide)
312 u64 *ptr = &ioc->pdir_base[pide & ~(BITS_PER_LONG - 1)];
313 unsigned long *rptr = (unsigned long *) &ioc->res_map[(pide >>3) & -sizeof(unsigned long)];
317 msg, rptr, pide & (BITS_PER_LONG - 1), *rptr);
322 (rcnt == (pide & (BITS_PER_LONG - 1)))
345 uint pide = 0;
363 sba_dump_pdir_entry(ioc, msg, pide);
369 pide++;
480 unsigned long flags, pide = ~0UL, tpide;
517 pide = ptr_to_pide(ioc, res_ptr, bitshiftcnt);
552 pide = tpide;
590 pide = tpide;
604 return (pide);
609 return (pide);
628 unsigned long pide;
639 pide = sba_search_bitmap(ioc, dev, pages_needed, 1);
640 if (unlikely(pide >= (ioc->res_size << 3))) {
641 pide = sba_search_bitmap(ioc, dev, pages_needed, 0);
642 if (unlikely(pide >= (ioc->res_size << 3))) {
670 pide = sba_search_bitmap(ioc, dev, pages_needed, 0);
671 if (unlikely(pide >= (ioc->res_size << 3))) {
693 prefetchw(&(ioc->pdir_base[pide]));
697 if(0x00 != ((u8 *) ioc->pdir_base)[pide*PDIR_ENTRY_SIZE + 7]) {
698 sba_dump_pdir_entry(ioc, "sba_search_bitmap() botched it?", pide);
703 __func__, size, pages_needed, pide,
707 return (pide);
723 unsigned int pide = PDIR_INDEX(iovp);
724 unsigned int ridx = pide >> 3; /* convert bit to byte address */
738 pide += BITS_PER_LONG;
743 m = RESMAP_MASK(bits_not_wanted) << (pide & (BITS_PER_LONG - 1));
747 bits_not_wanted, m, pide, res_ptr, *res_ptr);
921 int pide;
966 pide = sba_alloc_range(ioc, dev, size);
967 if (pide < 0)
970 iovp = (dma_addr_t) pide << iovp_shift;
974 pdir_start = &(ioc->pdir_base[pide]);
1225 u32 pide = startsg->dma_address & ~PIDE_FLAG;
1226 dma_offset = (unsigned long) pide & ~iovp_mask;
1230 dma_sg->dma_address = pide | ioc->ibase;
1231 pdirp = &(ioc->pdir_base[pide >> iovp_shift]);