Lines Matching refs:rc
130 qp->rqe_wr_id[qp->rq.gsi_cons].rc =
224 int rc;
249 rc = ecore_ll2_prepare_tx_packet(dev->rdma_ctx,
253 if (rc) {
264 return rc;
269 rc = ecore_ll2_set_fragment_of_tx_packet(dev->rdma_ctx,
273 if (rc) {
280 return rc;
284 rc = ecore_ll2_get_stats(dev->rdma_ctx, dev->gsi_ll2_handle, &stats);
285 if (rc) {
296 int rc;
304 rc = qlnx_rdma_ll2_set_mac_filter(dev->rdma_ctx,
307 rc = ecore_ll2_terminate_connection(dev->rdma_ctx,
314 QL_DPRINT12(dev->ha, "exit rc = %d\n", rc);
315 return rc;
324 int rc;
351 rc = ecore_ll2_acquire_connection(dev->rdma_ctx, &data);
353 if (rc) {
356 rc);
357 return rc;
362 rc = ecore_ll2_establish_connection(dev->rdma_ctx,
365 if (rc) {
367 "ecore_ll2_establish_connection failed\n", rc);
373 rc = qlnx_rdma_ll2_set_mac_filter(dev->rdma_ctx, NULL,
375 if (rc) {
376 QL_DPRINT11(dev->ha, "qlnx_rdma_ll2_set_mac_filter failed\n", rc);
380 QL_DPRINT12(dev->ha, "exit rc = %d\n", rc);
388 QL_DPRINT12(dev->ha, "exit rc = %d\n", rc);
389 return rc;
397 int rc;
401 rc = qlnxr_check_gsi_qp_attrs(dev, attrs);
403 if (rc) {
405 return ERR_PTR(rc);
408 rc = qlnxr_ll2_start(dev, attrs, qp);
409 if (rc) {
411 return ERR_PTR(rc);
447 rc = qlnxr_ll2_stop(dev);
457 int rc = 0;
461 rc = qlnxr_ll2_stop(dev);
463 QL_DPRINT12(dev->ha, "exit rc = %d\n", rc);
464 return (rc);
501 int rc = 0;
525 rc = ib_ud_header_init(send_size, false /* LRH */, true /* ETH */,
529 if (rc) {
531 return rc;
635 int i, rc;
641 rc = qlnxr_gsi_build_header(dev, qp, swr, &udh, &roce_mode);
642 if (rc) {
644 "qlnxr_gsi_build_header failed rc = %d\n", rc);
645 return rc;
700 int rc;
714 rc = -EINVAL;
720 rc = -EINVAL;
726 rc = qlnxr_gsi_build_packet(dev, qp, wr, &pkt);
727 if(rc) {
733 rc = qlnxr_ll2_post_tx(dev, pkt);
735 if (!rc) {
744 rc = -EAGAIN;
752 rc=-EINVAL;
756 return rc;
761 return rc;
773 int rc = 0;
792 rc = ecore_ll2_post_rx_buffer(dev->rdma_ctx,
798 if (rc) {
815 QL_DPRINT12(dev->ha, "exit rc = %d\n", rc);
816 return rc;
846 wc[i].status = (qp->rqe_wr_id[qp->rq.cons].rc)?