Lines Matching refs:bits_wanted
476 unsigned long bits_wanted, int use_hint) in sba_search_bitmap() argument
509 bits_wanted = 1UL << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap()
511 if (likely(bits_wanted == 1)) { in sba_search_bitmap()
518 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap()
526 if (likely(bits_wanted <= BITS_PER_LONG/2)) { in sba_search_bitmap()
533 unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap()
537 base_mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap()
547 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap()
553 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap()
567 qwords = bits_wanted >> 6; /* /64 */ in sba_search_bitmap()
568 bits = bits_wanted - (qwords * BITS_PER_LONG); in sba_search_bitmap()
574 ret = iommu_is_span_boundary(tpide, bits_wanted, in sba_search_bitmap()