Lines Matching refs:rc
46 int rc; in bnxt_set_vf_spoofchk() local
48 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk()
49 if (rc) in bnxt_set_vf_spoofchk()
50 return rc; in bnxt_set_vf_spoofchk()
69 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_spoofchk()
70 if (!rc) { in bnxt_set_vf_spoofchk()
77 return rc; in bnxt_set_vf_spoofchk()
85 int rc; in bnxt_get_vf_config() local
87 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_get_vf_config()
88 if (rc) in bnxt_get_vf_config()
89 return rc; in bnxt_get_vf_config()
115 int rc; in bnxt_set_vf_mac() local
117 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_mac()
118 if (rc) in bnxt_set_vf_mac()
119 return rc; in bnxt_set_vf_mac()
144 int rc; in bnxt_set_vf_vlan() local
146 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_vlan()
147 if (rc) in bnxt_set_vf_vlan()
148 return rc; in bnxt_set_vf_vlan()
166 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_vlan()
167 if (!rc) in bnxt_set_vf_vlan()
169 return rc; in bnxt_set_vf_vlan()
179 int rc; in bnxt_set_vf_bw() local
181 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_bw()
182 if (rc) in bnxt_set_vf_bw()
183 return rc; in bnxt_set_vf_bw()
207 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_bw()
208 if (!rc) { in bnxt_set_vf_bw()
212 return rc; in bnxt_set_vf_bw()
219 int rc; in bnxt_set_vf_link_state() local
221 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_link_state()
222 if (rc) in bnxt_set_vf_link_state()
223 return rc; in bnxt_set_vf_link_state()
240 rc = -EINVAL; in bnxt_set_vf_link_state()
245 return rc; in bnxt_set_vf_link_state()
263 int i, rc = 0; in bnxt_hwrm_func_vf_resource_free() local
272 rc = _hwrm_send_message(bp, &req, sizeof(req), in bnxt_hwrm_func_vf_resource_free()
274 if (rc) in bnxt_hwrm_func_vf_resource_free()
278 return rc; in bnxt_hwrm_func_vf_resource_free()
368 u32 rc = 0, mtu, i; in bnxt_hwrm_func_cfg() local
422 rc = _hwrm_send_message(bp, &req, sizeof(req), in bnxt_hwrm_func_cfg()
424 if (rc) in bnxt_hwrm_func_cfg()
430 if (!rc) { in bnxt_hwrm_func_cfg()
437 return rc; in bnxt_hwrm_func_cfg()
442 int rc = 0, vfs_supported; in bnxt_sriov_enable() local
490 rc = bnxt_alloc_vf_resources(bp, *num_vfs); in bnxt_sriov_enable()
491 if (rc) in bnxt_sriov_enable()
495 rc = bnxt_hwrm_func_cfg(bp, num_vfs); in bnxt_sriov_enable()
496 if (rc) in bnxt_sriov_enable()
500 rc = bnxt_hwrm_func_buf_rgtr(bp); in bnxt_sriov_enable()
501 if (rc) in bnxt_sriov_enable()
504 rc = pci_enable_sriov(bp->pdev, *num_vfs); in bnxt_sriov_enable()
505 if (rc) in bnxt_sriov_enable()
517 return rc; in bnxt_sriov_enable()
590 int rc = 0; in bnxt_hwrm_fwd_resp() local
604 rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_fwd_resp()
606 if (rc) { in bnxt_hwrm_fwd_resp()
607 netdev_err(bp->dev, "hwrm_fwd_resp failed. rc:%d\n", rc); in bnxt_hwrm_fwd_resp()
614 rc = -1; in bnxt_hwrm_fwd_resp()
619 return rc; in bnxt_hwrm_fwd_resp()
625 int rc = 0; in bnxt_hwrm_fwd_err_resp() local
635 rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_fwd_err_resp()
637 if (rc) { in bnxt_hwrm_fwd_err_resp()
638 netdev_err(bp->dev, "hwrm_fwd_err_resp failed. rc:%d\n", rc); in bnxt_hwrm_fwd_err_resp()
645 rc = -1; in bnxt_hwrm_fwd_err_resp()
650 return rc; in bnxt_hwrm_fwd_err_resp()
656 int rc = 0; in bnxt_hwrm_exec_fwd_resp() local
666 rc = _hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_exec_fwd_resp()
668 if (rc) { in bnxt_hwrm_exec_fwd_resp()
669 netdev_err(bp->dev, "hwrm_exec_fw_resp failed. rc:%d\n", rc); in bnxt_hwrm_exec_fwd_resp()
676 rc = -1; in bnxt_hwrm_exec_fwd_resp()
681 return rc; in bnxt_hwrm_exec_fwd_resp()
699 int rc = 0; in bnxt_vf_set_link() local
703 rc = bnxt_hwrm_exec_fwd_resp( in bnxt_vf_set_link()
742 rc = bnxt_hwrm_fwd_resp(bp, vf, &phy_qcfg_resp, in bnxt_vf_set_link()
747 return rc; in bnxt_vf_set_link()
752 int rc = 0; in bnxt_vf_req_validate_snd() local
758 rc = bnxt_vf_validate_set_mac(bp, vf); in bnxt_vf_req_validate_snd()
764 rc = bnxt_hwrm_exec_fwd_resp( in bnxt_vf_req_validate_snd()
768 rc = bnxt_vf_set_link(bp, vf); in bnxt_vf_req_validate_snd()
773 return rc; in bnxt_vf_req_validate_snd()