Lines Matching refs:qp_status

430 		qp_curr = atomic_read(&qp->qp_status.flags);  in qm_qp_avail_state()
611 if (qp->qp_status.cq_head == QM_Q_DEPTH - 1) { in qm_cq_head_update()
612 qp->qp_status.cqc_phase = !qp->qp_status.cqc_phase; in qm_cq_head_update()
613 qp->qp_status.cq_head = 0; in qm_cq_head_update()
615 qp->qp_status.cq_head++; in qm_cq_head_update()
627 struct qm_cqe *cqe = qp->cqe + qp->qp_status.cq_head; in qm_poll_qp()
629 while (QM_CQE_PHASE(cqe) == qp->qp_status.cqc_phase) { in qm_poll_qp()
634 cqe = qp->cqe + qp->qp_status.cq_head; in qm_poll_qp()
636 qp->qp_status.cq_head, 0); in qm_poll_qp()
637 atomic_dec(&qp->qp_status.used); in qm_poll_qp()
642 qp->qp_status.cq_head, 1); in qm_poll_qp()
755 struct hisi_qp_status *qp_status = &qp->qp_status; in qm_init_qp_status() local
757 qp_status->sq_tail = 0; in qm_init_qp_status()
758 qp_status->cq_head = 0; in qm_init_qp_status()
759 qp_status->cqc_phase = true; in qm_init_qp_status()
760 atomic_set(&qp_status->used, 0); in qm_init_qp_status()
1645 struct hisi_qp_status *qp_status = &qp->qp_status; in qm_get_avail_sqe() local
1646 u16 sq_tail = qp_status->sq_tail; in qm_get_avail_sqe()
1648 if (unlikely(atomic_read(&qp->qp_status.used) == QM_Q_DEPTH - 1)) in qm_get_avail_sqe()
1687 atomic_set(&qp->qp_status.flags, QP_INIT); in qm_create_qp_nolock()
1818 atomic_set(&qp->qp_status.flags, QP_START); in qm_start_qp_nolock()
1918 if (atomic_read(&qp->qp_status.flags) == QP_STOP) { in qm_stop_qp_nolock()
1926 atomic_set(&qp->qp_status.flags, QP_STOP); in qm_stop_qp_nolock()
1977 struct hisi_qp_status *qp_status = &qp->qp_status; in hisi_qp_send() local
1978 u16 sq_tail = qp_status->sq_tail; in hisi_qp_send()
1982 if (unlikely(atomic_read(&qp->qp_status.flags) == QP_STOP || in hisi_qp_send()
1995 atomic_inc(&qp->qp_status.used); in hisi_qp_send()
1996 qp_status->sq_tail = sq_tail_next; in hisi_qp_send()
2654 if (atomic_read(&qp->qp_status.flags) == QP_STOP && in qm_restart()
2680 if (qp && atomic_read(&qp->qp_status.flags) == QP_START) { in qm_stop_started_qp()