• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/sk98lin/

Lines Matching defs:IoC

58 int SkPnmiInit(SK_AC *pAC, SK_IOC IoC, int level);
59 int SkPnmiSetVar(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, void *pBuf,
61 int SkPnmiGetStruct(SK_AC *pAC, SK_IOC IoC, void *pBuf,
63 int SkPnmiPreSetStruct(SK_AC *pAC, SK_IOC IoC, void *pBuf,
65 int SkPnmiSetStruct(SK_AC *pAC, SK_IOC IoC, void *pBuf,
67 int SkPnmiEvent(SK_AC *pAC, SK_IOC IoC, SK_U32 Event, SK_EVPARA Param);
68 int SkPnmiGenIoctl(SK_AC *pAC, SK_IOC IoC, void * pBuf,
76 PNMI_STATIC SK_U8 CalculateLinkModeStatus(SK_AC *pAC, SK_IOC IoC, unsigned int
78 PNMI_STATIC SK_U8 CalculateLinkStatus(SK_AC *pAC, SK_IOC IoC, unsigned int
82 PNMI_STATIC SK_U64 GetPhysStatVal(SK_AC *pAC, SK_IOC IoC,
84 PNMI_STATIC SK_U64 GetStatVal(SK_AC *pAC, SK_IOC IoC, unsigned int LogPortIndex,
89 PNMI_STATIC int GetVpdKeyArr(SK_AC *pAC, SK_IOC IoC, char *pKeyArr,
92 PNMI_STATIC int MacUpdate(SK_AC *pAC, SK_IOC IoC, unsigned int FirstMac,
94 PNMI_STATIC int PnmiStruct(SK_AC *pAC, SK_IOC IoC, int Action, char *pBuf,
96 PNMI_STATIC int PnmiVar(SK_AC *pAC, SK_IOC IoC, int Action, SK_U32 Id,
104 PNMI_STATIC void ResetCounter(SK_AC *pAC, SK_IOC IoC, SK_U32 NetIndex);
105 PNMI_STATIC int RlmtUpdate(SK_AC *pAC, SK_IOC IoC, SK_U32 NetIndex);
106 PNMI_STATIC int SirqUpdate(SK_AC *pAC, SK_IOC IoC);
107 PNMI_STATIC void VirtualConf(SK_AC *pAC, SK_IOC IoC, SK_U32 Id, char *pBuf);
108 PNMI_STATIC int Vct(SK_AC *pAC, SK_IOC IoC, int Action, SK_U32 Id, char *pBuf,
353 SK_IOC IoC, /* IO context handle */
414 pAC->GIni.GIFunc.pFnMacResetCounter(pAC, IoC, PortIndex);
427 SK_IN16(IoC, B0_CTST, &Val16);
439 SK_IN16(IoC, B0_CTST, &Val16);
467 SK_IN8(IoC, B2_PMD_TYP, &Val8);
522 SK_IN8(IoC, B2_CONN_TYP, &Val8);
555 SkTimerStart(pAC, IoC, &pAC->Pnmi.RlmtChangeEstimate.EstTimer,
588 SK_IOC IoC, /* IO context handle */
599 return (PnmiVar(pAC, IoC, SK_PNMI_GET, Id, (char *)pBuf, pLen,
630 SK_IOC IoC, /* IO context handle */
642 return (PnmiVar(pAC, IoC, SK_PNMI_PRESET, Id, (char *)pBuf, pLen,
673 SK_IOC IoC, /* IO context handle */
684 return (PnmiVar(pAC, IoC, SK_PNMI_SET, Id, (char *)pBuf, pLen,
709 SK_IOC IoC, /* IO context handle */
750 if ((Ret = MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1)) !=
758 if ((Ret = RlmtUpdate(pAC, IoC, NetIndex)) != SK_PNMI_ERR_OK) {
765 if ((Ret = SirqUpdate(pAC, IoC)) != SK_PNMI_ERR_OK) {
781 Ret = GetVpdKeyArr(pAC, IoC, &KeyArr[0][0], sizeof(KeyArr), &TmpLen);
823 Ret = IdTable[TableIndex].Func(pAC, IoC, SK_PNMI_GET,
887 SK_IOC IoC, /* IO context handle */
896 return (PnmiStruct(pAC, IoC, SK_PNMI_PRESET, (char *)pBuf,
925 SK_IOC IoC, /* IO context handle */
934 return (PnmiStruct(pAC, IoC, SK_PNMI_SET, (char *)pBuf,
990 SK_IOC IoC, /* IO context handle */
1050 if ((pAC->GIni.GIFunc.pFnMacOverflow(pAC, IoC, PhysPortIndex,
1076 XM_IN16(IoC, PhysPortIndex, XM_TX_CMD, &Register);
1078 XM_OUT16(IoC, PhysPortIndex, XM_TX_CMD, Register);
1085 XM_IN16(IoC, PhysPortIndex, XM_RX_CMD, &Register);
1087 XM_OUT16(IoC, PhysPortIndex, XM_RX_CMD, Register);
1138 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1159 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1180 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1201 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1261 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1265 SkTimerStart(pAC, IoC, &pAC->Pnmi.RlmtChangeEstimate.EstTimer,
1293 ResetCounter(pAC, IoC, NetIndex);
1316 Ret = MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1);
1337 GetPhysStatVal(pAC, IoC, PhysPortIndex, CounterIndex);
1363 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1368 (void)pAC->GIni.GIFunc.pFnMacStatistic(pAC, IoC, PhysPortIndex,
1400 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1405 (void)pAC->GIni.GIFunc.pFnMacStatistic(pAC, IoC, PhysPortIndex,
1455 if (MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1) !=
1479 Value = GetPhysStatVal(pAC, IoC, PhysPortIndex, CounterIndex);
1539 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1546 if (MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1) !=
1568 Value = GetPhysStatVal(pAC, IoC, PhysPortIndex, CounterIndex);
1589 (void)SK_DRIVER_SENDEVENT(pAC, IoC);
1620 RetCode = SkGmCableDiagStatus(pAC, IoC, PhysPortIndex, SK_FALSE);
1629 SkTimerStart(pAC, IoC,
1661 SkEventDispatcher(pAC, IoC);
1698 SK_IOC IoC, /* IO context handle */
1723 Ret = IdTable[TableIndex].Func(pAC, IoC, Action, Id, pBuf, pLen,
1751 SK_IOC IoC, /* IO context handle */
1792 if ((Ret = RlmtUpdate(pAC, IoC, NetIndex)) != SK_PNMI_ERR_OK) {
1799 if ((Ret = SirqUpdate(pAC, IoC)) != SK_PNMI_ERR_OK) {
1840 Ret = IdTable[TableIndex].Func(pAC, IoC,
1878 Ret = IdTable[TableIndex].Func(pAC, IoC, Action,
1953 SK_IOC IoC, /* IO context handle */
1983 return (SkPnmiGetStruct(pAC, IoC, pBuf, pLen, NetIndex));
1986 return (SkPnmiPreSetStruct(pAC, IoC, pBuf, pLen, NetIndex));
1989 return (SkPnmiSetStruct(pAC, IoC, pBuf, pLen, NetIndex));
2020 SK_IOC IoC, /* IO context handle */
2094 Ret = SK_DRIVER_RESET(pAC, IoC);
2110 Ret = SK_DRIVER_SELFTEST(pAC, IoC);
2116 ResetCounter(pAC, IoC, NetIndex);
2151 SK_IOC IoC, /* IO context handle */
2224 Ret = MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1);
2248 StatVal = GetStatVal(pAC, IoC, 0, IdTable[TableIndex].Param, NetIndex);
2287 SK_IOC IoC, /* IO context handle */
2352 Ret = MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1);
2369 GetStatVal(pAC, IoC, LogPortIndex,
2371 GetStatVal(pAC, IoC, LogPortIndex,
2373 GetStatVal(pAC, IoC, LogPortIndex,
2375 GetStatVal(pAC, IoC, LogPortIndex,
2379 StatVal = GetStatVal(pAC, IoC, LogPortIndex,
2387 GetStatVal(pAC, IoC, LogPortIndex,
2389 GetStatVal(pAC, IoC, LogPortIndex,
2391 GetStatVal(pAC, IoC, LogPortIndex,
2395 StatVal = GetStatVal(pAC, IoC, LogPortIndex,
2401 StatVal = GetStatVal(pAC, IoC, LogPortIndex,
2441 SK_IOC IoC, /* IO context handle */
2605 Ret = SkAddrOverride(pAC, IoC, PhysPortIndex,
2642 SK_IOC IoC, /* IO context handle */
2758 SK_IOC IoC, /* IO context handle */
3003 SK_IOC IoC, /* IO context handle */
3029 Ret = GetVpdKeyArr(pAC, IoC, &KeyArr[0][0], sizeof(KeyArr), &KeyNo);
3088 pVpdStatus = VpdStat(pAC, IoC);
3190 if (VpdRead(pAC, IoC, KeyArr[Index], Buf,
3216 if (VpdRead(pAC, IoC, KeyArr[Index], Buf,
3354 Ret = VpdWrite(pAC, IoC, KeyStr, Buf);
3373 Ret = VpdUpdate(pAC, IoC);
3424 Ret = VpdDelete(pAC, IoC, KeyStr);
3438 Ret = VpdUpdate(pAC, IoC);
3477 SK_IOC IoC, /* IO context handle */
3631 Ret = MacUpdate(pAC, IoC, 0, pAC->GIni.GIMacsFound - 1);
3650 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_MISSED, NetIndex) +
3651 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_FRAMING, NetIndex) +
3652 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_OVERFLOW, NetIndex) +
3653 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_JABBER, NetIndex) +
3654 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_CARRIER, NetIndex) +
3655 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_IRLENGTH, NetIndex) +
3656 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_SYMBOL, NetIndex) +
3657 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_SHORTS, NetIndex) +
3658 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_RUNT, NetIndex) +
3659 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_TOO_LONG, NetIndex) +
3660 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_FCS, NetIndex) +
3661 GetStatVal(pAC, IoC, 0, SK_PNMI_HRX_CEXT, NetIndex);
3668 GetStatVal(pAC, IoC, 0, SK_PNMI_HTX_EXCESS_COL, NetIndex) +
3669 GetStatVal(pAC, IoC, 0, SK_PNMI_HTX_LATE_COL, NetIndex) +
3670 GetStatVal(pAC, IoC, 0, SK_PNMI_HTX_UNDERRUN, NetIndex) +
3671 GetStatVal(pAC, IoC, 0, SK_PNMI_HTX_CARRIER, NetIndex);
3843 if (VpdRead(pAC, IoC, VPD_NAME, Buf, (int *)&Len) > 0) {
4474 SK_IOC IoC, /* IO context handle */
4554 if ((Ret = RlmtUpdate(pAC, IoC, NetIndex)) != SK_PNMI_ERR_OK) {
4669 if (SkRlmtEvent(pAC, IoC, SK_RLMT_MODE_CHANGE,
4709 if (SkRlmtEvent(pAC, IoC, SK_RLMT_PREFPORT_CHANGE,
4779 SK_IOC IoC, /* IO context handle */
4879 if ((Ret = RlmtUpdate(pAC, IoC, NetIndex)) != SK_PNMI_ERR_OK) {
4981 SK_IOC IoC, /* IO context handle */
5079 if ((Ret = SirqUpdate(pAC, IoC)) != SK_PNMI_ERR_OK) {
5131 VirtualConf(pAC, IoC, Id, pBufPtr);
5152 VirtualConf(pAC, IoC, Id, pBufPtr);
5173 VirtualConf(pAC, IoC, Id, pBufPtr);
5181 CalculateLinkModeStatus(pAC, IoC, PhysPortIndex);
5186 *pBufPtr = CalculateLinkModeStatus(pAC, IoC, NetIndex);
5195 VirtualConf(pAC, IoC, Id, pBufPtr);
5202 *pBufPtr = CalculateLinkStatus(pAC, IoC, PhysPortIndex);
5207 *pBufPtr = CalculateLinkStatus(pAC, IoC, NetIndex);
5216 VirtualConf(pAC, IoC, Id, pBufPtr);
5237 VirtualConf(pAC, IoC, Id, pBufPtr);
5258 VirtualConf(pAC, IoC, Id, pBufPtr);
5279 VirtualConf(pAC, IoC, Id, pBufPtr);
5300 VirtualConf(pAC, IoC, Id, pBufPtr);
5321 VirtualConf(pAC, IoC, Id, pBufPtr);
5342 VirtualConf(pAC, IoC, Id, pBufPtr);
5363 VirtualConf(pAC, IoC, Id, pBufPtr);
5384 VirtualConf(pAC, IoC, Id, pBufPtr);
5402 Val32 = SK_DRIVER_GET_MTU(pAC, IoC, NetIndex);
5510 if (SkGeSirqEvent(pAC, IoC,
5531 if (SkGeSirqEvent(pAC, IoC, SK_HWEV_SET_LMODE,
5586 if (SkGeSirqEvent(pAC, IoC,
5607 if (SkGeSirqEvent(pAC, IoC,
5663 if (SkGeSirqEvent(pAC, IoC,
5684 if (SkGeSirqEvent(pAC, IoC,
5739 if (SkGeSirqEvent(pAC, IoC,
5760 if (SkGeSirqEvent(pAC, IoC,
5783 if (SK_DRIVER_PRESET_MTU(pAC, IoC, NetIndex, Val32) != 0) {
5793 if (SK_DRIVER_SET_MTU(pAC, IoC, NetIndex, Val32) != 0) {
5835 SK_IOC IoC, /* IO context handle */
5945 SK_IOC IoC, /* IO context handle */
6015 Val8 = CalculateLinkModeStatus(pAC, IoC, PhysPortIndex);
6038 Val8 = CalculateLinkStatus(pAC, IoC, PhysPortIndex);
6283 SK_IOC IoC, /* IO context handle */
6322 SK_IOC IoC, /* IO context handle */
6369 SK_IOC IoC, /* IO context handle */
6387 Ret = VpdKeys(pAC, IoC, (char *)&BufKeys, (int *)&BufKeysLen,
6465 SK_IOC IoC) /* IO context handle */
6478 if (SkGeSirqEvent(pAC, IoC, SK_HWEV_UPDATE_STAT, EventParam) > 0) {
6504 SK_IOC IoC, /* IO context handle */
6520 if (SkRlmtEvent(pAC, IoC, SK_RLMT_STATS_UPDATE, EventParam) > 0) {
6546 SK_IOC IoC, /* IO context handle */
6575 if (pAC->GIni.GIFunc.pFnMacUpdateStats(pAC, IoC, MacIndex) != 0) {
6602 SK_IOC IoC, /* IO context handle */
6616 Val = GetPhysStatVal(pAC, IoC, PhysPortIndex, StatIndex);
6630 Val += GetPhysStatVal(pAC, IoC, PhysPortIndex, StatIndex);
6641 Val = GetPhysStatVal(pAC, IoC, PhysPortIndex, StatIndex);
6649 SK_IOC IoC, /* IO context handle */
6681 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6684 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6688 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6694 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6703 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6706 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6710 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6716 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6725 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6728 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6741 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6756 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6770 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6796 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6809 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6812 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6828 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6835 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6875 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6902 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6914 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6940 SkXmPhyRead(pAC, IoC, PhysPortIndex, PHY_BCOM_RE_CTR, &Word);
6947 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6955 (void)pFnMac->pFnMacStatistic(pAC, IoC, PhysPortIndex,
6983 SK_IOC IoC, /* IO context handle */
7016 (void)pAC->GIni.GIFunc.pFnMacResetCounter(pAC, IoC, PhysPortIndex);
7428 SK_IOC IoC, /* IO context handle */
7499 RetCode = SkPowerQueryPnPCapabilities(pAC, IoC, pBuf, pLen);
7524 RetCode = SkPowerGetEnableWakeUp(pAC, IoC, pBuf, pLen);
7547 RetCode = SkPowerSetPower(pAC, IoC, pBuf, pLen);
7551 RetCode = SkPowerAddWakeUpPattern(pAC, IoC, pBuf, pLen);
7555 RetCode = SkPowerRemoveWakeUpPattern(pAC, IoC, pBuf, pLen);
7559 RetCode = SkPowerSetEnableWakeUp(pAC, IoC, pBuf, pLen);
7591 SK_IOC IoC, /* IO context handle */
7790 SK_IOC IoC, /* IO context handle */
7897 RetCode = SkGmCableDiagStatus(pAC, IoC, PhysPortIndex, SK_FALSE);
7923 SkEventDispatcher(pAC, IoC);
7931 CheckVctStatus(pAC, IoC, pBuf, Offset, PhysPortIndex);
7948 CheckVctStatus(pAC, IoC, pBuf, Offset, PhysPortIndex);
7996 SkGeStopPort(pAC, IoC, PhysPortIndex, SK_STOP_ALL, SK_SOFT_RST);
7998 RetCode = SkGmCableDiagStatus(pAC, IoC, PhysPortIndex, SK_TRUE);
8010 SkTimerStart(pAC, IoC, &pAC->Pnmi.VctTimeout[PhysPortIndex].VctTimer,
8041 SK_IOC IoC,
8068 RetCode = SkGmCableDiagStatus(pAC,IoC, PhysPortIndex, SK_FALSE);
8125 SK_IOC IoC, /* I/O context */
8145 ReturnCode = SkPnmiGetVar(pAC, IoC, Oid,
8152 ReturnCode = SkPnmiPreSetVar(pAC, IoC, Oid,
8159 ReturnCode = SkPnmiSetVar(pAC, IoC, Oid,
8166 ReturnCode = SkPnmiGetStruct(pAC, IoC, pBuf, pLen, NetIndex);
8169 ReturnCode = SkPnmiPreSetStruct(pAC, IoC, pBuf, pLen, NetIndex);
8172 ReturnCode = SkPnmiSetStruct(pAC, IoC, pBuf, pLen, NetIndex);