Lines Matching refs:CSR_READ_4

218 		v = CSR_READ_4(sc, ALE_MDIO);  in ale_miibus_readreg()
245 v = CSR_READ_4(sc, ALE_MDIO); in ale_miibus_writereg()
295 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_miibus_statchg()
368 reg = CSR_READ_4(sc, ALE_SPI_CTRL); in ale_get_macaddr()
379 CSR_WRITE_4(sc, ALE_TWSI_CTRL, CSR_READ_4(sc, ALE_TWSI_CTRL) | in ale_get_macaddr()
383 reg = CSR_READ_4(sc, ALE_TWSI_CTRL); in ale_get_macaddr()
396 ea[0] = CSR_READ_4(sc, ALE_PAR0); in ale_get_macaddr()
397 ea[1] = CSR_READ_4(sc, ALE_PAR1); in ale_get_macaddr()
497 if ((CSR_READ_4(sc, ALE_PHY_STATUS) & PHY_STATUS_100M) != 0) { in ale_attach()
523 sc->ale_chip_rev = CSR_READ_4(sc, ALE_MASTER_CFG) >> in ale_attach()
531 txf_len = CSR_READ_4(sc, ALE_SRAM_TX_FIFO_LEN); in ale_attach()
532 rxf_len = CSR_READ_4(sc, ALE_SRAM_RX_FIFO_LEN); in ale_attach()
1500 reg = CSR_READ_4(sc, ALE_PCIE_PHYMISC); in ale_setwol()
1522 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_setwol()
1533 reg = CSR_READ_4(sc, ALE_PCIE_PHYMISC); in ale_setwol()
2081 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_mac_config()
2112 CSR_READ_4(sc, ALE_RX_MIB_BASE + i); in ale_stats_clear()
2117 CSR_READ_4(sc, ALE_TX_MIB_BASE + i); in ale_stats_clear()
2139 *reg = CSR_READ_4(sc, ALE_RX_MIB_BASE + i); in ale_stats_update()
2144 *reg = CSR_READ_4(sc, ALE_TX_MIB_BASE + i); in ale_stats_update()
2228 status = CSR_READ_4(sc, ALE_INTR_STATUS); in ale_intr()
2248 status = CSR_READ_4(sc, ALE_INTR_STATUS); in ale_int_task()
2289 (CSR_READ_4(sc, ALE_INTR_STATUS) & ALE_INTRS) != 0) { in ale_int_task()
2593 CSR_WRITE_4(sc, 0x1008, CSR_READ_4(sc, 0x1008) | 0x8000); in ale_reset()
2598 if ((CSR_READ_4(sc, ALE_MASTER_CFG) & MASTER_RESET) == 0) in ale_reset()
2605 if ((reg = CSR_READ_4(sc, ALE_IDLE_STATUS)) == 0) in ale_reset()
2662 CSR_READ_4(sc, ALE_WOL_CFG); in ale_init_locked()
2714 reg = CSR_READ_4(sc, ALE_MASTER_CFG); in ale_init_locked()
2776 reg = CSR_READ_4(sc, ALE_SRAM_RX_FIFO_LEN); in ale_init_locked()
2878 reg = CSR_READ_4(sc, ALE_TXQ_CFG); in ale_stop()
2881 reg = CSR_READ_4(sc, ALE_RXQ_CFG); in ale_stop()
2884 reg = CSR_READ_4(sc, ALE_DMA_CFG); in ale_stop()
2917 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_stop_mac()
2924 reg = CSR_READ_4(sc, ALE_IDLE_STATUS); in ale_stop_mac()
2995 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_rxvlan()
3024 rxcfg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_rxfilter()