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