Lines Matching refs:ret_val

84 	s32 ret_val = E1000_SUCCESS;
106 ret_val = e1000_get_phy_id(hw);
107 if (ret_val)
112 ret_val = -E1000_ERR_PHY;
117 return (ret_val);
128 s32 ret_val = E1000_SUCCESS;
182 ret_val = nvm->ops.read(hw, NVM_CFG, 1, &size);
183 if (ret_val)
214 return (ret_val);
388 s32 ret_val;
393 ret_val = mac->ops.id_led_init(hw);
394 if (ret_val) {
401 ret_val = hw->phy.ops.read_reg(hw,
404 if (ret_val)
432 ret_val = mac->ops.setup_link(hw);
448 return (ret_val);
463 s32 ret_val;
468 ret_val = e1000_get_speed_and_duplex_copper_generic(hw, speed, duplex);
469 if (ret_val)
481 ret_val = phy->ops.read_reg(hw, PHY_AUTONEG_EXP, &data);
482 if (ret_val)
488 ret_val = phy->ops.read_reg(hw, PHY_LP_ABILITY, &data);
489 if (ret_val)
502 return (ret_val);
517 s32 ret_val;
522 ret_val = e1000_phy_hw_reset_generic(hw);
523 if (ret_val)
537 return (ret_val);
554 s32 ret_val;
574 ret_val = e1000_copper_link_setup_igp(hw);
575 if (ret_val)
589 ret_val = e1000_setup_copper_link_generic(hw);
592 return (ret_val);
606 s32 ret_val;
618 ret_val = E1000_SUCCESS;
627 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
628 if (ret_val)
632 ret_val = e1000_config_dsp_after_link_change_82541(hw, false);
649 ret_val = -E1000_ERR_CONFIG;
653 ret_val = e1000_config_dsp_after_link_change_82541(hw, true);
668 ret_val = e1000_config_fc_after_link_up_generic(hw);
669 if (ret_val) {
675 return (ret_val);
695 s32 ret_val;
708 ret_val = hw->mac.ops.get_link_up_info(hw, &speed, &duplex);
709 if (ret_val) {
715 ret_val = E1000_SUCCESS;
719 ret_val = phy->ops.get_cable_length(hw);
720 if (ret_val)
727 ret_val = phy->ops.read_reg(hw,
730 if (ret_val)
735 ret_val = phy->ops.write_reg(hw,
738 if (ret_val)
746 ret_val = E1000_SUCCESS;
751 ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, &phy_data);
752 if (ret_val)
757 ret_val = phy->ops.read_reg(hw,
760 if (ret_val)
767 ret_val = phy->ops.write_reg(hw,
770 if (ret_val)
785 ret_val = phy->ops.read_reg(hw,
788 if (ret_val)
792 ret_val = phy->ops.write_reg(hw, 0x2F5B, 0x0003);
793 if (ret_val)
798 ret_val = phy->ops.write_reg(hw,
801 if (ret_val)
804 ret_val = phy->ops.read_reg(hw,
807 if (ret_val)
813 ret_val = phy->ops.write_reg(hw,
816 if (ret_val)
820 ret_val = phy->ops.write_reg(hw,
823 if (ret_val)
829 ret_val = phy->ops.write_reg(hw,
832 if (ret_val)
839 ret_val = E1000_SUCCESS;
847 ret_val = phy->ops.read_reg(hw, 0x2F5B, &phy_saved_data);
848 if (ret_val)
852 ret_val = phy->ops.write_reg(hw, 0x2F5B, 0x0003);
853 if (ret_val)
858 ret_val = phy->ops.write_reg(hw,
861 if (ret_val)
864 ret_val = phy->ops.write_reg(hw,
867 if (ret_val)
870 ret_val = phy->ops.write_reg(hw,
873 if (ret_val)
879 ret_val = phy->ops.write_reg(hw, 0x2F5B, phy_saved_data);
881 if (ret_val)
888 return (ret_val);
906 s32 ret_val = E1000_SUCCESS;
920 ret_val = phy->ops.read_reg(hw, agc_reg_array[i], &data);
921 if (ret_val)
929 ret_val = -E1000_ERR_PHY;
960 return (ret_val);
981 s32 ret_val;
991 ret_val = e1000_set_d3_lplu_state_generic(hw, active);
995 ret_val = phy->ops.read_reg(hw, IGP01E1000_GMII_FIFO, &data);
996 if (ret_val)
1001 ret_val = phy->ops.write_reg(hw, IGP01E1000_GMII_FIFO, data);
1002 if (ret_val)
1012 ret_val = phy->ops.read_reg(hw,
1015 if (ret_val)
1019 ret_val = phy->ops.write_reg(hw,
1022 if (ret_val)
1025 ret_val = phy->ops.read_reg(hw,
1028 if (ret_val)
1032 ret_val = phy->ops.write_reg(hw,
1035 if (ret_val)
1042 ret_val = phy->ops.write_reg(hw, IGP01E1000_GMII_FIFO, data);
1043 if (ret_val)
1047 ret_val = phy->ops.read_reg(hw,
1050 if (ret_val)
1054 ret_val = phy->ops.write_reg(hw,
1060 return (ret_val);
1074 s32 ret_val;
1078 ret_val = hw->phy.ops.read_reg(hw,
1081 if (ret_val)
1084 ret_val = hw->phy.ops.write_reg(hw,
1088 if (ret_val)
1094 return (ret_val);
1108 s32 ret_val;
1112 ret_val = hw->phy.ops.write_reg(hw,
1115 if (ret_val)
1121 return (ret_val);
1134 u32 ret_val;
1140 ret_val = E1000_SUCCESS;
1151 ret_val = hw->phy.ops.read_reg(hw, 0x2F5B, &phy_saved_data);
1235 return (ret_val);
1276 s32 ret_val = E1000_SUCCESS;
1300 ret_val = -E1000_ERR_FIFO_WRAP;
1305 ret_val = -E1000_ERR_FIFO_WRAP;
1311 ret_val = -E1000_ERR_FIFO_WRAP;
1332 return (ret_val);
1421 s32 ret_val = E1000_SUCCESS;
1436 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
1437 if (ret_val)
1449 ret_val = E1000_SUCCESS;
1458 ret_val = hw->phy.ops.read_reg(hw,
1461 if (ret_val)
1470 ret_val = E1000_SUCCESS;
1489 ret_val =
1493 return (ret_val);