Lines Matching refs:i

87 	int i, j;  in mlx4_make_profile()  local
136 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
137 profile[i].type = i; in mlx4_make_profile()
138 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile()
139 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile()
140 profile[i].size *= profile[i].num; in mlx4_make_profile()
141 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mlx4_make_profile()
150 for (i = MLX4_RES_NUM; i > 0; --i) in mlx4_make_profile()
151 for (j = 1; j < i; ++j) { in mlx4_make_profile()
159 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
160 if (profile[i].size) { in mlx4_make_profile()
161 profile[i].start = total_size; in mlx4_make_profile()
162 total_size += profile[i].size; in mlx4_make_profile()
173 if (profile[i].size) in mlx4_make_profile()
175 i, res_name[profile[i].type], in mlx4_make_profile()
176 profile[i].log_num, in mlx4_make_profile()
177 (unsigned long long) profile[i].start, in mlx4_make_profile()
178 (unsigned long long) profile[i].size); in mlx4_make_profile()
184 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
185 switch (profile[i].type) { in mlx4_make_profile()
187 dev->caps.num_qps = profile[i].num; in mlx4_make_profile()
188 init_hca->qpc_base = profile[i].start; in mlx4_make_profile()
189 init_hca->log_num_qps = profile[i].log_num; in mlx4_make_profile()
193 request->num_qp << priv->qp_table.rdmarc_shift < profile[i].num; in mlx4_make_profile()
197 priv->qp_table.rdmarc_base = (u32) profile[i].start; in mlx4_make_profile()
198 init_hca->rdmarc_base = profile[i].start; in mlx4_make_profile()
202 init_hca->altc_base = profile[i].start; in mlx4_make_profile()
205 init_hca->auxc_base = profile[i].start; in mlx4_make_profile()
208 dev->caps.num_srqs = profile[i].num; in mlx4_make_profile()
209 init_hca->srqc_base = profile[i].start; in mlx4_make_profile()
210 init_hca->log_num_srqs = profile[i].log_num; in mlx4_make_profile()
213 dev->caps.num_cqs = profile[i].num; in mlx4_make_profile()
214 init_hca->cqc_base = profile[i].start; in mlx4_make_profile()
215 init_hca->log_num_cqs = profile[i].log_num; in mlx4_make_profile()
220 init_hca->eqc_base = profile[i].start; in mlx4_make_profile()
227 init_hca->eqc_base = profile[i].start; in mlx4_make_profile()
232 dev->caps.num_mpts = profile[i].num; in mlx4_make_profile()
233 priv->mr_table.mpt_base = profile[i].start; in mlx4_make_profile()
234 init_hca->dmpt_base = profile[i].start; in mlx4_make_profile()
235 init_hca->log_mpt_sz = profile[i].log_num; in mlx4_make_profile()
238 init_hca->cmpt_base = profile[i].start; in mlx4_make_profile()
241 dev->caps.num_mtts = profile[i].num; in mlx4_make_profile()
242 priv->mr_table.mtt_base = profile[i].start; in mlx4_make_profile()
243 init_hca->mtt_base = profile[i].start; in mlx4_make_profile()
246 init_hca->mc_base = profile[i].start; in mlx4_make_profile()
249 init_hca->log_mc_table_sz = profile[i].log_num; in mlx4_make_profile()
252 dev->caps.num_mgms = profile[i].num; in mlx4_make_profile()
255 profile[i].log_num - 1; in mlx4_make_profile()
256 dev->caps.num_mgms = profile[i].num >> 1; in mlx4_make_profile()
257 dev->caps.num_amgms = profile[i].num >> 1; in mlx4_make_profile()