Lines Matching refs:IoC

111 SK_IOC	IoC,	/* IO context */  in SkHWInitDefSense()  argument
147 SK_IOC IoC, /* IO context */ in SkHWSenseGetNext() argument
181 SK_IOC IoC, /* IO context */ in SkHWSenseSetNext() argument
216 SK_IOC IoC, /* IO context */ in SkHWLinkDown() argument
224 SkMacIrqDisable(pAC, IoC, Port); in SkHWLinkDown()
227 SkMacRxTxDisable(pAC, IoC, Port); in SkHWLinkDown()
230 SkHWInitDefSense(pAC, IoC, Port); in SkHWLinkDown()
248 SkMacInitPhy(pAC, IoC, Port, SK_FALSE); in SkHWLinkDown()
268 SK_IOC IoC, /* IO context */ in SkHWLinkUp() argument
316 (void)SkMacRxTxEnable(pAC, IoC, Port); in SkHWLinkUp()
331 SK_IOC IoC, /* IO context */ in SkMacParity() argument
344 SK_OUT16(IoC, MR_ADDR(Port, TX_MFF_CTRL1), MFF_CLR_PERR); in SkMacParity()
351 SK_OUT8(IoC, MR_ADDR(Port, TX_GMF_CTRL_T), in SkMacParity()
378 (void)SkXmUpdateStats(pAC, IoC, Port); in SkMacParity()
380 (void)SkXmMacStatistic(pAC, IoC, Port, XM_TXF_MAX_SZ, &TxMax); in SkMacParity()
387 (void)SkGmMacStatistic(pAC, IoC, Port, GM_TXF_1518B, &TxMax); in SkMacParity()
408 SK_IOC IoC, /* IO context */ in SkGeHwErr() argument
424 SK_IN16(IoC, PCI_C(PCI_STATUS), &Word); in SkGeHwErr()
426 SK_OUT8(IoC, B2_TST_CTRL1, TST_CFG_WRITE_ON); in SkGeHwErr()
427 SK_OUT16(IoC, PCI_C(PCI_STATUS), (SK_U16)(Word | PCI_ERRBITS)); in SkGeHwErr()
428 SK_OUT8(IoC, B2_TST_CTRL1, TST_CFG_WRITE_OFF); in SkGeHwErr()
440 SK_OUT16(IoC, MR_ADDR(MAC_1, RX_MFF_CTRL1), MFF_CLR_INSTAT); in SkGeHwErr()
446 SK_OUT16(IoC, MR_ADDR(MAC_2, RX_MFF_CTRL1), MFF_CLR_INSTAT); in SkGeHwErr()
452 SK_OUT16(IoC, MR_ADDR(MAC_1, RX_MFF_CTRL1), MFF_CLR_INTIST); in SkGeHwErr()
458 SK_OUT16(IoC, MR_ADDR(MAC_2, RX_MFF_CTRL1), MFF_CLR_INTIST); in SkGeHwErr()
471 SK_OUT8(IoC, GMAC_TI_ST_CTRL, (SK_U8)GMT_ST_CLR_IRQ); in SkGeHwErr()
485 SK_OUT16(IoC, B3_RI_CTRL, RI_CLR_RD_PERR); in SkGeHwErr()
492 SK_OUT16(IoC, B3_RI_CTRL, RI_CLR_WR_PERR); in SkGeHwErr()
499 SkMacParity(pAC, IoC, MAC_1); in SkGeHwErr()
503 SkMacParity(pAC, IoC, MAC_2); in SkGeHwErr()
508 SK_OUT32(IoC, B0_R1_CSR, CSR_IRQ_CL_P); in SkGeHwErr()
520 SK_OUT32(IoC, B0_R2_CSR, CSR_IRQ_CL_P); in SkGeHwErr()
542 SK_IOC IoC, /* IO context */ in SkGeSirqIsr() argument
553 SK_IN32(IoC, B0_HWE_ISRC, &RegVal32); in SkGeSirqIsr()
555 SkGeHwErr(pAC, IoC, RegVal32); in SkGeSirqIsr()
580 SK_OUT16(IoC, B3_PA_CTRL, PA_CLR_TO_RX1); in SkGeSirqIsr()
587 SK_OUT16(IoC, B3_PA_CTRL, PA_CLR_TO_RX2); in SkGeSirqIsr()
595 SK_OUT16(IoC, B3_PA_CTRL, PA_CLR_TO_TX1); in SkGeSirqIsr()
615 SkPnmiGetVar(pAC, IoC, OID_SKGE_STAT_TX_OCTETS, (char *)&Octets, in SkGeSirqIsr()
622 (void)SkXmUpdateStats(pAC, IoC, 0); in SkGeSirqIsr()
624 (void)SkXmMacStatistic(pAC, IoC, 0, XM_TXO_OK_HI, &RegVal32); in SkGeSirqIsr()
628 (void)SkXmMacStatistic(pAC, IoC, 0, XM_TXO_OK_LO, &RegVal32); in SkGeSirqIsr()
633 SkTimerStart(pAC, IoC, &pPrt->HalfDupChkTimer, SK_HALFDUP_CHK_TIME, in SkGeSirqIsr()
645 SK_OUT16(IoC, B3_PA_CTRL, PA_CLR_TO_TX2); in SkGeSirqIsr()
656 SkPnmiGetVar(pAC, IoC, OID_SKGE_STAT_TX_OCTETS, (char *)&Octets, in SkGeSirqIsr()
663 (void)SkXmUpdateStats(pAC, IoC, 1); in SkGeSirqIsr()
665 (void)SkXmMacStatistic(pAC, IoC, 1, XM_TXO_OK_HI, &RegVal32); in SkGeSirqIsr()
669 (void)SkXmMacStatistic(pAC, IoC, 1, XM_TXO_OK_LO, &RegVal32); in SkGeSirqIsr()
674 SkTimerStart(pAC, IoC, &pPrt->HalfDupChkTimer, SK_HALFDUP_CHK_TIME, in SkGeSirqIsr()
684 SK_OUT32(IoC, B0_R1_CSR, CSR_IRQ_CL_C); in SkGeSirqIsr()
695 SK_OUT32(IoC, B0_R2_CSR, CSR_IRQ_CL_C); in SkGeSirqIsr()
706 SK_OUT32(IoC, B0_XS1_CSR, CSR_IRQ_CL_C); in SkGeSirqIsr()
717 SK_OUT32(IoC, B0_XA1_CSR, CSR_IRQ_CL_C); in SkGeSirqIsr()
728 SK_OUT32(IoC, B0_XS2_CSR, CSR_IRQ_CL_C); in SkGeSirqIsr()
739 SK_OUT32(IoC, B0_XA2_CSR, CSR_IRQ_CL_C); in SkGeSirqIsr()
768 SkXmPhyRead(pAC, IoC, i, PHY_BCOM_INT_STAT, &PhyInt); in SkGeSirqIsr()
774 SkPhyIsrBcom(pAC, IoC, i, PhyInt); in SkGeSirqIsr()
779 SkXmPhyRead(pAC, IoC, i, PHY_LONE_INT_STAT, &PhyInt); in SkGeSirqIsr()
785 SkPhyIsrLone(pAC, IoC, i, PhyInt); in SkGeSirqIsr()
796 SkGmPhyRead(pAC, IoC, i, PHY_MARV_INT_STAT, &PhyInt); in SkGeSirqIsr()
802 SkPhyIsrGmac(pAC, IoC, i, PhyInt); in SkGeSirqIsr()
812 SK_OUT32(IoC, B2_I2C_IRQ, I2C_CLR_IRQ); in SkGeSirqIsr()
814 SkI2cIsr(pAC, IoC); in SkGeSirqIsr()
821 SK_OUT8(IoC, B0_CTST, CS_CL_SW_IRQ); in SkGeSirqIsr()
830 SK_OUT8(IoC, MR_ADDR(MAC_1, LNK_SYNC_CTRL), LED_CLR_IRQ); in SkGeSirqIsr()
836 SkMacIrq(pAC, IoC, MAC_1); in SkGeSirqIsr()
845 SK_OUT8(IoC, MR_ADDR(MAC_2, LNK_SYNC_CTRL), LED_CLR_IRQ); in SkGeSirqIsr()
851 SkMacIrq(pAC, IoC, MAC_2); in SkGeSirqIsr()
859 SK_IN32(IoC, B0_HWE_ISRC, &RegVal32); in SkGeSirqIsr()
861 SkGeHwErr(pAC, IoC, RegVal32); in SkGeSirqIsr()
864 SkHwtIsr(pAC, IoC); in SkGeSirqIsr()
881 SK_IOC IoC, /* IO Context */ in SkGePortCheckShorts() argument
898 (void)SkXmUpdateStats(pAC, IoC, Port); in SkGePortCheckShorts()
901 (void)SkXmMacStatistic(pAC, IoC, Port, XM_RXE_SHT_ERR, &Shorts); in SkGePortCheckShorts()
911 (void)SkXmMacStatistic(pAC, IoC, Port, SkGeRxRegs[i], &RxTmp); in SkGePortCheckShorts()
928 (void)SkXmMacStatistic(pAC, IoC, Port, XM_RXF_FCS_ERR, &FcsErrCts); in SkGePortCheckShorts()
996 SK_IOC IoC, /* IO Context */ in SkGePortCheckUp() argument
1020 Rtv = SkGePortCheckUpXmac(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1023 Rtv = SkGePortCheckUpBcom(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1027 Rtv = SkGePortCheckUpLone(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1030 Rtv = SkGePortCheckUpNat(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1040 Rtv = SkGePortCheckUpGmac(pAC, IoC, Port, AutoNeg); in SkGePortCheckUp()
1060 SK_IOC IoC, /* IO Context */ in SkGePortCheckUpXmac() argument
1082 return(SkGePortCheckShorts(pAC, IoC, Port)); in SkGePortCheckUpXmac()
1092 XM_IN32(IoC, Port, XM_GP_PORT, &GpReg); in SkGePortCheckUpXmac()
1096 XM_IN16(IoC, Port, XM_ISRC, &Isrc); in SkGePortCheckUpXmac()
1098 SkXmAutoNegLipaXmac(pAC, IoC, Port, IsrcSum); in SkGePortCheckUpXmac()
1106 (void)SkXmUpdateStats(pAC, IoC, Port); in SkGePortCheckUpXmac()
1109 (void)SkXmMacStatistic(pAC, IoC, Port, XM_RXE_SHT_ERR, &Shorts); in SkGePortCheckUpXmac()
1155 XM_IN16(IoC, Port, XM_ISRC, &Isrc); in SkGePortCheckUpXmac()
1158 XM_IN16(IoC, Port, XM_ISRC, &Isrc); in SkGePortCheckUpXmac()
1161 XM_IN16(IoC, Port, XM_ISRC, &Isrc); in SkGePortCheckUpXmac()
1171 SkHWInitDefSense(pAC, IoC, Port); in SkGePortCheckUpXmac()
1178 SkXmAutoNegLipaXmac(pAC, IoC, Port, Isrc); in SkGePortCheckUpXmac()
1180 if (SkGePortCheckShorts(pAC, IoC, Port) == SK_HW_PS_RESTART) { in SkGePortCheckUpXmac()
1190 XM_IN32(IoC, Port, XM_GP_PORT, &GpReg); in SkGePortCheckUpXmac()
1191 XM_IN16(IoC, Port, XM_ISRC, &Isrc); in SkGePortCheckUpXmac()
1194 SkXmAutoNegLipaXmac(pAC, IoC, Port, IsrcSum); in SkGePortCheckUpXmac()
1212 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpXmac()
1213 Done = SkMacAutoNegDone(pAC, IoC, Port); in SkGePortCheckUpXmac()
1216 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_AUNE_LP, &LpAb); in SkGePortCheckUpXmac()
1217 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_RES_ABI, &ResAb); in SkGePortCheckUpXmac()
1223 NextMode = SkHWSenseGetNext(pAC, IoC, Port); in SkGePortCheckUpXmac()
1224 SkHWLinkDown(pAC, IoC, Port); in SkGePortCheckUpXmac()
1227 SkHWSenseSetNext(pAC, IoC, Port, NextMode); in SkGePortCheckUpXmac()
1236 SkXmPhyRead(pAC, IoC, Port, PHY_XMAC_AUNE_EXP, &ExtStat); in SkGePortCheckUpXmac()
1253 SkHWSenseSetNext(pAC, IoC, Port, SK_LMODE_FULL); in SkGePortCheckUpXmac()
1273 SkHWInitDefSense(pAC, IoC, Port); in SkGePortCheckUpXmac()
1290 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpXmac()
1315 SK_IOC IoC, /* IO Context */ in SkGePortCheckUpBcom() argument
1333 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_STAT, &Isrc); in SkGePortCheckUpBcom()
1342 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_MASK, &Stat1); in SkGePortCheckUpBcom()
1351 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_CTRL, &Stat1); in SkGePortCheckUpBcom()
1353 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &Stat2); in SkGePortCheckUpBcom()
1356 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_ADV, &Stat2); in SkGePortCheckUpBcom()
1358 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &Stat3); in SkGePortCheckUpBcom()
1368 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_EXP, &Stat1); in SkGePortCheckUpBcom()
1370 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1373 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_CTRL, &Stat2); in SkGePortCheckUpBcom()
1375 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &Stat3); in SkGePortCheckUpBcom()
1385 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_CTRL, &Stat1); in SkGePortCheckUpBcom()
1387 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1390 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &Stat2); in SkGePortCheckUpBcom()
1392 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_STAT, &Stat3); in SkGePortCheckUpBcom()
1408 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_CTRL, &Ctrl); in SkGePortCheckUpBcom()
1409 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_CTRL, in SkGePortCheckUpBcom()
1411 SkXmPhyWrite(pAC, IoC, Port, PHY_BCOM_CTRL, in SkGePortCheckUpBcom()
1426 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &PhyStat); in SkGePortCheckUpBcom()
1437 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_MASK, &Stat1); in SkGePortCheckUpBcom()
1446 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_CTRL, &Stat1); in SkGePortCheckUpBcom()
1448 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &PhyStat); in SkGePortCheckUpBcom()
1451 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_ADV, &Stat2); in SkGePortCheckUpBcom()
1453 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &Stat3); in SkGePortCheckUpBcom()
1463 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_EXP, &Stat1); in SkGePortCheckUpBcom()
1465 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1468 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_CTRL, &Stat2); in SkGePortCheckUpBcom()
1470 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ResAb); in SkGePortCheckUpBcom()
1480 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_CTRL, &Stat1); in SkGePortCheckUpBcom()
1482 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_P_EXT_STAT, &Stat2); in SkGePortCheckUpBcom()
1485 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_CTRL, &Stat2); in SkGePortCheckUpBcom()
1487 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUX_STAT, &Stat3); in SkGePortCheckUpBcom()
1503 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_STAT, &PhyStat); in SkGePortCheckUpBcom()
1505 SkMacAutoNegLipaPhy(pAC, IoC, Port, PhyStat); in SkGePortCheckUpBcom()
1510 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ResAb); in SkGePortCheckUpBcom()
1536 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpBcom()
1538 Done = SkMacAutoNegDone(pAC, IoC, Port); in SkGePortCheckUpBcom()
1543 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_AUNE_LP, &LpAb); in SkGePortCheckUpBcom()
1544 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_1000T_STAT, &ExtStat); in SkGePortCheckUpBcom()
1554 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_STAT, &ExtStat); in SkGePortCheckUpBcom()
1580 SkXmPhyRead(pAC, IoC, Port, PHY_BCOM_INT_STAT, &ExtStat); in SkGePortCheckUpBcom()
1594 SkHWLinkUp(pAC, IoC, Port); in SkGePortCheckUpBcom()
1616 SK_IOC IoC, /* IO Context */
1638 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_STAT, &PhyStat);
1644 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_INT_STAT, &PhyIsrc);
1656 SkMacAutoNegLipaPhy(pAC, IoC, Port, PhyStat);
1658 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_1000T_STAT, &ResAb);
1672 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_PHY_STAT, &PhySpecStat);
1678 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_EXP, &Word);
1683 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_NEPG_LP, &Word);
1715 SkHWLinkUp(pAC, IoC, Port);
1717 Done = SkMacAutoNegDone(pAC, IoC, Port);
1737 SkHWLinkUp(pAC, IoC, Port);
1759 SK_IOC IoC, /* IO Context */
1785 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_STAT, &PhyStat);
1788 SkMacAutoNegLipaPhy(pAC, IoC, Port, PhyStat);
1804 SkHWLinkUp(pAC, IoC, Port);
1805 Done = SkMacAutoNegDone(pAC, IoC, Port);
1808 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_AUNE_LP, &LpAb);
1809 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_1000T_STAT, &ExtStat);
1815 NextMode = SkHWSenseGetNext(pAC, IoC, Port);
1816 SkHWLinkDown(pAC, IoC, Port);
1819 SkHWSenseSetNext(pAC, IoC, Port, NextMode);
1830 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_INT_STAT, &ExtStat);
1844 SkHWSenseSetNext(pAC, IoC, Port, SK_LMODE_FULL);
1866 SkXmPhyRead(pAC, IoC, Port, PHY_LONE_INT_STAT, &ExtStat);
1870 SkHWLinkUp(pAC, IoC, Port);
1890 SK_IOC IoC, /* IO Context */
1910 SK_IOC IoC, /* Io Context */
1934 PortStat = SkGePortCheckUp(pAC, IoC, (int)Port);
1941 SkHWLinkDown(pAC, IoC, (int)Port);
1947 SkRlmtEvent(pAC, IoC, SK_RLMT_LINK_DOWN, Para);
1970 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, Val32,
1980 SkRlmtEvent(pAC, IoC, SK_RLMT_LINK_DOWN, Para);
1983 SkHWLinkDown(pAC, IoC, (int)Port);
1989 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, SK_WA_INA_TIME,
1999 SkRlmtEvent(pAC, IoC, SK_RLMT_LINK_DOWN, Para);
2003 SkTimerStop(pAC, IoC, &pPrt->PWaTimer);
2005 SkHWLinkDown(pAC, IoC, (int)Port);
2088 SkPnmiGetVar(pAC, IoC, OID_SKGE_STAT_TX_OCTETS, (char *)&Octets,
2093 (void)SkXmUpdateStats(pAC, IoC, Port);
2095 (void)SkXmMacStatistic(pAC, IoC, Port, XM_TXO_OK_HI, &Val32);
2099 (void)SkXmMacStatistic(pAC, IoC, Port, XM_TXO_OK_LO, &Val32);
2105 SkMacFlushTxFifo(pAC, IoC, Port);
2132 SK_IOC IoC, /* Io Context */
2149 SkHWLinkDown(pAC, IoC, Port);
2156 SkTimerStart(pAC, IoC, &pPrt->PWaTimer, SK_WA_INA_TIME,
2175 SK_IOC IoC, /* Io Context */
2187 SkHWLinkDown(pAC, IoC, Port);
2189 SkGmPhyRead(pAC, IoC, Port, PHY_MARV_AUNE_ADV, &Word);
2197 SkGmPhyWrite(pAC, IoC, Port, PHY_MARV_AUNE_ADV,
2231 SK_IOC IoC, /* Io Context */
2239 SkHWLinkDown(pAC, IoC, Port);