Lines Matching refs:resource_num
447 u32 resource_num; in i40iw_alloc_resource() local
451 resource_num = find_next_zero_bit(resource_array, max_resources, *next); in i40iw_alloc_resource()
452 if (resource_num >= max_resources) { in i40iw_alloc_resource()
453 resource_num = find_first_zero_bit(resource_array, max_resources); in i40iw_alloc_resource()
454 if (resource_num >= max_resources) { in i40iw_alloc_resource()
459 set_bit(resource_num, resource_array); in i40iw_alloc_resource()
460 *next = resource_num + 1; in i40iw_alloc_resource()
463 *req_resource_num = resource_num; in i40iw_alloc_resource()
478 u32 resource_num) in i40iw_is_resource_allocated() argument
485 bit_is_set = test_bit(resource_num, resource_array); in i40iw_is_resource_allocated()
499 u32 resource_num) in i40iw_free_resource() argument
504 clear_bit(resource_num, resource_array); in i40iw_free_resource()