Lines Matching refs:QM_Q_DEPTH

195 	((QM_Q_DEPTH - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
209 ((QM_Q_DEPTH - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT))
611 if (qp->qp_status.cq_head == QM_Q_DEPTH - 1) { in qm_cq_head_update()
722 if (qm->status.aeq_head == QM_Q_DEPTH - 1) { in qm_aeq_irq()
1289 if (ret || *e_id >= QM_Q_DEPTH) { in q_dump_param_parse()
1290 dev_err(dev, "Please input sqe num (0-%d)", QM_Q_DEPTH - 1); in q_dump_param_parse()
1314 sqe = kzalloc(qm->sqe_size * QM_Q_DEPTH, GFP_KERNEL); in qm_sq_dump()
1319 memcpy(sqe, qp->sqe, qm->sqe_size * QM_Q_DEPTH); in qm_sq_dump()
1372 } else if (!strcmp(name, "AEQE") && xeqe_id >= QM_Q_DEPTH) { in qm_eq_aeq_dump()
1373 dev_err(dev, "Please input aeqe num (0-%d)", QM_Q_DEPTH - 1); in qm_eq_aeq_dump()
1648 if (unlikely(atomic_read(&qp->qp_status.used) == QM_Q_DEPTH - 1)) in qm_get_avail_sqe()
1680 memset(qp->cqe, 0, sizeof(struct qm_cqe) * QM_Q_DEPTH); in qm_create_qp_nolock()
1762 sqc->w8 = cpu_to_le16(QM_Q_DEPTH - 1); in qm_qp_ctx_cfg()
1789 cqc->w8 = cpu_to_le16(QM_Q_DEPTH - 1); in qm_qp_ctx_cfg()
1979 u16 sq_tail_next = (sq_tail + 1) % QM_Q_DEPTH; in hisi_qp_send()
2207 dus_page_nr = (PAGE_SIZE - 1 + qm->sqe_size * QM_Q_DEPTH + in qm_alloc_uacce()
2208 sizeof(struct qm_cqe) * QM_Q_DEPTH) >> PAGE_SHIFT; in qm_alloc_uacce()
2329 size_t off = qm->sqe_size * QM_Q_DEPTH; in hisi_qp_memory_init()
2363 QMC_ALIGN(sizeof(struct qm_aeqe) * QM_Q_DEPTH) + in hisi_qm_memory_init()
2373 QM_INIT_BUF(qm, aeqe, QM_Q_DEPTH); in hisi_qm_memory_init()
2384 qp_dma_size = qm->sqe_size * QM_Q_DEPTH + in hisi_qm_memory_init()
2385 sizeof(struct qm_cqe) * QM_Q_DEPTH; in hisi_qm_memory_init()
2562 aeqc->dw6 = cpu_to_le32((QM_Q_DEPTH - 1) | (1 << QM_EQC_PHASE_SHIFT)); in qm_eq_ctx_cfg()