Searched refs:resource_num (Results 1 – 1 of 1) sorted by relevance
409 u32 resource_num; in nes_alloc_resource() local413 resource_num = find_next_zero_bit(resource_array, max_resources, *next); in nes_alloc_resource()414 if (resource_num >= max_resources) { in nes_alloc_resource()415 resource_num = find_first_zero_bit(resource_array, max_resources); in nes_alloc_resource()416 if (resource_num >= max_resources) { in nes_alloc_resource()422 set_bit(resource_num, resource_array); in nes_alloc_resource()423 *next = resource_num+1; in nes_alloc_resource()428 *req_resource_num = resource_num; in nes_alloc_resource()434 unsigned long *resource_array, u32 resource_num) in nes_is_resource_allocated() argument441 bit_is_set = test_bit(resource_num, resource_array); in nes_is_resource_allocated()[all …]