Lines Matching refs:state

685  * If so, the qp is put into an error state to elminate
700 if (qp->state == IB_QPS_ERR || qp->state == IB_QPS_RESET)
813 * rvt_init_qp - initialize the QP state to the reset state
868 * _rvt_reset_qp - initialize the QP state to the reset state
884 if (qp->state != IB_QPS_RESET) {
885 qp->state = IB_QPS_RESET;
923 * rvt_reset_qp - initialize the QP state to the reset state
1151 qp->state = IB_QPS_RESET;
1276 * rvt_error_qp - put a QP into the error state
1277 * @qp: the QP to put into the error state
1284 * If we are already in error state, just return.
1294 if (qp->state == IB_QPS_ERR || qp->state == IB_QPS_RESET)
1297 qp->state = IB_QPS_ERR;
1422 attr->cur_qp_state : qp->state;
1531 if (qp->state != IB_QPS_RESET)
1538 qp->state = new_state;
1543 qp->state = new_state;
1549 qp->state = new_state;
1557 qp->state = new_state;
1724 attr->qp_state = qp->state;
1787 int qp_err_flush = (ib_rvt_state_ops[qp->state] & RVT_FLUSH_RECV) &&
1790 /* Check that state is OK to post receive. */
1791 if (!(ib_rvt_state_ops[qp->state] & RVT_POST_RECV_OK) || !wq) {
2156 * Ensure QP state is such that we can send. If not bail out early,
2159 if (unlikely(!(ib_rvt_state_ops[qp->state] & RVT_POST_SEND_OK))) {
2264 * Validate a RWQE and fill in the SGE state.
2370 if (!(ib_rvt_state_ops[qp->state] & RVT_PROCESS_RECV_OK)) {
2784 if (!(ib_rvt_state_ops[qp->state] & RVT_PROCESS_OR_FLUSH_SEND))
2798 if (qp->state == IB_QPS_SQD && last == qp->s_cur)
2806 * @ss: the SGE state
2923 * Note that we check the responder QP state after
2924 * checking the requester's state.
2934 !(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_OR_FLUSH_SEND))
2945 if (!(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_NEXT_SEND_OK)) {
2946 if (!(ib_rvt_state_ops[sqp->state] & RVT_FLUSH_SEND))
2948 /* We are in the error state, flush the work request. */
2969 if (!(ib_rvt_state_ops[qp->state] & RVT_PROCESS_RECV_OK) ||
3161 if (!(ib_rvt_state_ops[sqp->state] & RVT_PROCESS_RECV_OK))
3184 /* responder goes to error state */