Lines Matching defs:mac
62 switch (hw->mac.type) {
90 switch (hw->mac.type) {
143 switch (hw->mac.type) {
175 switch (hw->mac.type) {
194 struct e1000_mac_info *mac = &hw->mac;
205 mac->ops.setup_physical_interface =
207 mac->ops.check_for_link = e1000e_check_for_fiber_link;
208 mac->ops.get_link_up_info =
216 mac->ops.setup_physical_interface =
218 mac->ops.check_for_link = e1000_check_for_serdes_link_82571;
219 mac->ops.get_link_up_info =
224 mac->ops.setup_physical_interface =
226 mac->ops.check_for_link = e1000e_check_for_copper_link;
227 mac->ops.get_link_up_info = e1000e_get_speed_and_duplex_copper;
232 mac->mta_reg_count = 128;
234 mac->rar_entry_count = E1000_RAR_ENTRIES;
236 mac->adaptive_ifs = true;
239 switch (hw->mac.type) {
241 mac->ops.set_lan_id = e1000_set_lan_id_single_port;
242 mac->ops.check_mng_mode = e1000e_check_mng_mode_generic;
243 mac->ops.led_on = e1000e_led_on_generic;
244 mac->ops.blink_led = e1000e_blink_led_generic;
247 mac->has_fwsm = true;
251 mac->arc_subsystem_valid = !!(er32(FWSM) &
256 mac->ops.set_lan_id = e1000_set_lan_id_single_port;
257 mac->ops.check_mng_mode = e1000_check_mng_mode_82574;
258 mac->ops.led_on = e1000_led_on_82574;
261 mac->ops.check_mng_mode = e1000e_check_mng_mode_generic;
262 mac->ops.led_on = e1000e_led_on_generic;
263 mac->ops.blink_led = e1000e_blink_led_generic;
266 mac->has_fwsm = true;
276 switch (hw->mac.type) {
352 switch (adapter->hw.mac.type) {
394 switch (hw->mac.type) {
655 switch (hw->mac.type) {
698 switch (hw->mac.type) {
969 switch (hw->mac.type) {
987 switch (hw->mac.type) {
1021 switch (hw->mac.type) {
1044 if (hw->mac.type == e1000_82571) {
1055 hw->mac.serdes_link_state = e1000_serdes_link_down;
1068 struct e1000_mac_info *mac = &hw->mac;
1071 u16 i, rar_count = mac->rar_entry_count;
1076 ret_val = mac->ops.id_led_init(hw);
1083 mac->ops.clear_vfta(hw);
1096 for (i = 0; i < mac->mta_reg_count; i++)
1100 ret_val = mac->ops.setup_link(hw);
1109 switch (mac->type) {
1161 switch (hw->mac.type) {
1177 switch (hw->mac.type) {
1193 switch (hw->mac.type) {
1206 switch (hw->mac.type) {
1219 if (hw->mac.type == e1000_82571) {
1228 if ((hw->mac.type == e1000_82571) || (hw->mac.type == e1000_82572)) {
1237 if (hw->mac.type <= e1000_82573) {
1244 switch (hw->mac.type) {
1280 switch (hw->mac.type) {
1339 ctrl = hw->mac.ledctl_mode2;
1345 if (((hw->mac.ledctl_mode2 >> (i * 8)) & 0xFF) ==
1400 switch (hw->mac.type) {
1459 switch (hw->mac.type) {
1498 struct e1000_mac_info *mac = &hw->mac;
1515 switch (mac->serdes_link_state) {
1521 mac->serdes_link_state =
1523 mac->serdes_has_link = false;
1526 mac->serdes_has_link = true;
1538 ew32(TXCW, mac->txcw);
1540 mac->serdes_link_state =
1542 mac->serdes_has_link = false;
1545 mac->serdes_has_link = true;
1556 mac->serdes_link_state =
1559 mac->serdes_has_link = true;
1562 mac->serdes_link_state =
1571 ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE));
1581 mac->serdes_link_state =
1583 mac->serdes_has_link = true;
1594 ew32(TXCW, mac->txcw);
1596 mac->serdes_link_state =
1598 mac->serdes_has_link = false;
1604 mac->serdes_has_link = false;
1605 mac->serdes_link_state = e1000_serdes_link_down;
1620 mac->serdes_has_link = false;
1621 mac->serdes_link_state =
1632 mac->serdes_link_state =
1634 mac->serdes_has_link = false;
1661 switch (hw->mac.type) {
1686 if (hw->mac.type != e1000_82571)
1701 if (hw->mac.type != e1000_82571)
1714 hw->mac.ops.rar_set(hw, hw->mac.addr,
1715 hw->mac.rar_entry_count - 1);
1776 if (hw->mac.type == e1000_82571) {
1801 struct e1000_mac_info *mac = &hw->mac;
1807 if (!(mac->ops.check_mng_mode(hw) || phy->ops.check_reset_block(hw)))
1858 /* .check_mng_mode: mac type dependent */
1866 /* .led_on: mac type dependent */
1948 .mac = e1000_82571,
1969 .mac = e1000_82572,
1987 .mac = e1000_82573,
2005 .mac = e1000_82574,
2030 .mac = e1000_82583,