Lines Matching refs:QM_Q_DEPTH
282 ((QM_Q_DEPTH - 1) | ((cqe_sz) << QM_CQ_CQE_SIZE_SHIFT))
296 ((QM_Q_DEPTH - 1) | ((u32)ilog2(sqe_sz) << QM_SQ_SQE_SIZE_SHIFT))
776 if (qp->qp_status.cq_head == QM_Q_DEPTH - 1) { in qm_cq_head_update()
905 if (qm->status.aeq_head == QM_Q_DEPTH - 1) { in qm_aeq_irq()
1697 if (ret || *e_id >= QM_Q_DEPTH) { in q_dump_param_parse()
1698 dev_err(dev, "Please input sqe num (0-%d)", QM_Q_DEPTH - 1); in q_dump_param_parse()
1722 sqe = kzalloc(qm->sqe_size * QM_Q_DEPTH, GFP_KERNEL); in qm_sq_dump()
1727 memcpy(sqe, qp->sqe, qm->sqe_size * QM_Q_DEPTH); in qm_sq_dump()
1780 } else if (!strcmp(name, "AEQE") && xeqe_id >= QM_Q_DEPTH) { in qm_eq_aeq_dump()
1781 dev_err(dev, "Please input aeqe num (0-%d)", QM_Q_DEPTH - 1); in qm_eq_aeq_dump()
2466 if (unlikely(atomic_read(&qp->qp_status.used) == QM_Q_DEPTH - 1)) in qm_get_avail_sqe()
2498 memset(qp->cqe, 0, sizeof(struct qm_cqe) * QM_Q_DEPTH); in qm_create_qp_nolock()
2581 sqc->w8 = cpu_to_le16(QM_Q_DEPTH - 1); in qm_sq_ctx_cfg()
2624 cqc->w8 = cpu_to_le16(QM_Q_DEPTH - 1); in qm_cq_ctx_cfg()
2713 u16 cur_head = (cur_tail + QM_Q_DEPTH - qp_used) % QM_Q_DEPTH; in qp_stop_fail_cb()
2719 pos = (i + cur_head) % QM_Q_DEPTH; in qp_stop_fail_cb()
2870 u16 sq_tail_next = (sq_tail + 1) % QM_Q_DEPTH; in hisi_qp_send()
3127 dus_page_nr = (PAGE_SIZE - 1 + qm->sqe_size * QM_Q_DEPTH + in qm_alloc_uacce()
3128 sizeof(struct qm_cqe) * QM_Q_DEPTH) >> PAGE_SHIFT; in qm_alloc_uacce()
3251 size_t off = qm->sqe_size * QM_Q_DEPTH; in hisi_qp_memory_init()
3485 aeqc->dw6 = cpu_to_le32((QM_Q_DEPTH - 1) | (1 << QM_EQC_PHASE_SHIFT)); in qm_aeq_ctx_cfg()
5686 qp_dma_size = qm->sqe_size * QM_Q_DEPTH + in hisi_qp_alloc_memory()
5687 sizeof(struct qm_cqe) * QM_Q_DEPTH; in hisi_qp_alloc_memory()
5723 QMC_ALIGN(sizeof(struct qm_aeqe) * QM_Q_DEPTH) + in hisi_qm_memory_init()
5735 QM_INIT_BUF(qm, aeqe, QM_Q_DEPTH); in hisi_qm_memory_init()