/linux-6.1.9/drivers/infiniband/core/ ! |
D | iwcm.c | 97 struct iwcm_id_private *cm_id; member 155 list_add(&work->free_list, &work->cm_id->work_free_list); in put_work() 179 work->cm_id = cm_id_priv; in alloc_work_entries() 223 static void add_ref(struct iw_cm_id *cm_id) in add_ref() argument 226 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in add_ref() 230 static void rem_ref(struct iw_cm_id *cm_id) in rem_ref() argument 234 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in rem_ref() 239 static int cm_event_handler(struct iw_cm_id *cm_id, struct iw_cm_event *event); 306 int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt) in iw_cm_disconnect() argument 313 cm_id_priv = container_of(cm_id, struct iwcm_id_private, id); in iw_cm_disconnect() [all …]
|
D | cm_trace.h | 139 const struct ib_cm_id *cm_id 142 TP_ARGS(cm_id), 145 __field(const void *, cm_id) /* for eBPF scripts */ 153 __entry->cm_id = cm_id; 154 __entry->local_id = be32_to_cpu(cm_id->local_id); 155 __entry->remote_id = be32_to_cpu(cm_id->remote_id); 156 __entry->state = cm_id->state; 157 __entry->lap_state = cm_id->lap_state; 171 const struct ib_cm_id *cm_id \ 173 TP_ARGS(cm_id)) [all …]
|
D | ucma.c | 93 struct rdma_cm_id *cm_id; member 169 if (!ctx->cm_id->device) { in ucma_get_ctx_dev() 187 rdma_destroy_id(ctx->cm_id); in ucma_close_id() 190 ctx->cm_id = NULL; in ucma_close_id() 217 struct rdma_cm_id *cm_id) in ucma_set_ctx_cm_id() argument 220 ctx->cm_id = cm_id; in ucma_set_ctx_cm_id() 284 if (ctx->cm_id->qp_type == IB_QPT_UD) in ucma_create_uevent() 285 ucma_copy_ud_event(ctx->cm_id->device, &uevent->resp.param.ud, in ucma_create_uevent() 296 static int ucma_connect_event_handler(struct rdma_cm_id *cm_id, in ucma_connect_event_handler() argument 299 struct ucma_context *listen_ctx = cm_id->context; in ucma_connect_event_handler() [all …]
|
D | cma_trace.h | 29 __field(u32, cm_id) 36 __entry->cm_id = id_priv->res.id; 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 75 __field(u32, cm_id) 82 __entry->cm_id = id_priv->res.id; 91 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, 104 __field(u32, cm_id) 112 __entry->cm_id = id_priv->res.id; 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, 182 __field(u32, cm_id) [all …]
|
D | cm.c | 1028 static void cm_destroy_id(struct ib_cm_id *cm_id, int err) in cm_destroy_id() argument 1033 cm_id_priv = container_of(cm_id, struct cm_id_private, id); in cm_destroy_id() 1036 switch (cm_id->state) { in cm_destroy_id() 1047 cm_id->state = IB_CM_IDLE; in cm_destroy_id() 1053 cm_id->state = IB_CM_IDLE; in cm_destroy_id() 1061 cm_id->state = IB_CM_IDLE; in cm_destroy_id() 1095 cm_id->state = IB_CM_IDLE; in cm_destroy_id() 1106 WARN_ON(cm_id->state != IB_CM_TIMEWAIT); in cm_destroy_id() 1114 cm_id->state = IB_CM_IDLE; in cm_destroy_id() 1119 WARN_ON(cm_id->state != IB_CM_IDLE); in cm_destroy_id() [all …]
|
D | cma.c | 142 return id_priv->cm_id.iw; in rdma_iw_cm_id() 1246 if (!id_priv->cm_id.ib || (id_priv->id.qp_type == IB_QPT_UD)) in rdma_init_qp_attr() 1249 ret = ib_cm_init_qp_attr(id_priv->cm_id.ib, qp_attr, in rdma_init_qp_attr() 1255 if (!id_priv->cm_id.iw) { in rdma_init_qp_attr() 1259 ret = iw_cm_init_qp_attr(id_priv->cm_id.iw, qp_attr, in rdma_init_qp_attr() 1760 const struct ib_cm_id *cm_id, in cma_find_listener() argument 1774 if (id_priv->id.device == cm_id->device && in cma_find_listener() 1780 if (id_priv_dev->id.device == cm_id->device && in cma_find_listener() 1792 cma_ib_id_from_event(struct ib_cm_id *cm_id, in cma_ib_id_from_event() argument 1854 id_priv = cma_find_listener(bind_list, cm_id, ib_event, req, *net_dev); in cma_ib_id_from_event() [all …]
|
/linux-6.1.9/net/rds/ ! |
D | rdma_transport.c | 49 static int rds_rdma_cm_event_handler_cmn(struct rdma_cm_id *cm_id, in rds_rdma_cm_event_handler_cmn() argument 54 struct rds_connection *conn = cm_id->context; in rds_rdma_cm_event_handler_cmn() 60 rdsdebug("conn %p id %p handling event %u (%s)\n", conn, cm_id, in rds_rdma_cm_event_handler_cmn() 63 if (cm_id->device->node_type == RDMA_NODE_IB_CA) in rds_rdma_cm_event_handler_cmn() 85 ret = trans->cm_handle_connect(cm_id, event, isv6); in rds_rdma_cm_event_handler_cmn() 89 rdma_set_service_type(cm_id, conn->c_tos); in rds_rdma_cm_event_handler_cmn() 90 rdma_set_min_rnr_timer(cm_id, IB_RNR_TIMER_000_32); in rds_rdma_cm_event_handler_cmn() 92 ret = rdma_resolve_route(cm_id, in rds_rdma_cm_event_handler_cmn() 104 if (ibic && ibic->i_cm_id == cm_id) { in rds_rdma_cm_event_handler_cmn() 105 cm_id->route.path_rec[0].sl = in rds_rdma_cm_event_handler_cmn() [all …]
|
D | ib.c | 410 struct rdma_cm_id *cm_id; in rds_ib_laddr_check() local 422 cm_id = rdma_create_id(&init_net, rds_rdma_cm_event_handler, in rds_ib_laddr_check() 424 if (IS_ERR(cm_id)) in rds_ib_laddr_check() 425 return PTR_ERR(cm_id); in rds_ib_laddr_check() 475 ret = rdma_bind_addr(cm_id, sa); in rds_ib_laddr_check() 478 if (ret || !cm_id->device || in rds_ib_laddr_check() 479 cm_id->device->node_type != RDMA_NODE_IB_CA) in rds_ib_laddr_check() 484 cm_id->device ? cm_id->device->node_type : -1); in rds_ib_laddr_check() 487 rdma_destroy_id(cm_id); in rds_ib_laddr_check()
|
D | rdma_transport.h | 21 int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id, 23 int rds6_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
|
/linux-6.1.9/drivers/infiniband/hw/qedr/ ! |
D | qedr_iw_cm.c | 97 if (ep->cm_id) in qedr_iw_free_ep() 98 ep->cm_id->rem_ref(ep->cm_id); in qedr_iw_free_ep() 135 listener->cm_id->event_handler(listener->cm_id, &event); in qedr_iw_mpa_request() 166 if (ep->cm_id) in qedr_iw_issue_event() 167 ep->cm_id->event_handler(ep->cm_id, &event); in qedr_iw_issue_event() 175 if (ep->cm_id) in qedr_iw_close_event() 239 if (ep->cm_id) in qedr_iw_disconnect_worker() 240 ep->cm_id->event_handler(ep->cm_id, &event); in qedr_iw_disconnect_worker() 531 int qedr_iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) in qedr_iw_connect() argument 533 struct qedr_dev *dev = get_qedr_dev(cm_id->device); in qedr_iw_connect() [all …]
|
D | qedr_iw_cm.h | 34 int qedr_iw_connect(struct iw_cm_id *cm_id, 37 int qedr_iw_create_listen(struct iw_cm_id *cm_id, int backlog); 39 int qedr_iw_destroy_listen(struct iw_cm_id *cm_id); 41 int qedr_iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); 43 int qedr_iw_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
|
/linux-6.1.9/include/rdma/ ! |
D | iw_cm.h | 42 typedef int (*iw_cm_handler)(struct iw_cm_id *cm_id, 53 typedef int (*iw_event_handler)(struct iw_cm_id *cm_id, 115 void iw_destroy_cm_id(struct iw_cm_id *cm_id); 128 void iw_cm_unbind_qp(struct iw_cm_id *cm_id, struct ib_qp *qp); 149 int iw_cm_listen(struct iw_cm_id *cm_id, int backlog); 165 int iw_cm_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param); 179 int iw_cm_reject(struct iw_cm_id *cm_id, const void *private_data, 194 int iw_cm_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param); 206 int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt); 217 int iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr,
|
D | ib_cm.h | 289 typedef int (*ib_cm_handler)(struct ib_cm_id *cm_id, 325 void ib_destroy_cm_id(struct ib_cm_id *cm_id); 343 int ib_cm_listen(struct ib_cm_id *cm_id, __be64 service_id); 380 int ib_send_cm_req(struct ib_cm_id *cm_id, 405 int ib_send_cm_rep(struct ib_cm_id *cm_id, 416 int ib_send_cm_rtu(struct ib_cm_id *cm_id, 429 int ib_send_cm_dreq(struct ib_cm_id *cm_id, 444 int ib_send_cm_drep(struct ib_cm_id *cm_id, 462 int ib_cm_notify(struct ib_cm_id *cm_id, enum ib_event_type event); 476 int ib_send_cm_rej(struct ib_cm_id *cm_id, [all …]
|
/linux-6.1.9/drivers/nvme/target/ ! |
D | rdma.c | 87 struct rdma_cm_id *cm_id; member 121 struct rdma_cm_id *cm_id; member 636 struct rdma_cm_id *cm_id = rsp->queue->cm_id; in nvmet_rdma_rw_ctx_init() local 641 ret = rdma_rw_ctx_signature_init(&rsp->rw, cm_id->qp, in nvmet_rdma_rw_ctx_init() 642 cm_id->port_num, req->sg, req->sg_cnt, in nvmet_rdma_rw_ctx_init() 646 ret = rdma_rw_ctx_init(&rsp->rw, cm_id->qp, cm_id->port_num, in nvmet_rdma_rw_ctx_init() 655 struct rdma_cm_id *cm_id = rsp->queue->cm_id; in nvmet_rdma_rw_ctx_destroy() local 659 rdma_rw_ctx_destroy_signature(&rsp->rw, cm_id->qp, in nvmet_rdma_rw_ctx_destroy() 660 cm_id->port_num, req->sg, req->sg_cnt, in nvmet_rdma_rw_ctx_destroy() 664 rdma_rw_ctx_destroy(&rsp->rw, cm_id->qp, cm_id->port_num, in nvmet_rdma_rw_ctx_destroy() [all …]
|
/linux-6.1.9/net/9p/ ! |
D | trans_rdma.c | 77 struct rdma_cm_id *cm_id; member 281 rdma_disconnect(rdma->cm_id); in p9_cm_event_handler() 302 ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize, in recv_done() 349 ib_dma_unmap_single(rdma->cm_id->device, in send_done() 377 if (rdma->cm_id && !IS_ERR(rdma->cm_id)) in rdma_destroy_trans() 378 rdma_destroy_id(rdma->cm_id); in rdma_destroy_trans() 390 c->busa = ib_dma_map_single(rdma->cm_id->device, in post_recv() 393 if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) in post_recv() 480 c->busa = ib_dma_map_single(rdma->cm_id->device, in rdma_request() 483 if (ib_dma_mapping_error(rdma->cm_id->device, c->busa)) { in rdma_request() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/irdma/ ! |
D | cm.c | 137 struct iw_cm_id *cm_id, in irdma_get_cmevent_info() argument 140 memcpy(&event->local_addr, &cm_id->m_local_addr, in irdma_get_cmevent_info() 142 memcpy(&event->remote_addr, &cm_id->m_remote_addr, in irdma_get_cmevent_info() 160 struct iw_cm_id *cm_id, in irdma_send_cm_event() argument 167 trace_irdma_send_cm_event(cm_node, cm_id, type, status, in irdma_send_cm_event() 172 cm_node, cm_id, cm_node->accelerated, cm_node->state, type, in irdma_send_cm_event() 187 irdma_get_cmevent_info(cm_node, cm_id, &event); in irdma_send_cm_event() 203 return cm_id->event_handler(cm_id, &event); in irdma_send_cm_event() 234 if (!cm_node->cm_id) in irdma_create_event() 250 event->cm_info.cm_id = cm_node->cm_id; in irdma_create_event() [all …]
|
D | cm.h | 245 struct iw_cm_id *cm_id; member 296 struct iw_cm_id *cm_id; member 330 struct iw_cm_id *cm_id; member 394 int irdma_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); 395 int irdma_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len); 396 int irdma_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param); 397 int irdma_create_listen(struct iw_cm_id *cm_id, int backlog); 398 int irdma_destroy_listen(struct iw_cm_id *cm_id);
|
D | trace_cm.h | 201 TP_PROTO(struct irdma_cm_node *cm_node, struct iw_cm_id *cm_id, 203 TP_ARGS(cm_node, cm_id, type, status, caller), 206 __field(struct iw_cm_id *, cm_id) 222 __entry->cm_id = cm_id; 241 __entry->cm_id, 257 TP_PROTO(struct iw_cm_id *cm_id, enum iw_cm_event_type type, 259 TP_ARGS(cm_id, type, status, caller), 260 TP_STRUCT__entry(__field(struct iw_cm_id *, cm_id) 265 TP_fast_assign(__entry->cm_id = cm_id; 271 __entry->cm_id,
|
/linux-6.1.9/fs/ksmbd/ ! |
D | transport_rdma.c | 84 struct rdma_cm_id *cm_id; member 103 struct rdma_cm_id *cm_id; member 269 ib_dma_unmap_single(t->cm_id->device, recvmsg->sge.addr, in put_recvmsg() 295 ib_dma_unmap_single(t->cm_id->device, recvmsg->sge.addr, in put_empty_recvmsg() 338 rdma_disconnect(t->cm_id); in smb_direct_disconnect_rdma_work() 360 static struct smb_direct_transport *alloc_transport(struct rdma_cm_id *cm_id) in alloc_transport() argument 369 t->cm_id = cm_id; in alloc_transport() 370 cm_id->context = t; in alloc_transport() 452 if (t->cm_id) in free_transport() 453 rdma_destroy_id(t->cm_id); in free_transport() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/erdma/ ! |
D | erdma_cm.c | 237 struct iw_cm_id *cm_id; in erdma_cm_upcall() local 245 cm_id = cep->listen_cep->cm_id; in erdma_cm_upcall() 250 cm_id = cep->cm_id; in erdma_cm_upcall() 266 return cm_id->event_handler(cm_id, &event); in erdma_cm_upcall() 282 if (cep->cm_id) { in erdma_qp_cm_drop() 300 cep->cm_id->rem_ref(cep->cm_id); in erdma_qp_cm_drop() 301 cep->cm_id = NULL; in erdma_qp_cm_drop() 799 if (cep->cm_id) in erdma_cm_work_handler() 804 if (cep->cm_id) { in erdma_cm_work_handler() 837 if (cep->cm_id) in erdma_cm_work_handler() [all …]
|
/linux-6.1.9/drivers/infiniband/hw/cxgb4/ ! |
D | cm.c | 152 epc->cm_id->rem_ref(epc->cm_id); in deref_cm_id() 153 epc->cm_id = NULL; in deref_cm_id() 160 epc->cm_id->add_ref(epc->cm_id); in ref_cm_id() 1275 if (ep->com.cm_id) { in close_complete_upcall() 1277 ep, ep->com.cm_id, ep->hwtid); in close_complete_upcall() 1278 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in close_complete_upcall() 1291 if (ep->com.cm_id) { in peer_close_upcall() 1293 ep, ep->com.cm_id, ep->hwtid); in peer_close_upcall() 1294 ep->com.cm_id->event_handler(ep->com.cm_id, &event); in peer_close_upcall() 1307 if (ep->com.cm_id) { in peer_abort_upcall() [all …]
|
/linux-6.1.9/drivers/infiniband/ulp/ipoib/ ! |
D | ipoib_cm.c | 80 static int ipoib_cm_tx_handler(struct ib_cm_id *cm_id, 274 struct ib_cm_id *cm_id, struct ib_qp *qp, in ipoib_cm_modify_rx_qp() argument 282 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp() 293 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp() 314 ret = ib_cm_init_qp_attr(cm_id, &qp_attr, &qp_attr_mask); in ipoib_cm_modify_rx_qp() 347 static int ipoib_cm_nonsrq_init_rx(struct net_device *dev, struct ib_cm_id *cm_id, in ipoib_cm_nonsrq_init_rx() argument 375 ib_send_cm_rej(cm_id, IB_CM_REJ_NO_QP, NULL, 0, NULL, 0); in ipoib_cm_nonsrq_init_rx() 420 static int ipoib_cm_send_rep(struct net_device *dev, struct ib_cm_id *cm_id, in ipoib_cm_send_rep() argument 439 return ib_send_cm_rep(cm_id, &rep); in ipoib_cm_send_rep() 442 static int ipoib_cm_req_handler(struct ib_cm_id *cm_id, in ipoib_cm_req_handler() argument [all …]
|
/linux-6.1.9/drivers/infiniband/sw/siw/ ! |
D | siw_cm.c | 321 id = cep->listen_cep->cm_id; in siw_cm_upcall() 323 id = cep->cm_id; in siw_cm_upcall() 396 if (cep->cm_id) { in siw_qp_cm_drop() 416 cep->cm_id->rem_ref(cep->cm_id); in siw_qp_cm_drop() 417 cep->cm_id = NULL; in siw_qp_cm_drop() 1063 if (cep->cm_id) in siw_cm_work_handler() 1070 if (cep->cm_id) { in siw_cm_work_handler() 1119 if (cep->cm_id) in siw_cm_work_handler() 1170 if (cep->cm_id) { in siw_cm_work_handler() 1171 cep->cm_id->rem_ref(cep->cm_id); in siw_cm_work_handler() [all …]
|
/linux-6.1.9/drivers/infiniband/ulp/rtrs/ ! |
D | rtrs-srv.c | 782 static int rtrs_rdma_do_reject(struct rdma_cm_id *cm_id, int errno); 1531 rdma_disconnect(con->c.cm_id); in rtrs_srv_close_work() 1555 rdma_destroy_id(con->c.cm_id); in rtrs_srv_close_work() 1571 struct rdma_cm_id *cm_id) in rtrs_rdma_do_accept() argument 1595 err = rdma_accept(cm_id, ¶m); in rtrs_rdma_do_accept() 1602 static int rtrs_rdma_do_reject(struct rdma_cm_id *cm_id, int errno) in rtrs_rdma_do_reject() argument 1613 err = rdma_reject(cm_id, &msg, sizeof(msg), IB_CM_REJ_CONSUMER_DEFINED); in rtrs_rdma_do_reject() 1635 struct rdma_cm_id *cm_id, in create_con() argument 1653 con->c.cm_id = cm_id; in create_con() 1712 cm_id->context = &con->c; in create_con() [all …]
|
D | rtrs.c | 216 rdma_notify(con->cm_id, IB_EVENT_COMM_EST); in qp_event_handler() 233 struct rdma_cm_id *cm_id = con->cm_id; in create_cq() local 237 cq = ib_alloc_cq(cm_id->device, con, nr_cqe, cq_vector, in create_cq() 240 cq = ib_cq_pool_get(cm_id->device, nr_cqe, cq_vector, poll_ctx); in create_cq() 257 struct rdma_cm_id *cm_id = con->cm_id; in create_qp() local 272 ret = rdma_create_qp(cm_id, pd, &init_attr); in create_qp() 277 con->qp = cm_id->qp; in create_qp() 319 rdma_destroy_qp(con->cm_id); in rtrs_cq_qp_destroy()
|