Lines Matching refs:Para32
397 Para.Para32[0] = SK_RLMT_MODE_CLS; in SkRlmtInit()
398 Para.Para32[1] = 0; in SkRlmtInit()
406 Para.Para32[0] = 1; in SkRlmtInit()
407 Para.Para32[1] = -1; in SkRlmtInit()
840 Para.Para32[0] = PortNumber; in SkRlmtPortReceives()
841 Para.Para32[1] = (SK_U32)-1; in SkRlmtPortReceives()
1034 Para.Para32[0] = PortNumber; in SkRlmtPacketReceive()
1035 Para.Para32[1] = (SK_U32)-1; in SkRlmtPacketReceive()
1072 Para.Para32[0] = PortNumber; in SkRlmtPacketReceive()
1073 Para.Para32[1] = (SK_U32)-1; in SkRlmtPacketReceive()
1259 Para.Para32[0] = PortNumber; in SkRlmtCheckPort()
1266 Para.Para32[1] = (SK_U32)-1; in SkRlmtCheckPort()
1639 Para.Para32[0] = SK_RLMT_NET_DOWN_TEMP; in SkRlmtCheckSwitch()
1640 Para.Para32[1] = NetIdx; in SkRlmtCheckSwitch()
1643 Para.Para32[0] = pAC->Rlmt.Net[NetIdx]. in SkRlmtCheckSwitch()
1645 Para.Para32[1] = NetIdx; in SkRlmtCheckSwitch()
1672 Para.Para32[0] = pAC->Rlmt.Net[NetIdx].Port[i]->PortNumber; in SkRlmtCheckSwitch()
1673 Para.Para32[1] = NetIdx; in SkRlmtCheckSwitch()
1677 Para.Para32[0] = pAC->Rlmt.Net[NetIdx].Port[i]->PortNumber; in SkRlmtCheckSwitch()
1678 Para.Para32[1] = NetIdx; in SkRlmtCheckSwitch()
1700 Para.Para32[0] = Active; in SkRlmtCheckSwitch()
1730 pAC, IoC, Active, PrefPort, &Para.Para32[1]); in SkRlmtCheckSwitch()
1735 pAC, IoC, Active, PrefPort, &Para.Para32[1]); in SkRlmtCheckSwitch()
1744 pAC, IoC, Active, PrefPort, &Para.Para32[1]); in SkRlmtCheckSwitch()
1749 pAC, IoC, Active, PrefPort, &Para.Para32[1]); in SkRlmtCheckSwitch()
1755 pAC, IoC, Active, PrefPort, &Para.Para32[1], AUTONEG_SUCCESS); in SkRlmtCheckSwitch()
1760 pAC, IoC, Active, PrefPort, &Para.Para32[1], AUTONEG_FAILED); in SkRlmtCheckSwitch()
1765 pAC, IoC, Active, PrefPort, &Para.Para32[1], AUTONEG_SUCCESS); in SkRlmtCheckSwitch()
1770 pAC, IoC, Active, PrefPort, &Para.Para32[1], AUTONEG_FAILED); in SkRlmtCheckSwitch()
1776 Active, PrefPort, &Para.Para32[1], AUTONEG_SUCCESS); in SkRlmtCheckSwitch()
1781 Active, PrefPort, &Para.Para32[1], AUTONEG_FAILED); in SkRlmtCheckSwitch()
1787 if (Para.Para32[1] != Active) { in SkRlmtCheckSwitch()
1789 ("Active: %d, Para1: %d.\n", Active, Para.Para32[1])) in SkRlmtCheckSwitch()
1790 pAC->Rlmt.Net[NetIdx].ActivePort = Para.Para32[1]; in SkRlmtCheckSwitch()
1791 Para.Para32[0] = pAC->Rlmt.Net[NetIdx]. in SkRlmtCheckSwitch()
1792 Port[Para.Para32[0]]->PortNumber; in SkRlmtCheckSwitch()
1793 Para.Para32[1] = pAC->Rlmt.Net[NetIdx]. in SkRlmtCheckSwitch()
1794 Port[Para.Para32[1]]->PortNumber; in SkRlmtCheckSwitch()
1795 SK_HWAC_LINK_LED(pAC, IoC, Para.Para32[1], SK_LED_ACTIVE); in SkRlmtCheckSwitch()
1800 SK_HWAC_LINK_LED(pAC, IoC, Para.Para32[0], SK_LED_STANDBY); in SkRlmtCheckSwitch()
1803 Para.Para32[1] = NetIdx; in SkRlmtCheckSwitch()
1804 Para.Para32[0] = in SkRlmtCheckSwitch()
1805 pAC->Rlmt.Net[NetIdx].Port[Para.Para32[0]]->PortNumber; in SkRlmtCheckSwitch()
1807 Para.Para32[0] = pAC->Rlmt.Net[NetIdx]. in SkRlmtCheckSwitch()
1811 (Para.pParaPtr = SkRlmtBuildPacket(pAC, IoC, Para.Para32[0], in SkRlmtCheckSwitch()
1886 Para.Para32[0] = NetIdx; in SkRlmtCheckSeg()
1887 Para.Para32[1] = (SK_U32)-1; in SkRlmtCheckSeg()
1893 Para.Para32[0] = NetIdx; in SkRlmtCheckSeg()
1894 Para.Para32[1] = (SK_U32)-1; in SkRlmtCheckSeg()
1936 Para.Para32[0] = PortNumber; in SkRlmtPortStart()
1937 Para.Para32[1] = (SK_U32)-1; in SkRlmtPortStart()
1964 ("SK_RLMT_PORTSTART_TIMEOUT Port %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtPortStartTim()
1966 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtPortStartTim()
1980 if (pAC->Rlmt.Port[Para.Para32[0]].LinkDown) { in SkRlmtEvtPortStartTim()
1982 for (i = 0; i < pAC->Rlmt.Port[Para.Para32[0]].Net->NumPorts; i++) { in SkRlmtEvtPortStartTim()
1983 if (!pAC->Rlmt.Port[Para.Para32[0]].Net->Port[i]->PortStarted) { in SkRlmtEvtPortStartTim()
1985 pAC->Rlmt.Port[Para.Para32[0]].Net->Port[i]->PortNumber); in SkRlmtEvtPortStartTim()
2019 ("SK_RLMT_LINK_UP Port %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtLinkUp()
2021 pRPort = &pAC->Rlmt.Port[Para.Para32[0]]; in SkRlmtEvtLinkUp()
2049 SK_HWAC_LINK_LED(pAC, IoC, Para.Para32[0], SK_LED_ACTIVE); in SkRlmtEvtLinkUp()
2052 SK_HWAC_LINK_LED(pAC, IoC, Para.Para32[0], SK_LED_STANDBY); in SkRlmtEvtLinkUp()
2073 Para2.Para32[0] = pRPort->Net->NetNumber; in SkRlmtEvtLinkUp()
2074 Para2.Para32[1] = (SK_U32)-1; in SkRlmtEvtLinkUp()
2080 Para2.Para32[1] = (SK_U32)-1; in SkRlmtEvtLinkUp()
2088 SkRlmtBuildPacket(pAC, IoC, Para.Para32[0], SK_PACKET_ANNOUNCE, in SkRlmtEvtLinkUp()
2089 &pAC->Addr.Port[Para.Para32[0]].CurrentMacAddress, &SkRlmtMcAddr) in SkRlmtEvtLinkUp()
2097 SkRlmtBuildSpanningTreePacket(pAC, IoC, Para.Para32[0])) != NULL) { in SkRlmtEvtLinkUp()
2098 pAC->Rlmt.Port[Para.Para32[0]].RootIdSet = SK_FALSE; in SkRlmtEvtLinkUp()
2104 Para.Para32[1] = (SK_U32)-1; in SkRlmtEvtLinkUp()
2137 ("SK_RLMT_PORTUP_TIM Port %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtPortUpTim()
2139 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtPortUpTim()
2147 pRPort = &pAC->Rlmt.Port[Para.Para32[0]]; in SkRlmtEvtPortUpTim()
2150 ("SK_RLMT_PORTUP_TIM Port %d Event EMPTY.\n", Para.Para32[0])) in SkRlmtEvtPortUpTim()
2193 Para.Para32[0], Event)) in SkRlmtEvtPortDownX()
2195 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtPortDownX()
2203 pRPort = &pAC->Rlmt.Port[Para.Para32[0]]; in SkRlmtEvtPortDownX()
2236 if (Para.Para32[0] == in SkRlmtEvtPortDownX()
2269 pRPort = &pAC->Rlmt.Port[Para.Para32[0]]; in SkRlmtEvtLinkDown()
2271 ("SK_RLMT_LINK_DOWN Port %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtLinkDown()
2273 if (!pAC->Rlmt.Port[Para.Para32[0]].LinkDown) { in SkRlmtEvtLinkDown()
2277 SK_HWAC_LINK_LED(pAC, IoC, Para.Para32[0], SK_LED_OFF); in SkRlmtEvtLinkDown()
2285 Para.Para32[1] = -1; in SkRlmtEvtLinkDown()
2319 ("SK_RLMT_PORT_ADDR Port %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtPortAddr()
2321 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtPortAddr()
2330 pOldMacAddr = &pAC->Addr.Port[Para.Para32[0]].PreviousMacAddress; in SkRlmtEvtPortAddr()
2331 pNewMacAddr = &pAC->Addr.Port[Para.Para32[0]].CurrentMacAddress; in SkRlmtEvtPortAddr()
2377 ("SK_RLMT_START Net %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtStart()
2379 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtStart()
2387 if (Para.Para32[0] >= pAC->Rlmt.NumNets) { in SkRlmtEvtStart()
2389 ("Bad NetNumber %d.\n", Para.Para32[0])) in SkRlmtEvtStart()
2395 if (pAC->Rlmt.Net[Para.Para32[0]].RlmtState != SK_RLMT_RS_INIT) { in SkRlmtEvtStart()
2409 if (pAC->Rlmt.Net[Para.Para32[0]].PrefPort >= in SkRlmtEvtStart()
2410 pAC->Rlmt.Net[Para.Para32[0]].NumPorts) { in SkRlmtEvtStart()
2414 Para2.Para32[0] = 0xFFFFFFFF; in SkRlmtEvtStart()
2415 Para2.Para32[1] = Para.Para32[0]; in SkRlmtEvtStart()
2419 PortIdx = pAC->Rlmt.Net[Para.Para32[0]].PrefPort; in SkRlmtEvtStart()
2420 PortNumber = pAC->Rlmt.Net[Para.Para32[0]].Port[PortIdx]->PortNumber; in SkRlmtEvtStart()
2422 pAC->Rlmt.Net[Para.Para32[0]].LinksUp = 0; in SkRlmtEvtStart()
2423 pAC->Rlmt.Net[Para.Para32[0]].PortsUp = 0; in SkRlmtEvtStart()
2424 pAC->Rlmt.Net[Para.Para32[0]].CheckingState = 0; in SkRlmtEvtStart()
2425 pAC->Rlmt.Net[Para.Para32[0]].RlmtState = SK_RLMT_RS_NET_DOWN; in SkRlmtEvtStart()
2431 Para2.Para32[0] = PortNumber; in SkRlmtEvtStart()
2432 Para2.Para32[1] = (SK_U32)-1; in SkRlmtEvtStart()
2467 ("SK_RLMT_STOP Net %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtStop()
2469 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtStop()
2477 if (Para.Para32[0] >= pAC->Rlmt.NumNets) { in SkRlmtEvtStop()
2479 ("Bad NetNumber %d.\n", Para.Para32[0])) in SkRlmtEvtStop()
2485 if (pAC->Rlmt.Net[Para.Para32[0]].RlmtState == SK_RLMT_RS_INIT) { in SkRlmtEvtStop()
2500 SkTimerStop(pAC, IoC, &pAC->Rlmt.Net[Para.Para32[0]].LocTimer); in SkRlmtEvtStop()
2501 SkTimerStop(pAC, IoC, &pAC->Rlmt.Net[Para.Para32[0]].SegTimer); in SkRlmtEvtStop()
2504 pAC->Rlmt.Net[Para.Para32[0]].RlmtState = SK_RLMT_RS_INIT; in SkRlmtEvtStop()
2505 pAC->Rlmt.Net[Para.Para32[0]].RootIdSet = SK_FALSE; in SkRlmtEvtStop()
2506 Para2.Para32[0] = SK_RLMT_NET_DOWN_FINAL; in SkRlmtEvtStop()
2507 Para2.Para32[1] = Para.Para32[0]; /* Net# */ in SkRlmtEvtStop()
2511 for (i = 0; i < pAC->Rlmt.Net[Para.Para32[0]].NumPorts; i++) { in SkRlmtEvtStop()
2512 PortNumber = pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber; in SkRlmtEvtStop()
2521 Para2.Para32[0] = PortNumber; in SkRlmtEvtStop()
2522 Para2.Para32[1] = (SK_U32)-1; in SkRlmtEvtStop()
2562 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtTim()
2570 if ((pAC->Rlmt.Net[Para.Para32[0]].RlmtMode & SK_RLMT_CHECK_OTHERS) == 0 || in SkRlmtEvtTim()
2571 pAC->Rlmt.Net[Para.Para32[0]].LinksUp == 0) { in SkRlmtEvtTim()
2584 for (i = 0; i < pAC->Rlmt.Net[Para.Para32[0]].NumPorts; i++) { in SkRlmtEvtTim()
2585 PortNumber = pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber; in SkRlmtEvtTim()
2602 pAC->Rlmt.Net[Para.Para32[0]].TimeoutValue = NewTimeout; in SkRlmtEvtTim()
2604 if (pAC->Rlmt.Net[Para.Para32[0]].LinksUp > 1) { in SkRlmtEvtTim()
2615 for (i = 0; i < pAC->Rlmt.Net[Para.Para32[0]].NumPorts; i++) { in SkRlmtEvtTim()
2616 if (!pAC->Rlmt.Net[Para.Para32[0]].Port[i]->LinkDown) { in SkRlmtEvtTim()
2618 pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber); in SkRlmtEvtTim()
2623 SkTimerStart(pAC, IoC, &pAC->Rlmt.Net[Para.Para32[0]].LocTimer, in SkRlmtEvtTim()
2624 pAC->Rlmt.Net[Para.Para32[0]].TimeoutValue, SKGE_RLMT, SK_RLMT_TIM, in SkRlmtEvtTim()
2627 if (pAC->Rlmt.Net[Para.Para32[0]].LinksUp > 1 && in SkRlmtEvtTim()
2628 (pAC->Rlmt.Net[Para.Para32[0]].RlmtMode & SK_RLMT_CHECK_SEG) && in SkRlmtEvtTim()
2629 (pAC->Rlmt.Net[Para.Para32[0]].CheckingState & SK_RLMT_RCS_START_SEG)) { in SkRlmtEvtTim()
2630 SkTimerStart(pAC, IoC, &pAC->Rlmt.Net[Para.Para32[0]].SegTimer, in SkRlmtEvtTim()
2632 pAC->Rlmt.Net[Para.Para32[0]].CheckingState &= ~SK_RLMT_RCS_START_SEG; in SkRlmtEvtTim()
2633 pAC->Rlmt.Net[Para.Para32[0]].CheckingState |= in SkRlmtEvtTim()
2668 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtSegTim()
2677 for (j = 0; j < pAC->Rlmt.Net[Para.Para32[0]].NumPorts; j++) { in SkRlmtEvtSegTim()
2684 pAPort = pAC->Rlmt.Net[Para.Para32[0]].Port[j]->AddrPort; in SkRlmtEvtSegTim()
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()
2701 SkRlmtCheckSeg(pAC, IoC, Para.Para32[0]); in SkRlmtEvtSegTim()
2791 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtStatsClear()
2799 if (Para.Para32[0] >= pAC->Rlmt.NumNets) { in SkRlmtEvtStatsClear()
2801 ("Bad NetNumber %d.\n", Para.Para32[0])) in SkRlmtEvtStatsClear()
2808 for (i = 0; i < pAC->Rlmt.Net[Para.Para32[0]].NumPorts; i++) { in SkRlmtEvtStatsClear()
2810 &pAC->Rlmt.Port[pAC->Rlmt.Net[Para.Para32[0]].Port[i]->PortNumber]; in SkRlmtEvtStatsClear()
2844 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtStatsUpdate()
2852 if (Para.Para32[0] >= pAC->Rlmt.NumNets) { in SkRlmtEvtStatsUpdate()
2854 ("Bad NetNumber %d.\n", Para.Para32[0])) in SkRlmtEvtStatsUpdate()
2887 ("SK_RLMT_PREFPORT_CHANGE to Port %d Event BEGIN.\n", Para.Para32[0])) in SkRlmtEvtPrefportChange()
2889 if (Para.Para32[1] >= pAC->Rlmt.NumNets) { in SkRlmtEvtPrefportChange()
2891 ("Bad NetNumber %d.\n", Para.Para32[1])) in SkRlmtEvtPrefportChange()
2898 if (Para.Para32[0] == 0xFFFFFFFF) { in SkRlmtEvtPrefportChange()
2899 pAC->Rlmt.Net[Para.Para32[1]].PrefPort = SK_RLMT_DEF_PREF_PORT; in SkRlmtEvtPrefportChange()
2902 if (Para.Para32[0] >= pAC->Rlmt.Net[Para.Para32[1]].NumPorts) { in SkRlmtEvtPrefportChange()
2910 pAC->Rlmt.Net[Para.Para32[1]].PrefPort = Para.Para32[0]; in SkRlmtEvtPrefportChange()
2913 pAC->Rlmt.Net[Para.Para32[1]].Preference = Para.Para32[0]; in SkRlmtEvtPrefportChange()
2915 if (pAC->Rlmt.Net[Para.Para32[1]].RlmtState != SK_RLMT_RS_INIT) { in SkRlmtEvtPrefportChange()
2916 SkRlmtCheckSwitch(pAC, IoC, Para.Para32[1]); in SkRlmtEvtPrefportChange()
2948 if (Para.Para32[1] != (SK_U32)-1) { in SkRlmtEvtSetNets()
2956 if (Para.Para32[0] == 0 || Para.Para32[0] > SK_MAX_NETS || in SkRlmtEvtSetNets()
2957 Para.Para32[0] > (SK_U32)pAC->GIni.GIMacsFound) { in SkRlmtEvtSetNets()
2959 ("Bad number of nets: %d.\n", Para.Para32[0])) in SkRlmtEvtSetNets()
2965 if (Para.Para32[0] == pAC->Rlmt.NumNets) { /* No change. */ in SkRlmtEvtSetNets()
2980 if (Para.Para32[0] == 1) { in SkRlmtEvtSetNets()
2988 pAC->Rlmt.NumNets = Para.Para32[0]; in SkRlmtEvtSetNets()
3009 else if (Para.Para32[0] == 2) { in SkRlmtEvtSetNets()
3015 pAC->Rlmt.NumNets = Para.Para32[0]; in SkRlmtEvtSetNets()
3078 if (Para.Para32[1] >= pAC->Rlmt.NumNets) { in SkRlmtEvtModeChange()
3080 ("Bad NetNumber %d.\n", Para.Para32[1])) in SkRlmtEvtModeChange()
3086 Para.Para32[0] |= SK_RLMT_CHECK_LINK; in SkRlmtEvtModeChange()
3088 if ((pAC->Rlmt.Net[Para.Para32[1]].NumPorts == 1) && in SkRlmtEvtModeChange()
3089 Para.Para32[0] != SK_RLMT_MODE_CLS) { in SkRlmtEvtModeChange()
3090 pAC->Rlmt.Net[Para.Para32[1]].RlmtMode = SK_RLMT_MODE_CLS; in SkRlmtEvtModeChange()
3099 PrevRlmtMode = pAC->Rlmt.Net[Para.Para32[1]].RlmtMode; in SkRlmtEvtModeChange()
3100 pAC->Rlmt.Net[Para.Para32[1]].RlmtMode = Para.Para32[0]; in SkRlmtEvtModeChange()
3103 (pAC->Rlmt.Net[Para.Para32[1]].RlmtMode & SK_RLMT_CHECK_LOC_LINK)) { in SkRlmtEvtModeChange()
3106 pAC->Rlmt.Net[Para.Para32[1]].NumPorts > 1 && in SkRlmtEvtModeChange()
3107 pAC->Rlmt.Net[Para.Para32[1]].PortsUp >= 1) { in SkRlmtEvtModeChange()
3109 Para2.Para32[0] = Para.Para32[1]; in SkRlmtEvtModeChange()
3110 Para2.Para32[1] = (SK_U32)-1; in SkRlmtEvtModeChange()
3111 SkTimerStart(pAC, IoC, &pAC->Rlmt.Net[Para.Para32[1]].LocTimer, in SkRlmtEvtModeChange()
3112 pAC->Rlmt.Net[Para.Para32[1]].TimeoutValue, in SkRlmtEvtModeChange()
3118 (pAC->Rlmt.Net[Para.Para32[1]].RlmtMode & SK_RLMT_CHECK_SEG)) { in SkRlmtEvtModeChange()
3120 for (i = 0; i < pAC->Rlmt.Net[Para.Para32[1]].NumPorts; i++) { in SkRlmtEvtModeChange()
3122 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber, in SkRlmtEvtModeChange()
3127 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber, in SkRlmtEvtModeChange()
3130 if ((pAC->Rlmt.Net[Para.Para32[1]].RlmtMode & in SkRlmtEvtModeChange()
3134 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber, in SkRlmtEvtModeChange()
3137 if (pAC->Rlmt.Net[Para.Para32[1]].RlmtState != SK_RLMT_RS_INIT) { in SkRlmtEvtModeChange()
3138 if (!pAC->Rlmt.Net[Para.Para32[1]].Port[i]->LinkDown && in SkRlmtEvtModeChange()
3141 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->RootIdSet = in SkRlmtEvtModeChange()
3148 pAC->Rlmt.Net[Para.Para32[1]].Port[i]->PortNumber); in SkRlmtEvtModeChange()
3151 if ((pAC->Rlmt.Net[Para.Para32[1]].RlmtMode & SK_RLMT_CHECK_SEG) != 0) { in SkRlmtEvtModeChange()
3152 Para2.Para32[0] = Para.Para32[1]; in SkRlmtEvtModeChange()
3153 Para2.Para32[1] = (SK_U32)-1; in SkRlmtEvtModeChange()
3154 SkTimerStart(pAC, IoC, &pAC->Rlmt.Net[Para.Para32[1]].SegTimer, in SkRlmtEvtModeChange()