Lines Matching refs:mac

62 	switch (hw->mac.type) {
90 switch (hw->mac.type) {
143 switch (hw->mac.type) {
174 switch (hw->mac.type) {
193 struct e1000_mac_info *mac = &hw->mac;
204 mac->ops.setup_physical_interface =
206 mac->ops.check_for_link = e1000e_check_for_fiber_link;
207 mac->ops.get_link_up_info =
215 mac->ops.setup_physical_interface =
217 mac->ops.check_for_link = e1000_check_for_serdes_link_82571;
218 mac->ops.get_link_up_info =
223 mac->ops.setup_physical_interface =
225 mac->ops.check_for_link = e1000e_check_for_copper_link;
226 mac->ops.get_link_up_info = e1000e_get_speed_and_duplex_copper;
231 mac->mta_reg_count = 128;
233 mac->rar_entry_count = E1000_RAR_ENTRIES;
235 mac->adaptive_ifs = true;
238 switch (hw->mac.type) {
240 mac->ops.set_lan_id = e1000_set_lan_id_single_port;
241 mac->ops.check_mng_mode = e1000e_check_mng_mode_generic;
242 mac->ops.led_on = e1000e_led_on_generic;
243 mac->ops.blink_led = e1000e_blink_led_generic;
246 mac->has_fwsm = true;
250 mac->arc_subsystem_valid = !!(er32(FWSM) &
255 mac->ops.set_lan_id = e1000_set_lan_id_single_port;
256 mac->ops.check_mng_mode = e1000_check_mng_mode_82574;
257 mac->ops.led_on = e1000_led_on_82574;
260 mac->ops.check_mng_mode = e1000e_check_mng_mode_generic;
261 mac->ops.led_on = e1000e_led_on_generic;
262 mac->ops.blink_led = e1000e_blink_led_generic;
265 mac->has_fwsm = true;
275 switch (hw->mac.type) {
351 switch (adapter->hw.mac.type) {
393 switch (hw->mac.type) {
654 switch (hw->mac.type) {
697 switch (hw->mac.type) {
968 switch (hw->mac.type) {
986 switch (hw->mac.type) {
1020 switch (hw->mac.type) {
1043 if (hw->mac.type == e1000_82571) {
1054 hw->mac.serdes_link_state = e1000_serdes_link_down;
1067 struct e1000_mac_info *mac = &hw->mac;
1070 u16 i, rar_count = mac->rar_entry_count;
1075 ret_val = mac->ops.id_led_init(hw);
1082 mac->ops.clear_vfta(hw);
1095 for (i = 0; i < mac->mta_reg_count; i++)
1099 ret_val = mac->ops.setup_link(hw);
1108 switch (mac->type) {
1160 switch (hw->mac.type) {
1176 switch (hw->mac.type) {
1192 switch (hw->mac.type) {
1205 switch (hw->mac.type) {
1218 if (hw->mac.type == e1000_82571) {
1227 if ((hw->mac.type == e1000_82571) || (hw->mac.type == e1000_82572)) {
1236 if (hw->mac.type <= e1000_82573) {
1243 switch (hw->mac.type) {
1279 switch (hw->mac.type) {
1338 ctrl = hw->mac.ledctl_mode2;
1344 if (((hw->mac.ledctl_mode2 >> (i * 8)) & 0xFF) ==
1399 switch (hw->mac.type) {
1458 switch (hw->mac.type) {
1497 struct e1000_mac_info *mac = &hw->mac;
1514 switch (mac->serdes_link_state) {
1520 mac->serdes_link_state =
1522 mac->serdes_has_link = false;
1525 mac->serdes_has_link = true;
1537 ew32(TXCW, mac->txcw);
1539 mac->serdes_link_state =
1541 mac->serdes_has_link = false;
1544 mac->serdes_has_link = true;
1555 mac->serdes_link_state =
1558 mac->serdes_has_link = true;
1561 mac->serdes_link_state =
1570 ew32(TXCW, (mac->txcw & ~E1000_TXCW_ANE));
1580 mac->serdes_link_state =
1582 mac->serdes_has_link = true;
1593 ew32(TXCW, mac->txcw);
1595 mac->serdes_link_state =
1597 mac->serdes_has_link = false;
1603 mac->serdes_has_link = false;
1604 mac->serdes_link_state = e1000_serdes_link_down;
1619 mac->serdes_has_link = false;
1620 mac->serdes_link_state =
1631 mac->serdes_link_state =
1633 mac->serdes_has_link = false;
1660 switch (hw->mac.type) {
1685 if (hw->mac.type != e1000_82571)
1700 if (hw->mac.type != e1000_82571)
1713 hw->mac.ops.rar_set(hw, hw->mac.addr,
1714 hw->mac.rar_entry_count - 1);
1775 if (hw->mac.type == e1000_82571) {
1800 struct e1000_mac_info *mac = &hw->mac;
1806 if (!(mac->ops.check_mng_mode(hw) || phy->ops.check_reset_block(hw)))
1857 /* .check_mng_mode: mac type dependent */
1865 /* .led_on: mac type dependent */
1947 .mac = e1000_82571,
1968 .mac = e1000_82572,
1986 .mac = e1000_82573,
2004 .mac = e1000_82574,
2029 .mac = e1000_82583,