Lines Matching refs:sq_depth
284 #define QM_MK_SQC_DW3_V2(sqe_sz, sq_depth) \ argument
285 ((((u32)sq_depth) - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT))
2093 u16 sq_depth = qm->qp_array->cq_depth; in qm_sq_dump() local
2099 ret = q_dump_param_parse(qm, s, &sqe_id, &qp_id, sq_depth); in qm_sq_dump()
2103 sqe = kzalloc(qm->sqe_size * sq_depth, GFP_KERNEL); in qm_sq_dump()
2108 memcpy(sqe, qp->sqe, qm->sqe_size * sq_depth); in qm_sq_dump()
2806 if (unlikely(atomic_read(&qp->qp_status.used) == qp->sq_depth - 1)) in qm_get_avail_sqe()
2928 sqc->w8 = cpu_to_le16(qp->sq_depth - 1); in qm_sq_ctx_cfg()
2930 sqc->dw3 = cpu_to_le32(QM_MK_SQC_DW3_V2(qm->sqe_size, qp->sq_depth)); in qm_sq_ctx_cfg()
3060 u16 sq_depth = qp->sq_depth; in qp_stop_fail_cb() local
3061 u16 cur_head = (cur_tail + sq_depth - qp_used) % sq_depth; in qp_stop_fail_cb()
3067 pos = (i + cur_head) % sq_depth; in qp_stop_fail_cb()
3215 u16 sq_tail_next = (sq_tail + 1) % qp->sq_depth; in hisi_qp_send()
3429 qp_info.sq_depth = qp->sq_depth; in hisi_qm_uacce_ioctl()
3459 u16 sq_depth, cq_depth; in qm_alloc_uacce() local
3502 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP); in qm_alloc_uacce()
3505 dus_page_nr = (PAGE_SIZE - 1 + qm->sqe_size * sq_depth + in qm_alloc_uacce()
3612 u16 sq_depth, u16 cq_depth) in hisi_qp_memory_init() argument
3615 size_t off = qm->sqe_size * sq_depth; in hisi_qp_memory_init()
3635 qp->sq_depth = sq_depth; in hisi_qp_memory_init()
6269 u16 sq_depth, cq_depth; in hisi_qp_alloc_memory() local
6283 qm_get_xqc_depth(qm, &sq_depth, &cq_depth, QM_QP_DEPTH_CAP); in hisi_qp_alloc_memory()
6286 qp_dma_size = qm->sqe_size * sq_depth + sizeof(struct qm_cqe) * cq_depth; in hisi_qp_alloc_memory()
6290 ret = hisi_qp_memory_init(qm, qp_dma_size, i, sq_depth, cq_depth); in hisi_qp_alloc_memory()