Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c45 unsigned int usage_bit_count; member
65 if (start_bit == part->usage_bit_count) in mlxsw_sp2_kvdl_part_find_zero_bits()
69 bit = find_next_zero_bit(part->usage, part->usage_bit_count, bit); in mlxsw_sp2_kvdl_part_find_zero_bits()
70 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits()
185 unsigned int usage_bit_count; in mlxsw_sp2_kvdl_part_init() local
193 usage_bit_count = mlxsw_core_res_get(mlxsw_sp->core, in mlxsw_sp2_kvdl_part_init()
202 indexes_per_usage_bit = index_range / usage_bit_count; in mlxsw_sp2_kvdl_part_init()
204 usage_size = BITS_TO_LONGS(usage_bit_count) * sizeof(unsigned long); in mlxsw_sp2_kvdl_part_init()
209 part->usage_bit_count = usage_bit_count; in mlxsw_sp2_kvdl_part_init()
211 part->last_allocated_bit = usage_bit_count - 1; in mlxsw_sp2_kvdl_part_init()