Lines Matching refs:rc
52 efx_rc_t rc;
67 rc = req.emr_rc;
72 rc = EMSGSIZE;
83 EFSYS_PROBE1(fail1, efx_rc_t, rc);
85 return (rc);
98 efx_rc_t rc;
113 rc = req.emr_rc;
123 rc = EMSGSIZE;
128 rc = EMSGSIZE;
151 EFSYS_PROBE1(fail1, efx_rc_t, rc);
153 return (rc);
169 efx_rc_t rc;
171 if ((rc = efx_mcdi_get_port_modes(enp, &port_modes,
241 rc = EINVAL;
252 EFSYS_PROBE1(fail1, efx_rc_t, rc);
254 return (rc);
265 efx_rc_t rc;
283 rc = req.emr_rc;
290 EFSYS_PROBE1(fail1, efx_rc_t, rc);
292 return (rc);
303 efx_rc_t rc;
316 rc = req.emr_rc;
323 EFSYS_PROBE1(fail1, efx_rc_t, rc);
325 return (rc);
336 efx_rc_t rc;
351 rc = req.emr_rc;
356 rc = EMSGSIZE;
361 rc = ENOENT;
381 EFSYS_PROBE1(fail1, efx_rc_t, rc);
383 return (rc);
394 efx_rc_t rc;
412 rc = req.emr_rc;
418 rc = EMSGSIZE;
424 rc = ENOENT;
444 EFSYS_PROBE1(fail1, efx_rc_t, rc);
446 return (rc);
458 efx_rc_t rc;
473 rc = req.emr_rc;
478 rc = EMSGSIZE;
484 rc = EINVAL;
489 rc = EINVAL;
502 EFSYS_PROBE1(fail1, efx_rc_t, rc);
504 return (rc);
516 efx_rc_t rc;
526 rc = req.emr_rc;
547 rc = ENOTSUP;
559 EFSYS_PROBE1(fail1, efx_rc_t, rc);
561 return (rc);
574 efx_rc_t rc;
585 rc = req.emr_rc;
590 rc = EMSGSIZE;
606 EFSYS_PROBE1(fail1, efx_rc_t, rc);
608 return (rc);
623 efx_rc_t rc;
626 rc = EINVAL;
642 rc = req.emr_rc;
647 rc = EMSGSIZE;
667 EFSYS_PROBE1(fail1, efx_rc_t, rc);
669 return (rc);
677 efx_rc_t rc;
692 rc = req.emr_rc;
699 EFSYS_PROBE1(fail1, efx_rc_t, rc);
701 return (rc);
712 efx_rc_t rc;
715 rc = EINVAL;
728 rc = req.emr_rc;
733 rc = EMSGSIZE;
746 EFSYS_PROBE1(fail1, efx_rc_t, rc);
748 return (rc);
759 efx_rc_t rc;
772 rc = req.emr_rc;
779 EFSYS_PROBE1(fail1, efx_rc_t, rc);
781 return (rc);
793 efx_rc_t rc;
807 rc = req.emr_rc;
814 EFSYS_PROBE1(fail1, efx_rc_t, rc);
816 return (rc);
827 efx_rc_t rc;
840 rc = req.emr_rc;
847 EFSYS_PROBE1(fail1, efx_rc_t, rc);
849 return (rc);
917 efx_rc_t rc;
930 rc = ENOMEM;
949 rc = ENOMEM;
964 EFSYS_PROBE1(fail1, efx_rc_t, rc);
966 return (rc);
977 efx_rc_t rc;
981 rc = EINVAL;
987 rc = ENOENT;
997 EFSYS_PROBE1(fail1, efx_rc_t, rc);
999 return (rc);
1027 efx_rc_t rc;
1038 rc = req.emr_rc;
1043 rc = EMSGSIZE;
1057 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1059 return (rc);
1070 efx_rc_t rc;
1072 if ((rc = ef10_mcdi_get_pf_count(enp, &encp->enc_hw_pf_count)) != 0)
1084 rc = req.emr_rc;
1089 rc = EMSGSIZE;
1107 rc = ENOTSUP;
1350 rc = EINVAL;
1410 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1412 return (rc);
1437 efx_rc_t rc;
1439 if ((rc = efx_mcdi_privilege_mask(enp, encp->enc_pf, encp->enc_vf,
1441 if (rc != ENOTSUP)
1459 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1461 return (rc);
1698 efx_rc_t rc;
1706 if ((rc = efx_mcdi_get_port_modes(enp, &port_modes, ¤t,
1712 if ((rc = efx_mcdi_get_port_modes(enp,
1748 rc = ENOTSUP;
1775 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1777 return (rc);
1796 efx_rc_t rc;
1799 if ((rc = efx_mcdi_get_port_assignment(enp, &port)) != 0)
1805 if ((rc = ef10_external_port_mapping(enp, port,
1815 if ((rc = efx_mcdi_get_function_info(enp, &pf, &vf)) != 0)
1823 rc = efx_mcdi_get_mac_address_pf(enp, mac_addr);
1831 if ((rc == 0) && (mac_addr[0] & 0x02)) {
1838 rc = EINVAL;
1842 rc = efx_mcdi_get_mac_address_vf(enp, mac_addr);
1844 if (rc != 0)
1850 rc = efx_mcdi_get_board_cfg(enp, &board_type, NULL, NULL);
1851 if (rc != 0) {
1853 if (rc == EACCES)
1863 if ((rc = efx_mcdi_get_phy_cfg(enp)) != 0)
1882 if ((rc = ef10_phy_get_link(enp, &els)) != 0)
1888 if ((rc = ef10_get_datapath_caps(enp)) != 0)
1917 if ((rc = efx_mcdi_get_vector_cfg(enp, &base, &nvec, NULL)) != 0) {
1934 if ((rc = ef10_get_privilege_mask(enp, &mask)) != 0)
1939 if ((rc = enop->eno_board_cfg(enp)) != 0)
1940 if (rc != EACCES)
1966 EFSYS_PROBE1(fail1, efx_rc_t, rc);
1968 return (rc);
1977 efx_rc_t rc;
1984 if ((rc = efx_mcdi_read_assertion(enp)) != 0)
1988 if ((rc = efx_mcdi_exit_assertion_handler(enp)) != 0)
1989 if (rc != EACCES)
1992 if ((rc = efx_mcdi_drv_attach(enp, B_TRUE)) != 0)
1995 if ((rc = ef10_nic_board_cfg(enp)) != 0)
2014 if ((rc = efx_mcdi_mac_stats_clear(enp)) != 0)
2019 if ((rc = efx_mcdi_get_loopback_modes(enp)) != 0)
2024 if ((rc = mcdi_mon_cfg_build(enp)) != 0) {
2026 if (rc != EACCES)
2054 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2056 return (rc);
2069 efx_rc_t rc;
2072 rc = EINVAL;
2128 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2130 return (rc);
2140 efx_rc_t rc;
2143 if ((rc = efx_mcdi_read_assertion(enp)) != 0)
2145 if ((rc = efx_mcdi_exit_assertion_handler(enp)) != 0)
2160 rc = req.emr_rc;
2174 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2176 return (rc);
2190 efx_rc_t rc;
2197 if ((rc = efx_mcdi_log_ctrl(enp)) != 0)
2221 if ((rc = efx_mcdi_free_vis(enp)) != 0)
2229 if ((rc = efx_mcdi_alloc_vis(enp, min_vi_count, max_vi_count,
2236 rc = ENOMEM;
2282 rc = efx_mcdi_link_piobuf(enp,
2285 if (rc != 0)
2303 while ((rc = efx_mcdi_vadaptor_alloc(enp, EVB_PORT_ID_ASSIGNED)) != 0) {
2305 (rc != ENOENT)) {
2316 rc = EINVAL;
2345 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2347 return (rc);
2375 efx_rc_t rc;
2400 rc = EINVAL;
2407 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2409 return (rc);
2446 efx_rc_t rc;
2454 rc = efx_mcdi_unlink_piobuf(enp,
2456 if (rc != 0)
2483 efx_rc_t rc;
2489 rc = ENOTSUP;
2497 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2499 return (rc);
2515 efx_rc_t rc;
2528 rc = req.emr_rc;
2533 rc = EMSGSIZE;
2544 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2546 return (rc);
2557 efx_rc_t rc;
2571 rc = req.emr_rc;
2578 EFSYS_PROBE1(fail1, efx_rc_t, rc);
2580 return (rc);