Lines Matching refs:pide

317 sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide)  in sba_dump_pdir_entry()  argument
320 u64 *ptr = &ioc->pdir_base[pide & ~(BITS_PER_LONG - 1)]; in sba_dump_pdir_entry()
321 unsigned long *rptr = (unsigned long *) &ioc->res_map[(pide >>3) & -sizeof(unsigned long)]; in sba_dump_pdir_entry()
325 msg, rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
330 (rcnt == (pide & (BITS_PER_LONG - 1))) in sba_dump_pdir_entry()
353 uint pide = 0; in sba_check_pdir() local
371 sba_dump_pdir_entry(ioc, msg, pide); in sba_check_pdir()
377 pide++; in sba_check_pdir()
488 unsigned long flags, pide = ~0UL, tpide; in sba_search_bitmap() local
526 pide = ptr_to_pide(ioc, res_ptr, bitshiftcnt); in sba_search_bitmap()
561 pide = tpide; in sba_search_bitmap()
599 pide = tpide; in sba_search_bitmap()
613 return (pide); in sba_search_bitmap()
618 return (pide); in sba_search_bitmap()
637 unsigned long pide; in sba_alloc_range() local
648 pide = sba_search_bitmap(ioc, dev, pages_needed, 1); in sba_alloc_range()
649 if (unlikely(pide >= (ioc->res_size << 3))) { in sba_alloc_range()
650 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); in sba_alloc_range()
651 if (unlikely(pide >= (ioc->res_size << 3))) { in sba_alloc_range()
679 pide = sba_search_bitmap(ioc, dev, pages_needed, 0); in sba_alloc_range()
680 if (unlikely(pide >= (ioc->res_size << 3))) { in sba_alloc_range()
702 prefetchw(&(ioc->pdir_base[pide])); in sba_alloc_range()
706 if(0x00 != ((u8 *) ioc->pdir_base)[pide*PDIR_ENTRY_SIZE + 7]) { in sba_alloc_range()
707 sba_dump_pdir_entry(ioc, "sba_search_bitmap() botched it?", pide); in sba_alloc_range()
712 __func__, size, pages_needed, pide, in sba_alloc_range()
716 return (pide); in sba_alloc_range()
732 unsigned int pide = PDIR_INDEX(iovp); in sba_free_range() local
733 unsigned int ridx = pide >> 3; /* convert bit to byte address */ in sba_free_range()
747 pide += BITS_PER_LONG; in sba_free_range()
752 m = RESMAP_MASK(bits_not_wanted) << (pide & (BITS_PER_LONG - 1)); in sba_free_range()
756 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()
1254 u32 pide = startsg->dma_address & ~PIDE_FLAG; in sba_fill_pdir() local
1255 dma_offset = (unsigned long) pide & ~iovp_mask; in sba_fill_pdir()
1259 dma_sg->dma_address = pide | ioc->ibase; in sba_fill_pdir()
1260 pdirp = &(ioc->pdir_base[pide >> iovp_shift]); in sba_fill_pdir()