Lines Matching defs: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) {
385 * @hw: pointer to the HW structure
395 s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
400 ret_val = e1000_set_mac_type(hw);
406 if (!hw->hw_addr) {
416 e1000_init_mac_ops_generic(hw);
417 e1000_init_phy_ops_generic(hw);
418 e1000_init_nvm_ops_generic(hw);
419 e1000_init_mbx_ops_generic(hw);
426 switch (hw->mac.type) {
428 e1000_init_function_pointers_82542(hw);
432 e1000_init_function_pointers_82543(hw);
439 e1000_init_function_pointers_82540(hw);
445 e1000_init_function_pointers_82541(hw);
452 e1000_init_function_pointers_82571(hw);
455 e1000_init_function_pointers_80003es2lan(hw);
464 e1000_init_function_pointers_ich8lan(hw);
471 e1000_init_function_pointers_82575(hw);
475 e1000_init_function_pointers_i210(hw);
478 e1000_init_function_pointers_vf(hw);
481 e1000_init_function_pointers_vf(hw);
494 ret_val = e1000_init_mac_params(hw);
498 ret_val = e1000_init_nvm_params(hw);
502 ret_val = e1000_init_phy_params(hw);
506 ret_val = e1000_init_mbx_params(hw);
517 * @hw: pointer to the HW structure
520 * adapter is attached and stores it in the hw structure. This is a
523 s32 e1000_get_bus_info(struct e1000_hw *hw)
525 if (hw->mac.ops.get_bus_info)
526 return hw->mac.ops.get_bus_info(hw);
533 * @hw: pointer to the HW structure
538 void e1000_clear_vfta(struct e1000_hw *hw)
540 if (hw->mac.ops.clear_vfta)
541 hw->mac.ops.clear_vfta(hw);
546 * @hw: pointer to the HW structure
553 void e1000_write_vfta(struct e1000_hw *hw, u32 offset, u32 value)
555 if (hw->mac.ops.write_vfta)
556 hw->mac.ops.write_vfta(hw, offset, value);
561 * @hw: pointer to the HW structure
568 void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list,
571 if (hw->mac.ops.update_mc_addr_list)
572 hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
578 * @hw: pointer to the HW structure
584 s32 e1000_force_mac_fc(struct e1000_hw *hw)
586 return e1000_force_mac_fc_generic(hw);
591 * @hw: pointer to the HW structure
594 * results in the hw->mac structure. This is a function pointer entry
597 s32 e1000_check_for_link(struct e1000_hw *hw)
599 if (hw->mac.ops.check_for_link)
600 return hw->mac.ops.check_for_link(hw);
607 * @hw: pointer to the HW structure
612 bool e1000_check_mng_mode(struct e1000_hw *hw)
614 if (hw->mac.ops.check_mng_mode)
615 return hw->mac.ops.check_mng_mode(hw);
622 * @hw: pointer to the HW structure
628 s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length)
630 return e1000_mng_write_dhcp_info_generic(hw, buffer, length);
635 * @hw: pointer to the HW structure
640 s32 e1000_reset_hw(struct e1000_hw *hw)
642 if (hw->mac.ops.reset_hw)
643 return hw->mac.ops.reset_hw(hw);
650 * @hw: pointer to the HW structure
655 s32 e1000_init_hw(struct e1000_hw *hw)
657 if (hw->mac.ops.init_hw)
658 return hw->mac.ops.init_hw(hw);
665 * @hw: pointer to the HW structure
671 s32 e1000_setup_link(struct e1000_hw *hw)
673 if (hw->mac.ops.setup_link)
674 return hw->mac.ops.setup_link(hw);
681 * @hw: pointer to the HW structure
689 s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex)
691 if (hw->mac.ops.get_link_up_info)
692 return hw->mac.ops.get_link_up_info(hw, speed, duplex);
699 * @hw: pointer to the HW structure
705 s32 e1000_setup_led(struct e1000_hw *hw)
707 if (hw->mac.ops.setup_led)
708 return hw->mac.ops.setup_led(hw);
715 * @hw: pointer to the HW structure
720 s32 e1000_cleanup_led(struct e1000_hw *hw)
722 if (hw->mac.ops.cleanup_led)
723 return hw->mac.ops.cleanup_led(hw);
730 * @hw: pointer to the HW structure
736 s32 e1000_blink_led(struct e1000_hw *hw)
738 if (hw->mac.ops.blink_led)
739 return hw->mac.ops.blink_led(hw);
746 * @hw: pointer to the HW structure
751 s32 e1000_id_led_init(struct e1000_hw *hw)
753 if (hw->mac.ops.id_led_init)
754 return hw->mac.ops.id_led_init(hw);
761 * @hw: pointer to the HW structure
766 s32 e1000_led_on(struct e1000_hw *hw)
768 if (hw->mac.ops.led_on)
769 return hw->mac.ops.led_on(hw);
776 * @hw: pointer to the HW structure
781 s32 e1000_led_off(struct e1000_hw *hw)
783 if (hw->mac.ops.led_off)
784 return hw->mac.ops.led_off(hw);
791 * @hw: pointer to the HW structure
796 void e1000_reset_adaptive(struct e1000_hw *hw)
798 e1000_reset_adaptive_generic(hw);
803 * @hw: pointer to the HW structure
808 void e1000_update_adaptive(struct e1000_hw *hw)
810 e1000_update_adaptive_generic(hw);
815 * @hw: pointer to the HW structure
821 s32 e1000_disable_pcie_master(struct e1000_hw *hw)
823 return e1000_disable_pcie_master_generic(hw);
828 * @hw: pointer to the HW structure
833 void e1000_config_collision_dist(struct e1000_hw *hw)
835 if (hw->mac.ops.config_collision_dist)
836 hw->mac.ops.config_collision_dist(hw);
841 * @hw: pointer to the HW structure
847 int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index)
849 if (hw->mac.ops.rar_set)
850 return hw->mac.ops.rar_set(hw, addr, index);
857 * @hw: pointer to the HW structure
861 s32 e1000_validate_mdi_setting(struct e1000_hw *hw)
863 if (hw->mac.ops.validate_mdi_setting)
864 return hw->mac.ops.validate_mdi_setting(hw);
871 * @hw: pointer to the HW structure
878 u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr)
880 return e1000_hash_mc_addr_generic(hw, mc_addr);
885 * @hw: pointer to the HW structure
892 bool e1000_enable_tx_pkt_filtering(struct e1000_hw *hw)
894 return e1000_enable_tx_pkt_filtering_generic(hw);
899 * @hw: pointer to the HW structure
909 s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length,
912 return e1000_mng_host_if_write_generic(hw, buffer, length, offset, sum);
917 * @hw: pointer to the HW structure
922 s32 e1000_mng_write_cmd_header(struct e1000_hw *hw,
925 return e1000_mng_write_cmd_header_generic(hw, hdr);
930 * @hw: pointer to the HW structure
938 s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
940 return e1000_mng_enable_host_if_generic(hw);
945 * @hw: pointer to the HW structure
950 s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr)
952 if (hw->mac.ops.set_obff_timer)
953 return hw->mac.ops.set_obff_timer(hw, itr);
960 * @hw: pointer to the HW structure
965 s32 e1000_check_reset_block(struct e1000_hw *hw)
967 if (hw->phy.ops.check_reset_block)
968 return hw->phy.ops.check_reset_block(hw);
975 * @hw: pointer to the HW structure
982 s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data)
984 if (hw->phy.ops.read_reg)
985 return hw->phy.ops.read_reg(hw, offset, data);
992 * @hw: pointer to the HW structure
999 s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data)
1001 if (hw->phy.ops.write_reg)
1002 return hw->phy.ops.write_reg(hw, offset, data);
1009 * @hw: pointer to the HW structure
1014 void e1000_release_phy(struct e1000_hw *hw)
1016 if (hw->phy.ops.release)
1017 hw->phy.ops.release(hw);
1022 * @hw: pointer to the HW structure
1027 s32 e1000_acquire_phy(struct e1000_hw *hw)
1029 if (hw->phy.ops.acquire)
1030 return hw->phy.ops.acquire(hw);
1037 * @hw: pointer to the HW structure
1039 s32 e1000_cfg_on_link_up(struct e1000_hw *hw)
1041 if (hw->phy.ops.cfg_on_link_up)
1042 return hw->phy.ops.cfg_on_link_up(hw);
1049 * @hw: pointer to the HW structure
1057 s32 e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data)
1059 return e1000_read_kmrn_reg_generic(hw, offset, data);
1064 * @hw: pointer to the HW structure
1072 s32 e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data)
1074 return e1000_write_kmrn_reg_generic(hw, offset, data);
1079 * @hw: pointer to the HW structure
1082 * hw->phy.min_length and hw->phy.max_length. This is a function pointer
1085 s32 e1000_get_cable_length(struct e1000_hw *hw)
1087 if (hw->phy.ops.get_cable_length)
1088 return hw->phy.ops.get_cable_length(hw);
1095 * @hw: pointer to the HW structure
1098 * populates hw->phy values with it. This is a function pointer entry
1101 s32 e1000_get_phy_info(struct e1000_hw *hw)
1103 if (hw->phy.ops.get_info)
1104 return hw->phy.ops.get_info(hw);
1111 * @hw: pointer to the HW structure
1116 s32 e1000_phy_hw_reset(struct e1000_hw *hw)
1118 if (hw->phy.ops.reset)
1119 return hw->phy.ops.reset(hw);
1126 * @hw: pointer to the HW structure
1131 s32 e1000_phy_commit(struct e1000_hw *hw)
1133 if (hw->phy.ops.commit)
1134 return hw->phy.ops.commit(hw);
1141 * @hw: pointer to the HW structure
1153 s32 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active)
1155 if (hw->phy.ops.set_d0_lplu_state)
1156 return hw->phy.ops.set_d0_lplu_state(hw, active);
1163 * @hw: pointer to the HW structure
1175 s32 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active)
1177 if (hw->phy.ops.set_d3_lplu_state)
1178 return hw->phy.ops.set_d3_lplu_state(hw, active);
1185 * @hw: pointer to the HW structure
1191 s32 e1000_read_mac_addr(struct e1000_hw *hw)
1193 if (hw->mac.ops.read_mac_addr)
1194 return hw->mac.ops.read_mac_addr(hw);
1196 return e1000_read_mac_addr_generic(hw);
1201 * @hw: pointer to the HW structure
1210 s32 e1000_read_pba_string(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size)
1212 return e1000_read_pba_string_generic(hw, pba_num, pba_num_size);
1217 * @hw: pointer to the HW structure
1225 s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size)
1227 return e1000_read_pba_length_generic(hw, pba_num_size);
1232 * @hw: pointer to the HW structure
1237 s32 e1000_validate_nvm_checksum(struct e1000_hw *hw)
1239 if (hw->nvm.ops.validate)
1240 return hw->nvm.ops.validate(hw);
1247 * @hw: pointer to the HW structure
1252 s32 e1000_update_nvm_checksum(struct e1000_hw *hw)
1254 if (hw->nvm.ops.update)
1255 return hw->nvm.ops.update(hw);
1262 * @hw: pointer to the HW structure
1267 void e1000_reload_nvm(struct e1000_hw *hw)
1269 if (hw->nvm.ops.reload)
1270 hw->nvm.ops.reload(hw);
1275 * @hw: pointer to the HW structure
1283 s32 e1000_read_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1285 if (hw->nvm.ops.read)
1286 return hw->nvm.ops.read(hw, offset, words, data);
1293 * @hw: pointer to the HW structure
1301 s32 e1000_write_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1303 if (hw->nvm.ops.write)
1304 return hw->nvm.ops.write(hw, offset, words, data);
1311 * @hw: pointer to the HW structure
1319 s32 e1000_write_8bit_ctrl_reg(struct e1000_hw *hw, u32 reg, u32 offset,
1322 return e1000_write_8bit_ctrl_reg_generic(hw, reg, offset, data);
1327 * @hw: pointer to the HW structure
1332 void e1000_power_up_phy(struct e1000_hw *hw)
1334 if (hw->phy.ops.power_up)
1335 hw->phy.ops.power_up(hw);
1337 e1000_setup_link(hw);
1342 * @hw: pointer to the HW structure
1347 void e1000_power_down_phy(struct e1000_hw *hw)
1349 if (hw->phy.ops.power_down)
1350 hw->phy.ops.power_down(hw);
1355 * @hw: pointer to the HW structure
1359 void e1000_power_up_fiber_serdes_link(struct e1000_hw *hw)
1361 if (hw->mac.ops.power_up_serdes)
1362 hw->mac.ops.power_up_serdes(hw);
1367 * @hw: pointer to the HW structure
1371 void e1000_shutdown_fiber_serdes_link(struct e1000_hw *hw)
1373 if (hw->mac.ops.shutdown_serdes)
1374 hw->mac.ops.shutdown_serdes(hw);