Lines Matching refs:i

80 	int i, j;  in mthca_make_profile()  local
114 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile()
115 profile[i].type = i; in mthca_make_profile()
116 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile()
117 profile[i].size *= profile[i].num; in mthca_make_profile()
119 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile()
136 for (i = MTHCA_RES_NUM; i > 0; --i) in mthca_make_profile()
137 for (j = 1; j < i; ++j) { in mthca_make_profile()
142 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile()
143 if (profile[i].size) { in mthca_make_profile()
144 profile[i].start = mem_base + total_size; in mthca_make_profile()
145 total_size += profile[i].size; in mthca_make_profile()
156 if (profile[i].size) in mthca_make_profile()
159 i, profile[i].type, profile[i].log_num, in mthca_make_profile()
160 (unsigned long long) profile[i].start, in mthca_make_profile()
161 (unsigned long long) profile[i].size); in mthca_make_profile()
172 for (i = 0; i < MTHCA_RES_NUM; ++i) { in mthca_make_profile()
173 switch (profile[i].type) { in mthca_make_profile()
175 dev->limits.num_qps = profile[i].num; in mthca_make_profile()
176 init_hca->qpc_base = profile[i].start; in mthca_make_profile()
177 init_hca->log_num_qps = profile[i].log_num; in mthca_make_profile()
180 dev->limits.num_eecs = profile[i].num; in mthca_make_profile()
181 init_hca->eec_base = profile[i].start; in mthca_make_profile()
182 init_hca->log_num_eecs = profile[i].log_num; in mthca_make_profile()
185 dev->limits.num_srqs = profile[i].num; in mthca_make_profile()
186 init_hca->srqc_base = profile[i].start; in mthca_make_profile()
187 init_hca->log_num_srqs = profile[i].log_num; in mthca_make_profile()
190 dev->limits.num_cqs = profile[i].num; in mthca_make_profile()
191 init_hca->cqc_base = profile[i].start; in mthca_make_profile()
192 init_hca->log_num_cqs = profile[i].log_num; in mthca_make_profile()
195 init_hca->eqpc_base = profile[i].start; in mthca_make_profile()
198 init_hca->eeec_base = profile[i].start; in mthca_make_profile()
201 dev->limits.num_eqs = profile[i].num; in mthca_make_profile()
202 init_hca->eqc_base = profile[i].start; in mthca_make_profile()
203 init_hca->log_num_eqs = profile[i].log_num; in mthca_make_profile()
207 request->num_qp << dev->qp_table.rdb_shift < profile[i].num; in mthca_make_profile()
210 dev->qp_table.rdb_base = (u32) profile[i].start; in mthca_make_profile()
211 init_hca->rdb_base = profile[i].start; in mthca_make_profile()
214 dev->limits.num_mgms = profile[i].num >> 1; in mthca_make_profile()
215 dev->limits.num_amgms = profile[i].num >> 1; in mthca_make_profile()
216 init_hca->mc_base = profile[i].start; in mthca_make_profile()
218 init_hca->log_mc_table_sz = profile[i].log_num; in mthca_make_profile()
219 init_hca->mc_hash_sz = 1 << (profile[i].log_num - 1); in mthca_make_profile()
222 dev->limits.num_mpts = profile[i].num; in mthca_make_profile()
223 dev->mr_table.mpt_base = profile[i].start; in mthca_make_profile()
224 init_hca->mpt_base = profile[i].start; in mthca_make_profile()
225 init_hca->log_mpt_sz = profile[i].log_num; in mthca_make_profile()
228 dev->limits.num_mtt_segs = profile[i].num; in mthca_make_profile()
229 dev->mr_table.mtt_base = profile[i].start; in mthca_make_profile()
230 init_hca->mtt_base = profile[i].start; in mthca_make_profile()
234 dev->limits.num_uars = profile[i].num; in mthca_make_profile()
235 init_hca->uar_scratch_base = profile[i].start; in mthca_make_profile()
238 dev->av_table.ddr_av_base = profile[i].start; in mthca_make_profile()
239 dev->av_table.num_ddr_avs = profile[i].num; in mthca_make_profile()
243 dev->uar_table.uarc_base = profile[i].start; in mthca_make_profile()
244 init_hca->uarc_base = profile[i].start; in mthca_make_profile()