Lines Matching refs:res_ptr
318 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr, in ptr_to_pide() argument
321 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
338 unsigned long *res_ptr = ioc->res_hint; in sba_search_bitmap() local
357 for(; res_ptr < res_end; ++res_ptr) { in sba_search_bitmap()
358 tpide = ptr_to_pide(ioc, res_ptr, 0); in sba_search_bitmap()
362 if ((*res_ptr == 0) && !ret) { in sba_search_bitmap()
363 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap()
369 res_ptr++; in sba_search_bitmap()
384 res_ptr++; in sba_search_bitmap()
388 DBG_RES("%s() o %ld %p", __func__, o, res_ptr); in sba_search_bitmap()
389 while(res_ptr < res_end) in sba_search_bitmap()
391 DBG_RES(" %p %lx %lx\n", res_ptr, mask, *res_ptr); in sba_search_bitmap()
393 tpide = ptr_to_pide(ioc, res_ptr, bitshiftcnt); in sba_search_bitmap()
397 if ((((*res_ptr) & mask) == 0) && !ret) { in sba_search_bitmap()
398 *res_ptr |= mask; /* mark resources busy! */ in sba_search_bitmap()
407 res_ptr++; in sba_search_bitmap()
415 if (res_end <= res_ptr) { in sba_search_bitmap()
419 ioc->res_hint = res_ptr; in sba_search_bitmap()
493 unsigned long *res_ptr = (unsigned long *) &((ioc)->res_map[ridx & ~RESMAP_IDX_MASK]); in sba_free_range() local
502 bits_not_wanted, m, pide, res_ptr, *res_ptr); in sba_free_range()
508 *res_ptr &= ~m; in sba_free_range()