Home
last modified time | relevance | path

Searched refs:resource_num (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/infiniband/hw/nes/
Dnes.h421 u32 resource_num; in nes_alloc_resource() local
425 resource_num = find_next_zero_bit(resource_array, max_resources, *next); in nes_alloc_resource()
426 if (resource_num >= max_resources) { in nes_alloc_resource()
427 resource_num = find_first_zero_bit(resource_array, max_resources); in nes_alloc_resource()
428 if (resource_num >= max_resources) { in nes_alloc_resource()
434 set_bit(resource_num, resource_array); in nes_alloc_resource()
435 *next = resource_num+1; in nes_alloc_resource()
440 *req_resource_num = resource_num; in nes_alloc_resource()
446 unsigned long *resource_array, u32 resource_num) in nes_is_resource_allocated() argument
453 bit_is_set = test_bit(resource_num, resource_array); in nes_is_resource_allocated()
[all …]
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw.h436 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()
[all …]