Lines Matching refs:mb

992 	struct rtl8365mb *mb;  in rtl8365mb_phylink_mac_link_down()  local
995 mb = smi->chip_data; in rtl8365mb_phylink_mac_link_down()
996 p = &mb->ports[port]; in rtl8365mb_phylink_mac_link_down()
1020 struct rtl8365mb *mb; in rtl8365mb_phylink_mac_link_up() local
1023 mb = smi->chip_data; in rtl8365mb_phylink_mac_link_up()
1024 p = &mb->ports[port]; in rtl8365mb_phylink_mac_link_up()
1074 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_port_set_learning() local
1082 enable ? mb->learn_limit_max : 0); in rtl8365mb_port_set_learning()
1148 struct rtl8365mb *mb; in rtl8365mb_get_ethtool_stats() local
1152 mb = smi->chip_data; in rtl8365mb_get_ethtool_stats()
1154 mutex_lock(&mb->mib_lock); in rtl8365mb_get_ethtool_stats()
1167 mutex_unlock(&mb->mib_lock); in rtl8365mb_get_ethtool_stats()
1197 struct rtl8365mb *mb; in rtl8365mb_get_phy_stats() local
1199 mb = smi->chip_data; in rtl8365mb_get_phy_stats()
1202 mutex_lock(&mb->mib_lock); in rtl8365mb_get_phy_stats()
1205 mutex_unlock(&mb->mib_lock); in rtl8365mb_get_phy_stats()
1232 struct rtl8365mb *mb; in rtl8365mb_get_mac_stats() local
1236 mb = smi->chip_data; in rtl8365mb_get_mac_stats()
1238 mutex_lock(&mb->mib_lock); in rtl8365mb_get_mac_stats()
1251 mutex_unlock(&mb->mib_lock); in rtl8365mb_get_mac_stats()
1298 struct rtl8365mb *mb; in rtl8365mb_get_ctrl_stats() local
1300 mb = smi->chip_data; in rtl8365mb_get_ctrl_stats()
1303 mutex_lock(&mb->mib_lock); in rtl8365mb_get_ctrl_stats()
1306 mutex_unlock(&mb->mib_lock); in rtl8365mb_get_ctrl_stats()
1328 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_stats_update() local
1333 stats = &mb->ports[port].stats; in rtl8365mb_stats_update()
1335 mutex_lock(&mb->mib_lock); in rtl8365mb_stats_update()
1348 mutex_unlock(&mb->mib_lock); in rtl8365mb_stats_update()
1354 spin_lock(&mb->ports[port].stats_lock); in rtl8365mb_stats_update()
1385 spin_unlock(&mb->ports[port].stats_lock); in rtl8365mb_stats_update()
1405 struct rtl8365mb *mb; in rtl8365mb_get_stats64() local
1407 mb = smi->chip_data; in rtl8365mb_get_stats64()
1408 p = &mb->ports[port]; in rtl8365mb_get_stats64()
1417 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_stats_setup() local
1423 mutex_init(&mb->mib_lock); in rtl8365mb_stats_setup()
1426 struct rtl8365mb_port *p = &mb->ports[i]; in rtl8365mb_stats_setup()
1443 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_stats_teardown() local
1447 struct rtl8365mb_port *p = &mb->ports[i]; in rtl8365mb_stats_teardown()
1472 struct rtl8365mb *mb; in rtl8365mb_irq() local
1477 mb = smi->chip_data; in rtl8365mb_irq()
1503 line_changes = (linkup_ind | linkdown_ind) & mb->port_mask; in rtl8365mb_irq()
1573 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_irq_setup() local
1661 mb->irq = irq; in rtl8365mb_irq_setup()
1672 free_irq(mb->irq, smi); in rtl8365mb_irq_setup()
1673 mb->irq = 0; in rtl8365mb_irq_setup()
1692 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_irq_teardown() local
1696 if (mb->irq) { in rtl8365mb_irq_teardown()
1697 free_irq(mb->irq, smi); in rtl8365mb_irq_teardown()
1698 mb->irq = 0; in rtl8365mb_irq_teardown()
1714 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_cpu_config() local
1715 struct rtl8365mb_cpu *cpu = &mb->cpu; in rtl8365mb_cpu_config()
1743 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_switch_init() local
1748 if (mb->jam_table) { in rtl8365mb_switch_init()
1749 for (i = 0; i < mb->jam_size; i++) { in rtl8365mb_switch_init()
1750 ret = regmap_write(smi->map, mb->jam_table[i].reg, in rtl8365mb_switch_init()
1751 mb->jam_table[i].val); in rtl8365mb_switch_init()
1788 struct rtl8365mb *mb; in rtl8365mb_setup() local
1792 mb = smi->chip_data; in rtl8365mb_setup()
1821 struct rtl8365mb_port *p = &mb->ports[i]; in rtl8365mb_setup()
1909 struct rtl8365mb *mb = smi->chip_data; in rtl8365mb_detect() local
1930 mb->smi = smi; in rtl8365mb_detect()
1931 mb->chip_id = chip_id; in rtl8365mb_detect()
1932 mb->chip_ver = chip_ver; in rtl8365mb_detect()
1933 mb->port_mask = BIT(smi->num_ports) - 1; in rtl8365mb_detect()
1934 mb->learn_limit_max = RTL8365MB_LEARN_LIMIT_MAX_8365MB_VC; in rtl8365mb_detect()
1935 mb->jam_table = rtl8365mb_init_jam_8365mb_vc; in rtl8365mb_detect()
1936 mb->jam_size = ARRAY_SIZE(rtl8365mb_init_jam_8365mb_vc); in rtl8365mb_detect()
1938 mb->cpu.enable = 1; in rtl8365mb_detect()
1939 mb->cpu.mask = BIT(smi->cpu_port); in rtl8365mb_detect()
1940 mb->cpu.trap_port = smi->cpu_port; in rtl8365mb_detect()
1941 mb->cpu.insert = RTL8365MB_CPU_INSERT_TO_ALL; in rtl8365mb_detect()
1942 mb->cpu.position = RTL8365MB_CPU_POS_AFTER_SA; in rtl8365mb_detect()
1943 mb->cpu.rx_length = RTL8365MB_CPU_RXLEN_64BYTES; in rtl8365mb_detect()
1944 mb->cpu.format = RTL8365MB_CPU_FORMAT_8BYTES; in rtl8365mb_detect()