Lines Matching refs:res_ptr
323 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr,
326 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3)
344 unsigned long *res_ptr = ioc->res_hint;
362 for(; res_ptr < res_end; ++res_ptr) {
363 tpide = ptr_to_pide(ioc, res_ptr, 0);
367 if ((*res_ptr == 0) && !ret) {
368 *res_ptr = RESMAP_MASK(bits_wanted);
374 res_ptr++;
389 res_ptr++;
393 DBG_RES("%s() o %ld %p", __func__, o, res_ptr);
394 while(res_ptr < res_end)
396 DBG_RES(" %p %lx %lx\n", res_ptr, mask, *res_ptr);
398 tpide = ptr_to_pide(ioc, res_ptr, bitshiftcnt);
402 if ((((*res_ptr) & mask) == 0) && !ret) {
403 *res_ptr |= mask; /* mark resources busy! */
412 res_ptr++;
420 if (res_end <= res_ptr) {
424 ioc->res_hint = res_ptr;
499 unsigned long *res_ptr = (unsigned long *) &((ioc)->res_map[ridx & ~RESMAP_IDX_MASK]);
508 bits_not_wanted, m, pide, res_ptr, *res_ptr);
514 *res_ptr &= ~m;