Lines Matching refs:rsrc_num
425 u32 rsrc_num; in irdma_alloc_rsrc() local
429 rsrc_num = find_next_zero_bit(rsrc_array, max_rsrc, *next); in irdma_alloc_rsrc()
430 if (rsrc_num >= max_rsrc) { in irdma_alloc_rsrc()
431 rsrc_num = find_first_zero_bit(rsrc_array, max_rsrc); in irdma_alloc_rsrc()
432 if (rsrc_num >= max_rsrc) { in irdma_alloc_rsrc()
436 rsrc_num); in irdma_alloc_rsrc()
440 __set_bit(rsrc_num, rsrc_array); in irdma_alloc_rsrc()
441 *next = rsrc_num + 1; in irdma_alloc_rsrc()
444 *req_rsrc_num = rsrc_num; in irdma_alloc_rsrc()
457 unsigned long *rsrc_array, u32 rsrc_num) in irdma_free_rsrc() argument
462 __clear_bit(rsrc_num, rsrc_array); in irdma_free_rsrc()