Lines Matching refs:nr_entries
122 unsigned int entry_index, nr_entries; in mlxsw_sp1_kvdl_part_alloc() local
124 nr_entries = (info->end_index - info->start_index + 1) / in mlxsw_sp1_kvdl_part_alloc()
126 entry_index = find_first_zero_bit(part->usage, nr_entries); in mlxsw_sp1_kvdl_part_alloc()
127 if (entry_index == nr_entries) in mlxsw_sp1_kvdl_part_alloc()
215 unsigned int nr_entries; in mlxsw_sp1_kvdl_part_init() local
226 nr_entries = div_u64(resource_size, info->alloc_size); in mlxsw_sp1_kvdl_part_init()
227 part = kzalloc(struct_size(part, usage, BITS_TO_LONGS(nr_entries)), in mlxsw_sp1_kvdl_part_init()
280 unsigned int nr_entries; in mlxsw_sp1_kvdl_part_occ() local
284 nr_entries = (info->end_index - in mlxsw_sp1_kvdl_part_occ()
287 while ((bit = find_next_bit(part->usage, nr_entries, bit + 1)) in mlxsw_sp1_kvdl_part_occ()
288 < nr_entries) in mlxsw_sp1_kvdl_part_occ()