Lines Matching defs:ret_val

274 	int32_t ret_val = IXGBE_SUCCESS;
285 ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS;
304 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &reg_bp);
305 if (ret_val != IXGBE_SUCCESS)
380 ret_val = IXGBE_ERR_CONFIG;
408 ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked);
409 if (ret_val)
419 return ret_val;
433 int32_t ret_val;
458 ret_val = hw->mac.ops.setup_fc(hw);
459 if (ret_val != IXGBE_SUCCESS) {
460 DEBUGOUT1("Flow control setup failed, returning %d\n", ret_val);
461 return ret_val;
2266 int32_t ret_val = IXGBE_SUCCESS;
2276 ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS;
2287 ret_val = IXGBE_ERR_INVALID_LINK_SETTINGS;
2346 ret_val = IXGBE_ERR_CONFIG;
2388 return ret_val;
2456 int32_t ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED;
2474 ret_val = ixgbe_negotiate_fc(hw, pcs_anadv_reg,
2481 return ret_val;
2493 int32_t ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED;
2520 ret_val = ixgbe_negotiate_fc(hw, autoc_reg,
2525 return ret_val;
2561 int32_t ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED;
2591 ret_val = ixgbe_fc_autoneg_fiber(hw);
2596 ret_val = ixgbe_fc_autoneg_backplane(hw);
2602 ret_val = ixgbe_fc_autoneg_copper(hw);
2610 if (ret_val == IXGBE_SUCCESS) {
2923 int32_t ret_val = IXGBE_SUCCESS;
2938 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg);
2939 if (ret_val != IXGBE_SUCCESS)
2945 ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked);
2946 if (ret_val != IXGBE_SUCCESS)
2959 return ret_val;
2971 int32_t ret_val = IXGBE_SUCCESS;
2979 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg);
2980 if (ret_val != IXGBE_SUCCESS)
2986 ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked);
2987 if (ret_val != IXGBE_SUCCESS)
2997 return ret_val;
3281 int32_t ret_val;
3315 ret_val = ixgbe_set_vlvf_generic(hw, vlan, vind, vlan_on, &vfta_delta,
3317 if (ret_val != IXGBE_SUCCESS) {
3320 return ret_val;
4211 int32_t ret_val = IXGBE_SUCCESS;
4292 ret_val = IXGBE_ERR_DEVICE_NOT_SUPPORTED;
4300 hw->mac.type, ret_val);
4301 return ret_val;
4501 int32_t ret_val;
4513 ret_val = ixgbe_poll_for_msg(hw, mbx_id);
4515 if (!ret_val)
4518 return ret_val;
4533 int32_t ret_val = IXGBE_ERR_MBX;
4546 ret_val = IXGBE_ERR_PARAM;
4550 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
4553 return ret_val;
4566 int32_t ret_val = IXGBE_ERR_MBX;
4571 ret_val = mbx->ops.check_for_msg(hw, mbx_id);
4573 return ret_val;
4586 int32_t ret_val = IXGBE_ERR_MBX;
4591 ret_val = mbx->ops.check_for_ack(hw, mbx_id);
4593 return ret_val;
4606 int32_t ret_val = IXGBE_ERR_MBX;
4611 ret_val = mbx->ops.check_for_rst(hw, mbx_id);
4613 return ret_val;
4816 int32_t ret_val = IXGBE_ERR_MBX;
4832 ret_val = IXGBE_SUCCESS;
4840 if (ret_val != IXGBE_SUCCESS) {
4843 ret_val = IXGBE_ERR_TIMEOUT;
4846 return ret_val;
4862 int32_t ret_val = IXGBE_ERR_MBX;
4869 ret_val = ixgbe_poll_for_msg(hw, mbx_id);
4872 if (!ret_val)
4873 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
4875 return ret_val;
4892 int32_t ret_val = IXGBE_ERR_MBX;
4901 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
4904 if (!ret_val)
4905 ret_val = ixgbe_poll_for_ack(hw, mbx_id);
4907 return ret_val;
4995 int32_t ret_val = IXGBE_ERR_MBX;
5001 ret_val = IXGBE_SUCCESS;
5006 return ret_val;
5020 int32_t ret_val = IXGBE_ERR_MBX;
5040 ret_val = IXGBE_SUCCESS;
5045 return ret_val;
5059 int32_t ret_val = IXGBE_ERR_MBX;
5076 ret_val = IXGBE_SUCCESS;
5084 if (ret_val != IXGBE_SUCCESS) {
5087 ret_val = IXGBE_ERR_TIMEOUT;
5090 return ret_val;
5106 int32_t ret_val;
5112 ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_id);
5113 if (ret_val)
5138 return ret_val;
5155 int32_t ret_val;
5161 ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_id);
5162 if (ret_val != IXGBE_SUCCESS)
5163 return ret_val;
5193 int32_t ret_val;
5199 ret_val = ixgbe_check_for_msg_pf(hw, vf_id);
5200 if (ret_val != IXGBE_SUCCESS)
5242 int32_t ret_val;
5248 ret_val = ixgbe_obtain_mbx_lock_vf(hw);
5249 if (ret_val)
5250 return ret_val;
5283 int32_t ret_val;
5289 ret_val = ixgbe_obtain_mbx_lock_vf(hw);
5290 if (ret_val)
5291 return ret_val;
5349 int32_t ret_val;
5355 ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_id);
5356 if (ret_val)
5357 return ret_val;