Lines Matching refs:rc
86 int rc;
105 rc = -ENODEV;
109 rc = sdp_rx_ring_create(ssk, device);
110 if (rc)
113 rc = sdp_tx_ring_create(ssk, device);
114 if (rc)
120 rc = rdma_create_qp(id, ssk->sdp_dev->pd, &qp_init_attr);
121 if (rc) {
122 sdp_warn(sk, "Unable to create QP: %d.\n", rc);
138 return rc;
150 int rc;
165 rc = sdp_init_qp(child, id);
166 if (rc)
167 return rc;
276 int rc = 0;
303 rc = -ENETUNREACH;
307 rc = rdma_resolve_route(id, SDP_ROUTE_TIMEOUT);
311 rc = -ENETUNREACH;
315 rc = sdp_init_qp(sk, id);
316 if (rc)
339 rc = rdma_connect(id, &conn_param);
343 rc = -ETIMEDOUT;
347 rc = sdp_connect_handler(sk, id, event);
348 if (rc) {
370 rc = rdma_accept(id, &conn_param);
371 if (rc) {
379 rc = sdp_response_handler(sk, id, event);
380 if (rc) {
384 rc = rdma_accept(id, NULL);
388 rc = -ETIMEDOUT;
392 rc = -ENETUNREACH;
396 rc = -ECONNREFUSED;
402 rc = sdp_connected_handler(sk, event);
424 rc = sdp_disconnected_handler(sk);
425 if (rc)
426 rc = -EPIPE;
433 rc = sdp_disconnected_handler(sk);
438 rc = -ENETRESET;
443 rc = -ECONNABORTED;
448 rdma_event_msg(event->event), event->event, rc);
450 if (rc) {
456 if (sdp_notify(ssk, -rc))
462 return rc;