Lines Matching defs:qp_count
231 unsigned int qp_count;
623 unsigned int mw_num, mw_count, qp_count;
628 qp_count = nt->qp_count;
636 if (mw_num < qp_count % mw_count)
637 num_qps_mw = qp_count / mw_count + 1;
639 num_qps_mw = qp_count / mw_count;
776 for (i = 0; i < nt->qp_count; i++)
787 for (i = 0; i < nt->qp_count; i++)
986 for (i = 0; i < nt->qp_count; i++)
1049 for (i = 0; i < nt->qp_count; i++)
1067 ntb_peer_spad_write(ndev, PIDX, NUM_QPS, nt->qp_count);
1079 if (val != nt->qp_count)
1105 for (i = 0; i < nt->qp_count; i++) {
1172 unsigned int mw_num, mw_count, qp_count;
1176 qp_count = nt->qp_count;
1188 if (mw_num < qp_count % mw_count)
1189 num_qps_mw = qp_count / mw_count + 1;
1191 num_qps_mw = qp_count / mw_count;
1254 unsigned int mw_count, qp_count, spad_count, max_mw_count_for_spads;
1340 qp_count = ilog2(qp_bitmap);
1342 qp_count -= 1;
1343 nt->msi_db_mask = 1 << qp_count;
1347 if (max_num_clients && max_num_clients < qp_count)
1348 qp_count = max_num_clients;
1349 else if (nt->mw_count < qp_count)
1350 qp_count = nt->mw_count;
1352 qp_bitmap &= BIT_ULL(qp_count) - 1;
1354 nt->qp_count = qp_count;
1358 nt->qp_vec = kcalloc_node(qp_count, sizeof(*nt->qp_vec),
1371 for (i = 0; i < qp_count; i++) {
1424 for (i = 0; i < nt->qp_count; i++) {