Searched refs:cm_id (Results 1 – 7 of 7) sorted by relevance
/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() 90 rdma_set_service_type(cm_id, conn->c_tos); in rds_rdma_cm_event_handler_cmn() 91 rdma_set_min_rnr_timer(cm_id, IB_RNR_TIMER_000_32); in rds_rdma_cm_event_handler_cmn() 93 ret = rdma_resolve_route(cm_id, in rds_rdma_cm_event_handler_cmn() 106 if (ibic && ibic->i_cm_id == cm_id) { in rds_rdma_cm_event_handler_cmn() 107 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 | 20 int rds_rdma_cm_event_handler(struct rdma_cm_id *cm_id, 22 int rds6_rdma_cm_event_handler(struct rdma_cm_id *cm_id,
|
D | ib_cm.c | 782 int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, in rds_ib_cm_handle_connect() argument 785 __be64 lguid = cm_id->route.path_rec->sgid.global.interface_id; in rds_ib_cm_handle_connect() 786 __be64 fguid = cm_id->route.path_rec->dgid.global.interface_id; in rds_ib_cm_handle_connect() 896 BUG_ON(cm_id->context); in rds_ib_cm_handle_connect() 899 ic->i_cm_id = cm_id; in rds_ib_cm_handle_connect() 900 cm_id->context = conn; in rds_ib_cm_handle_connect() 916 rdma_set_min_rnr_timer(cm_id, IB_RNR_TIMER_000_32); in rds_ib_cm_handle_connect() 918 if (rdma_accept(cm_id, &conn_param)) in rds_ib_cm_handle_connect() 925 rdma_reject(cm_id, &err, sizeof(int), in rds_ib_cm_handle_connect() 931 int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6) in rds_ib_cm_initiate_connect() argument [all …]
|
D | ib.h | 377 int rds_ib_cm_handle_connect(struct rdma_cm_id *cm_id, 379 int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6);
|
D | rds.h | 559 int (*cm_handle_connect)(struct rdma_cm_id *cm_id, 561 int (*cm_initiate_connect)(struct rdma_cm_id *cm_id, bool isv6);
|
/net/9p/ |
D | trans_rdma.c | 76 struct rdma_cm_id *cm_id; member 280 rdma_disconnect(rdma->cm_id); in p9_cm_event_handler() 301 ib_dma_unmap_single(rdma->cm_id->device, c->busa, client->msize, in recv_done() 348 ib_dma_unmap_single(rdma->cm_id->device, in send_done() 376 if (rdma->cm_id && !IS_ERR(rdma->cm_id)) in rdma_destroy_trans() 377 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() 409 ib_dma_unmap_single(rdma->cm_id->device, c->busa, in post_recv() 485 c->busa = ib_dma_map_single(rdma->cm_id->device, in rdma_request() [all …]
|