Lines Matching refs:entry_index
106 unsigned int entry_index) in mlxsw_sp1_kvdl_to_kvdl_index() argument
108 return info->start_index + entry_index * info->alloc_size; in mlxsw_sp1_kvdl_to_kvdl_index()
122 unsigned int entry_index, nr_entries; in mlxsw_sp1_kvdl_part_alloc() local
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()
129 __set_bit(entry_index, part->usage); in mlxsw_sp1_kvdl_part_alloc()
131 *p_kvdl_index = mlxsw_sp1_kvdl_to_kvdl_index(info, entry_index); in mlxsw_sp1_kvdl_part_alloc()
140 unsigned int entry_index; in mlxsw_sp1_kvdl_part_free() local
142 entry_index = mlxsw_sp1_kvdl_to_entry_index(info, kvdl_index); in mlxsw_sp1_kvdl_part_free()
143 __clear_bit(entry_index, part->usage); in mlxsw_sp1_kvdl_part_free()
166 unsigned int entry_count, int entry_index) in mlxsw_sp1_kvdl_free() argument
171 part = mlxsw_sp1_kvdl_index_part(kvdl, entry_index); in mlxsw_sp1_kvdl_free()
174 mlxsw_sp1_kvdl_part_free(part, entry_index); in mlxsw_sp1_kvdl_free()