Lines Matching defs:qp_count
231 unsigned int qp_count;
621 unsigned int mw_num, mw_count, qp_count;
626 qp_count = nt->qp_count;
634 if (mw_num < qp_count % mw_count)
635 num_qps_mw = qp_count / mw_count + 1;
637 num_qps_mw = qp_count / mw_count;
774 for (i = 0; i < nt->qp_count; i++)
785 for (i = 0; i < nt->qp_count; i++)
984 for (i = 0; i < nt->qp_count; i++)
1047 for (i = 0; i < nt->qp_count; i++)
1065 ntb_peer_spad_write(ndev, PIDX, NUM_QPS, nt->qp_count);
1077 if (val != nt->qp_count)
1103 for (i = 0; i < nt->qp_count; i++) {
1170 unsigned int mw_num, mw_count, qp_count;
1174 qp_count = nt->qp_count;
1186 if (mw_num < qp_count % mw_count)
1187 num_qps_mw = qp_count / mw_count + 1;
1189 num_qps_mw = qp_count / mw_count;
1252 unsigned int mw_count, qp_count, spad_count, max_mw_count_for_spads;
1338 qp_count = ilog2(qp_bitmap);
1340 qp_count -= 1;
1341 nt->msi_db_mask = 1 << qp_count;
1345 if (max_num_clients && max_num_clients < qp_count)
1346 qp_count = max_num_clients;
1347 else if (nt->mw_count < qp_count)
1348 qp_count = nt->mw_count;
1350 qp_bitmap &= BIT_ULL(qp_count) - 1;
1352 nt->qp_count = qp_count;
1356 nt->qp_vec = kcalloc_node(qp_count, sizeof(*nt->qp_vec),
1369 for (i = 0; i < qp_count; i++) {
1422 for (i = 0; i < nt->qp_count; i++) {