Lines Matching refs:mac
119 * ixgbe_init_ops_82598 - Inits func ptrs and MAC type
122 * Initialize the function pointers and assign the MAC type for 82598.
127 struct ixgbe_mac_info *mac = &hw->mac;
139 /* MAC */
140 mac->ops.start_hw = ixgbe_start_hw_82598;
141 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_82598;
142 mac->ops.reset_hw = ixgbe_reset_hw_82598;
143 mac->ops.get_media_type = ixgbe_get_media_type_82598;
144 mac->ops.get_supported_physical_layer =
146 mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82598;
147 mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82598;
148 mac->ops.set_lan_id = ixgbe_set_lan_id_multi_port_pcie_82598;
149 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82598;
152 mac->ops.set_vmdq = ixgbe_set_vmdq_82598;
153 mac->ops.clear_vmdq = ixgbe_clear_vmdq_82598;
154 mac->ops.set_vfta = ixgbe_set_vfta_82598;
155 mac->ops.set_vlvf = NULL;
156 mac->ops.clear_vfta = ixgbe_clear_vfta_82598;
159 mac->ops.fc_enable = ixgbe_fc_enable_82598;
161 mac->mcft_size = IXGBE_82598_MC_TBL_SIZE;
162 mac->vft_size = IXGBE_82598_VFT_TBL_SIZE;
163 mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES;
164 mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE;
165 mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES;
166 mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES;
167 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw);
174 mac->ops.check_link = ixgbe_check_mac_link_82598;
175 mac->ops.setup_link = ixgbe_setup_mac_link_82598;
176 mac->ops.flap_tx_laser = NULL;
177 mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_82598;
178 mac->ops.setup_rxpba = ixgbe_set_rxpba_82598;
181 mac->ops.set_fw_drv_ver = NULL;
183 mac->ops.get_rtrup2tc = NULL;
199 struct ixgbe_mac_info *mac = &hw->mac;
210 if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) {
211 mac->ops.setup_link = ixgbe_setup_copper_link_82598;
212 mac->ops.get_link_capabilities =
273 for (i = 0; ((i < hw->mac.max_tx_queues) &&
280 for (i = 0; ((i < hw->mac.max_rx_queues) &&
316 if (hw->mac.orig_link_settings_stored)
317 autoc = hw->mac.orig_autoc;
451 hw->mac.ops.check_link(hw, &link_speed, &link_up, FALSE);
556 * ixgbe_start_mac_link_82598 - Configures MAC link settings
609 * within 5 seconds of MAC indicating link, the function returns error.
670 for (i = 0; i < hw->mac.max_link_up_time; i++) {
699 for (i = 0; i < hw->mac.max_link_up_time; i++) {
730 * ixgbe_setup_mac_link_82598 - Set MAC link speed
789 * Sets the link speed in the AUTOC register in the MAC and restarts link.
802 /* Set up MAC */
813 * clears all interrupts, performing a PHY reset, and performing a link (MAC)
829 status = hw->mac.ops.stop_adapter(hw);
835 * Atlas Tx lanes are powered down for MAC loopback tests, but
838 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK, &analog_val);
841 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK,
844 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK,
847 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_10G,
850 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_10G,
853 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_1G,
856 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_1G,
859 hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_AN,
862 hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_AN,
881 * Issue global reset to the MAC. This needs to be a SW reset.
882 * If link reset is used, it might reset the MAC when mng is using it
907 if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) {
908 hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
922 if (hw->mac.orig_link_settings_stored == FALSE) {
923 hw->mac.orig_autoc = autoc;
924 hw->mac.orig_link_settings_stored = TRUE;
925 } else if (autoc != hw->mac.orig_autoc) {
926 IXGBE_WRITE_REG(hw, IXGBE_AUTOC, hw->mac.orig_autoc);
929 /* Store the permanent mac address */
930 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
933 * Store MAC address from RAR0, clear receive address registers, and
936 hw->mac.ops.init_rx_addrs(hw);
954 u32 rar_entries = hw->mac.num_rar_entries;
980 u32 rar_entries = hw->mac.num_rar_entries;
1065 for (offset = 0; offset < hw->mac.vft_size; offset++)
1069 for (offset = 0; offset < hw->mac.vft_size; offset++)
1148 if (hw->mac.ops.acquire_swfw_sync(hw, gssr) != IXGBE_SUCCESS)
1192 hw->mac.ops.release_swfw_sync(hw, gssr);
1375 for (i = 0; ((i < hw->mac.max_tx_queues) &&
1382 for (i = 0; ((i < hw->mac.max_rx_queues) &&