Lines Matching refs:rc
372 enum _ecore_status_t rc = ECORE_SUCCESS;
409 rc = ECORE_AGAIN;
414 return rc;
547 enum _ecore_status_t rc = ECORE_SUCCESS;
561 rc = ecore_mcp_update_pending_cmd(p_hwfn, p_ptt);
562 if (rc == ECORE_SUCCESS)
564 else if (rc != ECORE_AGAIN)
588 rc = ECORE_NOMEM;
612 rc = ecore_mcp_update_pending_cmd(p_hwfn, p_ptt);
613 if (rc == ECORE_SUCCESS)
615 else if (rc != ECORE_AGAIN)
653 return rc;
707 enum _ecore_status_t rc;
724 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
725 if (rc != ECORE_SUCCESS)
726 return rc;
744 enum _ecore_status_t rc;
751 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
752 if (rc != ECORE_SUCCESS)
753 return rc;
772 enum _ecore_status_t rc;
782 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
783 if (rc != ECORE_SUCCESS)
784 return rc;
852 enum _ecore_status_t rc;
854 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_CANCEL_LOAD_REQ, 0,
856 if (rc != ECORE_SUCCESS) {
858 "Failed to send cancel load request, rc = %d\n", rc);
859 return rc;
940 enum _ecore_status_t rc;
984 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
985 if (rc != ECORE_SUCCESS) {
987 "Failed to send load request, rc = %d\n", rc);
988 return rc;
1062 enum _ecore_status_t rc;
1084 rc = __ecore_mcp_load_req(p_hwfn, p_ptt, &in_params, &out_params);
1085 if (rc != ECORE_SUCCESS)
1086 return rc;
1098 rc = __ecore_mcp_load_req(p_hwfn, p_ptt, &in_params,
1100 if (rc != ECORE_SUCCESS)
1101 return rc;
1121 rc = __ecore_mcp_load_req(p_hwfn, p_ptt, &in_params,
1123 if (rc != ECORE_SUCCESS)
1124 return rc;
1176 enum _ecore_status_t rc;
1178 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_LOAD_DONE, 0, &resp,
1180 if (rc != ECORE_SUCCESS) {
1182 "Failed to send a LOAD_DONE command, rc = %d\n", rc);
1183 return rc;
1300 enum _ecore_status_t rc;
1312 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
1313 if (rc != ECORE_SUCCESS) {
1326 return rc;
1600 enum _ecore_status_t rc = ECORE_SUCCESS;
1653 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
1656 if (rc != ECORE_SUCCESS) {
1658 return rc;
1735 enum _ecore_status_t rc;
1767 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
1768 if (rc != ECORE_SUCCESS)
1769 DP_ERR(p_hwfn, "Failed to send protocol stats, rc = %d\n", rc);
1858 enum _ecore_status_t rc;
1867 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
1868 if (rc != ECORE_SUCCESS)
1869 return rc;
1877 rc = ECORE_NOTIMPL;
1881 rc = ECORE_NOTIMPL;
1884 return rc;
1928 enum _ecore_status_t rc;
1935 rc = ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
1936 if (rc != ECORE_SUCCESS)
1937 return rc;
1943 rc = ECORE_UNKNOWN_ERROR;
1946 return rc;
1955 enum _ecore_status_t rc;
1969 rc = ecore_mcp_mdump_get_config(p_hwfn, p_ptt, &mdump_config);
1970 if (rc != ECORE_SUCCESS)
1971 return rc;
2009 enum _ecore_status_t rc;
2016 rc = ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
2017 if (rc != ECORE_SUCCESS)
2018 return rc;
2050 enum _ecore_status_t rc;
2058 rc = ecore_mcp_mdump_get_retain(p_hwfn, p_ptt, &mdump_retain);
2059 if (rc == ECORE_SUCCESS && mdump_retain.valid) {
2160 enum _ecore_status_t rc = ECORE_SUCCESS;
2237 rc = ECORE_INVAL;
2255 rc = ECORE_INVAL;
2261 return rc;
2588 enum _ecore_status_t rc;
2590 rc = ecore_mcp_cmd(p_hwfn, p_ptt,
2592 if (rc != ECORE_SUCCESS)
2593 return rc;
2633 enum _ecore_status_t rc = ECORE_SUCCESS;
2651 rc = ECORE_INVAL;
2654 return rc;
2709 enum _ecore_status_t rc;
2711 rc = ecore_mcp_cmd(p_hwfn, p_ptt,
2713 if (rc != ECORE_SUCCESS)
2714 return rc;
2767 enum _ecore_status_t rc;
2769 rc = ecore_mcp_cmd(p_hwfn, p_ptt,
2776 return rc;
2866 enum _ecore_status_t rc;
2872 rc = ecore_pglueb_set_pfid_enable(p_hwfn, p_ptt, false);
2873 if (rc != ECORE_SUCCESS)
2875 "ecore_pglueb_set_pfid_enable() failed. rc = %d.\n",
2876 rc);
2878 return rc;
2887 enum _ecore_status_t rc;
2899 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_CFG_VF_MSIX, param,
2905 rc = ECORE_INVAL;
2912 return rc;
2921 enum _ecore_status_t rc;
2923 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_CFG_PF_VFS_MSIX,
2928 rc = ECORE_INVAL;
2935 return rc;
2957 enum _ecore_status_t rc;
2978 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
2979 if (rc != ECORE_SUCCESS)
2982 return rc;
2993 enum _ecore_status_t rc;
2995 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_MCP_HALT, 0, &resp,
2997 if (rc != ECORE_SUCCESS) {
2999 return rc;
3056 enum _ecore_status_t rc;
3074 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_CURR_CFG,
3076 if (rc != ECORE_SUCCESS)
3079 return rc;
3089 enum _ecore_status_t rc;
3107 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_DRIVER_STATE,
3109 if (rc != ECORE_SUCCESS)
3112 return rc;
3122 enum _ecore_status_t rc = ECORE_SUCCESS;
3130 return rc;
3137 return rc;
3146 rc = ecore_mcp_nvm_read(p_hwfn->p_dev, addr, p_buf, size);
3147 if (rc != ECORE_SUCCESS) {
3149 return rc;
3173 enum _ecore_status_t rc;
3176 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_MTU,
3178 if (rc != ECORE_SUCCESS)
3179 DP_ERR(p_hwfn, "Failed to send mtu value, rc = %d\n", rc);
3181 return rc;
3190 enum _ecore_status_t rc;
3208 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
3209 if (rc != ECORE_SUCCESS)
3210 DP_ERR(p_hwfn, "Failed to send mac address, rc = %d\n", rc);
3215 return rc;
3224 enum _ecore_status_t rc;
3247 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_WOL,
3249 if (rc != ECORE_SUCCESS)
3250 DP_ERR(p_hwfn, "Failed to send wol mode, rc = %d\n", rc);
3255 return rc;
3264 enum _ecore_status_t rc;
3281 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE,
3283 if (rc != ECORE_SUCCESS)
3284 DP_ERR(p_hwfn, "Failed to send eswitch mode, rc = %d\n", rc);
3286 return rc;
3294 enum _ecore_status_t rc;
3311 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_SET_LED_MODE,
3313 if (rc != ECORE_SUCCESS)
3316 return rc;
3324 enum _ecore_status_t rc;
3326 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_MASK_PARITIES,
3329 if (rc != ECORE_SUCCESS) {
3333 rc = ECORE_INVAL;
3336 return rc;
3346 enum _ecore_status_t rc = ECORE_SUCCESS;
3359 rc = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt,
3363 if (rc != ECORE_SUCCESS) {
3365 "ecore_mcp_nvm_rd_cmd() failed, rc = %d\n",
3366 rc);
3374 rc = ECORE_UNKNOWN_ERROR;
3392 return rc;
3401 enum _ecore_status_t rc;
3407 rc = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt,
3412 if (rc != ECORE_SUCCESS)
3413 DP_NOTICE(p_dev, false, "MCP command rc = %d\n", rc);
3418 return rc;
3442 enum _ecore_status_t rc;
3447 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_NVM_DEL_FILE, addr,
3452 return rc;
3461 enum _ecore_status_t rc;
3466 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_NVM_PUT_FILE_BEGIN, addr,
3471 return rc;
3474 /* rc recieves ECORE_INVAL as default parameter because
3482 enum _ecore_status_t rc = ECORE_INVAL;
3505 rc = ECORE_INVAL;
3516 rc = ecore_mcp_nvm_wr_cmd(p_hwfn, p_ptt, nvm_cmd, nvm_offset,
3519 if (rc != ECORE_SUCCESS) {
3521 "ecore_mcp_nvm_write() failed, rc = %d\n",
3522 rc);
3532 rc = ECORE_UNKNOWN_ERROR;
3550 return rc;
3559 enum _ecore_status_t rc;
3567 rc = ecore_mcp_nvm_wr_cmd(p_hwfn, p_ptt, nvm_cmd, addr,
3569 if (rc != ECORE_SUCCESS)
3570 DP_NOTICE(p_dev, false, "MCP command rc = %d\n", rc);
3574 return rc;
3583 enum _ecore_status_t rc;
3589 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_SET_SECURE_MODE, addr,
3594 return rc;
3604 enum _ecore_status_t rc;
3620 rc = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt,
3624 if (rc != ECORE_SUCCESS) {
3626 "Failed to send a transceiver read command to the MFW. rc = %d.\n",
3627 rc);
3628 return rc;
3649 enum _ecore_status_t rc;
3663 rc = ecore_mcp_nvm_wr_cmd(p_hwfn, p_ptt,
3667 if (rc != ECORE_SUCCESS) {
3669 "Failed to send a transceiver write command to the MFW. rc = %d.\n",
3670 rc);
3671 return rc;
3689 enum _ecore_status_t rc = ECORE_SUCCESS;
3694 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GPIO_READ,
3697 if (rc != ECORE_SUCCESS)
3698 return rc;
3710 enum _ecore_status_t rc = ECORE_SUCCESS;
3716 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GPIO_WRITE,
3719 if (rc != ECORE_SUCCESS)
3720 return rc;
3734 enum _ecore_status_t rc = ECORE_SUCCESS;
3738 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GPIO_INFO,
3740 if (rc != ECORE_SUCCESS)
3741 return rc;
3758 enum _ecore_status_t rc = ECORE_SUCCESS;
3763 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
3766 if (rc != ECORE_SUCCESS)
3767 return rc;
3771 rc = ECORE_UNKNOWN_ERROR;
3773 return rc;
3780 enum _ecore_status_t rc = ECORE_SUCCESS;
3785 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
3788 if (rc != ECORE_SUCCESS)
3789 return rc;
3793 rc = ECORE_UNKNOWN_ERROR;
3795 return rc;
3802 enum _ecore_status_t rc = ECORE_SUCCESS;
3807 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
3810 if (rc != ECORE_SUCCESS)
3811 return rc;
3814 rc = ECORE_UNKNOWN_ERROR;
3816 return rc;
3824 enum _ecore_status_t rc;
3830 rc = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
3833 if (rc != ECORE_SUCCESS)
3834 return rc;
3838 rc = ECORE_UNKNOWN_ERROR;
3840 return rc;
3851 enum _ecore_status_t rc;
3871 rc = ecore_mcp_bist_nvm_test_get_num_images(p_hwfn, p_ptt, &num_images);
3872 if (rc != ECORE_SUCCESS || !num_images)
3876 rc = ecore_mcp_bist_nvm_test_get_image_att(p_hwfn, p_ptt,
3878 if (rc != ECORE_SUCCESS)
3879 return rc;
3903 enum _ecore_status_t rc;
3907 rc = ecore_mcp_get_nvm_image_att(p_hwfn, p_ptt, image_id, &image_att);
3908 if (rc != ECORE_SUCCESS)
3909 return rc;
3942 enum _ecore_status_t rc;
3949 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
3950 if (rc != ECORE_SUCCESS)
3951 return rc;
3978 enum _ecore_status_t rc;
3980 rc = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GET_MBA_VERSION,
3984 if (rc != ECORE_SUCCESS)
3985 return rc;
3988 rc = ECORE_UNKNOWN_ERROR;
3991 rc = ECORE_UNKNOWN_ERROR;
3993 return rc;
4094 enum _ecore_status_t rc;
4137 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4138 if (rc != ECORE_SUCCESS)
4139 return rc;
4169 enum _ecore_status_t rc;
4176 rc = ecore_mcp_resc_allocation_msg(p_hwfn, p_ptt, &in_params,
4178 if (rc != ECORE_SUCCESS)
4179 return rc;
4193 enum _ecore_status_t rc;
4199 rc = ecore_mcp_resc_allocation_msg(p_hwfn, p_ptt, &in_params,
4201 if (rc != ECORE_SUCCESS)
4202 return rc;
4229 enum _ecore_status_t rc;
4235 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4236 if (rc != ECORE_SUCCESS)
4237 return rc;
4263 enum _ecore_status_t rc;
4278 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4279 if (rc != ECORE_SUCCESS)
4280 return rc;
4297 enum _ecore_status_t rc;
4299 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_RESOURCE_CMD, param,
4301 if (rc != ECORE_SUCCESS)
4302 return rc;
4319 return rc;
4328 enum _ecore_status_t rc;
4354 rc = ecore_mcp_resource_cmd(p_hwfn, p_ptt, param, &mcp_resp,
4356 if (rc != ECORE_SUCCESS)
4357 return rc;
4389 enum _ecore_status_t rc;
4405 rc = __ecore_mcp_resc_lock(p_hwfn, p_ptt, p_params);
4406 if (rc != ECORE_SUCCESS)
4407 return rc;
4422 enum _ecore_status_t rc;
4434 rc = ecore_mcp_resource_cmd(p_hwfn, p_ptt, param, &mcp_resp,
4436 if (rc != ECORE_SUCCESS)
4437 return rc;
4503 enum _ecore_status_t rc;
4505 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OEM_UPDATE_FCOE_CVID,
4508 if (rc != ECORE_SUCCESS)
4509 DP_ERR(p_hwfn, "Failed to update fcoe vlan, rc = %d\n", rc);
4511 return rc;
4520 enum _ecore_status_t rc;
4530 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4531 if (rc != ECORE_SUCCESS)
4532 DP_ERR(p_hwfn, "Failed to update fcoe wwn, rc = %d\n", rc);
4534 return rc;
4541 enum _ecore_status_t rc = ECORE_SUCCESS;
4549 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4550 if (rc != ECORE_SUCCESS) {
4552 "Failed to wol write request, rc = %d\n", rc);
4559 rc = ECORE_UNKNOWN_ERROR;
4579 enum _ecore_status_t rc;
4581 rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GET_MFW_FEATURE_SUPPORT,
4583 if (rc == ECORE_SUCCESS)
4588 return rc;
4611 enum _ecore_status_t rc;
4648 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4649 if (rc != ECORE_SUCCESS)
4650 return rc;
4683 enum _ecore_status_t rc;
4687 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4688 if (rc != ECORE_SUCCESS)
4689 return rc;
4723 enum _ecore_status_t rc;
4727 rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
4728 if (rc != ECORE_SUCCESS)
4729 return rc;
4753 enum _ecore_status_t rc;
4766 rc = ecore_mcp_resc_lock(p_hwfn, p_ptt, &resc_lock_params);
4767 if (rc == ECORE_SUCCESS && !resc_lock_params.b_granted) {
4772 return rc;
4779 enum _ecore_status_t rc;
4784 rc = ecore_mcp_resc_unlock(p_hwfn, p_ptt,
4786 return rc;