Lines Matching refs:rc

608 	int i, rc;
611 rc = ddi_intr_free(i40e->i40e_intr_handles[i]);
612 if (rc != DDI_SUCCESS) {
614 i, rc);
625 int i, rc;
628 rc = ddi_intr_remove_handler(i40e->i40e_intr_handles[i]);
629 if (rc != DDI_SUCCESS) {
631 i, rc);
763 int rc;
767 rc = i40e_aq_get_switch_config(hw, sw_config, sizeof (aq_buf), &next,
769 if (rc != I40E_SUCCESS) {
771 rc, hw->aq.asq_last_status);
795 int rc;
805 rc = i40e_aq_discover_capabilities(hw, buf, len,
818 } else if (rc != I40E_SUCCESS ||
820 i40e_error(i40e, "Capability discovery failed: %d", rc);
1024 int i, rc;
1027 rc = ddi_intr_block_enable(i40e->i40e_intr_handles,
1029 if (rc != DDI_SUCCESS) {
1031 rc);
1036 rc = ddi_intr_enable(i40e->i40e_intr_handles[i]);
1037 if (rc != DDI_SUCCESS) {
1039 "Failed to enable interrupt %d: %d", i, rc);
1055 int i, rc;
1058 rc = ddi_intr_block_disable(i40e->i40e_intr_handles,
1060 if (rc != DDI_SUCCESS) {
1062 "Interrupt block-disabled failed: %d", rc);
1067 rc = ddi_intr_disable(i40e->i40e_intr_handles[i]);
1068 if (rc != DDI_SUCCESS) {
1071 i, rc);
1176 int rc;
1178 rc = i40e_shutdown_lan_hmc(hw);
1179 if (rc != I40E_SUCCESS)
1180 i40e_error(i40e, "failed to shutdown LAN hmc: %d", rc);
1182 rc = i40e_shutdown_adminq(hw);
1183 if (rc != I40E_SUCCESS)
1184 i40e_error(i40e, "failed to shutdown admin queue: %d", rc);
1195 int rc;
1198 rc = i40e_pf_reset(hw);
1199 if (rc != 0) {
1200 i40e_error(i40e, "failed to reset hardware: %d", rc);
1205 rc = i40e_init_shared_code(hw);
1206 if (rc != 0) {
1207 i40e_error(i40e, "failed to initialize i40e core: %d", rc);
1216 rc = i40e_init_adminq(hw);
1217 if (rc != 0) {
1219 "%d, potential firmware version mismatch", rc);
1258 rc = i40e_init_lan_hmc(hw, hw->func_caps.num_tx_qp,
1260 if (rc != 0) {
1262 "%d", rc);
1266 rc = i40e_configure_lan_hmc(hw, I40E_HMC_MODEL_DIRECT_ONLY);
1267 if (rc != 0) {
1269 "%d", rc);
1275 rc = i40e_get_mac_addr(hw, hw->mac.addr);
1276 if (rc != I40E_SUCCESS) {
1278 rc);
1282 rc = i40e_validate_mac_addr(hw->mac.addr);
1283 if (rc != 0) {
1285 "%d", rc);
1289 if ((rc = i40e_get_port_mac_addr(hw, hw->mac.port_addr)) !=
1292 rc);
1312 int rc;
1324 rc = mac_unregister(i40e->i40e_mac_hdl);
1325 if (rc != 0) {
1327 rc);
1597 int request, count, actual, rc, min;
1623 rc = ddi_intr_get_nintrs(devinfo, intr_type, &count);
1624 if (rc != DDI_SUCCESS || count < min) {
1626 "returned %d, count %d", rc, count);
1630 rc = ddi_intr_get_navail(devinfo, intr_type, &count);
1631 if (rc != DDI_SUCCESS || count < min) {
1633 "returned %d, count %d", rc, count);
1646 rc = ddi_intr_alloc(devinfo, i40e->i40e_intr_handles, intr_type, 0,
1648 if (rc != DDI_SUCCESS) {
1649 i40e_log(i40e, "Interrupt allocation failed with %d.", rc);
1668 rc = ddi_intr_get_pri(i40e->i40e_intr_handles[0], &i40e->i40e_intr_pri);
1669 if (rc != DDI_SUCCESS) {
1671 "Getting interrupt priority failed with %d.", rc);
1675 rc = ddi_intr_get_cap(i40e->i40e_intr_handles[0], &i40e->i40e_intr_cap);
1676 if (rc != DDI_SUCCESS) {
1678 "Getting interrupt capabilities failed with %d.", rc);
1694 int intr_types, rc;
1696 rc = ddi_intr_get_supported_types(devinfo, &intr_types);
1697 if (rc != DDI_SUCCESS) {
1699 rc);
1763 int rc, vector;
1768 rc = ddi_intr_add_handler(
1772 if (rc != DDI_SUCCESS) {
1774 "failed: return %d, vector %d", rc, vector);
1784 rc = ddi_intr_add_handler(i40e->i40e_intr_handles[0],
1786 if (rc != DDI_SUCCESS) {
1788 "return %d", rc);
1793 rc = ddi_intr_add_handler(i40e->i40e_intr_handles[0],
1795 if (rc != DDI_SUCCESS) {
1797 " return %d", rc);
1835 int rc;
1846 rc = i40e_aq_get_phy_capabilities(hw, B_FALSE, B_TRUE, &i40e->i40e_phy,
1848 if (rc == I40E_ERR_UNKNOWN_PHY) {
1850 rc = i40e_aq_get_phy_capabilities(hw, B_FALSE, B_TRUE,
1854 if (rc != I40E_SUCCESS) {
1855 if (rc == I40E_ERR_UNKNOWN_PHY) {
1860 "%d, %d", rc, hw->aq.asq_last_status);
1864 rc = i40e_update_link_info(hw);
1865 if (rc != I40E_SUCCESS) {
1866 i40e_error(i40e, "failed to update link information: %d", rc);
1873 rc = i40e_aq_set_phy_int_mask(hw, 0, NULL);
1874 if (rc != I40E_SUCCESS) {
1875 i40e_error(i40e, "failed to update phy link mask: %d", rc);
1948 int rc;
1974 rc = i40e_set_filter_control(hw, &filter);
1975 if (rc != I40E_SUCCESS) {
1976 i40e_error(i40e, "i40e_set_filter_control() returned %d", rc);
2524 boolean_t rc = B_TRUE;
2556 rc = B_FALSE;
2561 rc = B_FALSE;
2566 rc = B_FALSE;
2577 rc = B_FALSE;
2584 rc = B_FALSE;
2593 rc = B_FALSE;
2604 if (rc == B_FALSE) {
2612 return (rc);