Lines Matching refs:qp_id

892 		qm_db(qm, qp->qp_id, QM_DOORBELL_CMD_CQ,  in qm_poll_req_cb()
900 qm_db(qm, qp->qp_id, QM_DOORBELL_CMD_CQ, qp->qp_status.cq_head, 1); in qm_poll_req_cb()
1012 static void qm_disable_qp(struct hisi_qm *qm, u32 qp_id) in qm_disable_qp() argument
1014 struct hisi_qp *qp = &qm->qp_array[qp_id]; in qm_disable_qp()
1055 u32 type, qp_id; in qm_aeq_thread() local
1061 qp_id = le32_to_cpu(aeqe->dw0) & QM_AEQE_CQN_MASK; in qm_aeq_thread()
1070 qp_id); in qm_aeq_thread()
1073 qm_disable_qp(qm, qp_id); in qm_aeq_thread()
1373 static int qm_dump_sqc_raw(struct hisi_qm *qm, dma_addr_t dma_addr, u16 qp_id) in qm_dump_sqc_raw() argument
1375 return hisi_qm_mb(qm, QM_MB_CMD_SQC, dma_addr, qp_id, 1); in qm_dump_sqc_raw()
1378 static int qm_dump_cqc_raw(struct hisi_qm *qm, dma_addr_t dma_addr, u16 qp_id) in qm_dump_cqc_raw() argument
1380 return hisi_qm_mb(qm, QM_MB_CMD_CQC, dma_addr, qp_id, 1); in qm_dump_cqc_raw()
1751 return hisi_qm_mb(qp->qm, QM_MB_CMD_STOP_QP, 0, qp->qp_id, 0); in qm_stop_qp()
1889 int qp_id; in qm_create_qp_nolock() local
1901 qp_id = idr_alloc_cyclic(&qm->qp_idr, NULL, 0, qm->qp_num, GFP_ATOMIC); in qm_create_qp_nolock()
1902 if (qp_id < 0) { in qm_create_qp_nolock()
1909 qp = &qm->qp_array[qp_id]; in qm_create_qp_nolock()
1915 qp->qp_id = qp_id; in qm_create_qp_nolock()
1968 idr_remove(&qm->qp_idr, qp->qp_id); in hisi_qm_release_qp()
1975 static int qm_sq_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) in qm_sq_ctx_cfg() argument
1996 sqc->cq_num = cpu_to_le16(qp_id); in qm_sq_ctx_cfg()
2010 ret = hisi_qm_mb(qm, QM_MB_CMD_SQC, sqc_dma, qp_id, 0); in qm_sq_ctx_cfg()
2017 static int qm_cq_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) in qm_cq_ctx_cfg() argument
2051 ret = hisi_qm_mb(qm, QM_MB_CMD_CQC, cqc_dma, qp_id, 0); in qm_cq_ctx_cfg()
2058 static int qm_qp_ctx_cfg(struct hisi_qp *qp, int qp_id, u32 pasid) in qm_qp_ctx_cfg() argument
2064 ret = qm_sq_ctx_cfg(qp, qp_id, pasid); in qm_qp_ctx_cfg()
2068 return qm_cq_ctx_cfg(qp, qp_id, pasid); in qm_qp_ctx_cfg()
2075 int qp_id = qp->qp_id; in qm_start_qp_nolock() local
2082 ret = qm_qp_ctx_cfg(qp, qp_id, pasid); in qm_start_qp_nolock()
2087 dev_dbg(dev, "queue %d started\n", qp_id); in qm_start_qp_nolock()
2162 dev_err(dev, "Failed to stop qp(%u)!\n", qp->qp_id); in qm_drain_qp()
2173 ret = qm_dump_sqc_raw(qm, dma_addr, qp->qp_id); in qm_drain_qp()
2181 qp->qp_id); in qm_drain_qp()
2193 dev_err(dev, "Fail to empty queue %u!\n", qp->qp_id); in qm_drain_qp()
2236 dev_dbg(dev, "stop queue %u!", qp->qp_id); in qm_stop_qp_nolock()
2293 qm_db(qp->qm, qp->qp_id, QM_DOORBELL_CMD_SQ, sq_tail_next, 0); in hisi_qp_send()
2378 qp->qp_id * qm->db_interval; in hisi_qm_uacce_mmap()
2479 qp_ctx.id = qp->qp_id; in hisi_qm_uacce_ioctl()
2826 qp->qp_id = id; in hisi_qp_memory_init()