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