Lines Matching refs:SWITCH_PORT_NUM
996 #define SWITCH_PORT_NUM 2 macro
997 #define TOTAL_PORT_NUM (SWITCH_PORT_NUM + 1)
998 #define HOST_MASK (1 << SWITCH_PORT_NUM)
1003 #define HOST_PORT SWITCH_PORT_NUM
1198 struct ksz_port_info port_info[SWITCH_PORT_NUM];
3872 for (port = 0; port < SWITCH_PORT_NUM; port++) { in sw_enable()
3884 port_set_stp_state(hw, SWITCH_PORT_NUM, STP_STATE_SIMPLE); in sw_enable()
3886 port_set_stp_state(hw, SWITCH_PORT_NUM, STP_STATE_FORWARDING); in sw_enable()
3908 for (port = 0; port < SWITCH_PORT_NUM; port++) in sw_setup()
4567 for (port = 0; port < SWITCH_PORT_NUM; port++) { in netdev_tx_timeout()
4950 port_set_stp_state(hw, SWITCH_PORT_NUM, STP_STATE_SIMPLE); in bridge_change()
4953 for (port = 0; port < SWITCH_PORT_NUM; port++) { in bridge_change()
6147 n = SWITCH_PORT_NUM; in netdev_get_ethtool_stats()
6153 if (n == SWITCH_PORT_NUM) in netdev_get_ethtool_stats()
6159 if (n < SWITCH_PORT_NUM) in netdev_get_ethtool_stats()
6162 if (1 == port->mib_port_cnt && n < SWITCH_PORT_NUM) { in netdev_get_ethtool_stats()
6463 struct net_device *netdev[SWITCH_PORT_NUM];
6620 hw->dev_count = SWITCH_PORT_NUM; in pcidev_init()
6621 hw->addr_list_size = SWITCH_PORT_NUM - 1; in pcidev_init()
6626 port_count = SWITCH_PORT_NUM; in pcidev_init()
6627 mib_port_count = SWITCH_PORT_NUM; in pcidev_init()