Lines Matching refs:qp_id
635 qm_db(qm, qp->qp_id, QM_DOORBELL_CMD_CQ,
641 qm_db(qm, qp->qp_id, QM_DOORBELL_CMD_CQ,
1130 static int qm_dump_sqc_raw(struct hisi_qm *qm, dma_addr_t dma_addr, u16 qp_id)
1132 return qm_mb(qm, QM_MB_CMD_SQC, dma_addr, qp_id, 1);
1135 static int qm_dump_cqc_raw(struct hisi_qm *qm, dma_addr_t dma_addr, u16 qp_id)
1137 return qm_mb(qm, QM_MB_CMD_CQC, dma_addr, qp_id, 1);
1145 u32 qp_id;
1151 ret = kstrtou32(s, 0, &qp_id);
1152 if (ret || qp_id >= qm->qp_num) {
1161 ret = qm_dump_sqc_raw(qm, sqc_dma, qp_id);
1165 sqc_curr = qm->sqc + qp_id;
1191 u32 qp_id;
1197 ret = kstrtou32(s, 0, &qp_id);
1198 if (ret || qp_id >= qm->qp_num) {
1207 ret = qm_dump_cqc_raw(qm, cqc_dma, qp_id);
1211 cqc_curr = qm->cqc + qp_id;
1307 u32 qp_id, sqe_id;
1310 ret = q_dump_param_parse(qm, s, &sqe_id, &qp_id);
1318 qp = &qm->qp_array[qp_id];
1338 u32 qp_id, cqe_id;
1341 ret = q_dump_param_parse(qm, s, &cqe_id, &qp_id);
1345 qp = &qm->qp_array[qp_id];
1658 int qp_id;
1670 qp_id = idr_alloc_cyclic(&qm->qp_idr, NULL, 0, qm->qp_num, GFP_ATOMIC);
1671 if (qp_id < 0) {
1678 qp = &qm->qp_array[qp_id];
1684 qp->qp_id = qp_id;
1730 idr_remove(&qm->qp_idr, qp->qp_id);
1736 static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid)
1767 sqc->cq_num = cpu_to_le16(qp_id);
1770 ret = qm_mb(qm, QM_MB_CMD_SQC, sqc_dma, qp_id, 0);
1796 ret = qm_mb(qm, QM_MB_CMD_CQC, cqc_dma, qp_id, 0);
1807 int qp_id = qp->qp_id;
1814 ret = qm_qp_ctx_cfg(qp, qp_id, pasid);
1819 dev_dbg(dev, "queue %d started\n", qp_id);
1874 ret = qm_dump_sqc_raw(qm, dma_addr, qp->qp_id);
1882 qp->qp_id);
1894 dev_err(dev, "Fail to empty queue %u!\n", qp->qp_id);
1937 dev_dbg(dev, "stop queue %u!", qp->qp_id);
1994 qm_db(qp->qm, qp->qp_id, QM_DOORBELL_CMD_SQ, sq_tail_next, 0);
2142 qp_ctx.id = qp->qp_id;
2344 qp->qp_id = id;