Lines Matching refs:cm_id

95 	struct rdma_cm_id	*cm_id;  member
151 static int nvme_rdma_cm_handler(struct rdma_cm_id *cm_id,
279 ret = rdma_create_qp(queue->cm_id, dev->pd, &init_attr); in nvme_rdma_create_qp()
281 queue->qp = queue->cm_id->qp; in nvme_rdma_create_qp()
367 nvme_rdma_find_get_device(struct rdma_cm_id *cm_id) in nvme_rdma_find_get_device() argument
373 if (ndev->dev->node_guid == cm_id->device->node_guid && in nvme_rdma_find_get_device()
382 ndev->dev = cm_id->device; in nvme_rdma_find_get_device()
496 queue->device = nvme_rdma_find_get_device(queue->cm_id); in nvme_rdma_create_queue_ib()
498 dev_err(queue->cm_id->device->dev.parent, in nvme_rdma_create_queue_ib()
561 rdma_destroy_qp(queue->cm_id); in nvme_rdma_create_queue_ib()
592 queue->cm_id = rdma_create_id(&init_net, nvme_rdma_cm_handler, queue, in nvme_rdma_alloc_queue()
594 if (IS_ERR(queue->cm_id)) { in nvme_rdma_alloc_queue()
596 "failed to create CM ID: %ld\n", PTR_ERR(queue->cm_id)); in nvme_rdma_alloc_queue()
597 ret = PTR_ERR(queue->cm_id); in nvme_rdma_alloc_queue()
605 ret = rdma_resolve_addr(queue->cm_id, src_addr, in nvme_rdma_alloc_queue()
626 rdma_destroy_id(queue->cm_id); in nvme_rdma_alloc_queue()
635 rdma_disconnect(queue->cm_id); in __nvme_rdma_stop_queue()
655 rdma_destroy_id(queue->cm_id); in nvme_rdma_free_queue()
1791 struct rdma_cm_id *cm_id = queue->cm_id; in nvme_rdma_conn_rejected() local
1797 rej_msg = rdma_reject_msg(cm_id, status); in nvme_rdma_conn_rejected()
1798 rej_data = rdma_consumer_reject_data(cm_id, ev, &rej_data_len); in nvme_rdma_conn_rejected()
1824 rdma_set_service_type(queue->cm_id, ctrl->opts->tos); in nvme_rdma_addr_resolved()
1825 ret = rdma_resolve_route(queue->cm_id, NVME_RDMA_CM_TIMEOUT_MS); in nvme_rdma_addr_resolved()
1877 ret = rdma_connect_locked(queue->cm_id, &param); in nvme_rdma_route_resolved()
1887 static int nvme_rdma_cm_handler(struct rdma_cm_id *cm_id, in nvme_rdma_cm_handler() argument
1890 struct nvme_rdma_queue *queue = cm_id->context; in nvme_rdma_cm_handler()
1895 ev->status, cm_id); in nvme_rdma_cm_handler()