Lines Matching refs:bit_count
56 unsigned int bit_count, in mlxsw_sp2_kvdl_part_find_zero_bits() argument
70 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits()
75 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
77 for (i = 0; i < bit_count; i++) { in mlxsw_sp2_kvdl_part_find_zero_bits()
79 bit += bit_count; in mlxsw_sp2_kvdl_part_find_zero_bits()
91 unsigned int bit_count; in mlxsw_sp2_kvdl_part_alloc() local
96 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_alloc()
97 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_count, &bit); in mlxsw_sp2_kvdl_part_alloc()
100 for (i = 0; i < bit_count; i++) in mlxsw_sp2_kvdl_part_alloc()
127 unsigned int bit_count; in mlxsw_sp2_kvdl_part_free() local
138 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_free()
140 for (i = 0; i < bit_count; i++) in mlxsw_sp2_kvdl_part_free()