Lines Matching refs:rc

107 	int rc;
109 rc = ef100_get_warm_boot_count(efx);
110 if (rc < 0) {
119 if (rc == nic_data->warm_boot_count)
122 nic_data->warm_boot_count = rc;
139 int rc;
145 rc = efx_mcdi_rpc(efx, MC_CMD_GET_CLIENT_MAC_ADDRESSES, inbuf,
147 if (rc)
148 return rc;
170 int rc;
174 rc = efx_mcdi_rpc(efx, MC_CMD_GET_CAPABILITIES, NULL, 0,
176 if (rc)
177 return rc;
196 rc = efx_mcdi_window_mode_to_stride(efx, vi_window_mode);
197 if (rc)
198 return rc;
351 int rc;
358 rc = efx_mcdi_get_phy_cfg(efx, efx->phy_data);
359 if (rc)
360 return rc;
378 rc = efx_mcdi_port_reconfigure(efx);
379 if (rc && rc != -EPERM)
393 int rc;
396 rc = efx_mcdi_filter_add_vlan(efx, EFX_FILTER_VID_UNSPEC);
397 if (rc)
400 rc = efx_mcdi_filter_add_vlan(efx, 0);
401 if (rc)
408 rc = efx_tc_insert_rep_filters(efx);
411 if (rc)
413 "Failed to insert representor filters, rc %d\n",
414 rc);
422 return rc;
473 int rc;
480 rc = dev_open(efx->net_dev, NULL);
482 rc = efx_mcdi_reset(efx, reset_type);
483 if (rc)
484 return rc;
488 rc = dev_open(efx->net_dev, NULL);
490 rc = 1; /* Leave the device closed */
492 return rc;
695 int rc;
709 rc = efx_mcdi_rpc(efx, MC_CMD_DRIVER_EVENT, inbuf, sizeof(inbuf),
711 if (rc && (rc != -ENETDOWN))
718 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc);
748 int rc;
753 rc = efx_mae_fw_lookup_mport(efx, selector, &id);
754 if (rc)
755 return rc;
768 rc = efx_mae_fw_lookup_mport(efx, selector, &id);
769 if (rc)
770 return rc;
976 int rc = 0, i;
986 rc = ef100_tlv_feed(&reader, data);
988 if (!rc && reader.state == EF100_TLV_TYPE)
989 rc = ef100_process_design_param(efx, &reader);
990 if (rc)
1009 rc = -EIO;
1012 return rc;
1023 int i, rc;
1042 rc = ef100_check_design_params(efx);
1043 if (rc) {
1052 rc = efx_nic_alloc_buffer(efx, &nic_data->mcdi_buf, MCDI_BUF_LEN,
1054 if (rc)
1062 rc = ef100_get_warm_boot_count(efx);
1063 if (rc >= 0)
1069 nic_data->warm_boot_count = rc;
1080 rc = efx_mcdi_init(efx);
1081 if (rc)
1084 rc = efx_mcdi_reset(efx, RESET_TYPE_ALL);
1085 if (rc)
1088 rc = efx_mcdi_log_ctrl(efx, true, false, 0);
1089 if (rc)
1092 rc = efx_get_pf_index(efx, &nic_data->pf_index);
1093 if (rc)
1096 rc = efx_mcdi_port_get_number(efx);
1097 if (rc < 0)
1099 efx->port_num = rc;
1104 rc = efx_mcdi_get_privilege_mask(efx, &priv_mask);
1105 if (rc) /* non-fatal, and priv_mask will still be 0 */
1107 "Failed to get privilege mask from FW, rc %d\n", rc);
1112 rc = -EINVAL;
1118 rc = -EINVAL;
1124 return rc;
1137 int rc;
1144 rc = efx_mcdi_rpc(efx, MC_CMD_GET_CLIENT_HANDLE, inbuf, sizeof(inbuf),
1146 if (rc)
1147 return rc;
1158 int rc;
1163 rc = efx_init_struct_tc(efx);
1164 if (rc)
1165 return rc;
1167 rc = efx_ef100_get_base_mport(efx);
1168 if (rc) {
1170 "Failed to probe base mport rc %d; representors will not function\n",
1171 rc);
1174 rc = efx_init_mae(efx);
1175 if (rc)
1177 "Failed to init MAE rc %d; representors will not function\n",
1178 rc);
1182 rc = efx_init_tc(efx);
1183 if (rc) {
1191 netif_warn(efx, probe, net_dev, "Failed to probe MAE rc %d\n",
1192 rc);