Lines Matching defs:sq_depth
253 #define QM_MK_SQC_DW3_V2(sqe_sz, sq_depth) \
254 ((((u32)sq_depth) - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT))
1872 if (unlikely(atomic_read(&qp->qp_status.used) == qp->sq_depth - 1))
1993 sqc->w8 = cpu_to_le16(qp->sq_depth - 1);
1995 sqc->dw3 = cpu_to_le32(QM_MK_SQC_DW3_V2(qm->sqe_size, qp->sq_depth));
2125 u16 sq_depth = qp->sq_depth;
2126 u16 cur_head = (cur_tail + sq_depth - qp_used) % sq_depth;
2132 pos = (i + cur_head) % sq_depth;
2280 u16 sq_tail_next = (sq_tail + 1) % qp->sq_depth;
2494 qp_info.sq_depth = qp->sq_depth;
2645 u16 sq_depth, cq_depth;
2687 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP);
2690 dus_page_nr = (PAGE_SIZE - 1 + qm->sqe_size * sq_depth +
2802 u16 sq_depth, u16 cq_depth)
2805 size_t off = qm->sqe_size * sq_depth;
2825 qp->sq_depth = sq_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);