Lines Matching refs:attrs
111 if (likely(qp->attrs.state == SIW_QP_STATE_RTS)) in siw_qp_llp_data_ready()
132 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close()
138 qp->attrs.sk = NULL; in siw_qp_llp_close()
140 switch (qp->attrs.state) { in siw_qp_llp_close()
145 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_llp_close()
155 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_llp_close()
157 qp->attrs.state = SIW_QP_STATE_IDLE; in siw_qp_llp_close()
162 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close()
179 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close()
209 qp->attrs.irq_size = 0; in siw_qp_readq_init()
217 qp->attrs.orq_size = 0; in siw_qp_readq_init()
218 qp->attrs.irq_size = 0; in siw_qp_readq_init()
223 qp->attrs.irq_size = irq_size; in siw_qp_readq_init()
224 qp->attrs.orq_size = orq_size; in siw_qp_readq_init()
300 if (qp->attrs.orq_size) in siw_qp_mpa_rts()
396 struct socket *s = qp->attrs.sk; in siw_send_terminate()
616 struct siw_qp_attrs *attrs, in siw_qp_modify_nonstate() argument
620 if (attrs->flags & SIW_RDMA_BIND_ENABLED) in siw_qp_modify_nonstate()
621 qp->attrs.flags |= SIW_RDMA_BIND_ENABLED; in siw_qp_modify_nonstate()
623 qp->attrs.flags &= ~SIW_RDMA_BIND_ENABLED; in siw_qp_modify_nonstate()
625 if (attrs->flags & SIW_RDMA_WRITE_ENABLED) in siw_qp_modify_nonstate()
626 qp->attrs.flags |= SIW_RDMA_WRITE_ENABLED; in siw_qp_modify_nonstate()
628 qp->attrs.flags &= ~SIW_RDMA_WRITE_ENABLED; in siw_qp_modify_nonstate()
630 if (attrs->flags & SIW_RDMA_READ_ENABLED) in siw_qp_modify_nonstate()
631 qp->attrs.flags |= SIW_RDMA_READ_ENABLED; in siw_qp_modify_nonstate()
633 qp->attrs.flags &= ~SIW_RDMA_READ_ENABLED; in siw_qp_modify_nonstate()
638 struct siw_qp_attrs *attrs, in siw_qp_nextstate_from_idle() argument
643 switch (attrs->state) { in siw_qp_nextstate_from_idle()
645 if (attrs->flags & SIW_MPA_CRC) { in siw_qp_nextstate_from_idle()
678 rv = siw_qp_readq_init(qp, attrs->irq_size, in siw_qp_nextstate_from_idle()
679 attrs->orq_size); in siw_qp_nextstate_from_idle()
683 qp->attrs.sk = attrs->sk; in siw_qp_nextstate_from_idle()
684 qp->attrs.state = SIW_QP_STATE_RTS; in siw_qp_nextstate_from_idle()
687 attrs->flags & SIW_MPA_CRC ? "y" : "n", in siw_qp_nextstate_from_idle()
688 qp->attrs.orq_size, qp->attrs.irq_size); in siw_qp_nextstate_from_idle()
693 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_nextstate_from_idle()
707 struct siw_qp_attrs *attrs) in siw_qp_nextstate_from_rts() argument
711 switch (attrs->state) { in siw_qp_nextstate_from_rts()
722 qp->attrs.state = SIW_QP_STATE_CLOSING; in siw_qp_nextstate_from_rts()
724 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_nextstate_from_rts()
733 qp->attrs.state = SIW_QP_STATE_TERMINATE; in siw_qp_nextstate_from_rts()
757 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_nextstate_from_rts()
768 struct siw_qp_attrs *attrs) in siw_qp_nextstate_from_term() argument
770 switch (attrs->state) { in siw_qp_nextstate_from_term()
773 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_nextstate_from_term()
785 struct siw_qp_attrs *attrs) in siw_qp_nextstate_from_close() argument
789 switch (attrs->state) { in siw_qp_nextstate_from_close()
792 qp->attrs.state = SIW_QP_STATE_IDLE; in siw_qp_nextstate_from_close()
807 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_nextstate_from_close()
817 siw_qp_state_to_string[qp->attrs.state], in siw_qp_nextstate_from_close()
818 siw_qp_state_to_string[attrs->state]); in siw_qp_nextstate_from_close()
828 int siw_qp_modify(struct siw_qp *qp, struct siw_qp_attrs *attrs, in siw_qp_modify() argument
837 siw_qp_state_to_string[qp->attrs.state], in siw_qp_modify()
838 siw_qp_state_to_string[attrs->state]); in siw_qp_modify()
841 siw_qp_modify_nonstate(qp, attrs, mask); in siw_qp_modify()
846 switch (qp->attrs.state) { in siw_qp_modify()
849 rv = siw_qp_nextstate_from_idle(qp, attrs, mask); in siw_qp_modify()
853 drop_conn = siw_qp_nextstate_from_rts(qp, attrs); in siw_qp_modify()
857 siw_qp_nextstate_from_term(qp, attrs); in siw_qp_modify()
861 siw_qp_nextstate_from_close(qp, attrs); in siw_qp_modify()
929 if (qp->attrs.orq_size && !siw_orq_empty(qp)) { in siw_activate_tx_from_sq()
939 if (unlikely(!qp->attrs.orq_size)) { in siw_activate_tx_from_sq()
985 if (!qp->attrs.irq_size) in siw_activate_tx()
988 irqe = &qp->irq[qp->irq_get % qp->attrs.irq_size]; in siw_activate_tx()
1200 while (qp->attrs.orq_size) { in siw_sq_flush()
1201 sqe = &qp->orq[qp->orq_get % qp->attrs.orq_size]; in siw_sq_flush()
1236 while (qp->attrs.sq_size) { in siw_sq_flush()
1237 sqe = &qp->sendq[qp->sq_get % qp->attrs.sq_size]; in siw_sq_flush()
1299 while (qp->attrs.rq_size) { in siw_rq_flush()
1301 &qp->recvq[qp->rq_get % qp->attrs.rq_size]; in siw_rq_flush()