Lines Matching refs:SK_REG
284 sky2_write8(hw, SK_REG(port, GMAC_IRQ_MSK), 0); in sky2_phy_reset()
542 sky2_write32(hw, SK_REG(port, GPHY_CTRL), GPC_RST_SET); in sky2_mac_init()
543 sky2_write32(hw, SK_REG(port, GPHY_CTRL), GPC_RST_CLR|GPC_ENA_PAUSE); in sky2_mac_init()
545 sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_RST_CLR); in sky2_mac_init()
550 sky2_write8(hw, SK_REG(0, GMAC_CTRL), GMC_RST_CLR); in sky2_mac_init()
552 sky2_write8(hw, SK_REG(1, GMAC_CTRL), GMC_RST_SET); in sky2_mac_init()
553 sky2_write8(hw, SK_REG(1, GMAC_CTRL), GMC_RST_CLR); in sky2_mac_init()
590 sky2_write32(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF); in sky2_mac_init()
600 sky2_read16(hw, SK_REG(port, GMAC_IRQ_SRC)); in sky2_mac_init()
652 sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_CLR); in sky2_mac_init()
653 sky2_write32(hw, SK_REG(port, RX_GMF_CTRL_T), in sky2_mac_init()
657 sky2_write16(hw, SK_REG(port, RX_GMF_FL_MSK), GMR_FS_ANY_ERR); in sky2_mac_init()
662 sky2_write16(hw, SK_REG(port, RX_GMF_FL_THR), RX_GMF_FL_THR_DEF); in sky2_mac_init()
665 sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_CLR); in sky2_mac_init()
666 sky2_write16(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_OPER_ON); in sky2_mac_init()
669 sky2_write8(hw, SK_REG(port, RX_GMF_LP_THR), 768/8); in sky2_mac_init()
670 sky2_write8(hw, SK_REG(port, RX_GMF_UP_THR), 1024/8); in sky2_mac_init()
673 sky2_write32(hw, SK_REG(port, TX_GMF_AE_THR), 0x180); in sky2_mac_init()
675 sky2_write32(hw, SK_REG(port, TX_GMF_CTRL_T), TX_STFW_DIS); in sky2_mac_init()
978 sky2_write32(hw, SK_REG(sky2->port, RX_GMF_CTRL_T), RX_TRUNC_OFF); in sky2_rx_start()
980 sky2_write16(hw, SK_REG(sky2->port, RX_GMF_TR_THR), thresh); in sky2_rx_start()
981 sky2_write32(hw, SK_REG(sky2->port, RX_GMF_CTRL_T), RX_TRUNC_ON); in sky2_rx_start()
1381 sky2_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_SET); in sky2_down()
1386 sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_RST_SET); in sky2_down()
1389 sky2_write8(hw, SK_REG(port, TXA_CTRL), in sky2_down()
1393 sky2_write32(hw, SK_REG(port, TXA_ITI_INI), 0L); in sky2_down()
1394 sky2_write32(hw, SK_REG(port, TXA_LIM_INI), 0L); in sky2_down()
1408 sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_RST_SET); in sky2_down()
1409 sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_RST_SET); in sky2_down()
1465 sky2_write8(hw, SK_REG(port, GMAC_IRQ_MSK), GMAC_DEF_MSK); in sky2_link_up()
1505 sky2_write8(hw, SK_REG(port, LNK_LED_REG), in sky2_link_up()
1564 sky2_write8(hw, SK_REG(port, LNK_LED_REG), LINKLED_OFF); in sky2_link_down()
1610 sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_ON); in sky2_autoneg_done()
1612 sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF); in sky2_autoneg_done()
1984 sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_CLI_TX_PE); in sky2_hw_error()
2056 u8 status = sky2_read8(hw, SK_REG(port, GMAC_IRQ_SRC)); in sky2_mac_intr()
2064 sky2_write8(hw, SK_REG(port, RX_GMF_CTRL_T), GMF_CLI_RX_FO); in sky2_mac_intr()
2069 sky2_write8(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_CLI_TX_FU); in sky2_mac_intr()
2228 sky2_write8(hw, SK_REG(i, GMAC_LINK_CTRL), GMLC_RST_SET); in sky2_reset()
2229 sky2_write8(hw, SK_REG(i, GMAC_LINK_CTRL), GMLC_RST_CLR); in sky2_reset()
2252 sky2_write8(hw, SK_REG(i, TXA_CTRL), TXA_ENA_ARB); in sky2_reset()