Lines Matching refs: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) {
395 * @hw: pointer to the HW structure
405 s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
410 ret_val = e1000_set_mac_type(hw);
416 if (!hw->hw_addr) {
426 e1000_init_mac_ops_generic(hw);
427 e1000_init_phy_ops_generic(hw);
428 e1000_init_nvm_ops_generic(hw);
429 e1000_init_mbx_ops_generic(hw);
436 switch (hw->mac.type) {
438 e1000_init_function_pointers_82542(hw);
442 e1000_init_function_pointers_82543(hw);
449 e1000_init_function_pointers_82540(hw);
455 e1000_init_function_pointers_82541(hw);
462 e1000_init_function_pointers_82571(hw);
465 e1000_init_function_pointers_80003es2lan(hw);
475 e1000_init_function_pointers_ich8lan(hw);
482 e1000_init_function_pointers_82575(hw);
486 e1000_init_function_pointers_i210(hw);
489 e1000_init_function_pointers_vf(hw);
492 e1000_init_function_pointers_vf(hw);
505 ret_val = e1000_init_mac_params(hw);
509 ret_val = e1000_init_nvm_params(hw);
513 ret_val = e1000_init_phy_params(hw);
517 ret_val = e1000_init_mbx_params(hw);
528 * @hw: pointer to the HW structure
531 * adapter is attached and stores it in the hw structure. This is a
534 s32 e1000_get_bus_info(struct e1000_hw *hw)
536 if (hw->mac.ops.get_bus_info)
537 return hw->mac.ops.get_bus_info(hw);
544 * @hw: pointer to the HW structure
549 void e1000_clear_vfta(struct e1000_hw *hw)
551 if (hw->mac.ops.clear_vfta)
552 hw->mac.ops.clear_vfta(hw);
557 * @hw: pointer to the HW structure
564 void e1000_write_vfta(struct e1000_hw *hw, u32 offset, u32 value)
566 if (hw->mac.ops.write_vfta)
567 hw->mac.ops.write_vfta(hw, offset, value);
572 * @hw: pointer to the HW structure
579 void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list,
582 if (hw->mac.ops.update_mc_addr_list)
583 hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
589 * @hw: pointer to the HW structure
595 s32 e1000_force_mac_fc(struct e1000_hw *hw)
597 return e1000_force_mac_fc_generic(hw);
602 * @hw: pointer to the HW structure
605 * results in the hw->mac structure. This is a function pointer entry
608 s32 e1000_check_for_link(struct e1000_hw *hw)
610 if (hw->mac.ops.check_for_link)
611 return hw->mac.ops.check_for_link(hw);
618 * @hw: pointer to the HW structure
623 bool e1000_check_mng_mode(struct e1000_hw *hw)
625 if (hw->mac.ops.check_mng_mode)
626 return hw->mac.ops.check_mng_mode(hw);
633 * @hw: pointer to the HW structure
639 s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length)
641 return e1000_mng_write_dhcp_info_generic(hw, buffer, length);
646 * @hw: pointer to the HW structure
651 s32 e1000_reset_hw(struct e1000_hw *hw)
653 if (hw->mac.ops.reset_hw)
654 return hw->mac.ops.reset_hw(hw);
661 * @hw: pointer to the HW structure
666 s32 e1000_init_hw(struct e1000_hw *hw)
668 if (hw->mac.ops.init_hw)
669 return hw->mac.ops.init_hw(hw);
676 * @hw: pointer to the HW structure
682 s32 e1000_setup_link(struct e1000_hw *hw)
684 if (hw->mac.ops.setup_link)
685 return hw->mac.ops.setup_link(hw);
692 * @hw: pointer to the HW structure
700 s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex)
702 if (hw->mac.ops.get_link_up_info)
703 return hw->mac.ops.get_link_up_info(hw, speed, duplex);
710 * @hw: pointer to the HW structure
716 s32 e1000_setup_led(struct e1000_hw *hw)
718 if (hw->mac.ops.setup_led)
719 return hw->mac.ops.setup_led(hw);
726 * @hw: pointer to the HW structure
731 s32 e1000_cleanup_led(struct e1000_hw *hw)
733 if (hw->mac.ops.cleanup_led)
734 return hw->mac.ops.cleanup_led(hw);
741 * @hw: pointer to the HW structure
747 s32 e1000_blink_led(struct e1000_hw *hw)
749 if (hw->mac.ops.blink_led)
750 return hw->mac.ops.blink_led(hw);
757 * @hw: pointer to the HW structure
762 s32 e1000_id_led_init(struct e1000_hw *hw)
764 if (hw->mac.ops.id_led_init)
765 return hw->mac.ops.id_led_init(hw);
772 * @hw: pointer to the HW structure
777 s32 e1000_led_on(struct e1000_hw *hw)
779 if (hw->mac.ops.led_on)
780 return hw->mac.ops.led_on(hw);
787 * @hw: pointer to the HW structure
792 s32 e1000_led_off(struct e1000_hw *hw)
794 if (hw->mac.ops.led_off)
795 return hw->mac.ops.led_off(hw);
802 * @hw: pointer to the HW structure
807 void e1000_reset_adaptive(struct e1000_hw *hw)
809 e1000_reset_adaptive_generic(hw);
814 * @hw: pointer to the HW structure
819 void e1000_update_adaptive(struct e1000_hw *hw)
821 e1000_update_adaptive_generic(hw);
826 * @hw: pointer to the HW structure
832 s32 e1000_disable_pcie_master(struct e1000_hw *hw)
834 return e1000_disable_pcie_master_generic(hw);
839 * @hw: pointer to the HW structure
844 void e1000_config_collision_dist(struct e1000_hw *hw)
846 if (hw->mac.ops.config_collision_dist)
847 hw->mac.ops.config_collision_dist(hw);
852 * @hw: pointer to the HW structure
858 int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index)
860 if (hw->mac.ops.rar_set)
861 return hw->mac.ops.rar_set(hw, addr, index);
868 * @hw: pointer to the HW structure
872 s32 e1000_validate_mdi_setting(struct e1000_hw *hw)
874 if (hw->mac.ops.validate_mdi_setting)
875 return hw->mac.ops.validate_mdi_setting(hw);
882 * @hw: pointer to the HW structure
889 u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr)
891 return e1000_hash_mc_addr_generic(hw, mc_addr);
896 * @hw: pointer to the HW structure
903 bool e1000_enable_tx_pkt_filtering(struct e1000_hw *hw)
905 return e1000_enable_tx_pkt_filtering_generic(hw);
910 * @hw: pointer to the HW structure
920 s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length,
923 return e1000_mng_host_if_write_generic(hw, buffer, length, offset, sum);
928 * @hw: pointer to the HW structure
933 s32 e1000_mng_write_cmd_header(struct e1000_hw *hw,
936 return e1000_mng_write_cmd_header_generic(hw, hdr);
941 * @hw: pointer to the HW structure
949 s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
951 return e1000_mng_enable_host_if_generic(hw);
956 * @hw: pointer to the HW structure
961 s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr)
963 if (hw->mac.ops.set_obff_timer)
964 return hw->mac.ops.set_obff_timer(hw, itr);
971 * @hw: pointer to the HW structure
976 s32 e1000_check_reset_block(struct e1000_hw *hw)
978 if (hw->phy.ops.check_reset_block)
979 return hw->phy.ops.check_reset_block(hw);
986 * @hw: pointer to the HW structure
993 s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data)
995 if (hw->phy.ops.read_reg)
996 return hw->phy.ops.read_reg(hw, offset, data);
1003 * @hw: pointer to the HW structure
1010 s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data)
1012 if (hw->phy.ops.write_reg)
1013 return hw->phy.ops.write_reg(hw, offset, data);
1020 * @hw: pointer to the HW structure
1025 void e1000_release_phy(struct e1000_hw *hw)
1027 if (hw->phy.ops.release)
1028 hw->phy.ops.release(hw);
1033 * @hw: pointer to the HW structure
1038 s32 e1000_acquire_phy(struct e1000_hw *hw)
1040 if (hw->phy.ops.acquire)
1041 return hw->phy.ops.acquire(hw);
1048 * @hw: pointer to the HW structure
1050 s32 e1000_cfg_on_link_up(struct e1000_hw *hw)
1052 if (hw->phy.ops.cfg_on_link_up)
1053 return hw->phy.ops.cfg_on_link_up(hw);
1060 * @hw: pointer to the HW structure
1068 s32 e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data)
1070 return e1000_read_kmrn_reg_generic(hw, offset, data);
1075 * @hw: pointer to the HW structure
1083 s32 e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data)
1085 return e1000_write_kmrn_reg_generic(hw, offset, data);
1090 * @hw: pointer to the HW structure
1093 * hw->phy.min_length and hw->phy.max_length. This is a function pointer
1096 s32 e1000_get_cable_length(struct e1000_hw *hw)
1098 if (hw->phy.ops.get_cable_length)
1099 return hw->phy.ops.get_cable_length(hw);
1106 * @hw: pointer to the HW structure
1109 * populates hw->phy values with it. This is a function pointer entry
1112 s32 e1000_get_phy_info(struct e1000_hw *hw)
1114 if (hw->phy.ops.get_info)
1115 return hw->phy.ops.get_info(hw);
1122 * @hw: pointer to the HW structure
1127 s32 e1000_phy_hw_reset(struct e1000_hw *hw)
1129 if (hw->phy.ops.reset)
1130 return hw->phy.ops.reset(hw);
1137 * @hw: pointer to the HW structure
1142 s32 e1000_phy_commit(struct e1000_hw *hw)
1144 if (hw->phy.ops.commit)
1145 return hw->phy.ops.commit(hw);
1152 * @hw: pointer to the HW structure
1164 s32 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active)
1166 if (hw->phy.ops.set_d0_lplu_state)
1167 return hw->phy.ops.set_d0_lplu_state(hw, active);
1174 * @hw: pointer to the HW structure
1186 s32 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active)
1188 if (hw->phy.ops.set_d3_lplu_state)
1189 return hw->phy.ops.set_d3_lplu_state(hw, active);
1196 * @hw: pointer to the HW structure
1202 s32 e1000_read_mac_addr(struct e1000_hw *hw)
1204 if (hw->mac.ops.read_mac_addr)
1205 return hw->mac.ops.read_mac_addr(hw);
1207 return e1000_read_mac_addr_generic(hw);
1212 * @hw: pointer to the HW structure
1221 s32 e1000_read_pba_string(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size)
1223 return e1000_read_pba_string_generic(hw, pba_num, pba_num_size);
1228 * @hw: pointer to the HW structure
1236 s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size)
1238 return e1000_read_pba_length_generic(hw, pba_num_size);
1243 * @hw: pointer to the HW structure
1248 s32 e1000_validate_nvm_checksum(struct e1000_hw *hw)
1250 if (hw->nvm.ops.validate)
1251 return hw->nvm.ops.validate(hw);
1258 * @hw: pointer to the HW structure
1263 s32 e1000_update_nvm_checksum(struct e1000_hw *hw)
1265 if (hw->nvm.ops.update)
1266 return hw->nvm.ops.update(hw);
1273 * @hw: pointer to the HW structure
1278 void e1000_reload_nvm(struct e1000_hw *hw)
1280 if (hw->nvm.ops.reload)
1281 hw->nvm.ops.reload(hw);
1286 * @hw: pointer to the HW structure
1294 s32 e1000_read_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1296 if (hw->nvm.ops.read)
1297 return hw->nvm.ops.read(hw, offset, words, data);
1304 * @hw: pointer to the HW structure
1312 s32 e1000_write_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1314 if (hw->nvm.ops.write)
1315 return hw->nvm.ops.write(hw, offset, words, data);
1322 * @hw: pointer to the HW structure
1330 s32 e1000_write_8bit_ctrl_reg(struct e1000_hw *hw, u32 reg, u32 offset,
1333 return e1000_write_8bit_ctrl_reg_generic(hw, reg, offset, data);
1338 * @hw: pointer to the HW structure
1343 void e1000_power_up_phy(struct e1000_hw *hw)
1345 if (hw->phy.ops.power_up)
1346 hw->phy.ops.power_up(hw);
1348 e1000_setup_link(hw);
1353 * @hw: pointer to the HW structure
1358 void e1000_power_down_phy(struct e1000_hw *hw)
1360 if (hw->phy.ops.power_down)
1361 hw->phy.ops.power_down(hw);
1366 * @hw: pointer to the HW structure
1370 void e1000_power_up_fiber_serdes_link(struct e1000_hw *hw)
1372 if (hw->mac.ops.power_up_serdes)
1373 hw->mac.ops.power_up_serdes(hw);
1378 * @hw: pointer to the HW structure
1382 void e1000_shutdown_fiber_serdes_link(struct e1000_hw *hw)
1384 if (hw->mac.ops.shutdown_serdes)
1385 hw->mac.ops.shutdown_serdes(hw);