Lines Matching full:hw

39  *  @hw: pointer to the HW structure
44 s32 e1000_init_mac_params(struct e1000_hw *hw) in e1000_init_mac_params() argument
48 if (hw->mac.ops.init_params) { in e1000_init_mac_params()
49 ret_val = hw->mac.ops.init_params(hw); in e1000_init_mac_params()
65 * @hw: pointer to the HW structure
70 s32 e1000_init_nvm_params(struct e1000_hw *hw) in e1000_init_nvm_params() argument
74 if (hw->nvm.ops.init_params) { in e1000_init_nvm_params()
75 ret_val = hw->nvm.ops.init_params(hw); in e1000_init_nvm_params()
91 * @hw: pointer to the HW structure
96 s32 e1000_init_phy_params(struct e1000_hw *hw) in e1000_init_phy_params() argument
100 if (hw->phy.ops.init_params) { in e1000_init_phy_params()
101 ret_val = hw->phy.ops.init_params(hw); in e1000_init_phy_params()
117 * @hw: pointer to the HW structure
122 s32 e1000_init_mbx_params(struct e1000_hw *hw) in e1000_init_mbx_params() argument
126 if (hw->mbx.ops.init_params) { in e1000_init_mbx_params()
127 ret_val = hw->mbx.ops.init_params(hw); in e1000_init_mbx_params()
143 * @hw: pointer to the HW structure
146 * device ID stored in the hw structure.
150 s32 e1000_set_mac_type(struct e1000_hw *hw) in e1000_set_mac_type() argument
152 struct e1000_mac_info *mac = &hw->mac; in e1000_set_mac_type()
157 switch (hw->device_id) { in e1000_set_mac_type()
440 * @hw: pointer to the HW structure
450 s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device) in e1000_setup_init_funcs() argument
455 ret_val = e1000_set_mac_type(hw); in e1000_setup_init_funcs()
461 if (!hw->hw_addr) { in e1000_setup_init_funcs()
471 e1000_init_mac_ops_generic(hw); in e1000_setup_init_funcs()
472 e1000_init_phy_ops_generic(hw); in e1000_setup_init_funcs()
473 e1000_init_nvm_ops_generic(hw); in e1000_setup_init_funcs()
474 e1000_init_mbx_ops_generic(hw); in e1000_setup_init_funcs()
481 switch (hw->mac.type) { in e1000_setup_init_funcs()
483 e1000_init_function_pointers_82542(hw); in e1000_setup_init_funcs()
487 e1000_init_function_pointers_82543(hw); in e1000_setup_init_funcs()
494 e1000_init_function_pointers_82540(hw); in e1000_setup_init_funcs()
500 e1000_init_function_pointers_82541(hw); in e1000_setup_init_funcs()
507 e1000_init_function_pointers_82571(hw); in e1000_setup_init_funcs()
510 e1000_init_function_pointers_80003es2lan(hw); in e1000_setup_init_funcs()
524 e1000_init_function_pointers_ich8lan(hw); in e1000_setup_init_funcs()
531 e1000_init_function_pointers_82575(hw); in e1000_setup_init_funcs()
535 e1000_init_function_pointers_i210(hw); in e1000_setup_init_funcs()
538 e1000_init_function_pointers_vf(hw); in e1000_setup_init_funcs()
541 e1000_init_function_pointers_vf(hw); in e1000_setup_init_funcs()
554 ret_val = e1000_init_mac_params(hw); in e1000_setup_init_funcs()
558 ret_val = e1000_init_nvm_params(hw); in e1000_setup_init_funcs()
562 ret_val = e1000_init_phy_params(hw); in e1000_setup_init_funcs()
566 ret_val = e1000_init_mbx_params(hw); in e1000_setup_init_funcs()
577 * @hw: pointer to the HW structure
579 * This will obtain information about the HW bus for which the
580 * adapter is attached and stores it in the hw structure. This is a
583 s32 e1000_get_bus_info(struct e1000_hw *hw) in e1000_get_bus_info() argument
585 if (hw->mac.ops.get_bus_info) in e1000_get_bus_info()
586 return hw->mac.ops.get_bus_info(hw); in e1000_get_bus_info()
593 * @hw: pointer to the HW structure
598 void e1000_clear_vfta(struct e1000_hw *hw) in e1000_clear_vfta() argument
600 if (hw->mac.ops.clear_vfta) in e1000_clear_vfta()
601 hw->mac.ops.clear_vfta(hw); in e1000_clear_vfta()
606 * @hw: pointer to the HW structure
613 void e1000_write_vfta(struct e1000_hw *hw, u32 offset, u32 value) in e1000_write_vfta() argument
615 if (hw->mac.ops.write_vfta) in e1000_write_vfta()
616 hw->mac.ops.write_vfta(hw, offset, value); in e1000_write_vfta()
621 * @hw: pointer to the HW structure
628 void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list, in e1000_update_mc_addr_list() argument
631 if (hw->mac.ops.update_mc_addr_list) in e1000_update_mc_addr_list()
632 hw->mac.ops.update_mc_addr_list(hw, mc_addr_list, in e1000_update_mc_addr_list()
638 * @hw: pointer to the HW structure
644 s32 e1000_force_mac_fc(struct e1000_hw *hw) in e1000_force_mac_fc() argument
646 return e1000_force_mac_fc_generic(hw); in e1000_force_mac_fc()
651 * @hw: pointer to the HW structure
654 * results in the hw->mac structure. This is a function pointer entry
657 s32 e1000_check_for_link(struct e1000_hw *hw) in e1000_check_for_link() argument
659 if (hw->mac.ops.check_for_link) in e1000_check_for_link()
660 return hw->mac.ops.check_for_link(hw); in e1000_check_for_link()
667 * @hw: pointer to the HW structure
672 bool e1000_check_mng_mode(struct e1000_hw *hw) in e1000_check_mng_mode() argument
674 if (hw->mac.ops.check_mng_mode) in e1000_check_mng_mode()
675 return hw->mac.ops.check_mng_mode(hw); in e1000_check_mng_mode()
682 * @hw: pointer to the HW structure
688 s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length) in e1000_mng_write_dhcp_info() argument
690 return e1000_mng_write_dhcp_info_generic(hw, buffer, length); in e1000_mng_write_dhcp_info()
695 * @hw: pointer to the HW structure
700 s32 e1000_reset_hw(struct e1000_hw *hw) in e1000_reset_hw() argument
702 if (hw->mac.ops.reset_hw) in e1000_reset_hw()
703 return hw->mac.ops.reset_hw(hw); in e1000_reset_hw()
710 * @hw: pointer to the HW structure
715 s32 e1000_init_hw(struct e1000_hw *hw) in e1000_init_hw() argument
717 if (hw->mac.ops.init_hw) in e1000_init_hw()
718 return hw->mac.ops.init_hw(hw); in e1000_init_hw()
725 * @hw: pointer to the HW structure
731 s32 e1000_setup_link(struct e1000_hw *hw) in e1000_setup_link() argument
733 if (hw->mac.ops.setup_link) in e1000_setup_link()
734 return hw->mac.ops.setup_link(hw); in e1000_setup_link()
741 * @hw: pointer to the HW structure
749 s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex) in e1000_get_speed_and_duplex() argument
751 if (hw->mac.ops.get_link_up_info) in e1000_get_speed_and_duplex()
752 return hw->mac.ops.get_link_up_info(hw, speed, duplex); in e1000_get_speed_and_duplex()
759 * @hw: pointer to the HW structure
765 s32 e1000_setup_led(struct e1000_hw *hw) in e1000_setup_led() argument
767 if (hw->mac.ops.setup_led) in e1000_setup_led()
768 return hw->mac.ops.setup_led(hw); in e1000_setup_led()
775 * @hw: pointer to the HW structure
780 s32 e1000_cleanup_led(struct e1000_hw *hw) in e1000_cleanup_led() argument
782 if (hw->mac.ops.cleanup_led) in e1000_cleanup_led()
783 return hw->mac.ops.cleanup_led(hw); in e1000_cleanup_led()
790 * @hw: pointer to the HW structure
796 s32 e1000_blink_led(struct e1000_hw *hw) in e1000_blink_led() argument
798 if (hw->mac.ops.blink_led) in e1000_blink_led()
799 return hw->mac.ops.blink_led(hw); in e1000_blink_led()
806 * @hw: pointer to the HW structure
811 s32 e1000_id_led_init(struct e1000_hw *hw) in e1000_id_led_init() argument
813 if (hw->mac.ops.id_led_init) in e1000_id_led_init()
814 return hw->mac.ops.id_led_init(hw); in e1000_id_led_init()
821 * @hw: pointer to the HW structure
826 s32 e1000_led_on(struct e1000_hw *hw) in e1000_led_on() argument
828 if (hw->mac.ops.led_on) in e1000_led_on()
829 return hw->mac.ops.led_on(hw); in e1000_led_on()
836 * @hw: pointer to the HW structure
841 s32 e1000_led_off(struct e1000_hw *hw) in e1000_led_off() argument
843 if (hw->mac.ops.led_off) in e1000_led_off()
844 return hw->mac.ops.led_off(hw); in e1000_led_off()
851 * @hw: pointer to the HW structure
856 void e1000_reset_adaptive(struct e1000_hw *hw) in e1000_reset_adaptive() argument
858 e1000_reset_adaptive_generic(hw); in e1000_reset_adaptive()
863 * @hw: pointer to the HW structure
868 void e1000_update_adaptive(struct e1000_hw *hw) in e1000_update_adaptive() argument
870 e1000_update_adaptive_generic(hw); in e1000_update_adaptive()
875 * @hw: pointer to the HW structure
881 s32 e1000_disable_pcie_master(struct e1000_hw *hw) in e1000_disable_pcie_master() argument
883 return e1000_disable_pcie_master_generic(hw); in e1000_disable_pcie_master()
888 * @hw: pointer to the HW structure
893 void e1000_config_collision_dist(struct e1000_hw *hw) in e1000_config_collision_dist() argument
895 if (hw->mac.ops.config_collision_dist) in e1000_config_collision_dist()
896 hw->mac.ops.config_collision_dist(hw); in e1000_config_collision_dist()
901 * @hw: pointer to the HW structure
907 int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index) in e1000_rar_set() argument
909 if (hw->mac.ops.rar_set) in e1000_rar_set()
910 return hw->mac.ops.rar_set(hw, addr, index); in e1000_rar_set()
917 * @hw: pointer to the HW structure
921 s32 e1000_validate_mdi_setting(struct e1000_hw *hw) in e1000_validate_mdi_setting() argument
923 if (hw->mac.ops.validate_mdi_setting) in e1000_validate_mdi_setting()
924 return hw->mac.ops.validate_mdi_setting(hw); in e1000_validate_mdi_setting()
931 * @hw: pointer to the HW structure
938 u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr) in e1000_hash_mc_addr() argument
940 return e1000_hash_mc_addr_generic(hw, mc_addr); in e1000_hash_mc_addr()
945 * @hw: pointer to the HW structure
952 bool e1000_enable_tx_pkt_filtering(struct e1000_hw *hw) in e1000_enable_tx_pkt_filtering() argument
954 return e1000_enable_tx_pkt_filtering_generic(hw); in e1000_enable_tx_pkt_filtering()
959 * @hw: pointer to the HW structure
969 s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length, in e1000_mng_host_if_write() argument
972 return e1000_mng_host_if_write_generic(hw, buffer, length, offset, sum); in e1000_mng_host_if_write()
977 * @hw: pointer to the HW structure
982 s32 e1000_mng_write_cmd_header(struct e1000_hw *hw, in e1000_mng_write_cmd_header() argument
985 return e1000_mng_write_cmd_header_generic(hw, hdr); in e1000_mng_write_cmd_header()
990 * @hw: pointer to the HW structure
998 s32 e1000_mng_enable_host_if(struct e1000_hw *hw) in e1000_mng_enable_host_if() argument
1000 return e1000_mng_enable_host_if_generic(hw); in e1000_mng_enable_host_if()
1005 * @hw: pointer to the HW structure
1010 s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr) in e1000_set_obff_timer() argument
1012 if (hw->mac.ops.set_obff_timer) in e1000_set_obff_timer()
1013 return hw->mac.ops.set_obff_timer(hw, itr); in e1000_set_obff_timer()
1020 * @hw: pointer to the HW structure
1025 s32 e1000_check_reset_block(struct e1000_hw *hw) in e1000_check_reset_block() argument
1027 if (hw->phy.ops.check_reset_block) in e1000_check_reset_block()
1028 return hw->phy.ops.check_reset_block(hw); in e1000_check_reset_block()
1035 * @hw: pointer to the HW structure
1042 s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data) in e1000_read_phy_reg() argument
1044 if (hw->phy.ops.read_reg) in e1000_read_phy_reg()
1045 return hw->phy.ops.read_reg(hw, offset, data); in e1000_read_phy_reg()
1052 * @hw: pointer to the HW structure
1059 s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data) in e1000_write_phy_reg() argument
1061 if (hw->phy.ops.write_reg) in e1000_write_phy_reg()
1062 return hw->phy.ops.write_reg(hw, offset, data); in e1000_write_phy_reg()
1069 * @hw: pointer to the HW structure
1074 void e1000_release_phy(struct e1000_hw *hw) in e1000_release_phy() argument
1076 if (hw->phy.ops.release) in e1000_release_phy()
1077 hw->phy.ops.release(hw); in e1000_release_phy()
1082 * @hw: pointer to the HW structure
1087 s32 e1000_acquire_phy(struct e1000_hw *hw) in e1000_acquire_phy() argument
1089 if (hw->phy.ops.acquire) in e1000_acquire_phy()
1090 return hw->phy.ops.acquire(hw); in e1000_acquire_phy()
1097 * @hw: pointer to the HW structure
1099 s32 e1000_cfg_on_link_up(struct e1000_hw *hw) in e1000_cfg_on_link_up() argument
1101 if (hw->phy.ops.cfg_on_link_up) in e1000_cfg_on_link_up()
1102 return hw->phy.ops.cfg_on_link_up(hw); in e1000_cfg_on_link_up()
1109 * @hw: pointer to the HW structure
1117 s32 e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data) in e1000_read_kmrn_reg() argument
1119 return e1000_read_kmrn_reg_generic(hw, offset, data); in e1000_read_kmrn_reg()
1124 * @hw: pointer to the HW structure
1132 s32 e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data) in e1000_write_kmrn_reg() argument
1134 return e1000_write_kmrn_reg_generic(hw, offset, data); in e1000_write_kmrn_reg()
1139 * @hw: pointer to the HW structure
1142 * hw->phy.min_length and hw->phy.max_length. This is a function pointer
1145 s32 e1000_get_cable_length(struct e1000_hw *hw) in e1000_get_cable_length() argument
1147 if (hw->phy.ops.get_cable_length) in e1000_get_cable_length()
1148 return hw->phy.ops.get_cable_length(hw); in e1000_get_cable_length()
1155 * @hw: pointer to the HW structure
1158 * populates hw->phy values with it. This is a function pointer entry
1161 s32 e1000_get_phy_info(struct e1000_hw *hw) in e1000_get_phy_info() argument
1163 if (hw->phy.ops.get_info) in e1000_get_phy_info()
1164 return hw->phy.ops.get_info(hw); in e1000_get_phy_info()
1171 * @hw: pointer to the HW structure
1176 s32 e1000_phy_hw_reset(struct e1000_hw *hw) in e1000_phy_hw_reset() argument
1178 if (hw->phy.ops.reset) in e1000_phy_hw_reset()
1179 return hw->phy.ops.reset(hw); in e1000_phy_hw_reset()
1186 * @hw: pointer to the HW structure
1191 s32 e1000_phy_commit(struct e1000_hw *hw) in e1000_phy_commit() argument
1193 if (hw->phy.ops.commit) in e1000_phy_commit()
1194 return hw->phy.ops.commit(hw); in e1000_phy_commit()
1201 * @hw: pointer to the HW structure
1213 s32 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active) in e1000_set_d0_lplu_state() argument
1215 if (hw->phy.ops.set_d0_lplu_state) in e1000_set_d0_lplu_state()
1216 return hw->phy.ops.set_d0_lplu_state(hw, active); in e1000_set_d0_lplu_state()
1223 * @hw: pointer to the HW structure
1235 s32 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active) in e1000_set_d3_lplu_state() argument
1237 if (hw->phy.ops.set_d3_lplu_state) in e1000_set_d3_lplu_state()
1238 return hw->phy.ops.set_d3_lplu_state(hw, active); in e1000_set_d3_lplu_state()
1245 * @hw: pointer to the HW structure
1247 * Reads the MAC address out of the adapter and stores it in the HW structure.
1251 s32 e1000_read_mac_addr(struct e1000_hw *hw) in e1000_read_mac_addr() argument
1253 if (hw->mac.ops.read_mac_addr) in e1000_read_mac_addr()
1254 return hw->mac.ops.read_mac_addr(hw); in e1000_read_mac_addr()
1256 return e1000_read_mac_addr_generic(hw); in e1000_read_mac_addr()
1261 * @hw: pointer to the HW structure
1270 s32 e1000_read_pba_string(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size) in e1000_read_pba_string() argument
1272 return e1000_read_pba_string_generic(hw, pba_num, pba_num_size); in e1000_read_pba_string()
1277 * @hw: pointer to the HW structure
1285 s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size) in e1000_read_pba_length() argument
1287 return e1000_read_pba_length_generic(hw, pba_num_size); in e1000_read_pba_length()
1292 * @hw: pointer to the HW structure
1300 s32 e1000_read_pba_num(struct e1000_hw *hw, u32 *pba_num) in e1000_read_pba_num() argument
1302 return e1000_read_pba_num_generic(hw, pba_num); in e1000_read_pba_num()
1307 * @hw: pointer to the HW structure
1312 s32 e1000_validate_nvm_checksum(struct e1000_hw *hw) in e1000_validate_nvm_checksum() argument
1314 if (hw->nvm.ops.validate) in e1000_validate_nvm_checksum()
1315 return hw->nvm.ops.validate(hw); in e1000_validate_nvm_checksum()
1322 * @hw: pointer to the HW structure
1327 s32 e1000_update_nvm_checksum(struct e1000_hw *hw) in e1000_update_nvm_checksum() argument
1329 if (hw->nvm.ops.update) in e1000_update_nvm_checksum()
1330 return hw->nvm.ops.update(hw); in e1000_update_nvm_checksum()
1337 * @hw: pointer to the HW structure
1342 void e1000_reload_nvm(struct e1000_hw *hw) in e1000_reload_nvm() argument
1344 if (hw->nvm.ops.reload) in e1000_reload_nvm()
1345 hw->nvm.ops.reload(hw); in e1000_reload_nvm()
1350 * @hw: pointer to the HW structure
1358 s32 e1000_read_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in e1000_read_nvm() argument
1360 if (hw->nvm.ops.read) in e1000_read_nvm()
1361 return hw->nvm.ops.read(hw, offset, words, data); in e1000_read_nvm()
1368 * @hw: pointer to the HW structure
1376 s32 e1000_write_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data) in e1000_write_nvm() argument
1378 if (hw->nvm.ops.write) in e1000_write_nvm()
1379 return hw->nvm.ops.write(hw, offset, words, data); in e1000_write_nvm()
1386 * @hw: pointer to the HW structure
1394 s32 e1000_write_8bit_ctrl_reg(struct e1000_hw *hw, u32 reg, u32 offset, in e1000_write_8bit_ctrl_reg() argument
1397 return e1000_write_8bit_ctrl_reg_generic(hw, reg, offset, data); in e1000_write_8bit_ctrl_reg()
1402 * @hw: pointer to the HW structure
1407 void e1000_power_up_phy(struct e1000_hw *hw) in e1000_power_up_phy() argument
1409 if (hw->phy.ops.power_up) in e1000_power_up_phy()
1410 hw->phy.ops.power_up(hw); in e1000_power_up_phy()
1412 e1000_setup_link(hw); in e1000_power_up_phy()
1417 * @hw: pointer to the HW structure
1422 void e1000_power_down_phy(struct e1000_hw *hw) in e1000_power_down_phy() argument
1424 if (hw->phy.ops.power_down) in e1000_power_down_phy()
1425 hw->phy.ops.power_down(hw); in e1000_power_down_phy()
1430 * @hw: pointer to the HW structure
1434 void e1000_power_up_fiber_serdes_link(struct e1000_hw *hw) in e1000_power_up_fiber_serdes_link() argument
1436 if (hw->mac.ops.power_up_serdes) in e1000_power_up_fiber_serdes_link()
1437 hw->mac.ops.power_up_serdes(hw); in e1000_power_up_fiber_serdes_link()
1442 * @hw: pointer to the HW structure
1446 void e1000_shutdown_fiber_serdes_link(struct e1000_hw *hw) in e1000_shutdown_fiber_serdes_link() argument
1448 if (hw->mac.ops.shutdown_serdes) in e1000_shutdown_fiber_serdes_link()
1449 hw->mac.ops.shutdown_serdes(hw); in e1000_shutdown_fiber_serdes_link()