Lines Matching refs:rc
147 enum _ecore_status_t rc = ECORE_SUCCESS;
151 return rc;
177 rc = ecore_roce_start_rl(p_hwfn, params);
180 if (rc)
181 return rc;
191 return rc;
332 enum _ecore_status_t rc;
335 rc = ecore_rdma_bmap_alloc_id(p_hwfn, &p_rdma_info->qp_map, &qp_idx);
336 if (rc != ECORE_SUCCESS) {
339 return rc;
345 rc = ecore_roce_wait_free_cids(p_hwfn, qp_idx);
346 if (rc) {
347 rc = ECORE_UNKNOWN_ERROR;
360 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_CXT, cid);
361 if (rc != ECORE_SUCCESS)
364 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_CXT, cid + 1);
365 if (rc != ECORE_SUCCESS)
376 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
378 return rc;
400 enum _ecore_status_t rc;
416 rc = ECORE_NOMEM;
418 "ecore create responder failed: cannot allocate memory (irq). rc = %d\n",
419 rc);
420 return rc;
429 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_CREATE_QP,
431 if (rc != ECORE_SUCCESS)
532 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
534 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d regular physical queue = 0x%x, low latency physical queue 0x%x\n",
535 rc, regular_latency_queue, low_latency_queue);
537 if (rc != ECORE_SUCCESS)
547 return rc;
550 DP_NOTICE(p_hwfn, false, "create responder - failed, rc = %d\n", rc);
557 return rc;
569 enum _ecore_status_t rc;
584 rc = ECORE_NOMEM;
586 "ecore create requester failed: cannot allocate memory (orq). rc = %d\n",
587 rc);
588 return rc;
597 rc = ecore_sp_init_request(p_hwfn, &p_ent,
600 if (rc != ECORE_SUCCESS)
685 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
687 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
689 if (rc != ECORE_SUCCESS)
699 return rc;
702 DP_NOTICE(p_hwfn, false, "Create requested - failed, rc = %d\n", rc);
708 return rc;
720 enum _ecore_status_t rc;
736 rc = ecore_sp_init_request(p_hwfn, &p_ent,
739 if (rc != ECORE_SUCCESS)
741 DP_NOTICE(p_hwfn, false, "rc = %d\n", rc);
742 return rc;
810 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
812 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Modify responder, rc = %d\n", rc);
813 return rc;
826 enum _ecore_status_t rc;
842 rc = ecore_sp_init_request(p_hwfn, &p_ent,
845 if (rc != ECORE_SUCCESS) {
846 DP_NOTICE(p_hwfn, false, "rc = %d\n", rc);
847 return rc;
917 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
919 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Modify requester, rc = %d\n", rc);
920 return rc;
934 enum _ecore_status_t rc;
957 rc = ecore_sp_init_request(p_hwfn, &p_ent,
960 if (rc != ECORE_SUCCESS)
961 return rc;
970 rc = ECORE_NOMEM;
972 "ecore destroy responder failed: cannot allocate memory (ramrod). rc = %d\n",
973 rc);
974 return rc;
979 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
980 if (rc != ECORE_SUCCESS)
997 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Destroy responder, rc = %d\n", rc);
1005 return rc;
1019 enum _ecore_status_t rc;
1050 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_DESTROY_QP,
1052 if (rc != ECORE_SUCCESS)
1058 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1059 if (rc != ECORE_SUCCESS)
1075 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Destroy requester, rc = %d\n", rc);
1083 return rc;
1096 enum _ecore_status_t rc = ECORE_SUCCESS;
1122 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_QUERY_QP,
1124 if (rc != ECORE_SUCCESS)
1130 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1131 if (rc != ECORE_SUCCESS)
1146 return rc;
1160 enum _ecore_status_t rc = ECORE_SUCCESS;
1181 "ecore query qp failed: cannot allocate memory (ramrod). rc = %d\n",
1182 rc);
1188 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_QUERY_QP,
1190 if (rc != ECORE_SUCCESS)
1196 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1197 if (rc != ECORE_SUCCESS)
1214 return rc;
1222 enum _ecore_status_t rc;
1224 rc = ecore_roce_sp_query_responder(p_hwfn, qp, out_params);
1225 if (rc)
1226 return rc;
1228 rc = ecore_roce_sp_query_requester(p_hwfn, qp, out_params,
1230 if (rc)
1231 return rc;
1245 enum _ecore_status_t rc;
1262 rc = ecore_roce_sp_destroy_qp_responder(p_hwfn,
1266 if (rc != ECORE_SUCCESS)
1267 return rc;
1270 rc = ecore_roce_sp_destroy_qp_requester(p_hwfn, qp,
1273 if (rc != ECORE_SUCCESS)
1274 return rc;
1298 enum _ecore_status_t rc;
1311 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_DESTROY_UD_QP,
1313 if (rc != ECORE_SUCCESS)
1316 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1317 if (rc != ECORE_SUCCESS)
1329 return rc;
1338 enum _ecore_status_t rc;
1348 rc = ecore_roce_alloc_qp_idx(p_hwfn, &qp_idx);
1349 if (rc != ECORE_SUCCESS)
1359 rc = ecore_sp_init_request(p_hwfn, &p_ent, ROCE_RAMROD_CREATE_UD_QP,
1361 if (rc != ECORE_SUCCESS)
1364 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1365 if (rc != ECORE_SUCCESS)
1382 return rc;
1392 enum _ecore_status_t rc = ECORE_SUCCESS;
1404 rc = ecore_roce_wait_free_cids(p_hwfn, qp->qp_idx);
1405 if (rc)
1406 return rc;
1408 rc = ecore_roce_sp_create_responder(p_hwfn, qp);
1409 return rc;
1415 rc = ecore_roce_sp_create_requester(p_hwfn, qp);
1416 if (rc != ECORE_SUCCESS)
1417 return rc;
1420 rc = ecore_roce_sp_modify_responder(p_hwfn, qp, false,
1422 return rc;
1428 rc = ecore_roce_sp_modify_responder(p_hwfn, qp, false,
1430 if (rc != ECORE_SUCCESS)
1431 return rc;
1433 rc = ecore_roce_sp_modify_requester(p_hwfn, qp, false, false,
1435 return rc;
1441 rc = ecore_roce_sp_modify_requester(p_hwfn, qp, true, false,
1443 return rc;
1449 rc = ecore_roce_sp_modify_responder(p_hwfn, qp, false,
1451 if (rc != ECORE_SUCCESS)
1452 return rc;
1454 rc = ecore_roce_sp_modify_requester(p_hwfn, qp, false, false,
1456 return rc;
1462 rc = ecore_roce_sp_modify_responder(p_hwfn, qp, false,
1464 if (rc != ECORE_SUCCESS)
1465 return rc;
1467 rc = ecore_roce_sp_modify_requester(p_hwfn, qp, false, false,
1470 return rc;
1473 rc = ecore_roce_sp_modify_responder(p_hwfn, qp, true,
1475 if (rc != ECORE_SUCCESS)
1476 return rc;
1478 rc = ecore_roce_sp_modify_requester(p_hwfn, qp, false, true,
1480 return rc;
1486 rc = ecore_roce_sp_destroy_qp_responder(p_hwfn, qp,
1490 if (rc != ECORE_SUCCESS)
1491 return rc;
1493 rc = ecore_roce_sp_destroy_qp_requester(p_hwfn, qp,
1497 if (rc != ECORE_SUCCESS)
1498 return rc;
1510 return rc;