Lines Matching refs:i

86 	int i, j;  in mlx4_make_profile()  local
135 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
136 profile[i].type = i; in mlx4_make_profile()
137 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile()
138 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile()
139 profile[i].size *= profile[i].num; in mlx4_make_profile()
140 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mlx4_make_profile()
149 for (i = MLX4_RES_NUM; i > 0; --i) in mlx4_make_profile()
150 for (j = 1; j < i; ++j) { in mlx4_make_profile()
155 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
156 if (profile[i].size) { in mlx4_make_profile()
157 profile[i].start = total_size; in mlx4_make_profile()
158 total_size += profile[i].size; in mlx4_make_profile()
169 if (profile[i].size) in mlx4_make_profile()
171 i, res_name[profile[i].type], in mlx4_make_profile()
172 profile[i].log_num, in mlx4_make_profile()
173 (unsigned long long) profile[i].start, in mlx4_make_profile()
174 (unsigned long long) profile[i].size); in mlx4_make_profile()
180 for (i = 0; i < MLX4_RES_NUM; ++i) { in mlx4_make_profile()
181 switch (profile[i].type) { in mlx4_make_profile()
183 dev->caps.num_qps = profile[i].num; in mlx4_make_profile()
184 init_hca->qpc_base = profile[i].start; in mlx4_make_profile()
185 init_hca->log_num_qps = profile[i].log_num; in mlx4_make_profile()
189 request->num_qp << priv->qp_table.rdmarc_shift < profile[i].num; in mlx4_make_profile()
193 priv->qp_table.rdmarc_base = (u32) profile[i].start; in mlx4_make_profile()
194 init_hca->rdmarc_base = profile[i].start; in mlx4_make_profile()
198 init_hca->altc_base = profile[i].start; in mlx4_make_profile()
201 init_hca->auxc_base = profile[i].start; in mlx4_make_profile()
204 dev->caps.num_srqs = profile[i].num; in mlx4_make_profile()
205 init_hca->srqc_base = profile[i].start; in mlx4_make_profile()
206 init_hca->log_num_srqs = profile[i].log_num; in mlx4_make_profile()
209 dev->caps.num_cqs = profile[i].num; in mlx4_make_profile()
210 init_hca->cqc_base = profile[i].start; in mlx4_make_profile()
211 init_hca->log_num_cqs = profile[i].log_num; in mlx4_make_profile()
216 init_hca->eqc_base = profile[i].start; in mlx4_make_profile()
223 init_hca->eqc_base = profile[i].start; in mlx4_make_profile()
228 dev->caps.num_mpts = profile[i].num; in mlx4_make_profile()
229 priv->mr_table.mpt_base = profile[i].start; in mlx4_make_profile()
230 init_hca->dmpt_base = profile[i].start; in mlx4_make_profile()
231 init_hca->log_mpt_sz = profile[i].log_num; in mlx4_make_profile()
234 init_hca->cmpt_base = profile[i].start; in mlx4_make_profile()
237 dev->caps.num_mtts = profile[i].num; in mlx4_make_profile()
238 priv->mr_table.mtt_base = profile[i].start; in mlx4_make_profile()
239 init_hca->mtt_base = profile[i].start; in mlx4_make_profile()
242 init_hca->mc_base = profile[i].start; in mlx4_make_profile()
245 init_hca->log_mc_table_sz = profile[i].log_num; in mlx4_make_profile()
248 dev->caps.num_mgms = profile[i].num; in mlx4_make_profile()
251 profile[i].log_num - 1; in mlx4_make_profile()
252 dev->caps.num_mgms = profile[i].num >> 1; in mlx4_make_profile()
253 dev->caps.num_amgms = profile[i].num >> 1; in mlx4_make_profile()