Home
last modified time | relevance | path

Searched refs:cm_id (Results 1 – 25 of 33) sorted by relevance

12

/drivers/infiniband/hw/amso1100/
Dc2_cm.c41 int c2_llp_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param) in c2_llp_connect() argument
43 struct c2_dev *c2dev = to_c2dev(cm_id->device); in c2_llp_connect()
49 struct sockaddr_in *raddr = (struct sockaddr_in *)&cm_id->remote_addr; in c2_llp_connect()
51 if (cm_id->remote_addr.ss_family != AF_INET) in c2_llp_connect()
54 ibqp = c2_get_qp(cm_id->device, iw_param->qpn); in c2_llp_connect()
60 cm_id->provider_data = qp; in c2_llp_connect()
61 cm_id->add_ref(cm_id); in c2_llp_connect()
62 qp->cm_id = cm_id; in c2_llp_connect()
128 cm_id->provider_data = NULL; in c2_llp_connect()
129 qp->cm_id = NULL; in c2_llp_connect()
[all …]
Dc2_ae.c187 struct iw_cm_id *cm_id = qp->cm_id; in c2_ae_event() local
190 if (!cm_id) { in c2_ae_event()
221 if (qp->cm_id) { in c2_ae_event()
222 qp->cm_id->rem_ref(qp->cm_id); in c2_ae_event()
223 qp->cm_id = NULL; in c2_ae_event()
229 if (cm_id->event_handler) in c2_ae_event()
230 cm_id->event_handler(cm_id, &cm_event); in c2_ae_event()
247 BUG_ON(cm_id->event_handler==(void*)0x6b6b6b6b); in c2_ae_event()
250 if (qp->cm_id) { in c2_ae_event()
251 qp->cm_id->rem_ref(qp->cm_id); in c2_ae_event()
[all …]
Dc2_intr.c200 cm_event.local_addr = req->cm_id->local_addr; in handle_vq()
201 cm_event.remote_addr = req->cm_id->remote_addr; in handle_vq()
204 req->cm_id->event_handler(req->cm_id, &cm_event); in handle_vq()
Dc2_qp.c174 if (qp->cm_id && qp->state == IB_QPS_RTS) { in c2_qp_modify()
176 "qp=%p, cm_id=%p\n",qp,qp->cm_id); in c2_qp_modify()
178 vq_req->cm_id = qp->cm_id; in c2_qp_modify()
236 if (vq_req->event==IW_CM_EVENT_CLOSE && qp->cm_id) { in c2_qp_modify()
237 qp->cm_id->rem_ref(qp->cm_id); in c2_qp_modify()
238 qp->cm_id = NULL; in c2_qp_modify()
332 if (qp->cm_id && qp->state == IB_QPS_RTS) { in destroy_qp()
334 "qp=%p, cm_id=%p\n",qp,qp->cm_id); in destroy_qp()
337 vq_req->cm_id = qp->cm_id; in destroy_qp()
369 if (qp->cm_id) { in destroy_qp()
[all …]
Dc2_provider.c593 static int c2_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param) in c2_connect() argument
598 return c2_llp_connect(cm_id, iw_param); in c2_connect()
601 static int c2_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param) in c2_accept() argument
606 return c2_llp_accept(cm_id, iw_param); in c2_accept()
609 static int c2_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) in c2_reject() argument
615 err = c2_llp_reject(cm_id, pdata, pdata_len); in c2_reject()
619 static int c2_service_create(struct iw_cm_id *cm_id, int backlog) in c2_service_create() argument
624 err = c2_llp_service_create(cm_id, backlog); in c2_service_create()
631 static int c2_service_destroy(struct iw_cm_id *cm_id) in c2_service_destroy() argument
636 err = c2_llp_service_destroy(cm_id); in c2_service_destroy()
Dc2.h521 extern int c2_llp_connect(struct iw_cm_id *cm_id,
523 extern int c2_llp_accept(struct iw_cm_id *cm_id,
525 extern int c2_llp_reject(struct iw_cm_id *cm_id, const void *pdata,
527 extern int c2_llp_service_create(struct iw_cm_id *cm_id, int backlog);
528 extern int c2_llp_service_destroy(struct iw_cm_id *cm_id);
Dc2_vq.h46 struct iw_cm_id *cm_id; member
Dc2_provider.h109 struct iw_cm_id *cm_id; member
/drivers/infiniband/core/
Diwcm.c63 struct iwcm_id_private *cm_id; member
121 list_add(&work->free_list, &work->cm_id->work_free_list); in put_work()
143 work->cm_id = cm_id_priv; in alloc_work_entries()
189 static void add_ref(struct iw_cm_id *cm_id) in add_ref() argument
192 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in add_ref()
196 static void rem_ref(struct iw_cm_id *cm_id) in rem_ref() argument
201 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in rem_ref()
214 static int cm_event_handler(struct iw_cm_id *cm_id, struct iw_cm_event *event);
281 int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt) in iw_cm_disconnect() argument
288 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_disconnect()
[all …]
Ducma.c87 struct rdma_cm_id *cm_id; member
108 struct rdma_cm_id *cm_id; member
245 static int ucma_event_handler(struct rdma_cm_id *cm_id, in ucma_event_handler() argument
249 struct ucma_context *ctx = cm_id->context; in ucma_event_handler()
257 uevent->cm_id = cm_id; in ucma_event_handler()
261 if (cm_id->qp_type == IB_QPT_UD) in ucma_event_handler()
274 } else if (!ctx->uid || ctx->cm_id != cm_id) { in ucma_event_handler()
329 ctx->cm_id = uevent->cm_id; in ucma_get_event()
330 ctx->cm_id->context = ctx; in ucma_get_event()
394 ctx->cm_id = rdma_create_id(ucma_event_handler, ctx, cmd.ps, qp_type); in ucma_create_id()
[all …]
Dcm.c839 static void cm_destroy_id(struct ib_cm_id *cm_id, int err) in cm_destroy_id() argument
844 cm_id_priv = container_of(cm_id, struct cm_id_private, id); in cm_destroy_id()
847 switch (cm_id->state) { in cm_destroy_id()
849 cm_id->state = IB_CM_IDLE; in cm_destroy_id()
856 cm_id->state = IB_CM_IDLE; in cm_destroy_id()
872 ib_send_cm_rej(cm_id, IB_CM_REJ_TIMEOUT, in cm_destroy_id()
884 ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED, in cm_destroy_id()
897 ib_send_cm_rej(cm_id, IB_CM_REJ_CONSUMER_DEFINED, in cm_destroy_id()
904 ib_send_cm_dreq(cm_id, NULL, 0); in cm_destroy_id()
913 ib_send_cm_drep(cm_id, NULL, 0); in cm_destroy_id()
[all …]
Ducm.c84 struct ib_cm_id *cm_id; member
96 struct ib_cm_id *cm_id; member
169 ib_destroy_cm_id(uevent->cm_id); in ib_ucm_cleanup_events()
348 static int ib_ucm_event_handler(struct ib_cm_id *cm_id, in ib_ucm_event_handler() argument
355 ctx = cm_id->context; in ib_ucm_event_handler()
362 uevent->cm_id = cm_id; in ib_ucm_event_handler()
423 ctx->cm_id = uevent->cm_id; in ib_ucm_event()
424 ctx->cm_id->context = ctx; in ib_ucm_event()
492 ctx->cm_id = ib_create_cm_id(file->device->ib_dev, in ib_ucm_create_id()
494 if (IS_ERR(ctx->cm_id)) { in ib_ucm_create_id()
[all …]
Dcma.c138 } cm_id; member
740 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) in rdma_init_qp_attr()
743 ret = ib_cm_init_qp_attr(id_priv->cm_id.ib, qp_attr, in rdma_init_qp_attr()
750 if (!id_priv->cm_id.iw) { in rdma_init_qp_attr()
754 ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr, in rdma_init_qp_attr()
1049 if (id_priv->cm_id.ib) in rdma_destroy_id()
1050 ib_destroy_cm_id(id_priv->cm_id.ib); in rdma_destroy_id()
1053 if (id_priv->cm_id.iw) in rdma_destroy_id()
1054 iw_destroy_cm_id(id_priv->cm_id.iw); in rdma_destroy_id()
1087 ret = ib_send_cm_rtu(id_priv->cm_id.ib, NULL, 0); in cma_rep_recv()
[all …]
/drivers/infiniband/hw/nes/
Dnes_cm.c178 if (!cm_node->cm_id) in create_event()
193 event->cm_info.cm_id = cm_node->cm_id; in create_event()
872 struct iw_cm_id *cm_id = cm_node->cm_id; in nes_retrans_expired() local
883 if (cm_node->cm_id) in nes_retrans_expired()
884 cm_id->rem_ref(cm_id); in nes_retrans_expired()
897 struct iw_cm_id *cm_id = cm_node->cm_id; in handle_recv_entry() local
906 if (nesqp->cm_id) { in handle_recv_entry()
910 "to do!!!\n", nesqp->hwqp.qp_id, cm_id, in handle_recv_entry()
922 "to do!!!\n", nesqp->hwqp.qp_id, cm_id, in handle_recv_entry()
929 if (cm_node->cm_id) in handle_recv_entry()
[all …]
Dnes_cm.h298 struct iw_cm_id *cm_id; member
343 struct iw_cm_id *cm_id; member
361 struct iw_cm_id *cm_id; member
/drivers/infiniband/hw/cxgb3/
Diwch_cm.h155 struct iw_cm_id *cm_id; member
196 static inline struct iwch_ep *to_ep(struct iw_cm_id *cm_id) in to_ep() argument
198 return cm_id->provider_data; in to_ep()
201 static inline struct iwch_listen_ep *to_listen_ep(struct iw_cm_id *cm_id) in to_listen_ep() argument
203 return cm_id->provider_data; in to_listen_ep()
217 int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
218 int iwch_create_listen(struct iw_cm_id *cm_id, int backlog);
219 int iwch_destroy_listen(struct iw_cm_id *cm_id);
220 int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
221 int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
Diwch_cm.c675 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()
[all …]
/drivers/infiniband/hw/cxgb4/
Dcm.c1089 if (ep->com.cm_id) { in close_complete_upcall()
1091 ep, ep->com.cm_id, ep->hwtid); in close_complete_upcall()
1092 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in close_complete_upcall()
1093 ep->com.cm_id->rem_ref(ep->com.cm_id); in close_complete_upcall()
1094 ep->com.cm_id = NULL; in close_complete_upcall()
1114 if (ep->com.cm_id) { in peer_close_upcall()
1116 ep, ep->com.cm_id, ep->hwtid); in peer_close_upcall()
1117 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in peer_close_upcall()
1130 if (ep->com.cm_id) { in peer_abort_upcall()
1132 ep->com.cm_id, ep->hwtid); in peer_abort_upcall()
[all …]
Diw_cxgb4.h797 struct iw_cm_id *cm_id; member
891 static inline struct c4iw_ep *to_ep(struct iw_cm_id *cm_id) in to_ep() argument
893 return cm_id->provider_data; in to_ep()
896 static inline struct c4iw_listen_ep *to_listen_ep(struct iw_cm_id *cm_id) in to_listen_ep() argument
898 return cm_id->provider_data; in to_listen_ep()
958 int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
959 int c4iw_create_listen(struct iw_cm_id *cm_id, int backlog);
960 int c4iw_destroy_listen(struct iw_cm_id *cm_id);
961 int c4iw_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
962 int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
/drivers/infiniband/ulp/srpt/
Dib_srpt.c230 event->event, ch->cm_id, ch->sess_name, srpt_get_ch_state(ch)); in srpt_qp_event()
234 ib_cm_notify(ch->cm_id, event->event); in srpt_qp_event()
992 ret = ib_cm_init_qp_attr(ch->cm_id, &qp_attr, &attr_mask); in srpt_ch_qp_rtr()
1022 ret = ib_cm_init_qp_attr(ch->cm_id, &qp_attr, &attr_mask); in srpt_ch_qp_rts()
1791 srp_tsk->task_tag, srp_tsk->tag, ch->cm_id, ch->sess); in srpt_handle_tsk_mgmt()
2076 qp_init->cap.max_send_wr, ch->cm_id); in srpt_create_ch_ib()
2144 ib_send_cm_rej(ch->cm_id, IB_CM_REJ_NO_RESOURCES, NULL, 0, in __srpt_close_ch()
2148 if (ib_send_cm_dreq(ch->cm_id, NULL, 0) < 0) in __srpt_close_ch()
2205 static void srpt_drain_channel(struct ib_cm_id *cm_id) in srpt_drain_channel() argument
2214 sdev = cm_id->context; in srpt_drain_channel()
[all …]
Dib_srpt.h305 struct ib_cm_id *cm_id; member
399 struct ib_cm_id *cm_id; member
/drivers/infiniband/ulp/ipoib/
Dipoib_cm.c77 static int ipoib_cm_tx_handler(struct ib_cm_id *cm_id,
273 struct ib_cm_id *cm_id, struct ib_qp *qp, in ipoib_cm_modify_rx_qp() argument
281 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp()
292 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp()
313 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp()
346 static int ipoib_cm_nonsrq_init_rx(struct net_device *dev, struct ib_cm_id *cm_id, in ipoib_cm_nonsrq_init_rx() argument
376 ib_send_cm_rej(cm_id, IB_CM_REJ_NO_QP, NULL, 0, NULL, 0); in ipoib_cm_nonsrq_init_rx()
419 static int ipoib_cm_send_rep(struct net_device *dev, struct ib_cm_id *cm_id, in ipoib_cm_send_rep() argument
437 return ib_send_cm_rep(cm_id, &rep); in ipoib_cm_send_rep()
440 static int ipoib_cm_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event) in ipoib_cm_req_handler() argument
[all …]
/drivers/infiniband/hw/mlx4/
Dcm.c75 static void set_local_comm_id(struct ib_mad *mad, u32 cm_id) in set_local_comm_id() argument
80 msg->request_id = cpu_to_be32(cm_id); in set_local_comm_id()
86 msg->local_comm_id = cpu_to_be32(cm_id); in set_local_comm_id()
105 static void set_remote_comm_id(struct ib_mad *mad, u32 cm_id) in set_remote_comm_id() argument
110 msg->request_id = cpu_to_be32(cm_id); in set_remote_comm_id()
116 msg->remote_comm_id = cpu_to_be32(cm_id); in set_remote_comm_id()
/drivers/char/
Dmbcs.h79 union cm_id { union
145 uint64_t cm_id:2, // 1:0 member
342 union cm_id id;
/drivers/infiniband/ulp/srp/
Dib_srp.c130 static int srp_cm_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event);
295 if (target->cm_id) in srp_new_cm_id()
296 ib_destroy_cm_id(target->cm_id); in srp_new_cm_id()
297 target->cm_id = new_cm_id; in srp_new_cm_id()
716 status = ib_send_cm_req(target->cm_id, &req->param); in srp_send_req()
760 if (ib_send_cm_dreq(target->cm_id, NULL, 0)) { in srp_disconnect_target()
871 ib_destroy_cm_id(target->cm_id); in srp_remove_target()
2042 static void srp_cm_rep_handler(struct ib_cm_id *cm_id, in srp_cm_rep_handler() argument
2084 ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask); in srp_cm_rep_handler()
2100 ret = ib_cm_init_qp_attr(cm_id, qp_attr, &attr_mask); in srp_cm_rep_handler()
[all …]

12