Lines Matching defs:qp
23 * HFI1_S_WAIT_PIO_DRAIN - qp waiting for PIOs to drain
49 static inline int hfi1_send_ok(struct rvt_qp *qp)
51 struct hfi1_qp_priv *priv = qp->priv;
53 return !(qp->s_flags & (RVT_S_BUSY | HFI1_S_ANY_WAIT_IO)) &&
55 (qp->s_flags & RVT_S_RESP_PENDING) ||
56 !(qp->s_flags & RVT_S_ANY_WAIT_SEND));
62 static inline void clear_ahg(struct rvt_qp *qp)
64 struct hfi1_qp_priv *priv = qp->priv;
67 qp->s_flags &= ~(HFI1_S_AHG_VALID | HFI1_S_AHG_CLEAR);
68 if (priv->s_sde && qp->s_ahgidx >= 0)
69 sdma_ahg_free(priv->s_sde, qp->s_ahgidx);
70 qp->s_ahgidx = -1;
75 * @qp: the QP
76 * @flag: flag the qp on which the qp is stalled
78 void hfi1_qp_wakeup(struct rvt_qp *qp, u32 flag);
80 struct sdma_engine *qp_to_sdma_engine(struct rvt_qp *qp, u8 sc5);
81 struct send_context *qp_to_send_context(struct rvt_qp *qp, u8 sc5);
85 bool _hfi1_schedule_send(struct rvt_qp *qp);
86 bool hfi1_schedule_send(struct rvt_qp *qp);
88 void hfi1_migrate_qp(struct rvt_qp *qp);
93 void *qp_priv_alloc(struct rvt_dev_info *rdi, struct rvt_qp *qp);
94 void qp_priv_free(struct rvt_dev_info *rdi, struct rvt_qp *qp);
96 void notify_qp_reset(struct rvt_qp *qp);
97 int get_pmtu_from_attr(struct rvt_dev_info *rdi, struct rvt_qp *qp,
99 void flush_qp_waiters(struct rvt_qp *qp);
100 void notify_error_qp(struct rvt_qp *qp);
101 void stop_send_queue(struct rvt_qp *qp);
102 void quiesce_qp(struct rvt_qp *qp);
103 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu);
106 void hfi1_qp_unbusy(struct rvt_qp *qp, struct iowait_work *wait);