Lines Matching refs:new_cm_id
311 struct ib_cm_id *new_cm_id; in srp_new_ib_cm_id() local
313 new_cm_id = ib_create_cm_id(target->srp_host->srp_dev->dev, in srp_new_ib_cm_id()
315 if (IS_ERR(new_cm_id)) in srp_new_ib_cm_id()
316 return PTR_ERR(new_cm_id); in srp_new_ib_cm_id()
320 ch->ib_cm.cm_id = new_cm_id; in srp_new_ib_cm_id()
337 struct rdma_cm_id *new_cm_id; in srp_new_rdma_cm_id() local
340 new_cm_id = rdma_create_id(target->net, srp_rdma_cm_handler, ch, in srp_new_rdma_cm_id()
342 if (IS_ERR(new_cm_id)) { in srp_new_rdma_cm_id()
343 ret = PTR_ERR(new_cm_id); in srp_new_rdma_cm_id()
344 new_cm_id = NULL; in srp_new_rdma_cm_id()
349 ret = rdma_resolve_addr(new_cm_id, target->rdma_cm.src_specified ? in srp_new_rdma_cm_id()
369 swap(ch->rdma_cm.cm_id, new_cm_id); in srp_new_rdma_cm_id()
372 if (new_cm_id) in srp_new_rdma_cm_id()
373 rdma_destroy_id(new_cm_id); in srp_new_rdma_cm_id()