Lines Matching refs:hw

40  *  @hw: pointer to the HW structure
45 s32 e1000_init_mac_params(struct e1000_hw *hw)
49 if (hw->mac.ops.init_params) {
50 ret_val = hw->mac.ops.init_params(hw);
66 * @hw: pointer to the HW structure
71 s32 e1000_init_nvm_params(struct e1000_hw *hw)
75 if (hw->nvm.ops.init_params) {
76 ret_val = hw->nvm.ops.init_params(hw);
92 * @hw: pointer to the HW structure
97 s32 e1000_init_phy_params(struct e1000_hw *hw)
101 if (hw->phy.ops.init_params) {
102 ret_val = hw->phy.ops.init_params(hw);
118 * @hw: pointer to the HW structure
123 s32 e1000_init_mbx_params(struct e1000_hw *hw)
127 if (hw->mbx.ops.init_params) {
128 ret_val = hw->mbx.ops.init_params(hw);
144 * @hw: pointer to the HW structure
147 * device ID stored in the hw structure.
151 s32 e1000_set_mac_type(struct e1000_hw *hw)
153 struct e1000_mac_info *mac = &hw->mac;
158 switch (hw->device_id) {
423 * @hw: pointer to the HW structure
433 s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
438 ret_val = e1000_set_mac_type(hw);
444 if (!hw->hw_addr) {
454 e1000_init_mac_ops_generic(hw);
455 e1000_init_phy_ops_generic(hw);
456 e1000_init_nvm_ops_generic(hw);
457 e1000_init_mbx_ops_generic(hw);
464 switch (hw->mac.type) {
466 e1000_init_function_pointers_82542(hw);
470 e1000_init_function_pointers_82543(hw);
477 e1000_init_function_pointers_82540(hw);
483 e1000_init_function_pointers_82541(hw);
490 e1000_init_function_pointers_82571(hw);
493 e1000_init_function_pointers_80003es2lan(hw);
506 e1000_init_function_pointers_ich8lan(hw);
513 e1000_init_function_pointers_82575(hw);
517 e1000_init_function_pointers_i210(hw);
520 e1000_init_function_pointers_vf(hw);
523 e1000_init_function_pointers_vf(hw);
536 ret_val = e1000_init_mac_params(hw);
540 ret_val = e1000_init_nvm_params(hw);
544 ret_val = e1000_init_phy_params(hw);
548 ret_val = e1000_init_mbx_params(hw);
559 * @hw: pointer to the HW structure
562 * adapter is attached and stores it in the hw structure. This is a
565 s32 e1000_get_bus_info(struct e1000_hw *hw)
567 if (hw->mac.ops.get_bus_info)
568 return hw->mac.ops.get_bus_info(hw);
575 * @hw: pointer to the HW structure
580 void e1000_clear_vfta(struct e1000_hw *hw)
582 if (hw->mac.ops.clear_vfta)
583 hw->mac.ops.clear_vfta(hw);
588 * @hw: pointer to the HW structure
595 void e1000_write_vfta(struct e1000_hw *hw, u32 offset, u32 value)
597 if (hw->mac.ops.write_vfta)
598 hw->mac.ops.write_vfta(hw, offset, value);
603 * @hw: pointer to the HW structure
610 void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list,
613 if (hw->mac.ops.update_mc_addr_list)
614 hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
620 * @hw: pointer to the HW structure
626 s32 e1000_force_mac_fc(struct e1000_hw *hw)
628 return e1000_force_mac_fc_generic(hw);
633 * @hw: pointer to the HW structure
636 * results in the hw->mac structure. This is a function pointer entry
639 s32 e1000_check_for_link(struct e1000_hw *hw)
641 if (hw->mac.ops.check_for_link)
642 return hw->mac.ops.check_for_link(hw);
649 * @hw: pointer to the HW structure
654 bool e1000_check_mng_mode(struct e1000_hw *hw)
656 if (hw->mac.ops.check_mng_mode)
657 return hw->mac.ops.check_mng_mode(hw);
664 * @hw: pointer to the HW structure
670 s32 e1000_mng_write_dhcp_info(struct e1000_hw *hw, u8 *buffer, u16 length)
672 return e1000_mng_write_dhcp_info_generic(hw, buffer, length);
677 * @hw: pointer to the HW structure
682 s32 e1000_reset_hw(struct e1000_hw *hw)
684 if (hw->mac.ops.reset_hw)
685 return hw->mac.ops.reset_hw(hw);
692 * @hw: pointer to the HW structure
697 s32 e1000_init_hw(struct e1000_hw *hw)
699 if (hw->mac.ops.init_hw)
700 return hw->mac.ops.init_hw(hw);
707 * @hw: pointer to the HW structure
713 s32 e1000_setup_link(struct e1000_hw *hw)
715 if (hw->mac.ops.setup_link)
716 return hw->mac.ops.setup_link(hw);
723 * @hw: pointer to the HW structure
731 s32 e1000_get_speed_and_duplex(struct e1000_hw *hw, u16 *speed, u16 *duplex)
733 if (hw->mac.ops.get_link_up_info)
734 return hw->mac.ops.get_link_up_info(hw, speed, duplex);
741 * @hw: pointer to the HW structure
747 s32 e1000_setup_led(struct e1000_hw *hw)
749 if (hw->mac.ops.setup_led)
750 return hw->mac.ops.setup_led(hw);
757 * @hw: pointer to the HW structure
762 s32 e1000_cleanup_led(struct e1000_hw *hw)
764 if (hw->mac.ops.cleanup_led)
765 return hw->mac.ops.cleanup_led(hw);
772 * @hw: pointer to the HW structure
778 s32 e1000_blink_led(struct e1000_hw *hw)
780 if (hw->mac.ops.blink_led)
781 return hw->mac.ops.blink_led(hw);
788 * @hw: pointer to the HW structure
793 s32 e1000_id_led_init(struct e1000_hw *hw)
795 if (hw->mac.ops.id_led_init)
796 return hw->mac.ops.id_led_init(hw);
803 * @hw: pointer to the HW structure
808 s32 e1000_led_on(struct e1000_hw *hw)
810 if (hw->mac.ops.led_on)
811 return hw->mac.ops.led_on(hw);
818 * @hw: pointer to the HW structure
823 s32 e1000_led_off(struct e1000_hw *hw)
825 if (hw->mac.ops.led_off)
826 return hw->mac.ops.led_off(hw);
833 * @hw: pointer to the HW structure
838 void e1000_reset_adaptive(struct e1000_hw *hw)
840 e1000_reset_adaptive_generic(hw);
845 * @hw: pointer to the HW structure
850 void e1000_update_adaptive(struct e1000_hw *hw)
852 e1000_update_adaptive_generic(hw);
857 * @hw: pointer to the HW structure
863 s32 e1000_disable_pcie_master(struct e1000_hw *hw)
865 return e1000_disable_pcie_master_generic(hw);
870 * @hw: pointer to the HW structure
875 void e1000_config_collision_dist(struct e1000_hw *hw)
877 if (hw->mac.ops.config_collision_dist)
878 hw->mac.ops.config_collision_dist(hw);
883 * @hw: pointer to the HW structure
889 int e1000_rar_set(struct e1000_hw *hw, u8 *addr, u32 index)
891 if (hw->mac.ops.rar_set)
892 return hw->mac.ops.rar_set(hw, addr, index);
899 * @hw: pointer to the HW structure
903 s32 e1000_validate_mdi_setting(struct e1000_hw *hw)
905 if (hw->mac.ops.validate_mdi_setting)
906 return hw->mac.ops.validate_mdi_setting(hw);
913 * @hw: pointer to the HW structure
920 u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr)
922 return e1000_hash_mc_addr_generic(hw, mc_addr);
927 * @hw: pointer to the HW structure
934 bool e1000_enable_tx_pkt_filtering(struct e1000_hw *hw)
936 return e1000_enable_tx_pkt_filtering_generic(hw);
941 * @hw: pointer to the HW structure
951 s32 e1000_mng_host_if_write(struct e1000_hw *hw, u8 *buffer, u16 length,
954 return e1000_mng_host_if_write_generic(hw, buffer, length, offset, sum);
959 * @hw: pointer to the HW structure
964 s32 e1000_mng_write_cmd_header(struct e1000_hw *hw,
967 return e1000_mng_write_cmd_header_generic(hw, hdr);
972 * @hw: pointer to the HW structure
980 s32 e1000_mng_enable_host_if(struct e1000_hw *hw)
982 return e1000_mng_enable_host_if_generic(hw);
987 * @hw: pointer to the HW structure
992 s32 e1000_set_obff_timer(struct e1000_hw *hw, u32 itr)
994 if (hw->mac.ops.set_obff_timer)
995 return hw->mac.ops.set_obff_timer(hw, itr);
1002 * @hw: pointer to the HW structure
1007 s32 e1000_check_reset_block(struct e1000_hw *hw)
1009 if (hw->phy.ops.check_reset_block)
1010 return hw->phy.ops.check_reset_block(hw);
1017 * @hw: pointer to the HW structure
1024 s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 offset, u16 *data)
1026 if (hw->phy.ops.read_reg)
1027 return hw->phy.ops.read_reg(hw, offset, data);
1034 * @hw: pointer to the HW structure
1041 s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 offset, u16 data)
1043 if (hw->phy.ops.write_reg)
1044 return hw->phy.ops.write_reg(hw, offset, data);
1051 * @hw: pointer to the HW structure
1056 void e1000_release_phy(struct e1000_hw *hw)
1058 if (hw->phy.ops.release)
1059 hw->phy.ops.release(hw);
1064 * @hw: pointer to the HW structure
1069 s32 e1000_acquire_phy(struct e1000_hw *hw)
1071 if (hw->phy.ops.acquire)
1072 return hw->phy.ops.acquire(hw);
1079 * @hw: pointer to the HW structure
1081 s32 e1000_cfg_on_link_up(struct e1000_hw *hw)
1083 if (hw->phy.ops.cfg_on_link_up)
1084 return hw->phy.ops.cfg_on_link_up(hw);
1091 * @hw: pointer to the HW structure
1099 s32 e1000_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data)
1101 return e1000_read_kmrn_reg_generic(hw, offset, data);
1106 * @hw: pointer to the HW structure
1114 s32 e1000_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data)
1116 return e1000_write_kmrn_reg_generic(hw, offset, data);
1121 * @hw: pointer to the HW structure
1124 * hw->phy.min_length and hw->phy.max_length. This is a function pointer
1127 s32 e1000_get_cable_length(struct e1000_hw *hw)
1129 if (hw->phy.ops.get_cable_length)
1130 return hw->phy.ops.get_cable_length(hw);
1137 * @hw: pointer to the HW structure
1140 * populates hw->phy values with it. This is a function pointer entry
1143 s32 e1000_get_phy_info(struct e1000_hw *hw)
1145 if (hw->phy.ops.get_info)
1146 return hw->phy.ops.get_info(hw);
1153 * @hw: pointer to the HW structure
1158 s32 e1000_phy_hw_reset(struct e1000_hw *hw)
1160 if (hw->phy.ops.reset)
1161 return hw->phy.ops.reset(hw);
1168 * @hw: pointer to the HW structure
1173 s32 e1000_phy_commit(struct e1000_hw *hw)
1175 if (hw->phy.ops.commit)
1176 return hw->phy.ops.commit(hw);
1183 * @hw: pointer to the HW structure
1195 s32 e1000_set_d0_lplu_state(struct e1000_hw *hw, bool active)
1197 if (hw->phy.ops.set_d0_lplu_state)
1198 return hw->phy.ops.set_d0_lplu_state(hw, active);
1205 * @hw: pointer to the HW structure
1217 s32 e1000_set_d3_lplu_state(struct e1000_hw *hw, bool active)
1219 if (hw->phy.ops.set_d3_lplu_state)
1220 return hw->phy.ops.set_d3_lplu_state(hw, active);
1227 * @hw: pointer to the HW structure
1233 s32 e1000_read_mac_addr(struct e1000_hw *hw)
1235 if (hw->mac.ops.read_mac_addr)
1236 return hw->mac.ops.read_mac_addr(hw);
1238 return e1000_read_mac_addr_generic(hw);
1243 * @hw: pointer to the HW structure
1252 s32 e1000_read_pba_string(struct e1000_hw *hw, u8 *pba_num, u32 pba_num_size)
1254 return e1000_read_pba_string_generic(hw, pba_num, pba_num_size);
1259 * @hw: pointer to the HW structure
1267 s32 e1000_read_pba_length(struct e1000_hw *hw, u32 *pba_num_size)
1269 return e1000_read_pba_length_generic(hw, pba_num_size);
1274 * @hw: pointer to the HW structure
1282 s32 e1000_read_pba_num(struct e1000_hw *hw, u32 *pba_num)
1284 return e1000_read_pba_num_generic(hw, pba_num);
1289 * @hw: pointer to the HW structure
1294 s32 e1000_validate_nvm_checksum(struct e1000_hw *hw)
1296 if (hw->nvm.ops.validate)
1297 return hw->nvm.ops.validate(hw);
1304 * @hw: pointer to the HW structure
1309 s32 e1000_update_nvm_checksum(struct e1000_hw *hw)
1311 if (hw->nvm.ops.update)
1312 return hw->nvm.ops.update(hw);
1319 * @hw: pointer to the HW structure
1324 void e1000_reload_nvm(struct e1000_hw *hw)
1326 if (hw->nvm.ops.reload)
1327 hw->nvm.ops.reload(hw);
1332 * @hw: pointer to the HW structure
1340 s32 e1000_read_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1342 if (hw->nvm.ops.read)
1343 return hw->nvm.ops.read(hw, offset, words, data);
1350 * @hw: pointer to the HW structure
1358 s32 e1000_write_nvm(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)
1360 if (hw->nvm.ops.write)
1361 return hw->nvm.ops.write(hw, offset, words, data);
1368 * @hw: pointer to the HW structure
1376 s32 e1000_write_8bit_ctrl_reg(struct e1000_hw *hw, u32 reg, u32 offset,
1379 return e1000_write_8bit_ctrl_reg_generic(hw, reg, offset, data);
1384 * @hw: pointer to the HW structure
1389 void e1000_power_up_phy(struct e1000_hw *hw)
1391 if (hw->phy.ops.power_up)
1392 hw->phy.ops.power_up(hw);
1394 e1000_setup_link(hw);
1399 * @hw: pointer to the HW structure
1404 void e1000_power_down_phy(struct e1000_hw *hw)
1406 if (hw->phy.ops.power_down)
1407 hw->phy.ops.power_down(hw);
1412 * @hw: pointer to the HW structure
1416 void e1000_power_up_fiber_serdes_link(struct e1000_hw *hw)
1418 if (hw->mac.ops.power_up_serdes)
1419 hw->mac.ops.power_up_serdes(hw);
1424 * @hw: pointer to the HW structure
1428 void e1000_shutdown_fiber_serdes_link(struct e1000_hw *hw)
1430 if (hw->mac.ops.shutdown_serdes)
1431 hw->mac.ops.shutdown_serdes(hw);