• Home
  • Raw
  • Download

Lines Matching refs:ret_val

41 	s32 ret_val;  in e1000_init_phy_params_80003es2lan()  local
57 ret_val = e1000e_get_phy_id(hw); in e1000_init_phy_params_80003es2lan()
63 return ret_val; in e1000_init_phy_params_80003es2lan()
239 s32 ret_val; in e1000_acquire_nvm_80003es2lan() local
241 ret_val = e1000_acquire_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_80003es2lan()
242 if (ret_val) in e1000_acquire_nvm_80003es2lan()
243 return ret_val; in e1000_acquire_nvm_80003es2lan()
245 ret_val = e1000e_acquire_nvm(hw); in e1000_acquire_nvm_80003es2lan()
247 if (ret_val) in e1000_acquire_nvm_80003es2lan()
250 return ret_val; in e1000_acquire_nvm_80003es2lan()
343 s32 ret_val; in e1000_read_phy_reg_gg82563_80003es2lan() local
347 ret_val = e1000_acquire_phy_80003es2lan(hw); in e1000_read_phy_reg_gg82563_80003es2lan()
348 if (ret_val) in e1000_read_phy_reg_gg82563_80003es2lan()
349 return ret_val; in e1000_read_phy_reg_gg82563_80003es2lan()
362 ret_val = e1000e_write_phy_reg_mdic(hw, page_select, temp); in e1000_read_phy_reg_gg82563_80003es2lan()
363 if (ret_val) { in e1000_read_phy_reg_gg82563_80003es2lan()
365 return ret_val; in e1000_read_phy_reg_gg82563_80003es2lan()
376 ret_val = e1000e_read_phy_reg_mdic(hw, page_select, &temp); in e1000_read_phy_reg_gg82563_80003es2lan()
385 ret_val = e1000e_read_phy_reg_mdic(hw, in e1000_read_phy_reg_gg82563_80003es2lan()
391 ret_val = e1000e_read_phy_reg_mdic(hw, in e1000_read_phy_reg_gg82563_80003es2lan()
398 return ret_val; in e1000_read_phy_reg_gg82563_80003es2lan()
412 s32 ret_val; in e1000_write_phy_reg_gg82563_80003es2lan() local
416 ret_val = e1000_acquire_phy_80003es2lan(hw); in e1000_write_phy_reg_gg82563_80003es2lan()
417 if (ret_val) in e1000_write_phy_reg_gg82563_80003es2lan()
418 return ret_val; in e1000_write_phy_reg_gg82563_80003es2lan()
431 ret_val = e1000e_write_phy_reg_mdic(hw, page_select, temp); in e1000_write_phy_reg_gg82563_80003es2lan()
432 if (ret_val) { in e1000_write_phy_reg_gg82563_80003es2lan()
434 return ret_val; in e1000_write_phy_reg_gg82563_80003es2lan()
445 ret_val = e1000e_read_phy_reg_mdic(hw, page_select, &temp); in e1000_write_phy_reg_gg82563_80003es2lan()
454 ret_val = e1000e_write_phy_reg_mdic(hw, in e1000_write_phy_reg_gg82563_80003es2lan()
460 ret_val = e1000e_write_phy_reg_mdic(hw, in e1000_write_phy_reg_gg82563_80003es2lan()
467 return ret_val; in e1000_write_phy_reg_gg82563_80003es2lan()
523 s32 ret_val; in e1000_phy_force_speed_duplex_80003es2lan() local
530 ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
531 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
532 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
535 ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
536 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
537 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
541 ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
542 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
543 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
550 ret_val = e1e_wphy(hw, MII_BMCR, phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
551 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
552 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
559 ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, in e1000_phy_force_speed_duplex_80003es2lan()
561 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
562 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
568 ret_val = e1000e_phy_reset_dsp(hw); in e1000_phy_force_speed_duplex_80003es2lan()
569 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
570 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
574 ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, in e1000_phy_force_speed_duplex_80003es2lan()
576 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
577 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
580 ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
581 if (ret_val) in e1000_phy_force_speed_duplex_80003es2lan()
582 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
597 ret_val = e1e_wphy(hw, GG82563_PHY_MAC_SPEC_CTRL, phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
599 return ret_val; in e1000_phy_force_speed_duplex_80003es2lan()
612 s32 ret_val; in e1000_get_cable_length_80003es2lan() local
615 ret_val = e1e_rphy(hw, GG82563_PHY_DSP_DISTANCE, &phy_data); in e1000_get_cable_length_80003es2lan()
616 if (ret_val) in e1000_get_cable_length_80003es2lan()
617 return ret_val; in e1000_get_cable_length_80003es2lan()
643 s32 ret_val; in e1000_get_link_up_info_80003es2lan() local
646 ret_val = e1000e_get_speed_and_duplex_copper(hw, speed, duplex); in e1000_get_link_up_info_80003es2lan()
649 ret_val = e1000e_get_speed_and_duplex_fiber_serdes(hw, in e1000_get_link_up_info_80003es2lan()
654 return ret_val; in e1000_get_link_up_info_80003es2lan()
666 s32 ret_val; in e1000_reset_hw_80003es2lan() local
672 ret_val = e1000e_disable_pcie_master(hw); in e1000_reset_hw_80003es2lan()
673 if (ret_val) in e1000_reset_hw_80003es2lan()
687 ret_val = e1000_acquire_phy_80003es2lan(hw); in e1000_reset_hw_80003es2lan()
688 if (ret_val) in e1000_reset_hw_80003es2lan()
689 return ret_val; in e1000_reset_hw_80003es2lan()
696 ret_val = in e1000_reset_hw_80003es2lan()
699 if (!ret_val) { in e1000_reset_hw_80003es2lan()
701 ret_val = e1000_write_kmrn_reg_80003es2lan(hw, in e1000_reset_hw_80003es2lan()
704 if (ret_val) in e1000_reset_hw_80003es2lan()
710 ret_val = e1000e_get_auto_rd_done(hw); in e1000_reset_hw_80003es2lan()
711 if (ret_val) in e1000_reset_hw_80003es2lan()
713 return ret_val; in e1000_reset_hw_80003es2lan()
732 s32 ret_val; in e1000_init_hw_80003es2lan() local
739 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_80003es2lan()
741 if (ret_val) in e1000_init_hw_80003es2lan()
757 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_80003es2lan()
758 if (ret_val) in e1000_init_hw_80003es2lan()
759 return ret_val; in e1000_init_hw_80003es2lan()
762 ret_val = in e1000_init_hw_80003es2lan()
765 if (!ret_val) { in e1000_init_hw_80003es2lan()
767 ret_val = e1000_write_kmrn_reg_80003es2lan(hw, in e1000_init_hw_80003es2lan()
770 if (ret_val) in e1000_init_hw_80003es2lan()
812 ret_val = in e1000_init_hw_80003es2lan()
815 if (!ret_val) { in e1000_init_hw_80003es2lan()
828 return ret_val; in e1000_init_hw_80003es2lan()
883 s32 ret_val; in e1000_copper_link_setup_gg82563_80003es2lan() local
887 ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
888 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
889 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
895 ret_val = e1e_wphy(hw, GG82563_PHY_MAC_SPEC_CTRL, data); in e1000_copper_link_setup_gg82563_80003es2lan()
896 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
897 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
906 ret_val = e1e_rphy(hw, GG82563_PHY_SPEC_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
907 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
908 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
935 ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, data); in e1000_copper_link_setup_gg82563_80003es2lan()
936 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
937 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
940 ret_val = hw->phy.ops.commit(hw); in e1000_copper_link_setup_gg82563_80003es2lan()
941 if (ret_val) { in e1000_copper_link_setup_gg82563_80003es2lan()
943 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
950 ret_val = e1000_write_kmrn_reg_80003es2lan(hw, reg, data); in e1000_copper_link_setup_gg82563_80003es2lan()
951 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
952 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
955 ret_val = e1000_read_kmrn_reg_80003es2lan(hw, reg, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
956 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
957 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
959 ret_val = e1000_write_kmrn_reg_80003es2lan(hw, reg, data); in e1000_copper_link_setup_gg82563_80003es2lan()
960 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
961 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
963 ret_val = e1e_rphy(hw, GG82563_PHY_SPEC_CTRL_2, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
964 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
965 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
968 ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL_2, data); in e1000_copper_link_setup_gg82563_80003es2lan()
969 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
970 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
976 ret_val = e1e_rphy(hw, GG82563_PHY_PWR_MGMT_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
977 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
978 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
987 ret_val = e1e_wphy(hw, GG82563_PHY_PWR_MGMT_CTRL, data); in e1000_copper_link_setup_gg82563_80003es2lan()
988 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
989 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
991 ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
992 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
993 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
996 ret_val = e1e_wphy(hw, GG82563_PHY_KMRN_MODE_CTRL, data); in e1000_copper_link_setup_gg82563_80003es2lan()
997 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
998 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
1004 ret_val = e1e_rphy(hw, GG82563_PHY_INBAND_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
1005 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
1006 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
1009 ret_val = e1e_wphy(hw, GG82563_PHY_INBAND_CTRL, data); in e1000_copper_link_setup_gg82563_80003es2lan()
1010 if (ret_val) in e1000_copper_link_setup_gg82563_80003es2lan()
1011 return ret_val; in e1000_copper_link_setup_gg82563_80003es2lan()
1026 s32 ret_val; in e1000_setup_copper_link_80003es2lan() local
1038 ret_val = e1000_write_kmrn_reg_80003es2lan(hw, GG82563_REG(0x34, 4), in e1000_setup_copper_link_80003es2lan()
1040 if (ret_val) in e1000_setup_copper_link_80003es2lan()
1041 return ret_val; in e1000_setup_copper_link_80003es2lan()
1042 ret_val = e1000_read_kmrn_reg_80003es2lan(hw, GG82563_REG(0x34, 9), in e1000_setup_copper_link_80003es2lan()
1044 if (ret_val) in e1000_setup_copper_link_80003es2lan()
1045 return ret_val; in e1000_setup_copper_link_80003es2lan()
1047 ret_val = e1000_write_kmrn_reg_80003es2lan(hw, GG82563_REG(0x34, 9), in e1000_setup_copper_link_80003es2lan()
1049 if (ret_val) in e1000_setup_copper_link_80003es2lan()
1050 return ret_val; in e1000_setup_copper_link_80003es2lan()
1051 ret_val = in e1000_setup_copper_link_80003es2lan()
1055 if (ret_val) in e1000_setup_copper_link_80003es2lan()
1056 return ret_val; in e1000_setup_copper_link_80003es2lan()
1058 ret_val = in e1000_setup_copper_link_80003es2lan()
1062 if (ret_val) in e1000_setup_copper_link_80003es2lan()
1063 return ret_val; in e1000_setup_copper_link_80003es2lan()
1065 ret_val = e1000_copper_link_setup_gg82563_80003es2lan(hw); in e1000_setup_copper_link_80003es2lan()
1066 if (ret_val) in e1000_setup_copper_link_80003es2lan()
1067 return ret_val; in e1000_setup_copper_link_80003es2lan()
1081 s32 ret_val = 0; in e1000_cfg_on_link_up_80003es2lan() local
1086 ret_val = e1000e_get_speed_and_duplex_copper(hw, &speed, in e1000_cfg_on_link_up_80003es2lan()
1088 if (ret_val) in e1000_cfg_on_link_up_80003es2lan()
1089 return ret_val; in e1000_cfg_on_link_up_80003es2lan()
1092 ret_val = e1000_cfg_kmrn_1000_80003es2lan(hw); in e1000_cfg_on_link_up_80003es2lan()
1094 ret_val = e1000_cfg_kmrn_10_100_80003es2lan(hw, duplex); in e1000_cfg_on_link_up_80003es2lan()
1097 return ret_val; in e1000_cfg_on_link_up_80003es2lan()
1110 s32 ret_val; in e1000_cfg_kmrn_10_100_80003es2lan() local
1116 ret_val = in e1000_cfg_kmrn_10_100_80003es2lan()
1120 if (ret_val) in e1000_cfg_kmrn_10_100_80003es2lan()
1121 return ret_val; in e1000_cfg_kmrn_10_100_80003es2lan()
1130 ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, &reg_data); in e1000_cfg_kmrn_10_100_80003es2lan()
1131 if (ret_val) in e1000_cfg_kmrn_10_100_80003es2lan()
1132 return ret_val; in e1000_cfg_kmrn_10_100_80003es2lan()
1134 ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, &reg_data2); in e1000_cfg_kmrn_10_100_80003es2lan()
1135 if (ret_val) in e1000_cfg_kmrn_10_100_80003es2lan()
1136 return ret_val; in e1000_cfg_kmrn_10_100_80003es2lan()
1157 s32 ret_val; in e1000_cfg_kmrn_1000_80003es2lan() local
1163 ret_val = in e1000_cfg_kmrn_1000_80003es2lan()
1167 if (ret_val) in e1000_cfg_kmrn_1000_80003es2lan()
1168 return ret_val; in e1000_cfg_kmrn_1000_80003es2lan()
1177 ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, &reg_data); in e1000_cfg_kmrn_1000_80003es2lan()
1178 if (ret_val) in e1000_cfg_kmrn_1000_80003es2lan()
1179 return ret_val; in e1000_cfg_kmrn_1000_80003es2lan()
1181 ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, &reg_data2); in e1000_cfg_kmrn_1000_80003es2lan()
1182 if (ret_val) in e1000_cfg_kmrn_1000_80003es2lan()
1183 return ret_val; in e1000_cfg_kmrn_1000_80003es2lan()
1206 s32 ret_val; in e1000_read_kmrn_reg_80003es2lan() local
1208 ret_val = e1000_acquire_mac_csr_80003es2lan(hw); in e1000_read_kmrn_reg_80003es2lan()
1209 if (ret_val) in e1000_read_kmrn_reg_80003es2lan()
1210 return ret_val; in e1000_read_kmrn_reg_80003es2lan()
1224 return ret_val; in e1000_read_kmrn_reg_80003es2lan()
1241 s32 ret_val; in e1000_write_kmrn_reg_80003es2lan() local
1243 ret_val = e1000_acquire_mac_csr_80003es2lan(hw); in e1000_write_kmrn_reg_80003es2lan()
1244 if (ret_val) in e1000_write_kmrn_reg_80003es2lan()
1245 return ret_val; in e1000_write_kmrn_reg_80003es2lan()
1256 return ret_val; in e1000_write_kmrn_reg_80003es2lan()
1265 s32 ret_val; in e1000_read_mac_addr_80003es2lan() local
1271 ret_val = e1000_check_alt_mac_addr_generic(hw); in e1000_read_mac_addr_80003es2lan()
1272 if (ret_val) in e1000_read_mac_addr_80003es2lan()
1273 return ret_val; in e1000_read_mac_addr_80003es2lan()