Lines Matching refs:mac_version

103 enum mac_version {  enum
692 u16 mac_version; member
852 return (tp->mac_version == RTL_GIGA_MAC_VER_31) ? 0xb8 : 0x10; in rtl8168_get_ocp_reg()
1290 if (tp->mac_version == RTL_GIGA_MAC_VER_34) { in rtl_link_chg_patch()
1312 } else if (tp->mac_version == RTL_GIGA_MAC_VER_35 || in rtl_link_chg_patch()
1313 tp->mac_version == RTL_GIGA_MAC_VER_36) { in rtl_link_chg_patch()
1423 switch (tp->mac_version) { in __rtl8169_set_wol()
1462 return rtl_chip_infos[tp->mac_version].fw_name; in rtl_lookup_firmware_name()
1571 if (tp->mac_version == RTL_GIGA_MAC_VER_02 || in rtl8169_set_speed_xmii()
1572 tp->mac_version == RTL_GIGA_MAC_VER_03) { in rtl8169_set_speed_xmii()
1629 !rtl_chip_infos[tp->mac_version].jumbo_tx_csum) in rtl8169_fix_features()
1895 int mac_version; in rtl8169_get_mac_version() member
1972 tp->mac_version = p->mac_version; in rtl8169_get_mac_version()
1974 if (tp->mac_version == RTL_GIGA_MAC_NONE) { in rtl8169_get_mac_version()
1977 tp->mac_version = default_version; in rtl8169_get_mac_version()
1983 dprintk("mac_version = 0x%02x\n", tp->mac_version); in rtl8169_print_mac_version()
3175 switch (tp->mac_version) { in rtl_hw_phy_config()
3268 assert(tp->mac_version > RTL_GIGA_MAC_VER_01); in rtl_phy_work()
3332 return (tp->mac_version == RTL_GIGA_MAC_VER_01) && in rtl_tbi_enabled()
3342 if (tp->mac_version <= RTL_GIGA_MAC_VER_06) { in rtl8169_init_phy()
3349 if (tp->mac_version <= RTL_GIGA_MAC_VER_06) in rtl8169_init_phy()
3352 if (tp->mac_version == RTL_GIGA_MAC_VER_02) { in rtl8169_init_phy()
3391 if (tp->mac_version == RTL_GIGA_MAC_VER_34) { in rtl_rar_set()
3467 switch (tp->mac_version) { in rtl_init_mdio_ops()
3512 switch (tp->mac_version) { in rtl_wol_suspend_quirk()
3567 switch (tp->mac_version) { in r8168_phy_power_up()
3594 switch (tp->mac_version) { in r8168_phy_power_down()
3626 if ((tp->mac_version == RTL_GIGA_MAC_VER_27 || in r8168_pll_power_down()
3627 tp->mac_version == RTL_GIGA_MAC_VER_28 || in r8168_pll_power_down()
3628 tp->mac_version == RTL_GIGA_MAC_VER_31) && in r8168_pll_power_down()
3633 if ((tp->mac_version == RTL_GIGA_MAC_VER_23 || in r8168_pll_power_down()
3634 tp->mac_version == RTL_GIGA_MAC_VER_24) && in r8168_pll_power_down()
3639 if (tp->mac_version == RTL_GIGA_MAC_VER_32 || in r8168_pll_power_down()
3640 tp->mac_version == RTL_GIGA_MAC_VER_33) in r8168_pll_power_down()
3648 switch (tp->mac_version) { in r8168_pll_power_down()
3665 if ((tp->mac_version == RTL_GIGA_MAC_VER_27 || in r8168_pll_power_up()
3666 tp->mac_version == RTL_GIGA_MAC_VER_28 || in r8168_pll_power_up()
3667 tp->mac_version == RTL_GIGA_MAC_VER_31) && in r8168_pll_power_up()
3672 switch (tp->mac_version) { in r8168_pll_power_up()
3708 switch (tp->mac_version) { in rtl_init_pll_power_ops()
3755 switch (tp->mac_version) { in rtl_init_rxcfg()
3897 switch (tp->mac_version) { in rtl_init_jumbo_ops()
4019 if (tp->mac_version == RTL_GIGA_MAC_VER_27 || in rtl8169_hw_reset()
4020 tp->mac_version == RTL_GIGA_MAC_VER_28 || in rtl8169_hw_reset()
4021 tp->mac_version == RTL_GIGA_MAC_VER_31) { in rtl8169_hw_reset()
4024 } else if (tp->mac_version == RTL_GIGA_MAC_VER_34 || in rtl8169_hw_reset()
4025 tp->mac_version == RTL_GIGA_MAC_VER_35 || in rtl8169_hw_reset()
4026 tp->mac_version == RTL_GIGA_MAC_VER_36) { in rtl8169_hw_reset()
4085 static void rtl8169_set_magic_reg(void __iomem *ioaddr, unsigned mac_version) in rtl8169_set_magic_reg() argument
4088 u32 mac_version; in rtl8169_set_magic_reg() member
4103 if ((p->mac_version == mac_version) && (p->clk == clk)) { in rtl8169_set_magic_reg()
4147 if (tp->mac_version > RTL_GIGA_MAC_VER_06) { in rtl_set_rx_mode()
4154 if (tp->mac_version == RTL_GIGA_MAC_VER_35) in rtl_set_rx_mode()
4169 if (tp->mac_version == RTL_GIGA_MAC_VER_05) { in rtl_hw_start_8169()
4175 if (tp->mac_version == RTL_GIGA_MAC_VER_01 || in rtl_hw_start_8169()
4176 tp->mac_version == RTL_GIGA_MAC_VER_02 || in rtl_hw_start_8169()
4177 tp->mac_version == RTL_GIGA_MAC_VER_03 || in rtl_hw_start_8169()
4178 tp->mac_version == RTL_GIGA_MAC_VER_04) in rtl_hw_start_8169()
4187 if (tp->mac_version == RTL_GIGA_MAC_VER_01 || in rtl_hw_start_8169()
4188 tp->mac_version == RTL_GIGA_MAC_VER_02 || in rtl_hw_start_8169()
4189 tp->mac_version == RTL_GIGA_MAC_VER_03 || in rtl_hw_start_8169()
4190 tp->mac_version == RTL_GIGA_MAC_VER_04) in rtl_hw_start_8169()
4195 if (tp->mac_version == RTL_GIGA_MAC_VER_02 || in rtl_hw_start_8169()
4196 tp->mac_version == RTL_GIGA_MAC_VER_03) { in rtl_hw_start_8169()
4204 rtl8169_set_magic_reg(ioaddr, tp->mac_version); in rtl_hw_start_8169()
4214 if (tp->mac_version != RTL_GIGA_MAC_VER_01 && in rtl_hw_start_8169()
4215 tp->mac_version != RTL_GIGA_MAC_VER_02 && in rtl_hw_start_8169()
4216 tp->mac_version != RTL_GIGA_MAC_VER_03 && in rtl_hw_start_8169()
4217 tp->mac_version != RTL_GIGA_MAC_VER_04) { in rtl_hw_start_8169()
4611 if (tp->mac_version == RTL_GIGA_MAC_VER_11) { in rtl_hw_start_8168()
4625 switch (tp->mac_version) { in rtl_hw_start_8168()
4692 dev->name, tp->mac_version); in rtl_hw_start_8168()
4799 if (tp->mac_version >= RTL_GIGA_MAC_VER_30) in rtl_hw_start_8101()
4802 if (tp->mac_version == RTL_GIGA_MAC_VER_13 || in rtl_hw_start_8101()
4803 tp->mac_version == RTL_GIGA_MAC_VER_16) { in rtl_hw_start_8101()
4814 switch (tp->mac_version) { in rtl_hw_start_8101()
4863 new_mtu > rtl_chip_infos[tp->mac_version].jumbo_max) in rtl8169_change_mtu()
5139 return skb->len < ETH_ZLEN && tp->mac_version == RTL_GIGA_MAC_VER_34; in rtl_test_hw_pad_bug()
5537 switch (tp->mac_version) { in rtl_slow_event_work()
5628 if (tp->mac_version > RTL_GIGA_MAC_VER_06) in rtl8169_rx_missed()
5950 switch (tp->mac_version) { in rtl_wol_shutdown_quirk()
5998 if (tp->mac_version == RTL_GIGA_MAC_VER_27 || in rtl_remove_one()
5999 tp->mac_version == RTL_GIGA_MAC_VER_28 || in rtl_remove_one()
6000 tp->mac_version == RTL_GIGA_MAC_VER_31) { in rtl_remove_one()
6094 if (tp->mac_version <= RTL_GIGA_MAC_VER_06) in rtl_try_msi()
6218 if (tp->mac_version == RTL_GIGA_MAC_VER_05) in rtl_init_one()
6227 chipset = tp->mac_version; in rtl_init_one()
6278 if (tp->mac_version == RTL_GIGA_MAC_VER_05) in rtl_init_one()
6288 tp->opts1_mask = (tp->mac_version != RTL_GIGA_MAC_VER_01) ? in rtl_init_one()
6313 if (tp->mac_version == RTL_GIGA_MAC_VER_27 || in rtl_init_one()
6314 tp->mac_version == RTL_GIGA_MAC_VER_28 || in rtl_init_one()
6315 tp->mac_version == RTL_GIGA_MAC_VER_31) { in rtl_init_one()