Lines Matching refs:cq_depth
238 #define QM_MK_CQC_DW3_V2(cqe_sz, cq_depth) \ argument
239 ((((u32)cq_depth) - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
824 if (qp->qp_status.cq_head == qp->cq_depth - 1) { in qm_cq_head_update()
1877 memset(qp->cqe, 0, sizeof(struct qm_cqe) * qp->cq_depth); in qm_create_qp_nolock()
2000 cqc->w8 = cpu_to_le16(qp->cq_depth - 1); in qm_cq_ctx_cfg()
2002 cqc->dw3 = cpu_to_le32(QM_MK_CQC_DW3_V2(QM_QC_CQE_SIZE, qp->cq_depth)); in qm_cq_ctx_cfg()
2459 qp_info.cq_depth = qp->cq_depth; in hisi_qm_uacce_ioctl()
2609 u16 sq_depth, cq_depth; in qm_alloc_uacce() local
2651 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP); in qm_alloc_uacce()
2655 sizeof(struct qm_cqe) * cq_depth + PAGE_SIZE) >> in qm_alloc_uacce()
2763 u16 sq_depth, u16 cq_depth) in hisi_qp_memory_init() argument
2787 qp->cq_depth = cq_depth; in hisi_qp_memory_init()
5255 u16 sq_depth, cq_depth; in hisi_qp_alloc_memory() local
5269 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP); in hisi_qp_alloc_memory()
5272 qp_dma_size = qm->sqe_size * sq_depth + sizeof(struct qm_cqe) * cq_depth; in hisi_qp_alloc_memory()
5276 ret = hisi_qp_memory_init(qm, qp_dma_size, i, sq_depth, cq_depth); in hisi_qp_alloc_memory()