Lines Matching refs:PortNumber
364 pAC->Rlmt.Port[i].PortNumber = i; in SkRlmtInit()
583 SK_U32 PortNumber, /* Sending port */ in SkRlmtBuildPacket() argument
629 pPacket->Random[i] = pAC->Rlmt.Port[PortNumber].Random[i]; in SkRlmtBuildPacket()
641 pMb->PortIdx = PortNumber; in SkRlmtBuildPacket()
646 pAC->Rlmt.Port[PortNumber].TxHelloCts++; in SkRlmtBuildPacket()
670 SK_U32 PortNumber) /* Sending port */ in SkRlmtBuildSpanningTreePacket() argument
683 pAC->Addr.Port[PortNumber].CurrentMacAddress.a[i]; in SkRlmtBuildSpanningTreePacket()
709 pAC->Addr.Net[pAC->Rlmt.Port[PortNumber].Net->NetNumber]. in SkRlmtBuildSpanningTreePacket()
725 pMb->PortIdx = PortNumber; in SkRlmtBuildSpanningTreePacket()
729 pAC->Rlmt.Port[PortNumber].TxSpHelloReqCts++; in SkRlmtBuildSpanningTreePacket()
753 SK_U32 PortNumber) /* Sending port */ in SkRlmtSend() argument
759 pRPort = &pAC->Rlmt.Port[PortNumber]; in SkRlmtSend()
760 if (pAC->Rlmt.Port[PortNumber].Net->RlmtMode & SK_RLMT_CHECK_LOC_LINK) { in SkRlmtSend()
763 if ((Para.pParaPtr = SkRlmtBuildPacket(pAC, IoC, PortNumber, in SkRlmtSend()
764 SK_PACKET_ALIVE, &pAC->Addr.Port[PortNumber].CurrentMacAddress, in SkRlmtSend()
775 if ((Para.pParaPtr = SkRlmtBuildPacket(pAC, IoC, PortNumber, in SkRlmtSend()
776 SK_PACKET_ALIVE, &pAC->Addr.Port[PortNumber].CurrentMacAddress, in SkRlmtSend()
784 if ((pAC->Rlmt.Port[PortNumber].Net->RlmtMode & SK_RLMT_CHECK_SEG) && in SkRlmtSend()
785 (pAC->Rlmt.Port[PortNumber].Net->CheckingState & SK_RLMT_RCS_SEND_SEG)) { in SkRlmtSend()
791 SkRlmtBuildSpanningTreePacket(pAC, IoC, PortNumber)) != NULL) { in SkRlmtSend()
792 pAC->Rlmt.Port[PortNumber].Net->CheckingState &= ~SK_RLMT_RCS_SEND_SEG; in SkRlmtSend()
797 ("SkRlmtSend: BPDU Packet on Port %u.\n", PortNumber)) in SkRlmtSend()
821 SK_U32 PortNumber) /* Port to check */ in SkRlmtPortReceives() argument
826 pRPort = &pAC->Rlmt.Port[PortNumber]; in SkRlmtPortReceives()
840 Para.Para32[0] = PortNumber; in SkRlmtPortReceives()
885 SK_U32 PortNumber; in SkRlmtPacketReceive() local
892 PortNumber = pMb->PortIdx; in SkRlmtPacketReceive()
893 pAPort = &pAC->Addr.Port[PortNumber]; in SkRlmtPacketReceive()
894 pRPort = &pAC->Rlmt.Port[PortNumber]; in SkRlmtPacketReceive()
897 ("SkRlmtPacketReceive: PortNumber == %d.\n", PortNumber)) in SkRlmtPacketReceive()
907 SkRlmtPortReceives(pAC, IoC, PortNumber); in SkRlmtPacketReceive()
1018 if (!(pAC->Addr.Port[PortNumber].PromMode & SK_PROM_MODE_LLC) || in SkRlmtPacketReceive()
1034 Para.Para32[0] = PortNumber; in SkRlmtPacketReceive()
1055 pAC->Addr.Port[PortNumber].CurrentMacAddress.a[i]; in SkRlmtPacketReceive()
1072 Para.Para32[0] = PortNumber; in SkRlmtPacketReceive()
1080 if ((Para.pParaPtr = SkRlmtBuildPacket(pAC, IoC, PortNumber, in SkRlmtPacketReceive()
1081 SK_PACKET_ALIVE, &pAC->Addr.Port[PortNumber].CurrentMacAddress, in SkRlmtPacketReceive()
1114 Port[PortNumber].Net->NetNumber].CurrentMacAddress.a[0])) { in SkRlmtPacketReceive()
1120 (pAC->Rlmt.Port[PortNumber].Net->LinksUp > 1) && in SkRlmtPacketReceive()
1121 (pAC->Rlmt.Port[PortNumber].Net->RlmtMode & SK_RLMT_CHECK_SEG) in SkRlmtPacketReceive()
1122 != 0 && (pAC->Rlmt.Port[PortNumber].Net->CheckingState & in SkRlmtPacketReceive()
1124 pAC->Rlmt.Port[PortNumber].Net->CheckingState |= in SkRlmtPacketReceive()
1136 PortNumber, in SkRlmtPacketReceive()
1144 if ((pAC->Rlmt.Port[PortNumber].Net->CheckingState & in SkRlmtPacketReceive()
1146 SkRlmtCheckSeg(pAC, IoC, pAC->Rlmt.Port[PortNumber].Net->NetNumber); in SkRlmtPacketReceive()
1221 SK_U32 PortNumber) /* Port to check */ in SkRlmtCheckPort() argument
1228 pRPort = &pAC->Rlmt.Port[PortNumber]; in SkRlmtCheckPort()
1233 PortNumber, pRPort->PacketsPerTimeSlot)) in SkRlmtCheckPort()
1241 if (pRPort->PortNoRx && (pAC->Rlmt.Port[PortNumber].Net->LinksUp > 1) && in SkRlmtCheckPort()
1242 (pAC->Rlmt.Port[PortNumber].Net->RlmtMode & SK_RLMT_CHECK_SEG) && in SkRlmtCheckPort()
1243 !(pAC->Rlmt.Port[PortNumber].Net->CheckingState & SK_RLMT_RCS_SEG)) { in SkRlmtCheckPort()
1244 pAC->Rlmt.Port[PortNumber].Net->CheckingState |= in SkRlmtCheckPort()
1253 NewTimeout = TO_SHORTEN(pAC->Rlmt.Port[PortNumber].Net->TimeoutValue); in SkRlmtCheckPort()
1259 Para.Para32[0] = PortNumber; in SkRlmtCheckPort()
1278 SkRlmtBuildPacket(pAC, IoC, PortNumber, SK_PACKET_CHECK_TX, in SkRlmtCheckPort()
1279 &pAC->Addr.Port[PortNumber].CurrentMacAddress, in SkRlmtCheckPort()
1294 PortNumber, in SkRlmtCheckPort()
1298 SkRlmtPortReceives(pAC, IoC, PortNumber); in SkRlmtCheckPort()
1644 Port[pAC->Rlmt.Net[NetIdx].ActivePort]->PortNumber; in SkRlmtCheckSwitch()
1672 Para.Para32[0] = pAC->Rlmt.Net[NetIdx].Port[i]->PortNumber; in SkRlmtCheckSwitch()
1677 Para.Para32[0] = pAC->Rlmt.Net[NetIdx].Port[i]->PortNumber; in SkRlmtCheckSwitch()
1683 pAC->Rlmt.Net[NetIdx].Port[i]->PortNumber, in SkRlmtCheckSwitch()
1792 Port[Para.Para32[0]]->PortNumber; in SkRlmtCheckSwitch()
1794 Port[Para.Para32[1]]->PortNumber; in SkRlmtCheckSwitch()
1805 pAC->Rlmt.Net[NetIdx].Port[Para.Para32[0]]->PortNumber; in SkRlmtCheckSwitch()
1808 Port[pAC->Rlmt.Net[NetIdx].ActivePort]->PortNumber; in SkRlmtCheckSwitch()
1926 SK_U32 PortNumber) /* Port number */ in SkRlmtPortStart() argument
1930 pAC->Rlmt.Port[PortNumber].PortState = SK_RLMT_PS_LINK_DOWN; in SkRlmtPortStart()
1931 pAC->Rlmt.Port[PortNumber].PortStarted = SK_TRUE; in SkRlmtPortStart()
1932 pAC->Rlmt.Port[PortNumber].LinkDown = SK_TRUE; in SkRlmtPortStart()
1933 pAC->Rlmt.Port[PortNumber].PortDown = SK_TRUE; in SkRlmtPortStart()
1934 pAC->Rlmt.Port[PortNumber].CheckingState = 0; in SkRlmtPortStart()
1935 pAC->Rlmt.Port[PortNumber].RootIdSet = SK_FALSE; in SkRlmtPortStart()
1936 Para.Para32[0] = PortNumber; in SkRlmtPortStart()
1985 pAC->Rlmt.Port[Para.Para32[0]].Net->Port[i]->PortNumber); in SkRlmtEvtPortStartTim()
2057 SkRlmtPortStart(pAC, IoC, pRPort->Net->Port[i]->PortNumber); in SkRlmtEvtLinkUp()
2237 pRPort->Net->Port[pRPort->Net->ActivePort]->PortNumber) { in SkRlmtEvtPortDownX()
2374 SK_U32 PortNumber; in SkRlmtEvtStart() local
2420 PortNumber = pAC->Rlmt.Net[Para.Para32[0]].Port[PortIdx]->PortNumber; in SkRlmtEvtStart()
2428 SkRlmtPortStart(pAC, IoC, PortNumber); in SkRlmtEvtStart()
2431 Para2.Para32[0] = PortNumber; in SkRlmtEvtStart()
2433 SkTimerStart(pAC, IoC, &pAC->Rlmt.Port[PortNumber].UpTimer, in SkRlmtEvtStart()
2463 SK_U32 PortNumber; in SkRlmtEvtStop() local
2512 PortNumber = pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber; in SkRlmtEvtStop()
2513 if (pAC->Rlmt.Port[PortNumber].PortState != SK_RLMT_PS_INIT) { in SkRlmtEvtStop()
2514 SkTimerStop(pAC, IoC, &pAC->Rlmt.Port[PortNumber].UpTimer); in SkRlmtEvtStop()
2515 SkTimerStop(pAC, IoC, &pAC->Rlmt.Port[PortNumber].DownRxTimer); in SkRlmtEvtStop()
2516 SkTimerStop(pAC, IoC, &pAC->Rlmt.Port[PortNumber].DownTxTimer); in SkRlmtEvtStop()
2518 pAC->Rlmt.Port[PortNumber].PortState = SK_RLMT_PS_INIT; in SkRlmtEvtStop()
2519 pAC->Rlmt.Port[PortNumber].RootIdSet = SK_FALSE; in SkRlmtEvtStop()
2520 pAC->Rlmt.Port[PortNumber].PortStarted = SK_FALSE; in SkRlmtEvtStop()
2521 Para2.Para32[0] = PortNumber; in SkRlmtEvtStop()
2556 SK_U32 PortNumber; in SkRlmtEvtTim() local
2585 PortNumber = pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber; in SkRlmtEvtTim()
2586 pRPort = &pAC->Rlmt.Port[PortNumber]; in SkRlmtEvtTim()
2588 Timeout = SkRlmtCheckPort(pAC, IoC, PortNumber); in SkRlmtEvtTim()
2618 pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber); in SkRlmtEvtTim()
2687 XM_INADDR(IoC, pAC->Rlmt.Net[Para.Para32[0]].Port[j]->PortNumber, in SkRlmtEvtSegTim()
2691 k, pAC->Rlmt.Net[Para.Para32[0]].Port[j]->PortNumber, in SkRlmtEvtSegTim()
2810 &pAC->Rlmt.Port[pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber]; in SkRlmtEvtStatsClear()
2984 Net[1].ActivePort]->PortNumber, NULL, SK_ADDR_CLEAR_LOGICAL); in SkRlmtEvtSetNets()
3031 Net[1].ActivePort]->PortNumber, NULL, SK_ADDR_SET_LOGICAL); in SkRlmtEvtSetNets()
3122 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber, in SkRlmtEvtModeChange()
3127 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber, in SkRlmtEvtModeChange()
3134 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber, in SkRlmtEvtModeChange()
3148 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber); in SkRlmtEvtModeChange()