Lines Matching refs:pide

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