Lines Matching defs:mac

211 	if (hw->mac.type < e1000_pch_lpt) {
222 if (hw->mac.type >= e1000_pch_lpt) {
268 if (hw->mac.type < e1000_pch_lpt) {
317 switch (hw->mac.type) {
350 if ((hw->mac.type == e1000_pchlan) &&
362 if (hw->mac.type >= e1000_pch_lpt) {
414 if ((hw->mac.type == e1000_pch2lan) &&
457 switch (hw->mac.type) {
608 if (hw->mac.type >= e1000_pch_spt) {
673 struct e1000_mac_info *mac = &hw->mac;
679 mac->mta_reg_count = 32;
681 mac->rar_entry_count = E1000_ICH_RAR_ENTRIES;
682 if (mac->type == e1000_ich8lan)
683 mac->rar_entry_count--;
685 mac->has_fwsm = true;
687 mac->arc_subsystem_valid = false;
689 mac->adaptive_ifs = true;
692 switch (mac->type) {
697 mac->ops.check_mng_mode = e1000_check_mng_mode_ich8lan;
699 mac->ops.id_led_init = e1000e_id_led_init_generic;
701 mac->ops.blink_led = e1000e_blink_led_generic;
703 mac->ops.setup_led = e1000e_setup_led_generic;
705 mac->ops.cleanup_led = e1000_cleanup_led_ich8lan;
707 mac->ops.led_on = e1000_led_on_ich8lan;
708 mac->ops.led_off = e1000_led_off_ich8lan;
711 mac->rar_entry_count = E1000_PCH2_RAR_ENTRIES;
712 mac->ops.rar_set = e1000_rar_set_pch2lan;
725 mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan;
727 mac->ops.id_led_init = e1000_id_led_init_pchlan;
729 mac->ops.setup_led = e1000_setup_led_pchlan;
731 mac->ops.cleanup_led = e1000_cleanup_led_pchlan;
733 mac->ops.led_on = e1000_led_on_pchlan;
734 mac->ops.led_off = e1000_led_off_pchlan;
740 if (mac->type >= e1000_pch_lpt) {
741 mac->rar_entry_count = E1000_PCH_LPT_RAR_ENTRIES;
742 mac->ops.rar_set = e1000_rar_set_pch_lpt;
743 mac->ops.setup_physical_interface =
745 mac->ops.rar_get_count = e1000_rar_get_count_pch_lpt;
749 if (mac->type == e1000_ich8lan)
1034 hw->mac.ops.get_link_up_info(hw, &speed, &duplex);
1111 if ((hw->mac.type < e1000_pch_lpt) ||
1255 if ((hw->mac.type < e1000_pch_lpt) ||
1400 struct e1000_mac_info *mac = &hw->mac;
1411 if (!mac->get_link_status)
1413 mac->get_link_status = false;
1423 if (hw->mac.type == e1000_pchlan) {
1433 if ((hw->mac.type >= e1000_pch2lan) && link) {
1444 } else if (hw->mac.type >= e1000_pch_spt &&
1461 if (hw->mac.type == e1000_pch2lan)
1467 if (hw->mac.type >= e1000_pch_lpt) {
1493 if (hw->mac.type >= e1000_pch_spt) {
1543 if (hw->mac.type >= e1000_pch_lpt) {
1561 if (hw->mac.type >= e1000_pch_lpt) {
1573 if (hw->mac.type >= e1000_pch_lpt) {
1576 if (hw->mac.type == e1000_pch_spt) {
1592 switch (hw->mac.type) {
1637 if (!mac->autoneg)
1644 mac->ops.config_collision_dist(hw);
1658 mac->get_link_status = true;
1675 switch (hw->mac.type) {
1704 ((adapter->hw.mac.type >= e1000_pch2lan) &&
1709 hw->mac.ops.blink_led = NULL;
1712 if ((adapter->hw.mac.type == e1000_ich8lan) &&
1717 if ((adapter->hw.mac.type == e1000_pch2lan) &&
1910 if (index < (u32)(hw->mac.rar_entry_count)) {
1959 num_entries = hw->mac.rar_entry_count;
2013 if (index < hw->mac.rar_entry_count) {
2128 switch (hw->mac.type) {
2168 if ((hw->mac.type < e1000_pch2lan) &&
2181 if (((hw->mac.type == e1000_pchlan) &&
2183 (hw->mac.type > e1000_pchlan)) {
2250 if (hw->mac.type != e1000_pchlan)
2378 if (hw->mac.type < e1000_pchlan)
2385 if (hw->mac.type == e1000_pchlan) {
2420 if ((d0_state || (hw->mac.type != e1000_pchlan)) &&
2463 if (hw->mac.type != e1000_pchlan)
2554 for (i = 0; i < (hw->mac.rar_entry_count); i++) {
2588 if (hw->mac.type < e1000_pch2lan)
2601 for (i = 0; i < hw->mac.rar_entry_count; i++) {
2753 if (hw->mac.type != e1000_pch2lan)
2788 if (hw->mac.type != e1000_pch2lan)
2835 if (hw->mac.type < e1000_pch2lan)
2895 switch (hw->mac.type) {
2911 if (hw->mac.type >= e1000_pchlan) {
2925 if (hw->mac.type == e1000_pch2lan) {
2958 if ((hw->mac.type == e1000_pch2lan) &&
3035 if (hw->mac.type == e1000_ich8lan)
3155 if (hw->mac.type == e1000_ich8lan)
3188 switch (hw->mac.type) {
3452 if (hw->mac.type >= e1000_pch_spt)
3471 if (hw->mac.type >= e1000_pch_spt)
3495 if (hw->mac.type >= e1000_pch_spt)
3522 if (hw->mac.type >= e1000_pch_spt)
3528 if (hw->mac.type >= e1000_pch_spt)
3599 if (hw->mac.type >= e1000_pch_spt)
3706 if (offset > ICH_FLASH_LINEAR_ADDR_MASK || hw->mac.type < e1000_pch_spt)
4129 switch (hw->mac.type) {
4155 if (hw->mac.type < e1000_pch_tgp) {
4228 if (hw->mac.type >= e1000_pch_spt) {
4248 if (hw->mac.type >= e1000_pch_spt)
4260 if (hw->mac.type >= e1000_pch_spt)
4318 if (hw->mac.type >= e1000_pch_spt) {
4334 if (hw->mac.type >= e1000_pch_spt)
4347 if (hw->mac.type >= e1000_pch_spt)
4539 if (hw->mac.type >= e1000_pch_spt)
4546 if (hw->mac.type >= e1000_pch_spt)
4619 struct e1000_mac_info *mac = &hw->mac;
4630 mac->ledctl_default = er32(LEDCTL);
4631 mac->ledctl_mode1 = mac->ledctl_default;
4632 mac->ledctl_mode2 = mac->ledctl_default;
4641 mac->ledctl_mode1 &= ~(E1000_PHY_LED0_MASK << shift);
4642 mac->ledctl_mode1 |= (ledctl_on << shift);
4647 mac->ledctl_mode1 &= ~(E1000_PHY_LED0_MASK << shift);
4648 mac->ledctl_mode1 |= (ledctl_off << shift);
4658 mac->ledctl_mode2 &= ~(E1000_PHY_LED0_MASK << shift);
4659 mac->ledctl_mode2 |= (ledctl_on << shift);
4664 mac->ledctl_mode2 &= ~(E1000_PHY_LED0_MASK << shift);
4665 mac->ledctl_mode2 |= (ledctl_off << shift);
4736 if (hw->mac.type == e1000_ich8lan) {
4743 if (hw->mac.type == e1000_pchlan) {
4767 if ((hw->mac.type == e1000_pch2lan) &&
4778 if (hw->mac.type == e1000_pch2lan) {
4802 if (hw->mac.type == e1000_pchlan)
4829 struct e1000_mac_info *mac = &hw->mac;
4837 ret_val = mac->ops.id_led_init(hw);
4843 e1000e_init_rx_addrs(hw, mac->rar_entry_count);
4847 for (i = 0; i < mac->mta_reg_count; i++)
4864 ret_val = mac->ops.setup_link(hw);
4883 if (mac->type == e1000_ich8lan)
4892 if (mac->type >= e1000_pch_tgp) {
4927 if (hw->mac.type >= e1000_pchlan)
4943 if (hw->mac.type == e1000_ich8lan)
4958 if (hw->mac.type == e1000_ich8lan) {
4973 if (hw->mac.type == e1000_ich8lan)
4978 if (hw->mac.type >= e1000_pch_lpt) {
5012 if (hw->mac.type == e1000_pchlan)
5026 ret_val = hw->mac.ops.setup_physical_interface(hw);
5065 /* Set the mac to wait the maximum time between each iteration
5174 if ((hw->mac.type == e1000_ich8lan) &&
5262 if (hw->mac.type != e1000_ich8lan) {
5300 if (hw->mac.type == e1000_ich8lan)
5336 if ((hw->mac.type != e1000_ich8lan) || (hw->phy.type == e1000_phy_ife))
5382 (hw->mac.type >= e1000_pch_spt)) {
5462 if (hw->mac.type == e1000_ich8lan)
5465 if (hw->mac.type >= e1000_pchlan) {
5469 if (hw->mac.type == e1000_pchlan)
5494 if (hw->mac.type < e1000_pch2lan)
5559 ew32(LEDCTL, hw->mac.ledctl_default);
5575 ew32(LEDCTL, hw->mac.ledctl_mode2);
5592 ew32(LEDCTL, hw->mac.ledctl_mode1);
5604 return e1e_wphy(hw, HV_LED_CONFIG, (u16)hw->mac.ledctl_mode1);
5615 return e1e_wphy(hw, HV_LED_CONFIG, (u16)hw->mac.ledctl_default);
5626 u16 data = (u16)hw->mac.ledctl_mode2;
5656 u16 data = (u16)hw->mac.ledctl_mode1;
5699 if (hw->mac.type >= e1000_ich10lan) {
5721 if (hw->mac.type <= e1000_ich9lan) {
5747 if (!(hw->mac.ops.check_mng_mode(hw) ||
5812 /* check_mng_mode dependent on mac type */
5814 /* cleanup_led dependent on mac type */
5819 /* led_on dependent on mac type */
5820 /* led_off dependent on mac type */
5826 /* id_led_init dependent on mac type */
5869 .mac = e1000_ich8lan,
5885 .mac = e1000_ich9lan,
5902 .mac = e1000_ich10lan,
5919 .mac = e1000_pchlan,
5938 .mac = e1000_pch2lan,
5959 .mac = e1000_pch_lpt,
5980 .mac = e1000_pch_spt,
6000 .mac = e1000_pch_cnp,
6020 .mac = e1000_pch_tgp,
6040 .mac = e1000_pch_adp,
6060 .mac = e1000_pch_mtp,