Lines Matching refs:Pnmi
371 SK_MEMSET((char *)&pAC->Pnmi, 0, sizeof(pAC->Pnmi)); in SkPnmiInit()
372 pAC->Pnmi.TrapBufFree = SK_PNMI_TRAP_QUEUE_LEN; in SkPnmiInit()
373 pAC->Pnmi.StartUpTime = SK_PNMI_HUNDREDS_SEC(SkOsGetTime(pAC)); in SkPnmiInit()
374 pAC->Pnmi.RlmtChangeThreshold = SK_PNMI_DEF_RLMT_CHG_THRES; in SkPnmiInit()
377 pAC->Pnmi.Port[PortIndex].ActiveFlag = SK_FALSE; in SkPnmiInit()
378 pAC->Pnmi.DualNetActiveFlag = SK_FALSE; in SkPnmiInit()
421 pVctBackupData = &pAC->Pnmi.VctBackup[PortIndex]; in SkPnmiInit()
431 pAC->Pnmi.PciBusSpeed = 33; in SkPnmiInit()
434 pAC->Pnmi.PciBusSpeed = 66; in SkPnmiInit()
443 pAC->Pnmi.PciBusWidth = 32; in SkPnmiInit()
446 pAC->Pnmi.PciBusWidth = 64; in SkPnmiInit()
454 pAC->Pnmi.Chipset = SK_PNMI_CHIPSET_XMAC; in SkPnmiInit()
458 pAC->Pnmi.Chipset = SK_PNMI_CHIPSET_YUKON; in SkPnmiInit()
471 pAC->Pnmi.PMD = 3; in SkPnmiInit()
474 pAC->Pnmi.DeviceType = 0x00020002; in SkPnmiInit()
477 pAC->Pnmi.DeviceType = 0x00020001; in SkPnmiInit()
482 pAC->Pnmi.PMD = 2; in SkPnmiInit()
485 pAC->Pnmi.DeviceType = 0x00020004; in SkPnmiInit()
488 pAC->Pnmi.DeviceType = 0x00020003; in SkPnmiInit()
493 pAC->Pnmi.PMD = 4; in SkPnmiInit()
496 pAC->Pnmi.DeviceType = 0x00020006; in SkPnmiInit()
499 pAC->Pnmi.DeviceType = 0x00020005; in SkPnmiInit()
504 pAC->Pnmi.PMD = 5; in SkPnmiInit()
507 pAC->Pnmi.DeviceType = 0x00020008; in SkPnmiInit()
510 pAC->Pnmi.DeviceType = 0x00020007; in SkPnmiInit()
515 pAC->Pnmi.PMD = 1; in SkPnmiInit()
516 pAC->Pnmi.DeviceType = 0; in SkPnmiInit()
526 pAC->Pnmi.Connector = 2; in SkPnmiInit()
530 pAC->Pnmi.Connector = 3; in SkPnmiInit()
534 pAC->Pnmi.Connector = 4; in SkPnmiInit()
538 pAC->Pnmi.Connector = 5; in SkPnmiInit()
542 pAC->Pnmi.Connector = 6; in SkPnmiInit()
546 pAC->Pnmi.Connector = 1; in SkPnmiInit()
556 SkTimerStart(pAC, IoC, &pAC->Pnmi.RlmtChangeEstimate.EstTimer, in SkPnmiInit()
777 pAC->Pnmi.MacUpdatedFlag ++; in SkPnmiGetStruct()
778 pAC->Pnmi.RlmtUpdatedFlag ++; in SkPnmiGetStruct()
779 pAC->Pnmi.SirqUpdatedFlag ++; in SkPnmiGetStruct()
785 pAC->Pnmi.MacUpdatedFlag --; in SkPnmiGetStruct()
786 pAC->Pnmi.RlmtUpdatedFlag --; in SkPnmiGetStruct()
787 pAC->Pnmi.SirqUpdatedFlag --; in SkPnmiGetStruct()
841 pAC->Pnmi.MacUpdatedFlag --; in SkPnmiGetStruct()
842 pAC->Pnmi.RlmtUpdatedFlag --; in SkPnmiGetStruct()
843 pAC->Pnmi.SirqUpdatedFlag --; in SkPnmiGetStruct()
853 pAC->Pnmi.MacUpdatedFlag --; in SkPnmiGetStruct()
854 pAC->Pnmi.RlmtUpdatedFlag --; in SkPnmiGetStruct()
855 pAC->Pnmi.SirqUpdatedFlag --; in SkPnmiGetStruct()
1109 pAC->Pnmi.Port[PhysPortIndex]. in SkPnmiEvent()
1115 pAC->Pnmi.Port[PhysPortIndex]. in SkPnmiEvent()
1219 pEst = &pAC->Pnmi.RlmtChangeEstimate; in SkPnmiEvent()
1227 NewestValue = pAC->Pnmi.RlmtChangeCts; in SkPnmiEvent()
1250 pAC->Pnmi.RlmtChangeEstimate.Estimate = Delta << 4; in SkPnmiEvent()
1257 if ((pAC->Pnmi.RlmtChangeThreshold != 0) && in SkPnmiEvent()
1258 (pAC->Pnmi.RlmtChangeEstimate.Estimate >= in SkPnmiEvent()
1259 pAC->Pnmi.RlmtChangeThreshold)) { in SkPnmiEvent()
1266 SkTimerStart(pAC, IoC, &pAC->Pnmi.RlmtChangeEstimate.EstTimer, in SkPnmiEvent()
1327 pAC->Pnmi.MacUpdatedFlag ++; in SkPnmiEvent()
1337 pAC->Pnmi.Port[PhysPortIndex].CounterOffset[CounterIndex] = in SkPnmiEvent()
1340 pAC->Pnmi.Port[PhysPortIndex].CounterHigh[CounterIndex] = 0; in SkPnmiEvent()
1343 pAC->Pnmi.MacUpdatedFlag --; in SkPnmiEvent()
1372 Value = (((SK_U64)pAC->Pnmi.Port[PhysPortIndex]. in SkPnmiEvent()
1374 pAC->Pnmi.Port[PhysPortIndex].CounterOffset[SK_PNMI_HRX_SHORTS] += in SkPnmiEvent()
1375 Value - pAC->Pnmi.Port[PhysPortIndex].RxShortZeroMark; in SkPnmiEvent()
1379 pAC->Pnmi.VctStatus[PhysPortIndex] |= SK_PNMI_VCT_LINK; in SkPnmiEvent()
1409 pAC->Pnmi.Port[PhysPortIndex].RxShortZeroMark = in SkPnmiEvent()
1410 (((SK_U64)pAC->Pnmi.Port[PhysPortIndex]. in SkPnmiEvent()
1446 if (!pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in SkPnmiEvent()
1462 pAC->Pnmi.MacUpdatedFlag ++; in SkPnmiEvent()
1482 pAC->Pnmi.VirtualCounterOffset[CounterIndex] += Value; in SkPnmiEvent()
1488 pAC->Pnmi.Port[PhysPortIndex].ActiveFlag = SK_FALSE; in SkPnmiEvent()
1490 pAC->Pnmi.MacUpdatedFlag --; in SkPnmiEvent()
1524 if (pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in SkPnmiEvent()
1532 pAC->Pnmi.RlmtChangeCts ++; in SkPnmiEvent()
1533 pAC->Pnmi.RlmtChangeTime = SK_PNMI_HUNDREDS_SEC(SkOsGetTime(pAC)); in SkPnmiEvent()
1553 pAC->Pnmi.MacUpdatedFlag ++; in SkPnmiEvent()
1571 pAC->Pnmi.VirtualCounterOffset[CounterIndex] -= Value; in SkPnmiEvent()
1575 pAC->Pnmi.Port[PhysPortIndex].ActiveFlag = SK_TRUE; in SkPnmiEvent()
1577 pAC->Pnmi.MacUpdatedFlag --; in SkPnmiEvent()
1608 pAC->Pnmi.DualNetActiveFlag = SK_FALSE; in SkPnmiEvent()
1611 pAC->Pnmi.DualNetActiveFlag = SK_TRUE; in SkPnmiEvent()
1618 pVctBackupData = &pAC->Pnmi.VctBackup[PhysPortIndex]; in SkPnmiEvent()
1620 if (pAC->Pnmi.VctStatus[PhysPortIndex] & SK_PNMI_VCT_PENDING) { in SkPnmiEvent()
1631 &pAC->Pnmi.VctTimeout[PhysPortIndex].VctTimer, in SkPnmiEvent()
1635 pAC->Pnmi.VctStatus[PhysPortIndex] &= ~SK_PNMI_VCT_PENDING; in SkPnmiEvent()
1636 pAC->Pnmi.VctStatus[PhysPortIndex] |= in SkPnmiEvent()
1807 pAC->Pnmi.RlmtUpdatedFlag ++; in PnmiStruct()
1808 pAC->Pnmi.SirqUpdatedFlag ++; in PnmiStruct()
1851 pAC->Pnmi.RlmtUpdatedFlag --; in PnmiStruct()
1852 pAC->Pnmi.SirqUpdatedFlag --; in PnmiStruct()
1885 pAC->Pnmi.RlmtUpdatedFlag --; in PnmiStruct()
1886 pAC->Pnmi.SirqUpdatedFlag --; in PnmiStruct()
1897 pAC->Pnmi.RlmtUpdatedFlag --; in PnmiStruct()
1898 pAC->Pnmi.SirqUpdatedFlag --; in PnmiStruct()
2112 pAC->Pnmi.TestResult = Ret; in Perform()
2231 pAC->Pnmi.MacUpdatedFlag ++; in Mac8023Stat()
2264 pAC->Pnmi.MacUpdatedFlag --; in Mac8023Stat()
2314 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { /* Dual net mode */ in MacPrivateStat()
2359 pAC->Pnmi.MacUpdatedFlag ++; in MacPrivateStat()
2419 pAC->Pnmi.MacUpdatedFlag --; in MacPrivateStat()
2474 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { /* Dual net mode */ in Addr()
3646 pAC->Pnmi.MacUpdatedFlag ++; in General()
3719 Val32 = (SK_U32)pAC->Pnmi.DeviceType; in General()
3725 if (pAC->Pnmi.pDriverDescription == NULL) { in General()
3734 Len = SK_STRLEN(pAC->Pnmi.pDriverDescription) + 1; in General()
3750 SK_MEMCPY(pBuf + 1, pAC->Pnmi.pDriverDescription, Len - 1); in General()
3755 if (pAC->Pnmi.pDriverVersion == NULL) { in General()
3764 Len = SK_STRLEN(pAC->Pnmi.pDriverVersion) + 1; in General()
3780 SK_MEMCPY(pBuf + 1, pAC->Pnmi.pDriverVersion, Len - 1); in General()
3785 if (pAC->Pnmi.pDriverReleaseDate == NULL) { in General()
3794 Len = SK_STRLEN(pAC->Pnmi.pDriverReleaseDate) + 1; in General()
3810 SK_MEMCPY(pBuf + 1, pAC->Pnmi.pDriverReleaseDate, Len - 1); in General()
3815 if (pAC->Pnmi.pDriverFileName == NULL) { in General()
3824 Len = SK_STRLEN(pAC->Pnmi.pDriverFileName) + 1; in General()
3840 SK_MEMCPY(pBuf + 1, pAC->Pnmi.pDriverFileName, Len - 1); in General()
3896 Val16 = pAC->Pnmi.Chipset; in General()
3924 *pBuf = pAC->Pnmi.PciBusSpeed; in General()
3929 *pBuf = pAC->Pnmi.PciBusWidth; in General()
3934 Val32 = pAC->Pnmi.TestResult; in General()
3978 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
3979 Val64 = pAC->Pnmi.BufPort[NetIndex].TxSwQueueLen; in General()
3983 Val64 = pAC->Pnmi.BufPort[0].TxSwQueueLen + in General()
3984 pAC->Pnmi.BufPort[1].TxSwQueueLen; in General()
3989 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
3990 Val64 = pAC->Pnmi.Port[NetIndex].TxSwQueueLen; in General()
3994 Val64 = pAC->Pnmi.Port[0].TxSwQueueLen + in General()
3995 pAC->Pnmi.Port[1].TxSwQueueLen; in General()
4007 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4008 Val64 = pAC->Pnmi.BufPort[NetIndex].TxSwQueueMax; in General()
4012 Val64 = pAC->Pnmi.BufPort[0].TxSwQueueMax + in General()
4013 pAC->Pnmi.BufPort[1].TxSwQueueMax; in General()
4018 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4019 Val64 = pAC->Pnmi.Port[NetIndex].TxSwQueueMax; in General()
4023 Val64 = pAC->Pnmi.Port[0].TxSwQueueMax + in General()
4024 pAC->Pnmi.Port[1].TxSwQueueMax; in General()
4035 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4036 Val64 = pAC->Pnmi.BufPort[NetIndex].TxRetryCts; in General()
4040 Val64 = pAC->Pnmi.BufPort[0].TxRetryCts + in General()
4041 pAC->Pnmi.BufPort[1].TxRetryCts; in General()
4046 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4047 Val64 = pAC->Pnmi.Port[NetIndex].TxRetryCts; in General()
4051 Val64 = pAC->Pnmi.Port[0].TxRetryCts + in General()
4052 pAC->Pnmi.Port[1].TxRetryCts; in General()
4063 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4064 Val64 = pAC->Pnmi.BufPort[NetIndex].RxIntrCts; in General()
4068 Val64 = pAC->Pnmi.BufPort[0].RxIntrCts + in General()
4069 pAC->Pnmi.BufPort[1].RxIntrCts; in General()
4074 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4075 Val64 = pAC->Pnmi.Port[NetIndex].RxIntrCts; in General()
4079 Val64 = pAC->Pnmi.Port[0].RxIntrCts + in General()
4080 pAC->Pnmi.Port[1].RxIntrCts; in General()
4091 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4092 Val64 = pAC->Pnmi.BufPort[NetIndex].TxIntrCts; in General()
4096 Val64 = pAC->Pnmi.BufPort[0].TxIntrCts + in General()
4097 pAC->Pnmi.BufPort[1].TxIntrCts; in General()
4102 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4103 Val64 = pAC->Pnmi.Port[NetIndex].TxIntrCts; in General()
4107 Val64 = pAC->Pnmi.Port[0].TxIntrCts + in General()
4108 pAC->Pnmi.Port[1].TxIntrCts; in General()
4119 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4120 Val64 = pAC->Pnmi.BufPort[NetIndex].RxNoBufCts; in General()
4124 Val64 = pAC->Pnmi.BufPort[0].RxNoBufCts + in General()
4125 pAC->Pnmi.BufPort[1].RxNoBufCts; in General()
4130 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4131 Val64 = pAC->Pnmi.Port[NetIndex].RxNoBufCts; in General()
4135 Val64 = pAC->Pnmi.Port[0].RxNoBufCts + in General()
4136 pAC->Pnmi.Port[1].RxNoBufCts; in General()
4147 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4148 Val64 = pAC->Pnmi.BufPort[NetIndex].TxNoBufCts; in General()
4152 Val64 = pAC->Pnmi.BufPort[0].TxNoBufCts + in General()
4153 pAC->Pnmi.BufPort[1].TxNoBufCts; in General()
4158 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4159 Val64 = pAC->Pnmi.Port[NetIndex].TxNoBufCts; in General()
4163 Val64 = pAC->Pnmi.Port[0].TxNoBufCts + in General()
4164 pAC->Pnmi.Port[1].TxNoBufCts; in General()
4175 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4176 Val64 = pAC->Pnmi.BufPort[NetIndex].TxUsedDescrNo; in General()
4180 Val64 = pAC->Pnmi.BufPort[0].TxUsedDescrNo + in General()
4181 pAC->Pnmi.BufPort[1].TxUsedDescrNo; in General()
4186 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4187 Val64 = pAC->Pnmi.Port[NetIndex].TxUsedDescrNo; in General()
4191 Val64 = pAC->Pnmi.Port[0].TxUsedDescrNo + in General()
4192 pAC->Pnmi.Port[1].TxUsedDescrNo; in General()
4203 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4204 Val64 = pAC->Pnmi.BufPort[NetIndex].RxDeliveredCts; in General()
4208 Val64 = pAC->Pnmi.BufPort[0].RxDeliveredCts + in General()
4209 pAC->Pnmi.BufPort[1].RxDeliveredCts; in General()
4214 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4215 Val64 = pAC->Pnmi.Port[NetIndex].RxDeliveredCts; in General()
4219 Val64 = pAC->Pnmi.Port[0].RxDeliveredCts + in General()
4220 pAC->Pnmi.Port[1].RxDeliveredCts; in General()
4231 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4232 Val64 = pAC->Pnmi.BufPort[NetIndex].RxOctetsDeliveredCts; in General()
4236 Val64 = pAC->Pnmi.BufPort[0].RxOctetsDeliveredCts + in General()
4237 pAC->Pnmi.BufPort[1].RxOctetsDeliveredCts; in General()
4242 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4243 Val64 = pAC->Pnmi.Port[NetIndex].RxOctetsDeliveredCts; in General()
4247 Val64 = pAC->Pnmi.Port[0].RxOctetsDeliveredCts + in General()
4248 pAC->Pnmi.Port[1].RxOctetsDeliveredCts; in General()
4269 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4270 Val64 = Val64RxHwErrs + pAC->Pnmi.BufPort[NetIndex].RxNoBufCts; in General()
4275 pAC->Pnmi.BufPort[0].RxNoBufCts + in General()
4276 pAC->Pnmi.BufPort[1].RxNoBufCts; in General()
4281 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4282 Val64 = Val64RxHwErrs + pAC->Pnmi.Port[NetIndex].RxNoBufCts; in General()
4287 pAC->Pnmi.Port[0].RxNoBufCts + in General()
4288 pAC->Pnmi.Port[1].RxNoBufCts; in General()
4299 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4300 Val64 = Val64TxHwErrs + pAC->Pnmi.BufPort[NetIndex].TxNoBufCts; in General()
4305 pAC->Pnmi.BufPort[0].TxNoBufCts + in General()
4306 pAC->Pnmi.BufPort[1].TxNoBufCts; in General()
4311 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4312 Val64 = Val64TxHwErrs + pAC->Pnmi.Port[NetIndex].TxNoBufCts; in General()
4317 pAC->Pnmi.Port[0].TxNoBufCts + in General()
4318 pAC->Pnmi.Port[1].TxNoBufCts; in General()
4329 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4330 Val64 = pAC->Pnmi.BufPort[NetIndex].ErrRecoveryCts; in General()
4334 Val64 = pAC->Pnmi.BufPort[0].ErrRecoveryCts + in General()
4335 pAC->Pnmi.BufPort[1].ErrRecoveryCts; in General()
4340 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in General()
4341 Val64 = pAC->Pnmi.Port[NetIndex].ErrRecoveryCts; in General()
4345 Val64 = pAC->Pnmi.Port[0].ErrRecoveryCts + in General()
4346 pAC->Pnmi.Port[1].ErrRecoveryCts; in General()
4355 Val64 -= pAC->Pnmi.StartUpTime; in General()
4369 Val64 = Val64RxHwErrs + pAC->Pnmi.BufPort[NetIndex].RxNoBufCts; in General()
4372 Val64 = Val64RxHwErrs + pAC->Pnmi.Port[NetIndex].RxNoBufCts; in General()
4392 Val64 = Val64TxHwErrs + pAC->Pnmi.BufPort[NetIndex].TxNoBufCts; in General()
4395 Val64 = Val64TxHwErrs + pAC->Pnmi.Port[NetIndex].TxNoBufCts; in General()
4415 Val64 = pAC->Pnmi.BufPort[NetIndex].RxNoBufCts; in General()
4418 Val64 = pAC->Pnmi.Port[NetIndex].RxNoBufCts; in General()
4436 Val32 = (SK_U32)pAC->Pnmi.Port[NetIndex].TxSwQueueLen; in General()
4456 pAC->Pnmi.MacUpdatedFlag --; in General()
4569 pAC->Pnmi.RlmtUpdatedFlag ++; in Rlmt()
4601 if (pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in Rlmt()
4616 Val64 = pAC->Pnmi.RlmtChangeCts; in Rlmt()
4622 Val64 = pAC->Pnmi.RlmtChangeTime; in Rlmt()
4628 Val64 = pAC->Pnmi.RlmtChangeEstimate.Estimate; in Rlmt()
4634 Val64 = pAC->Pnmi.RlmtChangeThreshold; in Rlmt()
4643 pAC->Pnmi.RlmtUpdatedFlag --; in Rlmt()
4648 pAC->Pnmi.RlmtUpdatedFlag --; in Rlmt()
4757 pAC->Pnmi.RlmtChangeThreshold = Val64; in Rlmt()
4823 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in RlmtStat()
4836 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in RlmtStat()
4894 pAC->Pnmi.RlmtUpdatedFlag ++; in RlmtStat()
4918 else if (pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in RlmtStat()
4957 pAC->Pnmi.RlmtUpdatedFlag --; in RlmtStat()
4964 pAC->Pnmi.RlmtUpdatedFlag --; in RlmtStat()
5018 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { /* Dual net mode */ in MacPrivateConf()
5097 pAC->Pnmi.SirqUpdatedFlag ++; in MacPrivateConf()
5110 *pBufPtr = pAC->Pnmi.PMD; in MacPrivateConf()
5115 *pBufPtr = pAC->Pnmi.Connector; in MacPrivateConf()
5120 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5142 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5163 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5184 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5205 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5227 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5248 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5269 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5290 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5311 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5332 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5353 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5374 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5395 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5416 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
5446 pAC->Pnmi.SirqUpdatedFlag --; in MacPrivateConf()
5451 pAC->Pnmi.SirqUpdatedFlag --; in MacPrivateConf()
5547 if (!pAC->Pnmi.Port[PhysPortIndex]. in MacPrivateConf()
5623 if (!pAC->Pnmi.Port[PhysPortIndex]. in MacPrivateConf()
5700 if (!pAC->Pnmi.Port[PhysPortIndex]. in MacPrivateConf()
5777 if (!pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in MacPrivateConf()
5853 if (!pAC->Pnmi.DualNetActiveFlag) { /* SingleNetMode */ in MacPrivateConf()
6126 if (!pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in VirtualConf()
6631 if (pAC->Pnmi.SirqUpdatedFlag > 0) { in SirqUpdate()
6671 if (pAC->Pnmi.RlmtUpdatedFlag > 0) { in RlmtUpdate()
6716 if (pAC->Pnmi.MacUpdatedFlag > 0) { in MacUpdate()
6731 pAC->Pnmi.BufPort[MacIndex] = pAC->Pnmi.Port[MacIndex]; in MacUpdate()
6772 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { /* Dual net mode */ in GetStatVal()
6788 if (pAC->Pnmi.Port[PhysPortIndex].ActiveFlag) { in GetStatVal()
6795 Val += pAC->Pnmi.VirtualCounterOffset[StatIndex]; in GetStatVal()
6846 pPnmiPrt = &pAC->Pnmi.BufPort[PhysPortIndex]; in GetPhysStatVal()
6849 pPnmiPrt = &pAC->Pnmi.Port[PhysPortIndex]; in GetPhysStatVal()
7194 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex].CounterHigh, in ResetCounter()
7195 0, sizeof(pAC->Pnmi.Port[PhysPortIndex].CounterHigh)); in ResetCounter()
7196 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex]. in ResetCounter()
7197 CounterOffset, 0, sizeof(pAC->Pnmi.Port[ in ResetCounter()
7199 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex].StatSyncCts, in ResetCounter()
7200 0, sizeof(pAC->Pnmi.Port[PhysPortIndex].StatSyncCts)); in ResetCounter()
7201 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex]. in ResetCounter()
7202 StatSyncOctetsCts, 0, sizeof(pAC->Pnmi.Port[ in ResetCounter()
7204 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex]. in ResetCounter()
7205 StatRxLongFrameCts, 0, sizeof(pAC->Pnmi.Port[ in ResetCounter()
7207 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex]. in ResetCounter()
7208 StatRxFrameTooLongCts, 0, sizeof(pAC->Pnmi.Port[ in ResetCounter()
7210 SK_MEMSET((char *)&pAC->Pnmi.Port[PhysPortIndex]. in ResetCounter()
7211 StatRxPMaccErr, 0, sizeof(pAC->Pnmi.Port[ in ResetCounter()
7218 SK_MEMSET((char *)&pAC->Pnmi.VirtualCounterOffset, 0, in ResetCounter()
7219 sizeof(pAC->Pnmi.VirtualCounterOffset)); in ResetCounter()
7220 pAC->Pnmi.RlmtChangeCts = 0; in ResetCounter()
7221 pAC->Pnmi.RlmtChangeTime = 0; in ResetCounter()
7222 SK_MEMSET((char *)&pAC->Pnmi.RlmtChangeEstimate.EstValue[0], 0, in ResetCounter()
7223 sizeof(pAC->Pnmi.RlmtChangeEstimate.EstValue)); in ResetCounter()
7224 pAC->Pnmi.RlmtChangeEstimate.EstValueIndex = 0; in ResetCounter()
7225 pAC->Pnmi.RlmtChangeEstimate.Estimate = 0; in ResetCounter()
7226 pAC->Pnmi.Port[NetIndex].TxSwQueueMax = 0; in ResetCounter()
7227 pAC->Pnmi.Port[NetIndex].TxRetryCts = 0; in ResetCounter()
7228 pAC->Pnmi.Port[NetIndex].RxIntrCts = 0; in ResetCounter()
7229 pAC->Pnmi.Port[NetIndex].TxIntrCts = 0; in ResetCounter()
7230 pAC->Pnmi.Port[NetIndex].RxNoBufCts = 0; in ResetCounter()
7231 pAC->Pnmi.Port[NetIndex].TxNoBufCts = 0; in ResetCounter()
7232 pAC->Pnmi.Port[NetIndex].TxUsedDescrNo = 0; in ResetCounter()
7233 pAC->Pnmi.Port[NetIndex].RxDeliveredCts = 0; in ResetCounter()
7234 pAC->Pnmi.Port[NetIndex].RxOctetsDeliveredCts = 0; in ResetCounter()
7235 pAC->Pnmi.Port[NetIndex].ErrRecoveryCts = 0; in ResetCounter()
7258 unsigned int BufPad = pAC->Pnmi.TrapBufPad; in GetTrapEntry()
7259 unsigned int BufFree = pAC->Pnmi.TrapBufFree; in GetTrapEntry()
7260 unsigned int Beg = pAC->Pnmi.TrapQueueBeg; in GetTrapEntry()
7261 unsigned int End = pAC->Pnmi.TrapQueueEnd; in GetTrapEntry()
7262 char *pBuf = &pAC->Pnmi.TrapBuf[0]; in GetTrapEntry()
7329 pAC->Pnmi.TrapQueueBeg = Beg; in GetTrapEntry()
7330 pAC->Pnmi.TrapQueueEnd = End; in GetTrapEntry()
7331 pAC->Pnmi.TrapBufPad = BufPad; in GetTrapEntry()
7332 pAC->Pnmi.TrapBufFree = BufFree; in GetTrapEntry()
7337 Val32 = (pAC->Pnmi.TrapUnique) ++; in GetTrapEntry()
7362 unsigned int BufPad = pAC->Pnmi.TrapBufPad; in CopyTrapQueue()
7363 unsigned int Trap = pAC->Pnmi.TrapQueueBeg; in CopyTrapQueue()
7364 unsigned int End = pAC->Pnmi.TrapQueueEnd; in CopyTrapQueue()
7365 char *pBuf = &pAC->Pnmi.TrapBuf[0]; in CopyTrapQueue()
7406 unsigned int BufPad = pAC->Pnmi.TrapBufPad; in GetTrapQueueLen()
7407 unsigned int Trap = pAC->Pnmi.TrapQueueBeg; in GetTrapQueueLen()
7408 unsigned int End = pAC->Pnmi.TrapQueueEnd; in GetTrapQueueLen()
7409 char *pBuf = &pAC->Pnmi.TrapBuf[0]; in GetTrapQueueLen()
7816 DiagStatus = pAC->Pnmi.DiagAttached; in DiagActions()
7847 if (pAC->Pnmi.DiagAttached == SK_DIAG_RUNNING) { in DiagActions()
7852 else if (pAC->Pnmi.DiagAttached == SK_DIAG_IDLE) { in DiagActions()
7865 pAC->Pnmi.DiagAttached = SK_DIAG_ATTACHED; in DiagActions()
7877 if (pAC->Pnmi.DiagAttached == SK_DIAG_ATTACHED) { in DiagActions()
7895 pAC->Pnmi.DiagAttached = SK_DIAG_RUNNING; in DiagActions()
7901 if (pAC->Pnmi.DiagAttached == SK_DIAG_RUNNING) { in DiagActions()
7906 else if (pAC->Pnmi.DiagAttached == SK_DIAG_ATTACHED) { in DiagActions()
7919 pAC->Pnmi.DiagAttached = SK_DIAG_IDLE; in DiagActions()
7995 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in Vct()
8006 if (pAC->Pnmi.DualNetActiveFlag == SK_TRUE) { in Vct()
8039 pVctBackupData = &pAC->Pnmi.VctBackup[PhysPortIndex]; in Vct()
8072 (pAC->Pnmi.VctStatus[PhysPortIndex] & SK_PNMI_VCT_PENDING)) { in Vct()
8075 pAC->Pnmi.VctStatus[PhysPortIndex] &= ~SK_PNMI_VCT_PENDING; in Vct()
8076 pAC->Pnmi.VctStatus[PhysPortIndex] |= in Vct()
8176 pAC->Pnmi.VctStatus[PhysPortIndex] |= SK_PNMI_VCT_PENDING; in Vct()
8177 pAC->Pnmi.VctStatus[PhysPortIndex] &= ~SK_PNMI_VCT_NEW_VCT_DATA; in Vct()
8178 pAC->Pnmi.VctStatus[PhysPortIndex] &= ~SK_PNMI_VCT_LINK; in Vct()
8186 SkTimerStart(pAC, IoC, &pAC->Pnmi.VctTimeout[PhysPortIndex].VctTimer, in Vct()
8234 if (pAC->Pnmi.VctStatus[PhysPortIndex] & SK_PNMI_VCT_TEST_DONE) { in CheckVctStatus()
8235 if ((pAC->Pnmi.VctStatus[PhysPortIndex] & SK_PNMI_VCT_LINK)) { in CheckVctStatus()
8249 if (pAC->Pnmi.VctStatus[PhysPortIndex] & SK_PNMI_VCT_PENDING) { in CheckVctStatus()
8261 if (pAC->Pnmi.VctStatus[PhysPortIndex] & SK_PNMI_VCT_TEST_DONE) { in CheckVctStatus()