Lines Matching refs:rc
80 "ecore bmap alloc failed: cannot allocate memory (bitmap). rc = %d\n",
216 enum _ecore_status_t rc = ECORE_INVAL;
221 rc = ECORE_SUCCESS;
226 return rc;
276 enum _ecore_status_t rc;
312 rc = ECORE_NOMEM;
314 "ecore rdma alloc failed: cannot allocate memory (rdma info dev). rc = %d\n",
315 rc);
316 return rc;
329 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->pd_map, RDMA_MAX_PDS,
331 if (rc != ECORE_SUCCESS)
334 "Failed to allocate pd_map,rc = %d\n",
335 rc);
336 return rc;
340 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->xrcd_map,
342 if (rc != ECORE_SUCCESS)
345 "Failed to allocate xrcd_map,rc = %d\n",
346 rc);
347 return rc;
351 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->dpi_map,
353 if (rc != ECORE_SUCCESS)
356 "Failed to allocate DPI bitmap, rc = %d\n", rc);
357 return rc;
363 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->cq_map,
365 if (rc != ECORE_SUCCESS)
368 "Failed to allocate cq bitmap, rc = %d\n", rc);
369 return rc;
377 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->toggle_bits,
379 if (rc != ECORE_SUCCESS)
382 "Failed to allocate toogle bits, rc = %d\n", rc);
383 return rc;
387 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->tid_map,
389 if (rc != ECORE_SUCCESS)
392 "Failed to allocate itids bitmaps, rc = %d\n", rc);
393 return rc;
397 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->qp_map,
399 if (rc != ECORE_SUCCESS)
402 "Failed to allocate qp bitmap, rc = %d\n", rc);
403 return rc;
407 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->cid_map, num_cons,
409 if (rc != ECORE_SUCCESS)
412 "Failed to allocate cid bitmap, rc = %d\n", rc);
413 return rc;
420 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->xrc_srq_map,
422 if (rc != ECORE_SUCCESS) {
424 "Failed to allocate xrc srq bitmap, rc = %d\n", rc);
425 return rc;
430 rc = ecore_rdma_bmap_alloc(p_hwfn, &p_rdma_info->srq_map,
433 if (rc != ECORE_SUCCESS) {
435 "Failed to allocate srq bitmap, rc = %d\n", rc);
437 return rc;
441 rc = ecore_iwarp_alloc(p_hwfn);
443 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
445 return rc;
810 enum _ecore_status_t rc;
824 rc = ecore_sp_init_request(p_hwfn, &p_ent, RDMA_RAMROD_FUNC_INIT,
826 if (rc != ECORE_SUCCESS)
827 return rc;
835 rc = ecore_roce_dcqcn_cfg(p_hwfn, ¶ms->roce.dcqcn_params,
837 if (rc != ECORE_SUCCESS) {
839 "Failed to configure DCQCN. rc = %d.\n", rc);
840 return rc;
891 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
893 return rc;
900 enum _ecore_status_t rc;
905 rc = ecore_rdma_bmap_alloc_id(p_hwfn,
909 if (rc != ECORE_SUCCESS) {
914 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_TASK, *itid);
916 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Allocate TID - done, rc = %d\n", rc);
917 return rc;
944 enum _ecore_status_t rc = 0;
952 rc = ecore_rdma_reserve_lkey(p_hwfn);
953 if (rc != ECORE_SUCCESS)
954 return rc;
956 rc = ecore_rdma_init_hw(p_hwfn, p_ptt);
957 if (rc != ECORE_SUCCESS)
958 return rc;
961 rc = ecore_iwarp_setup(p_hwfn, params);
962 if (rc != ECORE_SUCCESS)
963 return rc;
965 rc = ecore_roce_setup(p_hwfn);
966 if (rc != ECORE_SUCCESS)
967 return rc;
981 enum _ecore_status_t rc = ECORE_TIMEOUT;
985 rc = ecore_rdma_deactivate(p_hwfn);
986 if (rc != ECORE_SUCCESS)
987 return rc;
992 return rc;
1036 rc = ecore_iwarp_stop(p_hwfn);
1037 if (rc != ECORE_SUCCESS) {
1042 rc = ecore_roce_stop(p_hwfn);
1043 if (rc != ECORE_SUCCESS) {
1057 rc = ecore_sp_init_request(p_hwfn, &p_ent, RDMA_RAMROD_FUNC_CLOSE,
1059 if (rc != ECORE_SUCCESS)
1067 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1072 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "RDMA stop done, rc = %d\n", rc);
1073 return rc;
1082 enum _ecore_status_t rc;
1088 rc = ecore_rdma_bmap_alloc_id(p_hwfn, &p_hwfn->p_rdma_info->dpi_map,
1092 if (rc != ECORE_SUCCESS)
1110 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Adding user - done, rc = %d\n", rc);
1111 return rc;
1191 enum _ecore_status_t rc;
1197 rc = ecore_rdma_bmap_alloc_id(p_hwfn,
1201 if (rc != ECORE_SUCCESS)
1206 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Alloc PD - done, rc = %d\n", rc);
1207 return rc;
1228 enum _ecore_status_t rc;
1234 rc = ecore_rdma_bmap_alloc_id(p_hwfn,
1238 if (rc != ECORE_SUCCESS)
1243 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Alloc XRCD - done, rc = %d\n", rc);
1244 return rc;
1295 enum _ecore_status_t rc;
1303 rc = ecore_rdma_bmap_alloc_id(p_hwfn, &p_info->cq_map, &returned_id);
1306 if (rc != ECORE_SUCCESS)
1308 DP_NOTICE(p_hwfn, false, "Can't create CQ, rc = %d\n", rc);
1309 return rc;
1317 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, ECORE_ELEM_CXT, *icid);
1318 if (rc != ECORE_SUCCESS)
1328 rc = ecore_sp_init_request(p_hwfn, &p_ent,
1331 if (rc != ECORE_SUCCESS)
1354 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1355 if (rc != ECORE_SUCCESS) {
1361 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Created CQ, rc = %d\n", rc);
1362 return rc;
1370 DP_NOTICE(p_hwfn, false, "Create CQ failed, rc = %d\n", rc);
1372 return rc;
1385 enum _ecore_status_t rc = ECORE_NOMEM;
1396 return rc;
1406 rc = ecore_sp_init_request(p_hwfn, &p_ent,
1409 if (rc != ECORE_SUCCESS)
1415 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
1416 if (rc != ECORE_SUCCESS)
1435 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Destroyed CQ, rc = %d\n", rc);
1436 return rc;
1442 return rc;
1458 enum _ecore_status_t rc = ECORE_SUCCESS;
1485 rc = ecore_iwarp_query_qp(qp, out_params);
1487 rc = ecore_roce_query_qp(p_hwfn, qp, out_params);
1489 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Query QP, rc = %d\n", rc);
1490 return rc;
1498 enum _ecore_status_t rc = ECORE_SUCCESS;
1510 rc = ecore_iwarp_destroy_qp(p_hwfn, qp);
1512 rc = ecore_roce_destroy_qp(p_hwfn, qp, out_params);
1517 return rc;
1527 enum _ecore_status_t rc = 0;
1603 rc = ecore_iwarp_create_qp(p_hwfn, qp, out_params);
1606 rc = ecore_roce_alloc_qp_idx(p_hwfn, &qp->qp_idx);
1611 if (rc != ECORE_SUCCESS) {
1621 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Create QP, rc = %d\n", rc);
1638 enum _ecore_status_t rc = ECORE_SUCCESS;
1775 rc = ecore_iwarp_modify_qp(p_hwfn, qp, new_state, 0);
1777 rc = ecore_roce_modify_qp(p_hwfn, qp, prev_state, params);
1780 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Modify QP, rc = %d\n", rc);
1781 return rc;
1793 enum _ecore_status_t rc;
1802 rc = ecore_sp_init_request(p_hwfn, &p_ent, RDMA_RAMROD_REGISTER_MR,
1804 if (rc != ECORE_SUCCESS) {
1805 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
1806 return rc;
1882 rc = ECORE_INVAL;
1883 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
1884 return rc;
1916 rc = ecore_spq_post(p_hwfn, p_ent, &fw_return_code);
1917 if (rc)
1918 return rc;
1925 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "Register TID, rc = %d\n", rc);
1926 return rc;
1937 enum _ecore_status_t rc;
1944 rc = ecore_sp_init_request(p_hwfn, &p_ent,
1947 if (rc != ECORE_SUCCESS) {
1948 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
1949 return rc;
1955 rc = ecore_spq_post(p_hwfn, p_ent, fw_return_code);
1956 if (rc != ECORE_SUCCESS)
1958 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
1959 return rc;
1962 return rc;
1970 enum _ecore_status_t rc;
1976 rc = ecore_rdma_send_deregister_tid_ramrod(p_hwfn, itid, &fw_ret_code);
1977 if (rc != ECORE_SUCCESS)
1978 return rc;
1991 rc = ecore_rdma_send_deregister_tid_ramrod(p_hwfn, itid, &fw_ret_code);
1992 if (rc != ECORE_SUCCESS)
1993 return rc;
2003 rc = ecore_mcp_drain(p_hwfn, p_ptt);
2004 if (rc != ECORE_SUCCESS) {
2006 return rc;
2011 rc = ecore_rdma_send_deregister_tid_ramrod(p_hwfn, itid, &fw_ret_code);
2012 if (rc != ECORE_SUCCESS)
2013 return rc;
2063 enum _ecore_status_t rc;
2069 rc = ecore_sp_init_request(p_hwfn, &p_ent,
2072 if (rc != ECORE_SUCCESS)
2073 return rc;
2084 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
2085 if (rc != ECORE_SUCCESS)
2086 return rc;
2091 return rc;
2104 enum _ecore_status_t rc;
2113 rc = ecore_sp_init_request(p_hwfn, &p_ent,
2116 if (rc != ECORE_SUCCESS)
2117 return rc;
2126 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
2128 if (rc != ECORE_SUCCESS)
2129 return rc;
2141 return rc;
2157 enum _ecore_status_t rc;
2162 rc = ecore_rdma_bmap_alloc_id(p_hwfn, bmap, &returned_id);
2165 if (rc != ECORE_SUCCESS) {
2169 return rc;
2173 rc = ecore_cxt_dynamic_ilt_alloc(p_hwfn, elem_type, returned_id);
2174 if (rc != ECORE_SUCCESS)
2183 rc = ecore_sp_init_request(p_hwfn, &p_ent,
2186 if (rc != ECORE_SUCCESS)
2214 rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
2216 if (rc != ECORE_SUCCESS)
2223 return rc;
2230 return rc;
2254 enum _ecore_status_t rc;
2273 rc = ECORE_NOMEM;
2275 "ecore resize cq failed: cannot allocate memory (ramrod). rc = %d\n",
2276 rc);
2277 return rc;
2286 rc = ecore_sp_init_request(p_hwfn, &p_ent,
2289 if (rc != ECORE_SUCCESS)
2317 rc = ecore_spq_post(p_hwfn, p_ent, &fw_return_code);
2318 if (rc != ECORE_SUCCESS)
2327 rc = ECORE_UNKNOWN_ERROR;
2337 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
2339 return rc;
2344 DP_NOTICE(p_hwfn, false, "rc = %d\n", rc);
2346 return rc;
2354 enum _ecore_status_t rc = ECORE_TIMEOUT;
2363 rc = ecore_rdma_alloc(p_hwfn);
2364 if (rc)
2367 rc = ecore_rdma_setup(p_hwfn, p_ptt, params);
2368 if (rc)
2374 return rc;
2381 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "RDMA start - error, rc = %d\n", rc);
2382 return rc;
2396 enum _ecore_status_t rc = ECORE_SUCCESS;
2408 rc = ecore_rdma_inc_ref_cnt(p_hwfn);
2409 if (rc != ECORE_SUCCESS)
2410 return rc;
2417 rc = ECORE_INVAL;
2447 rc = ECORE_TIMEOUT;
2448 DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "rc = %d\n", rc);
2518 return rc;
2607 enum _ecore_status_t rc = ECORE_SUCCESS;
2677 return rc;