Lines Matching refs:cm_id
675 if (ep->com.cm_id) { in close_complete_upcall()
677 ep, ep->com.cm_id, ep->hwtid); in close_complete_upcall()
678 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in close_complete_upcall()
679 ep->com.cm_id->rem_ref(ep->com.cm_id); in close_complete_upcall()
680 ep->com.cm_id = NULL; in close_complete_upcall()
692 if (ep->com.cm_id) { in peer_close_upcall()
694 ep, ep->com.cm_id, ep->hwtid); in peer_close_upcall()
695 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in peer_close_upcall()
707 if (ep->com.cm_id) { in peer_abort_upcall()
709 ep->com.cm_id, ep->hwtid); in peer_abort_upcall()
710 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in peer_abort_upcall()
711 ep->com.cm_id->rem_ref(ep->com.cm_id); in peer_abort_upcall()
712 ep->com.cm_id = NULL; in peer_abort_upcall()
734 if (ep->com.cm_id) { in connect_reply_upcall()
737 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in connect_reply_upcall()
740 ep->com.cm_id->rem_ref(ep->com.cm_id); in connect_reply_upcall()
741 ep->com.cm_id = NULL; in connect_reply_upcall()
767 ep->parent_ep->com.cm_id->event_handler( in connect_request_upcall()
768 ep->parent_ep->com.cm_id, in connect_request_upcall()
787 if (ep->com.cm_id) { in established_upcall()
789 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in established_upcall()
1398 child_ep->com.cm_id = NULL; in pass_accept_req()
1497 if (ep->com.cm_id && ep->com.qp) { in peer_close()
1592 if (ep->com.cm_id && ep->com.qp) { in peer_abort()
1659 if ((ep->com.cm_id) && (ep->com.qp)) { in close_con_rpl()
1754 if (ep->com.cm_id && ep->com.qp) { in ep_timeout()
1773 int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) in iwch_reject_cr() argument
1776 struct iwch_ep *ep = to_ep(cm_id); in iwch_reject_cr()
1794 int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) in iwch_accept_cr() argument
1799 struct iwch_ep *ep = to_ep(cm_id); in iwch_accept_cr()
1800 struct iwch_dev *h = to_iwch_dev(cm_id->device); in iwch_accept_cr()
1819 cm_id->add_ref(cm_id); in iwch_accept_cr()
1820 ep->com.cm_id = cm_id; in iwch_accept_cr()
1869 ep->com.cm_id = NULL; in iwch_accept_cr()
1871 cm_id->rem_ref(cm_id); in iwch_accept_cr()
1877 static int is_loopback_dst(struct iw_cm_id *cm_id) in is_loopback_dst() argument
1880 struct sockaddr_in *raddr = (struct sockaddr_in *)&cm_id->remote_addr; in is_loopback_dst()
1889 int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) in iwch_connect() argument
1891 struct iwch_dev *h = to_iwch_dev(cm_id->device); in iwch_connect()
1895 struct sockaddr_in *laddr = (struct sockaddr_in *)&cm_id->local_addr; in iwch_connect()
1896 struct sockaddr_in *raddr = (struct sockaddr_in *)&cm_id->remote_addr; in iwch_connect()
1898 if (cm_id->remote_addr.ss_family != PF_INET) { in iwch_connect()
1903 if (is_loopback_dst(cm_id)) { in iwch_connect()
1927 cm_id->add_ref(cm_id); in iwch_connect()
1928 ep->com.cm_id = cm_id; in iwch_connect()
1932 ep->com.qp, cm_id); in iwch_connect()
1964 memcpy(&ep->com.local_addr, &cm_id->local_addr, in iwch_connect()
1966 memcpy(&ep->com.remote_addr, &cm_id->remote_addr, in iwch_connect()
1980 cm_id->rem_ref(cm_id); in iwch_connect()
1986 int iwch_create_listen(struct iw_cm_id *cm_id, int backlog) in iwch_create_listen() argument
1989 struct iwch_dev *h = to_iwch_dev(cm_id->device); in iwch_create_listen()
1995 if (cm_id->local_addr.ss_family != PF_INET) { in iwch_create_listen()
2008 cm_id->add_ref(cm_id); in iwch_create_listen()
2009 ep->com.cm_id = cm_id; in iwch_create_listen()
2011 memcpy(&ep->com.local_addr, &cm_id->local_addr, in iwch_create_listen()
2033 cm_id->provider_data = ep; in iwch_create_listen()
2039 cm_id->rem_ref(cm_id); in iwch_create_listen()
2046 int iwch_destroy_listen(struct iw_cm_id *cm_id) in iwch_destroy_listen() argument
2049 struct iwch_listen_ep *ep = to_listen_ep(cm_id); in iwch_destroy_listen()
2064 cm_id->rem_ref(cm_id); in iwch_destroy_listen()