Lines Matching refs:com
148 c4iw_qp_rem_ref(&ep->com.qp->ibqp); in deref_qp()
149 clear_bit(QP_REFERENCED, &ep->com.flags); in deref_qp()
154 set_bit(QP_REFERENCED, &ep->com.flags); in ref_qp()
155 c4iw_qp_add_ref(&ep->com.qp->ibqp); in ref_qp()
166 clear_bit(TIMEOUT, &ep->com.flags); in start_ep_timer()
167 c4iw_get_ep(&ep->com); in start_ep_timer()
178 if (!test_and_set_bit(TIMEOUT, &ep->com.flags)) in stop_ep_timer()
179 c4iw_put_ep(&ep->com); in stop_ep_timer()
230 ep->emss = ep->com.dev->rdev.lldi.mtus[GET_TCPOPT_MSS(opt)] - 40; in set_emss()
282 ep = container_of(kref, struct c4iw_ep, com.kref); in _c4iw_free_ep()
283 PDBG("%s ep %p state %s\n", __func__, ep, states[state_read(&ep->com)]); in _c4iw_free_ep()
284 if (test_bit(QP_REFERENCED, &ep->com.flags)) in _c4iw_free_ep()
286 if (test_bit(RELEASE_RESOURCES, &ep->com.flags)) { in _c4iw_free_ep()
287 remove_handle(ep->com.dev, &ep->com.dev->hwtid_idr, ep->hwtid); in _c4iw_free_ep()
288 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid); in _c4iw_free_ep()
297 set_bit(RELEASE_RESOURCES, &ep->com.flags); in release_ep_resources()
298 c4iw_put_ep(&ep->com); in release_ep_resources()
395 flowc->mnemval[0].val = cpu_to_be32(PCI_FUNC(ep->com.dev->rdev.lldi.pdev->devfn) << 8); in send_flowc()
420 c4iw_ofld_send(&ep->com.dev->rdev, skb); in send_flowc()
442 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_halfclose()
458 t4_set_arp_err_handler(skb, &ep->com.dev->rdev, abort_arp_failure); in send_abort()
464 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_abort()
520 int size = is_t4(ep->com.dev->rdev.lldi.adapter_type) ? in send_connect()
535 cxgb4_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx); in send_connect()
559 if (is_t4(ep->com.dev->rdev.lldi.adapter_type)) { in send_connect()
565 req->local_port = ep->com.local_addr.sin_port; in send_connect()
566 req->peer_port = ep->com.remote_addr.sin_port; in send_connect()
567 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in send_connect()
568 req->peer_ip = ep->com.remote_addr.sin_addr.s_addr; in send_connect()
570 req->params = cpu_to_be32(select_ntuple(ep->com.dev, in send_connect()
579 t5_req->local_port = ep->com.local_addr.sin_port; in send_connect()
580 t5_req->peer_port = ep->com.remote_addr.sin_port; in send_connect()
581 t5_req->local_ip = ep->com.local_addr.sin_addr.s_addr; in send_connect()
582 t5_req->peer_ip = ep->com.remote_addr.sin_addr.s_addr; in send_connect()
585 select_ntuple(ep->com.dev, ep->dst, ep->l2t))); in send_connect()
589 set_bit(ACT_OPEN_REQ, &ep->com.history); in send_connect()
590 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_connect()
678 c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_mpa_req()
680 state_set(&ep->com, MPA_REQ_SENT); in send_mpa_req()
761 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_mpa_reject()
844 state_set(&ep->com, MPA_REP_SENT); in send_mpa_reply()
845 return c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_mpa_reply()
874 remove_handle(ep->com.dev, &ep->com.dev->atid_idr, atid); in act_establish()
876 set_bit(ACT_ESTAB, &ep->com.history); in act_establish()
895 if (ep->com.cm_id) { in close_complete_upcall()
897 ep, ep->com.cm_id, ep->hwtid); in close_complete_upcall()
898 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in close_complete_upcall()
899 ep->com.cm_id->rem_ref(ep->com.cm_id); in close_complete_upcall()
900 ep->com.cm_id = NULL; in close_complete_upcall()
901 set_bit(CLOSE_UPCALL, &ep->com.history); in close_complete_upcall()
909 state_set(&ep->com, ABORTING); in abort_connection()
910 set_bit(ABORT_CONN, &ep->com.history); in abort_connection()
921 if (ep->com.cm_id) { in peer_close_upcall()
923 ep, ep->com.cm_id, ep->hwtid); in peer_close_upcall()
924 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in peer_close_upcall()
925 set_bit(DISCONN_UPCALL, &ep->com.history); in peer_close_upcall()
937 if (ep->com.cm_id) { in peer_abort_upcall()
939 ep->com.cm_id, ep->hwtid); in peer_abort_upcall()
940 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in peer_abort_upcall()
941 ep->com.cm_id->rem_ref(ep->com.cm_id); in peer_abort_upcall()
942 ep->com.cm_id = NULL; in peer_abort_upcall()
943 set_bit(ABORT_UPCALL, &ep->com.history); in peer_abort_upcall()
955 event.local_addr = ep->com.local_addr; in connect_reply_upcall()
956 event.remote_addr = ep->com.remote_addr; in connect_reply_upcall()
976 set_bit(CONN_RPL_UPCALL, &ep->com.history); in connect_reply_upcall()
977 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in connect_reply_upcall()
980 ep->com.cm_id->rem_ref(ep->com.cm_id); in connect_reply_upcall()
981 ep->com.cm_id = NULL; in connect_reply_upcall()
992 event.local_addr = ep->com.local_addr; in connect_request_upcall()
993 event.remote_addr = ep->com.remote_addr; in connect_request_upcall()
1010 if (state_read(&ep->parent_ep->com) != DEAD) { in connect_request_upcall()
1011 c4iw_get_ep(&ep->com); in connect_request_upcall()
1012 ep->parent_ep->com.cm_id->event_handler( in connect_request_upcall()
1013 ep->parent_ep->com.cm_id, in connect_request_upcall()
1016 set_bit(CONNREQ_UPCALL, &ep->com.history); in connect_request_upcall()
1017 c4iw_put_ep(&ep->parent_ep->com); in connect_request_upcall()
1030 if (ep->com.cm_id) { in established_upcall()
1032 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in established_upcall()
1033 set_bit(ESTAB_UPCALL, &ep->com.history); in established_upcall()
1059 c4iw_ofld_send(&ep->com.dev->rdev, skb); in update_rx_credits()
1082 if (state_read(&ep->com) != MPA_REQ_SENT) in process_mpa_reply()
1157 state_set(&ep->com, FPDU_MODE); in process_mpa_reply()
1233 err = c4iw_modify_qp(ep->com.qp->rhp, in process_mpa_reply()
1234 ep->com.qp, mask, &attrs, 1); in process_mpa_reply()
1247 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_mpa_reply()
1265 err = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in process_mpa_reply()
1272 state_set(&ep->com, ABORTING); in process_mpa_reply()
1287 if (state_read(&ep->com) != MPA_REQ_WAIT) in process_mpa_request()
1409 state_set(&ep->com, MPA_REQ_RCVD); in process_mpa_request()
1433 switch (state_read(&ep->com)) { in rx_data()
1444 BUG_ON(!ep->com.qp); in rx_data()
1448 __func__, ep->com.qp->wq.sq.qid, ep, in rx_data()
1449 state_read(&ep->com), ep->hwtid, status); in rx_data()
1451 c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in rx_data()
1476 mutex_lock(&ep->com.mutex); in abort_rpl()
1477 switch (ep->com.state) { in abort_rpl()
1479 c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET); in abort_rpl()
1480 __state_set(&ep->com, DEAD); in abort_rpl()
1485 __func__, ep, ep->com.state); in abort_rpl()
1488 mutex_unlock(&ep->com.mutex); in abort_rpl()
1507 req->le.filter = cpu_to_be32(select_ntuple(ep->com.dev, ep->dst, in send_fw_act_open_req()
1509 req->le.lport = ep->com.local_addr.sin_port; in send_fw_act_open_req()
1510 req->le.pport = ep->com.remote_addr.sin_port; in send_fw_act_open_req()
1511 req->le.u.ipv4.lip = ep->com.local_addr.sin_addr.s_addr; in send_fw_act_open_req()
1512 req->le.u.ipv4.pip = ep->com.remote_addr.sin_addr.s_addr; in send_fw_act_open_req()
1520 cxgb4_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx); in send_fw_act_open_req()
1535 TX_QUEUE(ep->com.dev->rdev.lldi.tx_modq[ep->tx_chan]) | in send_fw_act_open_req()
1548 set_bit(ACT_OFLD_CONN, &ep->com.history); in send_fw_act_open_req()
1549 c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in send_fw_act_open_req()
1572 PDBG("%s qp %p cm_id %p\n", __func__, ep->com.qp, ep->com.cm_id); in c4iw_reconnect()
1578 ep->atid = cxgb4_alloc_atid(ep->com.dev->rdev.lldi.tids, ep); in c4iw_reconnect()
1584 insert_handle(ep->com.dev, &ep->com.dev->atid_idr, ep, ep->atid); in c4iw_reconnect()
1587 rt = find_route(ep->com.dev, in c4iw_reconnect()
1588 ep->com.cm_id->local_addr.sin_addr.s_addr, in c4iw_reconnect()
1589 ep->com.cm_id->remote_addr.sin_addr.s_addr, in c4iw_reconnect()
1590 ep->com.cm_id->local_addr.sin_port, in c4iw_reconnect()
1591 ep->com.cm_id->remote_addr.sin_port, 0); in c4iw_reconnect()
1600 &ep->com.cm_id->remote_addr.sin_addr.s_addr); in c4iw_reconnect()
1611 ep->com.cm_id->remote_addr.sin_addr.s_addr); in c4iw_reconnect()
1612 ep->l2t = cxgb4_l2t_get(ep->com.dev->rdev.lldi.l2t, in c4iw_reconnect()
1620 ep->l2t = cxgb4_l2t_get(ep->com.dev->rdev.lldi.l2t, in c4iw_reconnect()
1629 step = ep->com.dev->rdev.lldi.ntxq / ep->com.dev->rdev.lldi.nchan; in c4iw_reconnect()
1632 step = ep->com.dev->rdev.lldi.nrxq / ep->com.dev->rdev.lldi.nchan; in c4iw_reconnect()
1633 ep->rss_qid = ep->com.dev->rdev.lldi.rxq_ids[pi->port_id * step]; in c4iw_reconnect()
1645 state_set(&ep->com, CONNECTING); in c4iw_reconnect()
1657 remove_handle(ep->com.dev, &ep->com.dev->atid_idr, ep->atid); in c4iw_reconnect()
1658 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); in c4iw_reconnect()
1667 c4iw_put_ep(&ep->com); in c4iw_reconnect()
1692 set_bit(ACT_OPEN_RPL, &ep->com.history); in act_open_rpl()
1714 set_bit(ACT_RETRY_INUSE, &ep->com.history); in act_open_rpl()
1715 remove_handle(ep->com.dev, &ep->com.dev->atid_idr, in act_open_rpl()
1728 &ep->com.local_addr.sin_addr.s_addr, in act_open_rpl()
1729 ntohs(ep->com.local_addr.sin_port), in act_open_rpl()
1730 &ep->com.remote_addr.sin_addr.s_addr, in act_open_rpl()
1731 ntohs(ep->com.remote_addr.sin_port)); in act_open_rpl()
1736 state_set(&ep->com, DEAD); in act_open_rpl()
1739 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, GET_TID(rpl)); in act_open_rpl()
1741 remove_handle(ep->com.dev, &ep->com.dev->atid_idr, atid); in act_open_rpl()
1745 c4iw_put_ep(&ep->com); in act_open_rpl()
1763 c4iw_wake_up(&ep->com.wr_wait, status2errno(rpl->status)); in pass_open_rpl()
1785 QUEUENO(ep->com.dev->rdev.lldi.rxq_ids[0])); in listen_stop()
1787 return c4iw_ofld_send(&ep->com.dev->rdev, skb); in listen_stop()
1798 c4iw_wake_up(&ep->com.wr_wait, status2errno(rpl->status)); in close_listsrv_rpl()
1815 cxgb4_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx); in accept_cr()
1854 c4iw_l2t_send(&ep->com.dev->rdev, skb, ep->l2t); in accept_cr()
1986 if (state_read(&parent_ep->com) != LISTEN) { in pass_accept_req()
2022 state_set(&child_ep->com, CONNECTING); in pass_accept_req()
2023 child_ep->com.dev = dev; in pass_accept_req()
2024 child_ep->com.cm_id = NULL; in pass_accept_req()
2025 child_ep->com.local_addr.sin_family = PF_INET; in pass_accept_req()
2026 child_ep->com.local_addr.sin_port = local_port; in pass_accept_req()
2027 child_ep->com.local_addr.sin_addr.s_addr = local_ip; in pass_accept_req()
2028 child_ep->com.remote_addr.sin_family = PF_INET; in pass_accept_req()
2029 child_ep->com.remote_addr.sin_port = peer_port; in pass_accept_req()
2030 child_ep->com.remote_addr.sin_addr.s_addr = peer_ip; in pass_accept_req()
2031 c4iw_get_ep(&parent_ep->com); in pass_accept_req()
2044 set_bit(PASS_ACCEPT_REQ, &child_ep->com.history); in pass_accept_req()
2070 state_set(&ep->com, MPA_REQ_WAIT); in pass_establish()
2073 set_bit(PASS_ESTAB, &ep->com.history); in pass_establish()
2093 set_bit(PEER_CLOSE, &ep->com.history); in peer_close()
2094 mutex_lock(&ep->com.mutex); in peer_close()
2095 switch (ep->com.state) { in peer_close()
2097 __state_set(&ep->com, CLOSING); in peer_close()
2100 __state_set(&ep->com, CLOSING); in peer_close()
2111 __state_set(&ep->com, CLOSING); in peer_close()
2113 c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET); in peer_close()
2116 __state_set(&ep->com, CLOSING); in peer_close()
2118 c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET); in peer_close()
2122 __state_set(&ep->com, CLOSING); in peer_close()
2124 ret = c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in peer_close()
2135 __state_set(&ep->com, MORIBUND); in peer_close()
2140 if (ep->com.cm_id && ep->com.qp) { in peer_close()
2142 c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in peer_close()
2146 __state_set(&ep->com, DEAD); in peer_close()
2156 mutex_unlock(&ep->com.mutex); in peer_close()
2192 ep->com.state); in peer_abort()
2193 set_bit(PEER_ABORT, &ep->com.history); in peer_abort()
2200 if (ep->com.state != MPA_REQ_SENT) in peer_abort()
2201 c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET); in peer_abort()
2203 mutex_lock(&ep->com.mutex); in peer_abort()
2204 switch (ep->com.state) { in peer_abort()
2237 if (ep->com.cm_id && ep->com.qp) { in peer_abort()
2239 ret = c4iw_modify_qp(ep->com.qp->rhp, in peer_abort()
2240 ep->com.qp, C4IW_QP_ATTR_NEXT_STATE, in peer_abort()
2253 mutex_unlock(&ep->com.mutex); in peer_abort()
2260 if (ep->com.state != ABORTING) { in peer_abort()
2261 __state_set(&ep->com, DEAD); in peer_abort()
2266 mutex_unlock(&ep->com.mutex); in peer_abort()
2280 c4iw_ofld_send(&ep->com.dev->rdev, rpl_skb); in peer_abort()
2285 remove_handle(ep->com.dev, &ep->com.dev->hwtid_idr, ep->hwtid); in peer_abort()
2286 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid); in peer_abort()
2310 mutex_lock(&ep->com.mutex); in close_con_rpl()
2311 switch (ep->com.state) { in close_con_rpl()
2313 __state_set(&ep->com, MORIBUND); in close_con_rpl()
2317 if ((ep->com.cm_id) && (ep->com.qp)) { in close_con_rpl()
2319 c4iw_modify_qp(ep->com.qp->rhp, in close_con_rpl()
2320 ep->com.qp, in close_con_rpl()
2325 __state_set(&ep->com, DEAD); in close_con_rpl()
2335 mutex_unlock(&ep->com.mutex); in close_con_rpl()
2352 if (ep && ep->com.qp) { in terminate()
2354 ep->com.qp->wq.sq.qid); in terminate()
2356 c4iw_modify_qp(ep->com.qp->rhp, ep->com.qp, in terminate()
2382 __func__, ep, ep->hwtid, state_read(&ep->com)); in fw4_ack()
2390 state_read(&ep->com), ep->mpa_attr.initiator ? 1 : 0); in fw4_ack()
2403 if (state_read(&ep->com) == DEAD) { in c4iw_reject_cr()
2404 c4iw_put_ep(&ep->com); in c4iw_reject_cr()
2407 set_bit(ULP_REJECT, &ep->com.history); in c4iw_reject_cr()
2408 BUG_ON(state_read(&ep->com) != MPA_REQ_RCVD); in c4iw_reject_cr()
2415 c4iw_put_ep(&ep->com); in c4iw_reject_cr()
2429 if (state_read(&ep->com) == DEAD) { in c4iw_accept_cr()
2434 BUG_ON(state_read(&ep->com) != MPA_REQ_RCVD); in c4iw_accept_cr()
2437 set_bit(ULP_ACCEPT, &ep->com.history); in c4iw_accept_cr()
2476 ep->com.cm_id = cm_id; in c4iw_accept_cr()
2477 ep->com.qp = qp; in c4iw_accept_cr()
2494 err = c4iw_modify_qp(ep->com.qp->rhp, in c4iw_accept_cr()
2495 ep->com.qp, mask, &attrs, 1); in c4iw_accept_cr()
2503 state_set(&ep->com, FPDU_MODE); in c4iw_accept_cr()
2505 c4iw_put_ep(&ep->com); in c4iw_accept_cr()
2508 ep->com.cm_id = NULL; in c4iw_accept_cr()
2511 c4iw_put_ep(&ep->com); in c4iw_accept_cr()
2545 ep->com.dev = dev; in c4iw_connect()
2546 ep->com.cm_id = cm_id; in c4iw_connect()
2547 ep->com.qp = get_qhp(dev, conn_param->qpn); in c4iw_connect()
2548 BUG_ON(!ep->com.qp); in c4iw_connect()
2551 ep->com.qp, cm_id); in c4iw_connect()
2584 ep->dst, ep->com.dev, true); in c4iw_connect()
2594 state_set(&ep->com, CONNECTING); in c4iw_connect()
2596 ep->com.local_addr = cm_id->local_addr; in c4iw_connect()
2597 ep->com.remote_addr = cm_id->remote_addr; in c4iw_connect()
2608 remove_handle(ep->com.dev, &ep->com.dev->atid_idr, ep->atid); in c4iw_connect()
2609 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); in c4iw_connect()
2612 c4iw_put_ep(&ep->com); in c4iw_connect()
2633 ep->com.cm_id = cm_id; in c4iw_create_listen()
2634 ep->com.dev = dev; in c4iw_create_listen()
2636 ep->com.local_addr = cm_id->local_addr; in c4iw_create_listen()
2652 state_set(&ep->com, LISTEN); in c4iw_create_listen()
2656 ep->com.dev->rdev.lldi.ports[0], ep->stid, in c4iw_create_listen()
2657 ep->com.local_addr.sin_addr.s_addr, in c4iw_create_listen()
2658 ep->com.local_addr.sin_port, in c4iw_create_listen()
2660 ep->com.dev->rdev.lldi.rxq_ids[0], in c4iw_create_listen()
2669 c4iw_init_wr_wait(&ep->com.wr_wait); in c4iw_create_listen()
2670 err = cxgb4_create_server(ep->com.dev->rdev.lldi.ports[0], in c4iw_create_listen()
2671 ep->stid, ep->com.local_addr.sin_addr.s_addr, in c4iw_create_listen()
2672 ep->com.local_addr.sin_port, in c4iw_create_listen()
2674 ep->com.dev->rdev.lldi.rxq_ids[0]); in c4iw_create_listen()
2676 err = c4iw_wait_for_reply(&ep->com.dev->rdev, in c4iw_create_listen()
2677 &ep->com.wr_wait, in c4iw_create_listen()
2687 ntohl(ep->com.local_addr.sin_addr.s_addr), in c4iw_create_listen()
2688 ntohs(ep->com.local_addr.sin_port)); in c4iw_create_listen()
2689 cxgb4_free_stid(ep->com.dev->rdev.lldi.tids, ep->stid, PF_INET); in c4iw_create_listen()
2692 c4iw_put_ep(&ep->com); in c4iw_create_listen()
2706 state_set(&ep->com, DEAD); in c4iw_destroy_listen()
2707 if (ep->com.dev->rdev.lldi.enable_fw_ofld_conn) { in c4iw_destroy_listen()
2709 ep->com.dev->rdev.lldi.ports[0], ep->stid, in c4iw_destroy_listen()
2710 ep->com.dev->rdev.lldi.rxq_ids[0], 0); in c4iw_destroy_listen()
2712 c4iw_init_wr_wait(&ep->com.wr_wait); in c4iw_destroy_listen()
2716 err = c4iw_wait_for_reply(&ep->com.dev->rdev, &ep->com.wr_wait, in c4iw_destroy_listen()
2719 remove_handle(ep->com.dev, &ep->com.dev->stid_idr, ep->stid); in c4iw_destroy_listen()
2720 cxgb4_free_stid(ep->com.dev->rdev.lldi.tids, ep->stid, PF_INET); in c4iw_destroy_listen()
2723 c4iw_put_ep(&ep->com); in c4iw_destroy_listen()
2734 mutex_lock(&ep->com.mutex); in c4iw_ep_disconnect()
2737 states[ep->com.state], abrupt); in c4iw_ep_disconnect()
2739 rdev = &ep->com.dev->rdev; in c4iw_ep_disconnect()
2743 ep->com.state = DEAD; in c4iw_ep_disconnect()
2745 switch (ep->com.state) { in c4iw_ep_disconnect()
2753 ep->com.state = ABORTING; in c4iw_ep_disconnect()
2755 ep->com.state = CLOSING; in c4iw_ep_disconnect()
2758 set_bit(CLOSE_SENT, &ep->com.flags); in c4iw_ep_disconnect()
2761 if (!test_and_set_bit(CLOSE_SENT, &ep->com.flags)) { in c4iw_ep_disconnect()
2765 ep->com.state = ABORTING; in c4iw_ep_disconnect()
2767 ep->com.state = MORIBUND; in c4iw_ep_disconnect()
2774 __func__, ep, ep->com.state); in c4iw_ep_disconnect()
2783 set_bit(EP_DISC_ABORT, &ep->com.history); in c4iw_ep_disconnect()
2787 set_bit(EP_DISC_CLOSE, &ep->com.history); in c4iw_ep_disconnect()
2793 mutex_unlock(&ep->com.mutex); in c4iw_ep_disconnect()
2812 set_bit(ACT_RETRY_NOMEM, &ep->com.history); in active_ofld_conn_reply()
2818 set_bit(ACT_RETRY_INUSE, &ep->com.history); in active_ofld_conn_reply()
2835 state_set(&ep->com, DEAD); in active_ofld_conn_reply()
2840 c4iw_put_ep(&ep->com); in active_ofld_conn_reply()
3168 mutex_lock(&ep->com.mutex); in process_timeout()
3170 ep->com.state); in process_timeout()
3171 set_bit(TIMEDOUT, &ep->com.history); in process_timeout()
3172 switch (ep->com.state) { in process_timeout()
3174 __state_set(&ep->com, ABORTING); in process_timeout()
3178 __state_set(&ep->com, ABORTING); in process_timeout()
3182 if (ep->com.cm_id && ep->com.qp) { in process_timeout()
3184 c4iw_modify_qp(ep->com.qp->rhp, in process_timeout()
3185 ep->com.qp, C4IW_QP_ATTR_NEXT_STATE, in process_timeout()
3188 __state_set(&ep->com, ABORTING); in process_timeout()
3192 __func__, ep, ep->hwtid, ep->com.state); in process_timeout()
3195 mutex_unlock(&ep->com.mutex); in process_timeout()
3198 c4iw_put_ep(&ep->com); in process_timeout()
3248 if (!test_and_set_bit(TIMEOUT, &ep->com.flags)) { in ep_timeout()
3339 ep->com.state); in peer_abort_intr()
3347 if (ep->com.state != MPA_REQ_SENT) in peer_abort_intr()
3348 c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET); in peer_abort_intr()
3350 c4iw_wake_up(&ep->com.wr_wait, -ECONNRESET); in peer_abort_intr()