Lines Matching defs:qp
65 * HFI1_S_WAIT_PIO_DRAIN - qp waiting for PIOs to drain
91 static inline int hfi1_send_ok(struct rvt_qp *qp)
93 struct hfi1_qp_priv *priv = qp->priv;
95 return !(qp->s_flags & (RVT_S_BUSY | HFI1_S_ANY_WAIT_IO)) &&
97 (qp->s_flags & RVT_S_RESP_PENDING) ||
98 !(qp->s_flags & RVT_S_ANY_WAIT_SEND));
104 static inline void clear_ahg(struct rvt_qp *qp)
106 struct hfi1_qp_priv *priv = qp->priv;
109 qp->s_flags &= ~(HFI1_S_AHG_VALID | HFI1_S_AHG_CLEAR);
110 if (priv->s_sde && qp->s_ahgidx >= 0)
111 sdma_ahg_free(priv->s_sde, qp->s_ahgidx);
112 qp->s_ahgidx = -1;
117 * @qp: the QP
118 * @flag: flag the qp on which the qp is stalled
120 void hfi1_qp_wakeup(struct rvt_qp *qp, u32 flag);
122 struct sdma_engine *qp_to_sdma_engine(struct rvt_qp *qp, u8 sc5);
123 struct send_context *qp_to_send_context(struct rvt_qp *qp, u8 sc5);
127 bool _hfi1_schedule_send(struct rvt_qp *qp);
128 bool hfi1_schedule_send(struct rvt_qp *qp);
130 void hfi1_migrate_qp(struct rvt_qp *qp);
135 void *qp_priv_alloc(struct rvt_dev_info *rdi, struct rvt_qp *qp);
136 void qp_priv_free(struct rvt_dev_info *rdi, struct rvt_qp *qp);
138 void notify_qp_reset(struct rvt_qp *qp);
139 int get_pmtu_from_attr(struct rvt_dev_info *rdi, struct rvt_qp *qp,
141 void flush_qp_waiters(struct rvt_qp *qp);
142 void notify_error_qp(struct rvt_qp *qp);
143 void stop_send_queue(struct rvt_qp *qp);
144 void quiesce_qp(struct rvt_qp *qp);
145 u32 mtu_from_qp(struct rvt_dev_info *rdi, struct rvt_qp *qp, u32 pmtu);
148 void hfi1_qp_unbusy(struct rvt_qp *qp, struct iowait_work *wait);