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