Searched refs:bits_wanted (Results 1 – 2 of 2) sorted by relevance
442 sba_search_bitmap(struct ioc *ioc, unsigned long bits_wanted) in sba_search_bitmap() argument457 bits_wanted = 1UL << get_iovp_order(bits_wanted << PAGE_SHIFT); in sba_search_bitmap()458 if (bits_wanted > (BITS_PER_LONG/2)) { in sba_search_bitmap()462 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap()478 unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); in sba_search_bitmap()486 mask = RESMAP_MASK(bits_wanted) << bitshiftcnt; in sba_search_bitmap()503 mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap()509 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap()
478 sba_search_bitmap(struct ioc *ioc, unsigned long bits_wanted) in sba_search_bitmap() argument486 if (bits_wanted > (BITS_PER_LONG/2)) { in sba_search_bitmap()490 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap()506 unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); in sba_search_bitmap()514 mask = RESMAP_MASK(bits_wanted) >> bitshiftcnt; in sba_search_bitmap()531 mask = RESMAP_MASK(bits_wanted); in sba_search_bitmap()537 ioc->res_bitshift = bitshiftcnt + bits_wanted; in sba_search_bitmap()