Lines Matching refs:qp_num
1871 if (qm->qp_in_used == qm->qp_num) { in qm_create_qp_nolock()
1873 qm->qp_num); in qm_create_qp_nolock()
1878 qp_id = idr_alloc_cyclic(&qm->qp_idr, NULL, 0, qm->qp_num, GFP_ATOMIC); in qm_create_qp_nolock()
1881 qm->qp_num); in qm_create_qp_nolock()
2304 ret = qm->qp_num - qm->qp_in_used; in hisi_qm_get_available_instances()
2314 for (i = 0; i < qm->qp_num; i++) in hisi_qm_set_hw_reset()
2694 qm->qp_in_used = qm->qp_num; in qm_frozen()
2784 qm->poll_data[id].qp_finish_id = kcalloc(qm->qp_num, sizeof(u16), in hisi_qp_memory_init()
2897 hisi_qp_memory_uninit(qm, qm->qp_num); in hisi_qm_memory_uninit()
3100 ret = hisi_qm_set_vft(qm, 0, qm->qp_base, qm->qp_num); in __hisi_qm_start()
3141 dev_dbg(dev, "qm start with %u queue pairs\n", qm->qp_num); in hisi_qm_start()
3143 if (!qm->qp_num) { in hisi_qm_start()
3171 for (i = 0; i < qm->qp_num; i++) { in qm_restart()
3197 for (i = 0; i < qm->qp_num; i++) { in qm_stop_started_qp()
3224 for (i = 0; i < qm->qp_num; i++) { in qm_clear_queues()
3362 void hisi_qm_free_qps(struct hisi_qp **qps, int qp_num) in hisi_qm_free_qps() argument
3366 if (!qps || qp_num <= 0) in hisi_qm_free_qps()
3369 for (i = qp_num - 1; i >= 0; i--) in hisi_qm_free_qps()
3431 int hisi_qm_alloc_qps_node(struct hisi_qm_list *qm_list, int qp_num, in hisi_qm_alloc_qps_node() argument
3439 if (!qps || !qm_list || qp_num <= 0) in hisi_qm_alloc_qps_node()
3449 for (i = 0; i < qp_num; i++) { in hisi_qm_alloc_qps_node()
3457 if (i == qp_num) { in hisi_qm_alloc_qps_node()
3466 node, alg_type, qp_num); in hisi_qm_alloc_qps_node()
3478 u32 q_base = qm->qp_num; in qm_vf_q_assign()
3484 vfs_q_num = qm->ctrl_qp_num - qm->qp_num; in qm_vf_q_assign()
5102 return hisi_qm_get_vft(qm, &qm->qp_base, &qm->qp_num); in qm_get_qp_num()
5113 if (qm->qp_num > qm->max_qp_num) { in qm_get_qp_num()
5115 qm->qp_num, qm->max_qp_num); in qm_get_qp_num()
5248 for (i = 0; i < qm->qp_num; i++) in hisi_qm_init_work()
5275 qm->qp_array = kcalloc(qm->qp_num, sizeof(struct hisi_qp), GFP_KERNEL); in hisi_qp_alloc_memory()
5279 qm->poll_data = kcalloc(qm->qp_num, sizeof(struct hisi_qm_poll_data), GFP_KERNEL); in hisi_qp_alloc_memory()
5290 for (i = 0; i < qm->qp_num; i++) { in hisi_qp_alloc_memory()
5332 QMC_ALIGN(sizeof(struct qm_sqc) * qm->qp_num) + in hisi_qm_memory_init()
5333 QMC_ALIGN(sizeof(struct qm_cqc) * qm->qp_num); in hisi_qm_memory_init()
5344 QM_INIT_BUF(qm, sqc, qm->qp_num); in hisi_qm_memory_init()
5345 QM_INIT_BUF(qm, cqc, qm->qp_num); in hisi_qm_memory_init()