Lines Matching refs:hw

62  * @hw: pointer to hardware structure
67 void ixgbe_dcb_get_rtrup2tc(struct ixgbe_hw *hw, u8 *map)
69 if (hw->mac.ops.get_rtrup2tc)
70 hw->mac.ops.get_rtrup2tc(hw, map);
75 * @hw: pointer to hardware structure
81 * hw structure should be filled in prior to calling this function:
85 s32 ixgbe_init_shared_code(struct ixgbe_hw *hw)
94 ixgbe_set_mac_type(hw);
96 switch (hw->mac.type) {
98 status = ixgbe_init_ops_82598(hw);
101 status = ixgbe_init_ops_82599(hw);
104 status = ixgbe_init_ops_X540(hw);
107 status = ixgbe_init_ops_X550(hw);
110 status = ixgbe_init_ops_X550EM_x(hw);
113 status = ixgbe_init_ops_X550EM_a(hw);
119 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME;
126 * @hw: pointer to the HW structure
129 * vendor ID and device ID stored in the hw structure.
131 s32 ixgbe_set_mac_type(struct ixgbe_hw *hw)
137 if (hw->vendor_id != IXGBE_INTEL_VENDOR_ID) {
139 "Unsupported vendor id: %x", hw->vendor_id);
143 hw->mvals = ixgbe_mvals_base;
145 switch (hw->device_id) {
158 hw->mac.type = ixgbe_mac_82598EB;
176 hw->mac.type = ixgbe_mac_82599EB;
181 hw->mac.type = ixgbe_mac_X540;
182 hw->mvals = ixgbe_mvals_X540;
186 hw->mac.type = ixgbe_mac_X550;
187 hw->mvals = ixgbe_mvals_X550;
195 hw->mac.type = ixgbe_mac_X550EM_x;
196 hw->mvals = ixgbe_mvals_X550EM_x;
209 hw->mac.type = ixgbe_mac_X550EM_a;
210 hw->mvals = ixgbe_mvals_X550EM_a;
216 hw->device_id);
221 hw->mac.type, ret_val);
227 * @hw: pointer to hardware structure
231 s32 ixgbe_init_hw(struct ixgbe_hw *hw)
233 return ixgbe_call_func(hw, hw->mac.ops.init_hw, (hw),
239 * @hw: pointer to hardware structure
244 s32 ixgbe_reset_hw(struct ixgbe_hw *hw)
246 return ixgbe_call_func(hw, hw->mac.ops.reset_hw, (hw),
252 * @hw: pointer to hardware structure
260 s32 ixgbe_start_hw(struct ixgbe_hw *hw)
262 return ixgbe_call_func(hw, hw->mac.ops.start_hw, (hw),
270 * @hw: pointer to hardware structure
274 void ixgbe_enable_relaxed_ordering(struct ixgbe_hw *hw)
276 if (hw->mac.ops.enable_relaxed_ordering)
277 hw->mac.ops.enable_relaxed_ordering(hw);
282 * @hw: pointer to hardware structure
287 s32 ixgbe_clear_hw_cntrs(struct ixgbe_hw *hw)
289 return ixgbe_call_func(hw, hw->mac.ops.clear_hw_cntrs, (hw),
295 * @hw: pointer to hardware structure
299 enum ixgbe_media_type ixgbe_get_media_type(struct ixgbe_hw *hw)
301 return ixgbe_call_func(hw, hw->mac.ops.get_media_type, (hw),
307 * @hw: pointer to hardware structure
315 s32 ixgbe_get_mac_addr(struct ixgbe_hw *hw, u8 *mac_addr)
317 return ixgbe_call_func(hw, hw->mac.ops.get_mac_addr,
318 (hw, mac_addr), IXGBE_NOT_IMPLEMENTED);
323 * @hw: pointer to hardware structure
329 s32 ixgbe_get_san_mac_addr(struct ixgbe_hw *hw, u8 *san_mac_addr)
331 return ixgbe_call_func(hw, hw->mac.ops.get_san_mac_addr,
332 (hw, san_mac_addr), IXGBE_NOT_IMPLEMENTED);
337 * @hw: pointer to hardware structure
342 s32 ixgbe_set_san_mac_addr(struct ixgbe_hw *hw, u8 *san_mac_addr)
344 return ixgbe_call_func(hw, hw->mac.ops.set_san_mac_addr,
345 (hw, san_mac_addr), IXGBE_NOT_IMPLEMENTED);
350 * @hw: pointer to hardware structure
355 s32 ixgbe_get_device_caps(struct ixgbe_hw *hw, u16 *device_caps)
357 return ixgbe_call_func(hw, hw->mac.ops.get_device_caps,
358 (hw, device_caps), IXGBE_NOT_IMPLEMENTED);
363 * @hw: pointer to hardware structure
370 s32 ixgbe_get_wwn_prefix(struct ixgbe_hw *hw, u16 *wwnn_prefix,
373 return ixgbe_call_func(hw, hw->mac.ops.get_wwn_prefix,
374 (hw, wwnn_prefix, wwpn_prefix),
380 * @hw: pointer to hardware structure
385 s32 ixgbe_get_fcoe_boot_status(struct ixgbe_hw *hw, u16 *bs)
387 return ixgbe_call_func(hw, hw->mac.ops.get_fcoe_boot_status,
388 (hw, bs),
394 * @hw: pointer to hardware structure
398 s32 ixgbe_get_bus_info(struct ixgbe_hw *hw)
400 return ixgbe_call_func(hw, hw->mac.ops.get_bus_info, (hw),
406 * @hw: pointer to hardware structure
410 u32 ixgbe_get_num_of_tx_queues(struct ixgbe_hw *hw)
412 return hw->mac.max_tx_queues;
417 * @hw: pointer to hardware structure
421 u32 ixgbe_get_num_of_rx_queues(struct ixgbe_hw *hw)
423 return hw->mac.max_rx_queues;
428 * @hw: pointer to hardware structure
435 s32 ixgbe_stop_adapter(struct ixgbe_hw *hw)
437 return ixgbe_call_func(hw, hw->mac.ops.stop_adapter, (hw),
443 * @hw: pointer to hardware structure
449 s32 ixgbe_read_pba_string(struct ixgbe_hw *hw, u8 *pba_num, u32 pba_num_size)
451 return ixgbe_read_pba_string_generic(hw, pba_num, pba_num_size);
456 * @hw: pointer to hardware structure
461 s32 ixgbe_read_pba_num(struct ixgbe_hw *hw, u32 *pba_num)
463 return ixgbe_read_pba_num_generic(hw, pba_num);
468 * @hw: pointer to hardware structure
472 s32 ixgbe_identify_phy(struct ixgbe_hw *hw)
476 if (hw->phy.type == ixgbe_phy_unknown) {
477 status = ixgbe_call_func(hw, hw->phy.ops.identify, (hw),
486 * @hw: pointer to hardware structure
488 s32 ixgbe_reset_phy(struct ixgbe_hw *hw)
492 if (hw->phy.type == ixgbe_phy_unknown) {
493 if (ixgbe_identify_phy(hw) != IXGBE_SUCCESS)
498 status = ixgbe_call_func(hw, hw->phy.ops.reset, (hw),
506 * @hw: pointer to hardware structure
509 s32 ixgbe_get_phy_firmware_version(struct ixgbe_hw *hw, u16 *firmware_version)
513 status = ixgbe_call_func(hw, hw->phy.ops.get_firmware_version,
514 (hw, firmware_version),
521 * @hw: pointer to hardware structure
527 s32 ixgbe_read_phy_reg(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type,
530 if (hw->phy.id == 0)
531 ixgbe_identify_phy(hw);
533 return ixgbe_call_func(hw, hw->phy.ops.read_reg, (hw, reg_addr,
539 * @hw: pointer to hardware structure
545 s32 ixgbe_write_phy_reg(struct ixgbe_hw *hw, u32 reg_addr, u32 device_type,
548 if (hw->phy.id == 0)
549 ixgbe_identify_phy(hw);
551 return ixgbe_call_func(hw, hw->phy.ops.write_reg, (hw, reg_addr,
557 * @hw: pointer to hardware structure
561 s32 ixgbe_setup_phy_link(struct ixgbe_hw *hw)
563 return ixgbe_call_func(hw, hw->phy.ops.setup_link, (hw),
569 * @hw: pointer to hardware structure
575 s32 ixgbe_setup_internal_phy(struct ixgbe_hw *hw)
577 return ixgbe_call_func(hw, hw->phy.ops.setup_internal_link, (hw),
583 * @hw: pointer to hardware structure
588 s32 ixgbe_check_phy_link(struct ixgbe_hw *hw, ixgbe_link_speed *speed,
591 return ixgbe_call_func(hw, hw->phy.ops.check_link, (hw, speed,
597 * @hw: pointer to hardware structure
602 s32 ixgbe_setup_phy_link_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed,
605 return ixgbe_call_func(hw, hw->phy.ops.setup_link_speed, (hw, speed,
612 * @hw: pointer to hardware structure
615 s32 ixgbe_set_phy_power(struct ixgbe_hw *hw, bool on)
617 return ixgbe_call_func(hw, hw->phy.ops.set_phy_power, (hw, on),
623 * @hw: pointer to hardware structure
627 s32 ixgbe_check_link(struct ixgbe_hw *hw, ixgbe_link_speed *speed,
630 return ixgbe_call_func(hw, hw->mac.ops.check_link, (hw, speed,
637 * @hw: pointer to hardware structure
641 void ixgbe_disable_tx_laser(struct ixgbe_hw *hw)
643 if (hw->mac.ops.disable_tx_laser)
644 hw->mac.ops.disable_tx_laser(hw);
649 * @hw: pointer to hardware structure
653 void ixgbe_enable_tx_laser(struct ixgbe_hw *hw)
655 if (hw->mac.ops.enable_tx_laser)
656 hw->mac.ops.enable_tx_laser(hw);
661 * @hw: pointer to hardware structure
667 void ixgbe_flap_tx_laser(struct ixgbe_hw *hw)
669 if (hw->mac.ops.flap_tx_laser)
670 hw->mac.ops.flap_tx_laser(hw);
675 * @hw: pointer to hardware structure
681 s32 ixgbe_setup_link(struct ixgbe_hw *hw, ixgbe_link_speed speed,
684 return ixgbe_call_func(hw, hw->mac.ops.setup_link, (hw, speed,
691 * @hw: pointer to hardware structure
697 s32 ixgbe_setup_mac_link(struct ixgbe_hw *hw, ixgbe_link_speed speed,
700 return ixgbe_call_func(hw, hw->mac.ops.setup_mac_link, (hw, speed,
707 * @hw: pointer to hardware structure
711 s32 ixgbe_get_link_capabilities(struct ixgbe_hw *hw, ixgbe_link_speed *speed,
714 return ixgbe_call_func(hw, hw->mac.ops.get_link_capabilities, (hw,
720 * @hw: pointer to hardware structure
725 s32 ixgbe_led_on(struct ixgbe_hw *hw, u32 index)
727 return ixgbe_call_func(hw, hw->mac.ops.led_on, (hw, index),
733 * @hw: pointer to hardware structure
738 s32 ixgbe_led_off(struct ixgbe_hw *hw, u32 index)
740 return ixgbe_call_func(hw, hw->mac.ops.led_off, (hw, index),
746 * @hw: pointer to hardware structure
751 s32 ixgbe_blink_led_start(struct ixgbe_hw *hw, u32 index)
753 return ixgbe_call_func(hw, hw->mac.ops.blink_led_start, (hw, index),
759 * @hw: pointer to hardware structure
763 s32 ixgbe_blink_led_stop(struct ixgbe_hw *hw, u32 index)
765 return ixgbe_call_func(hw, hw->mac.ops.blink_led_stop, (hw, index),
771 * @hw: pointer to hardware structure
776 s32 ixgbe_init_eeprom_params(struct ixgbe_hw *hw)
778 return ixgbe_call_func(hw, hw->eeprom.ops.init_params, (hw),
785 * @hw: pointer to hardware structure
793 s32 ixgbe_write_eeprom(struct ixgbe_hw *hw, u16 offset, u16 data)
795 return ixgbe_call_func(hw, hw->eeprom.ops.write, (hw, offset, data),
801 * @hw: pointer to hardware structure
810 s32 ixgbe_write_eeprom_buffer(struct ixgbe_hw *hw, u16 offset, u16 words,
813 return ixgbe_call_func(hw, hw->eeprom.ops.write_buffer,
814 (hw, offset, words, data),
820 * @hw: pointer to hardware structure
826 s32 ixgbe_read_eeprom(struct ixgbe_hw *hw, u16 offset, u16 *data)
828 return ixgbe_call_func(hw, hw->eeprom.ops.read, (hw, offset, data),
834 * @hw: pointer to hardware structure
841 s32 ixgbe_read_eeprom_buffer(struct ixgbe_hw *hw, u16 offset,
844 return ixgbe_call_func(hw, hw->eeprom.ops.read_buffer,
845 (hw, offset, words, data),
851 * @hw: pointer to hardware structure
856 s32 ixgbe_validate_eeprom_checksum(struct ixgbe_hw *hw, u16 *checksum_val)
858 return ixgbe_call_func(hw, hw->eeprom.ops.validate_checksum,
859 (hw, checksum_val), IXGBE_NOT_IMPLEMENTED);
864 * @hw: pointer to hardware structure
866 s32 ixgbe_update_eeprom_checksum(struct ixgbe_hw *hw)
868 return ixgbe_call_func(hw, hw->eeprom.ops.update_checksum, (hw),
874 * @hw: pointer to hardware structure
881 s32 ixgbe_insert_mac_addr(struct ixgbe_hw *hw, u8 *addr, u32 vmdq)
883 return ixgbe_call_func(hw, hw->mac.ops.insert_mac_addr,
884 (hw, addr, vmdq),
890 * @hw: pointer to hardware structure
898 s32 ixgbe_set_rar(struct ixgbe_hw *hw, u32 index, u8 *addr, u32 vmdq,
901 return ixgbe_call_func(hw, hw->mac.ops.set_rar, (hw, index, addr, vmdq,
907 * @hw: pointer to hardware structure
912 s32 ixgbe_clear_rar(struct ixgbe_hw *hw, u32 index)
914 return ixgbe_call_func(hw, hw->mac.ops.clear_rar, (hw, index),
920 * @hw: pointer to hardware structure
924 s32 ixgbe_set_vmdq(struct ixgbe_hw *hw, u32 rar, u32 vmdq)
926 return ixgbe_call_func(hw, hw->mac.ops.set_vmdq, (hw, rar, vmdq),
933 * @hw: pointer to hardware structure
936 s32 ixgbe_set_vmdq_san_mac(struct ixgbe_hw *hw, u32 vmdq)
938 return ixgbe_call_func(hw, hw->mac.ops.set_vmdq_san_mac,
939 (hw, vmdq), IXGBE_NOT_IMPLEMENTED);
944 * @hw: pointer to hardware structure
948 s32 ixgbe_clear_vmdq(struct ixgbe_hw *hw, u32 rar, u32 vmdq)
950 return ixgbe_call_func(hw, hw->mac.ops.clear_vmdq, (hw, rar, vmdq),
956 * @hw: pointer to hardware structure
962 s32 ixgbe_init_rx_addrs(struct ixgbe_hw *hw)
964 return ixgbe_call_func(hw, hw->mac.ops.init_rx_addrs, (hw),
970 * @hw: pointer to hardware structure
972 u32 ixgbe_get_num_rx_addrs(struct ixgbe_hw *hw)
974 return hw->mac.num_rar_entries;
979 * @hw: pointer to hardware structure
988 s32 ixgbe_update_uc_addr_list(struct ixgbe_hw *hw, u8 *addr_list,
991 return ixgbe_call_func(hw, hw->mac.ops.update_uc_addr_list, (hw,
998 * @hw: pointer to hardware structure
1008 s32 ixgbe_update_mc_addr_list(struct ixgbe_hw *hw, u8 *mc_addr_list,
1012 return ixgbe_call_func(hw, hw->mac.ops.update_mc_addr_list, (hw,
1019 * @hw: pointer to hardware structure
1023 s32 ixgbe_enable_mc(struct ixgbe_hw *hw)
1025 return ixgbe_call_func(hw, hw->mac.ops.enable_mc, (hw),
1031 * @hw: pointer to hardware structure
1035 s32 ixgbe_disable_mc(struct ixgbe_hw *hw)
1037 return ixgbe_call_func(hw, hw->mac.ops.disable_mc, (hw),
1043 * @hw: pointer to hardware structure
1047 s32 ixgbe_clear_vfta(struct ixgbe_hw *hw)
1049 return ixgbe_call_func(hw, hw->mac.ops.clear_vfta, (hw),
1055 * @hw: pointer to hardware structure
1063 s32 ixgbe_set_vfta(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on,
1066 return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind,
1072 * @hw: pointer to hardware structure
1083 s32 ixgbe_set_vlvf(struct ixgbe_hw *hw, u32 vlan, u32 vind, bool vlan_on,
1086 return ixgbe_call_func(hw, hw->mac.ops.set_vlvf, (hw, vlan, vind,
1093 * @hw: pointer to hardware structure
1097 s32 ixgbe_fc_enable(struct ixgbe_hw *hw)
1099 return ixgbe_call_func(hw, hw->mac.ops.fc_enable, (hw),
1105 * @hw: pointer to hardware structure
1109 s32 ixgbe_setup_fc(struct ixgbe_hw *hw)
1111 return ixgbe_call_func(hw, hw->mac.ops.setup_fc, (hw),
1117 * @hw: pointer to hardware structure
1125 s32 ixgbe_set_fw_drv_ver(struct ixgbe_hw *hw, u8 maj, u8 min, u8 build,
1128 return ixgbe_call_func(hw, hw->mac.ops.set_fw_drv_ver, (hw, maj, min,
1137 * @hw: pointer to hardware structure
1142 s32 ixgbe_dmac_config(struct ixgbe_hw *hw)
1144 return ixgbe_call_func(hw, hw->mac.ops.dmac_config, (hw),
1150 * @hw: pointer to hardware structure
1154 s32 ixgbe_dmac_update_tcs(struct ixgbe_hw *hw)
1156 return ixgbe_call_func(hw, hw->mac.ops.dmac_update_tcs, (hw),
1162 * @hw: pointer to hardware structure
1167 s32 ixgbe_dmac_config_tcs(struct ixgbe_hw *hw)
1169 return ixgbe_call_func(hw, hw->mac.ops.dmac_config_tcs, (hw),
1175 * @hw: pointer to the HW structure
1183 s32 ixgbe_setup_eee(struct ixgbe_hw *hw, bool enable_eee)
1185 return ixgbe_call_func(hw, hw->mac.ops.setup_eee, (hw, enable_eee),
1191 * @hw: pointer to hardware structure
1195 void ixgbe_set_source_address_pruning(struct ixgbe_hw *hw, bool enable,
1198 if (hw->mac.ops.set_source_address_pruning)
1199 hw->mac.ops.set_source_address_pruning(hw, enable, pool);
1204 * @hw: pointer to hardware structure
1209 void ixgbe_set_ethertype_anti_spoofing(struct ixgbe_hw *hw, bool enable, int vf)
1211 if (hw->mac.ops.set_ethertype_anti_spoofing)
1212 hw->mac.ops.set_ethertype_anti_spoofing(hw, enable, vf);
1217 * @hw: pointer to hardware structure
1224 s32 ixgbe_read_iosf_sb_reg(struct ixgbe_hw *hw, u32 reg_addr,
1227 return ixgbe_call_func(hw, hw->mac.ops.read_iosf_sb_reg, (hw, reg_addr,
1233 * @hw: pointer to hardware structure
1240 s32 ixgbe_write_iosf_sb_reg(struct ixgbe_hw *hw, u32 reg_addr,
1243 return ixgbe_call_func(hw, hw->mac.ops.write_iosf_sb_reg, (hw, reg_addr,
1249 * @hw: pointer to hardware structure
1252 void ixgbe_disable_mdd(struct ixgbe_hw *hw)
1254 if (hw->mac.ops.disable_mdd)
1255 hw->mac.ops.disable_mdd(hw);
1260 * @hw: pointer to hardware structure
1263 void ixgbe_enable_mdd(struct ixgbe_hw *hw)
1265 if (hw->mac.ops.enable_mdd)
1266 hw->mac.ops.enable_mdd(hw);
1271 * @hw: pointer to hardware structure
1275 void ixgbe_mdd_event(struct ixgbe_hw *hw, u32 *vf_bitmap)
1277 if (hw->mac.ops.mdd_event)
1278 hw->mac.ops.mdd_event(hw, vf_bitmap);
1284 * @hw: pointer to hardware structure
1288 void ixgbe_restore_mdd_vf(struct ixgbe_hw *hw, u32 vf)
1290 if (hw->mac.ops.restore_mdd_vf)
1291 hw->mac.ops.restore_mdd_vf(hw, vf);
1296 * @hw: pointer to hardware structure
1301 s32 ixgbe_enter_lplu(struct ixgbe_hw *hw)
1303 return ixgbe_call_func(hw, hw->phy.ops.enter_lplu, (hw),
1309 * @hw: pointer to hardware structure
1318 s32 ixgbe_handle_lasi(struct ixgbe_hw *hw)
1320 return ixgbe_call_func(hw, hw->phy.ops.handle_lasi, (hw),
1326 * @hw: pointer to hardware structure
1332 s32 ixgbe_bypass_rw(struct ixgbe_hw *hw, u32 cmd, u32 *status)
1334 return ixgbe_call_func(hw, hw->mac.ops.bypass_rw, (hw, cmd, status),
1350 bool ixgbe_bypass_valid_rd(struct ixgbe_hw *hw, u32 in_reg, u32 out_reg)
1352 return ixgbe_call_func(hw, hw->mac.ops.bypass_valid_rd,
1358 * @hw: pointer to hardware structure
1368 s32 ixgbe_bypass_set(struct ixgbe_hw *hw, u32 cmd, u32 event, u32 action)
1370 return ixgbe_call_func(hw, hw->mac.ops.bypass_set,
1371 (hw, cmd, event, action),
1377 * @hw: pointer to hardware structure
1381 s32 ixgbe_bypass_rd_eep(struct ixgbe_hw *hw, u32 addr, u8 *value)
1383 return ixgbe_call_func(hw, hw->mac.ops.bypass_rd_eep,
1384 (hw, addr, value), IXGBE_NOT_IMPLEMENTED);
1389 * @hw: pointer to hardware structure
1395 s32 ixgbe_read_analog_reg8(struct ixgbe_hw *hw, u32 reg, u8 *val)
1397 return ixgbe_call_func(hw, hw->mac.ops.read_analog_reg8, (hw, reg,
1403 * @hw: pointer to hardware structure
1409 s32 ixgbe_write_analog_reg8(struct ixgbe_hw *hw, u32 reg, u8 val)
1411 return ixgbe_call_func(hw, hw->mac.ops.write_analog_reg8, (hw, reg,
1417 * @hw: pointer to hardware structure
1422 s32 ixgbe_init_uta_tables(struct ixgbe_hw *hw)
1424 return ixgbe_call_func(hw, hw->mac.ops.init_uta_tables, (hw),
1430 * @hw: pointer to hardware structure
1437 s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
1440 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte, (hw, byte_offset,
1446 * @hw: pointer to hardware structure
1453 s32 ixgbe_read_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
1456 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_byte_unlocked,
1457 (hw, byte_offset, dev_addr, data),
1463 * @hw: pointer to the hardware structure
1470 s32 ixgbe_read_link(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 *val)
1472 return ixgbe_call_func(hw, hw->link.ops.read_link, (hw, addr,
1478 * @hw: pointer to the hardware structure
1485 s32 ixgbe_read_link_unlocked(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 *val)
1487 return ixgbe_call_func(hw, hw->link.ops.read_link_unlocked,
1488 (hw, addr, reg, val), IXGBE_NOT_IMPLEMENTED);
1493 * @hw: pointer to hardware structure
1501 s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
1504 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte, (hw, byte_offset,
1510 * @hw: pointer to hardware structure
1518 s32 ixgbe_write_i2c_byte_unlocked(struct ixgbe_hw *hw, u8 byte_offset,
1521 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_byte_unlocked,
1522 (hw, byte_offset, dev_addr, data),
1528 * @hw: pointer to the hardware structure
1535 s32 ixgbe_write_link(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 val)
1537 return ixgbe_call_func(hw, hw->link.ops.write_link,
1538 (hw, addr, reg, val), IXGBE_NOT_IMPLEMENTED);
1543 * @hw: pointer to the hardware structure
1550 s32 ixgbe_write_link_unlocked(struct ixgbe_hw *hw, u8 addr, u16 reg, u16 val)
1552 return ixgbe_call_func(hw, hw->link.ops.write_link_unlocked,
1553 (hw, addr, reg, val), IXGBE_NOT_IMPLEMENTED);
1558 * @hw: pointer to hardware structure
1564 s32 ixgbe_write_i2c_eeprom(struct ixgbe_hw *hw,
1567 return ixgbe_call_func(hw, hw->phy.ops.write_i2c_eeprom,
1568 (hw, byte_offset, eeprom_data),
1574 * @hw: pointer to hardware structure
1580 s32 ixgbe_read_i2c_eeprom(struct ixgbe_hw *hw, u8 byte_offset, u8 *eeprom_data)
1582 return ixgbe_call_func(hw, hw->phy.ops.read_i2c_eeprom,
1583 (hw, byte_offset, eeprom_data),
1589 * @hw: pointer to hardware structure
1593 u64 ixgbe_get_supported_physical_layer(struct ixgbe_hw *hw)
1595 return ixgbe_call_func(hw, hw->mac.ops.get_supported_physical_layer,
1596 (hw), IXGBE_PHYSICAL_LAYER_UNKNOWN);
1601 * @hw: pointer to hardware structure
1606 s32 ixgbe_enable_rx_dma(struct ixgbe_hw *hw, u32 regval)
1608 return ixgbe_call_func(hw, hw->mac.ops.enable_rx_dma,
1609 (hw, regval), IXGBE_NOT_IMPLEMENTED);
1614 * @hw: pointer to hardware structure
1618 s32 ixgbe_disable_sec_rx_path(struct ixgbe_hw *hw)
1620 return ixgbe_call_func(hw, hw->mac.ops.disable_sec_rx_path,
1621 (hw), IXGBE_NOT_IMPLEMENTED);
1626 * @hw: pointer to hardware structure
1630 s32 ixgbe_enable_sec_rx_path(struct ixgbe_hw *hw)
1632 return ixgbe_call_func(hw, hw->mac.ops.enable_sec_rx_path,
1633 (hw), IXGBE_NOT_IMPLEMENTED);
1638 * @hw: pointer to hardware structure
1644 s32 ixgbe_acquire_swfw_semaphore(struct ixgbe_hw *hw, u32 mask)
1646 return ixgbe_call_func(hw, hw->mac.ops.acquire_swfw_sync,
1647 (hw, mask), IXGBE_NOT_IMPLEMENTED);
1652 * @hw: pointer to hardware structure
1658 void ixgbe_release_swfw_semaphore(struct ixgbe_hw *hw, u32 mask)
1660 if (hw->mac.ops.release_swfw_sync)
1661 hw->mac.ops.release_swfw_sync(hw, mask);
1666 * @hw: pointer to hardware structure
1673 void ixgbe_init_swfw_semaphore(struct ixgbe_hw *hw)
1675 if (hw->mac.ops.init_swfw_sync)
1676 hw->mac.ops.init_swfw_sync(hw);
1680 void ixgbe_disable_rx(struct ixgbe_hw *hw)
1682 if (hw->mac.ops.disable_rx)
1683 hw->mac.ops.disable_rx(hw);
1686 void ixgbe_enable_rx(struct ixgbe_hw *hw)
1688 if (hw->mac.ops.enable_rx)
1689 hw->mac.ops.enable_rx(hw);
1694 * @hw: pointer to hardware structure
1699 void ixgbe_set_rate_select_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed)
1701 if (hw->mac.ops.set_rate_select_speed)
1702 hw->mac.ops.set_rate_select_speed(hw, speed);