Lines Matching refs:cq_depth
251 #define QM_MK_CQC_DW3_V2(cqe_sz, cq_depth) \
252 ((((u32)cq_depth) - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
844 if (qp->qp_status.cq_head == qp->cq_depth - 1) {
1853 memset(qp->cqe, 0, sizeof(struct qm_cqe) * qp->cq_depth);
1945 cqc.w8 = cpu_to_le16(qp->cq_depth - 1);
1947 cqc.dw3 = cpu_to_le32(QM_MK_CQC_DW3_V2(QM_QC_CQE_SIZE, qp->cq_depth));
2432 qp_info.cq_depth = qp->cq_depth;
2582 u16 sq_depth, cq_depth;
2624 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP);
2628 sizeof(struct qm_cqe) * cq_depth + PAGE_SIZE) >>
2739 u16 sq_depth, u16 cq_depth)
2763 qp->cq_depth = cq_depth;
5228 u16 sq_depth, cq_depth;
5242 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP);
5245 qp_dma_size = qm->sqe_size * sq_depth + sizeof(struct qm_cqe) * cq_depth;
5249 ret = hisi_qp_memory_init(qm, qp_dma_size, i, sq_depth, cq_depth);