Lines Matching refs:cid
641 WARN_ON(con->c.cid); in rtrs_clt_rdma_done()
646 WARN_ON(con->c.cid); in rtrs_clt_rdma_done()
720 int err, cid; in post_recv_path() local
722 for (cid = 0; cid < clt_path->s.con_num; cid++) { in post_recv_path()
723 if (cid == 0) in post_recv_path()
734 err = post_recv_io(to_clt_con(clt_path->s.con[cid]), q_size); in post_recv_path()
1613 static int create_con(struct rtrs_clt_path *clt_path, unsigned int cid) in create_con() argument
1622 con->cpu = (cid ? cid - 1 : 0) % nr_cpu_ids; in create_con()
1623 con->c.cid = cid; in create_con()
1629 clt_path->s.con[cid] = &con->c; in create_con()
1638 clt_path->s.con[con->c.cid] = NULL; in destroy_con()
1651 if (con->c.cid == 0) { in create_con_cq_qp()
1706 if (clt_path->flags & RTRS_MSG_NEW_RKEY_F || con->c.cid == 0) { in create_con_cq_qp()
1717 if (con->c.cid >= clt_path->s.irq_con_num) in create_con_cq_qp()
1805 .cid = cpu_to_le16(con->c.cid), in rtrs_rdma_route_resolved()
1852 if (con->c.cid == 0) { in rtrs_rdma_conn_established()
2150 unsigned int cid; in rtrs_clt_stop_and_destroy_conns() local
2176 for (cid = 0; cid < clt_path->s.con_num; cid++) { in rtrs_clt_stop_and_destroy_conns()
2177 if (!clt_path->s.con[cid]) in rtrs_clt_stop_and_destroy_conns()
2179 con = to_clt_con(clt_path->s.con[cid]); in rtrs_clt_stop_and_destroy_conns()
2198 for (cid = 0; cid < clt_path->s.con_num; cid++) { in rtrs_clt_stop_and_destroy_conns()
2199 if (!clt_path->s.con[cid]) in rtrs_clt_stop_and_destroy_conns()
2201 con = to_clt_con(clt_path->s.con[cid]); in rtrs_clt_stop_and_destroy_conns()
2325 unsigned int cid; in init_conns() local
2336 for (cid = 0; cid < clt_path->s.con_num; cid++) { in init_conns()
2337 err = create_con(clt_path, cid); in init_conns()
2341 err = create_cm(to_clt_con(clt_path->s.con[cid])); in init_conns()
2349 cid = clt_path->s.con_num - 1; in init_conns()
2359 for (i = 0; i <= cid; i++) { in init_conns()
2481 WARN_ON(con->c.cid); in rtrs_clt_info_rsp_done()