Lines Matching refs:qp_num

988 	if (unlikely(cqn >= qm->qp_num))
2006 if (qm->qp_in_used == qm->qp_num) {
2008 qm->qp_num);
2013 qp_id = idr_alloc_cyclic(&qm->qp_idr, NULL, 0, qm->qp_num, GFP_ATOMIC);
2016 qm->qp_num);
2411 ret = qm->qp_num - qm->qp_in_used;
2421 for (i = 0; i < qm->qp_num; i++)
2825 qm->qp_in_used = qm->qp_num;
2915 qm->poll_data[id].qp_finish_id = kcalloc(qm->qp_num, sizeof(u16),
3038 hisi_qp_memory_uninit(qm, qm->qp_num);
3198 ret = hisi_qm_set_vft(qm, 0, qm->qp_base, qm->qp_num);
3234 dev_dbg(dev, "qm start with %u queue pairs\n", qm->qp_num);
3236 if (!qm->qp_num) {
3237 dev_err(dev, "qp_num should not be 0\n");
3266 for (i = 0; i < qm->qp_num; i++) {
3291 for (i = 0; i < qm->qp_num; i++) {
3312 for (i = 0; i < qm->qp_num; i++) {
3459 * @qp_num: The num of queue pairs.
3461 void hisi_qm_free_qps(struct hisi_qp **qps, int qp_num)
3465 if (!qps || qp_num <= 0)
3468 for (i = qp_num - 1; i >= 0; i--)
3521 * @qp_num: The number of queue pairs need created.
3530 int hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num,
3538 if (!qps || !qm_list || qp_num <= 0)
3548 for (i = 0; i < qp_num; i++) {
3556 if (i == qp_num) {
3565 node, alg_type, qp_num);
3577 u32 q_base = qm->qp_num;
3583 vfs_q_num = qm->ctrl_qp_num - qm->qp_num;
4970 * @guard: Guard of qp_num.
4983 if (qm->qp_num < guard) {
4984 dev_info(dev, "qp_num is less than task need.\n");
4996 * @guard: Guard of qp_num.
5005 if (qm->qp_num < guard)
5187 /* VF's qp_num assigned by PF in v2, and VF can get qp_num by vft. */
5191 return hisi_qm_get_vft(qm, &qm->qp_base, &qm->qp_num);
5201 if (qm->qp_num <= qm->max_qp_num)
5207 qm->qp_num, qm->max_qp_num);
5212 qm->qp_num, qm->max_qp_num);
5213 qm->qp_num = qm->max_qp_num;
5214 qm->debug.curr_qm_qp_num = qm->qp_num;
5435 for (i = 0; i < qm->qp_num; i++)
5462 qm->qp_array = kcalloc(qm->qp_num, sizeof(struct hisi_qp), GFP_KERNEL);
5466 qm->poll_data = kcalloc(qm->qp_num, sizeof(struct hisi_qm_poll_data), GFP_KERNEL);
5477 for (i = 0; i < qm->qp_num; i++) {
5549 QMC_ALIGN(sizeof(struct qm_sqc) * qm->qp_num) +
5550 QMC_ALIGN(sizeof(struct qm_cqc) * qm->qp_num);
5561 QM_INIT_BUF(qm, sqc, qm->qp_num);
5562 QM_INIT_BUF(qm, cqc, qm->qp_num);