Lines Matching refs:bit_count
57 unsigned int bit_count, in mlxsw_sp2_kvdl_part_find_zero_bits() argument
71 if (!wrap && bit + bit_count >= part->usage_bit_count) { in mlxsw_sp2_kvdl_part_find_zero_bits()
76 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
78 for (i = 0; i < bit_count; i++) { in mlxsw_sp2_kvdl_part_find_zero_bits()
80 bit += bit_count; in mlxsw_sp2_kvdl_part_find_zero_bits()
92 unsigned int bit_count; in mlxsw_sp2_kvdl_part_alloc() local
97 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_alloc()
98 err = mlxsw_sp2_kvdl_part_find_zero_bits(part, bit_count, &bit); in mlxsw_sp2_kvdl_part_alloc()
101 for (i = 0; i < bit_count; i++) in mlxsw_sp2_kvdl_part_alloc()
128 unsigned int bit_count; in mlxsw_sp2_kvdl_part_free() local
139 bit_count = DIV_ROUND_UP(size, part->indexes_per_usage_bit); in mlxsw_sp2_kvdl_part_free()
141 for (i = 0; i < bit_count; i++) in mlxsw_sp2_kvdl_part_free()