Lines Matching refs:resource_num
436 u32 resource_num; in i40iw_alloc_resource() local
440 resource_num = find_next_zero_bit(resource_array, max_resources, *next); in i40iw_alloc_resource()
441 if (resource_num >= max_resources) { in i40iw_alloc_resource()
442 resource_num = find_first_zero_bit(resource_array, max_resources); in i40iw_alloc_resource()
443 if (resource_num >= max_resources) { in i40iw_alloc_resource()
448 set_bit(resource_num, resource_array); in i40iw_alloc_resource()
449 *next = resource_num + 1; in i40iw_alloc_resource()
452 *req_resource_num = resource_num; in i40iw_alloc_resource()
467 u32 resource_num) in i40iw_is_resource_allocated() argument
474 bit_is_set = test_bit(resource_num, resource_array); in i40iw_is_resource_allocated()
488 u32 resource_num) in i40iw_free_resource() argument
493 clear_bit(resource_num, resource_array); in i40iw_free_resource()