Lines Matching refs:cq_depth
239 #define QM_MK_CQC_DW3_V2(cqe_sz, cq_depth) \
240 ((((u32)cq_depth) - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
878 if (qp->qp_status.cq_head == qp->cq_depth - 1) {
1913 memset(qp->cqe, 0, sizeof(struct qm_cqe) * qp->cq_depth);
2036 cqc->w8 = cpu_to_le16(qp->cq_depth - 1);
2038 cqc->dw3 = cpu_to_le32(QM_MK_CQC_DW3_V2(QM_QC_CQE_SIZE, qp->cq_depth));
2495 qp_info.cq_depth = qp->cq_depth;
2645 u16 sq_depth, cq_depth;
2687 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP);
2691 sizeof(struct qm_cqe) * cq_depth + PAGE_SIZE) >>
2802 u16 sq_depth, u16 cq_depth)
2826 qp->cq_depth = cq_depth;
5332 u16 sq_depth, cq_depth;
5346 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP);
5349 qp_dma_size = qm->sqe_size * sq_depth + sizeof(struct qm_cqe) * cq_depth;
5353 ret = hisi_qp_memory_init(qm, qp_dma_size, i, sq_depth, cq_depth);