Lines Matching refs:port

42     register PORT_T*  port = this->owner.port;  in computeAutoPCost()  local
44 if (port->usedSpeed < 10L) { /* < 10Mb/s */ in computeAutoPCost()
46 } else if (port->usedSpeed <= 10L) { /* 10 Mb/s */ in computeAutoPCost()
48 } else if (port->usedSpeed <= 100L) { /* 100 Mb/s */ in computeAutoPCost()
50 } else if (port->usedSpeed <= 1000L) { /* 1 Gb/s */ in computeAutoPCost()
52 } else if (port->usedSpeed <= 10000L) { /* 10 Gb/s */ in computeAutoPCost()
54 } else if (port->usedSpeed <= 100000L) { /* 100 Gb/s */ in computeAutoPCost()
56 } else if (port->usedSpeed <= 1000000L) { /* 1 GTb/s */ in computeAutoPCost()
58 } else if (port->usedSpeed <= 10000000L) { /* 10 Tb/s */ in computeAutoPCost()
64 if (port->pcost->debug) { in computeAutoPCost()
65 stp_trace ("usedSpeed=%lu lret=%ld", port->usedSpeed, lret); in computeAutoPCost()
81 register PORT_T* port = this->owner.port; in STP_pcost_enter_state() local
87 port->operSpeed = STP_OUT_get_port_oper_speed (port->port_index); in STP_pcost_enter_state()
89 if (port->pcost->debug) { in STP_pcost_enter_state()
90 stp_trace ("AUTO:operSpeed=%lu", port->operSpeed); in STP_pcost_enter_state()
93 port->usedSpeed = port->operSpeed; in STP_pcost_enter_state()
94 port->operPCost = computeAutoPCost (this); in STP_pcost_enter_state()
97 port->operPCost = port->adminPCost; in STP_pcost_enter_state()
98 port->usedSpeed = (unsigned long)-1; in STP_pcost_enter_state()
109 register PORT_T* port = this->owner.port; in STP_pcost_check_conditions() local
119 if (ADMIN_PORT_PATH_COST_AUTO == port->adminPCost && in STP_pcost_check_conditions()
120 port->operSpeed != port->usedSpeed) { in STP_pcost_check_conditions()
124 if (ADMIN_PORT_PATH_COST_AUTO != port->adminPCost && in STP_pcost_check_conditions()
125 port->operPCost != port->adminPCost) { in STP_pcost_check_conditions()