Lines Matching refs:res_ptr

317 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr,  in ptr_to_pide()  argument
320 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
337 unsigned long *res_ptr = ioc->res_hint; in sba_search_bitmap() local
356 for(; res_ptr < res_end; ++res_ptr) { in sba_search_bitmap()
357 tpide = ptr_to_pide(ioc, res_ptr, 0); in sba_search_bitmap()
361 if ((*res_ptr == 0) && !ret) { in sba_search_bitmap()
362 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap()
368 res_ptr++; in sba_search_bitmap()
383 res_ptr++; in sba_search_bitmap()
387 DBG_RES("%s() o %ld %p", __func__, o, res_ptr); in sba_search_bitmap()
388 while(res_ptr < res_end) in sba_search_bitmap()
390 DBG_RES(" %p %lx %lx\n", res_ptr, mask, *res_ptr); in sba_search_bitmap()
392 tpide = ptr_to_pide(ioc, res_ptr, bitshiftcnt); in sba_search_bitmap()
396 if ((((*res_ptr) & mask) == 0) && !ret) { in sba_search_bitmap()
397 *res_ptr |= mask; /* mark resources busy! */ in sba_search_bitmap()
406 res_ptr++; in sba_search_bitmap()
414 if (res_end <= res_ptr) { in sba_search_bitmap()
418 ioc->res_hint = res_ptr; in sba_search_bitmap()
492 unsigned long *res_ptr = (unsigned long *) &((ioc)->res_map[ridx & ~RESMAP_IDX_MASK]); in sba_free_range() local
501 bits_not_wanted, m, pide, res_ptr, *res_ptr); in sba_free_range()
507 *res_ptr &= ~m; in sba_free_range()
1847 unsigned int *res_ptr = (unsigned int *)ioc->res_map; in sba_proc_bitmap_info() local
1850 for (i = 0; i < (ioc->res_size/sizeof(unsigned int)); ++i, ++res_ptr) { in sba_proc_bitmap_info()
1853 len += seq_printf(m, " %08x", *res_ptr); in sba_proc_bitmap_info()