Lines Matching refs:CSR_READ_4

214 		v = CSR_READ_4(sc, ALE_MDIO);  in ale_miibus_readreg()
241 v = CSR_READ_4(sc, ALE_MDIO); in ale_miibus_writereg()
291 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_miibus_statchg()
364 reg = CSR_READ_4(sc, ALE_SPI_CTRL); in ale_get_macaddr()
375 CSR_WRITE_4(sc, ALE_TWSI_CTRL, CSR_READ_4(sc, ALE_TWSI_CTRL) | in ale_get_macaddr()
379 reg = CSR_READ_4(sc, ALE_TWSI_CTRL); in ale_get_macaddr()
392 ea[0] = CSR_READ_4(sc, ALE_PAR0); in ale_get_macaddr()
393 ea[1] = CSR_READ_4(sc, ALE_PAR1); in ale_get_macaddr()
493 if ((CSR_READ_4(sc, ALE_PHY_STATUS) & PHY_STATUS_100M) != 0) { in ale_attach()
519 sc->ale_chip_rev = CSR_READ_4(sc, ALE_MASTER_CFG) >> in ale_attach()
527 txf_len = CSR_READ_4(sc, ALE_SRAM_TX_FIFO_LEN); in ale_attach()
528 rxf_len = CSR_READ_4(sc, ALE_SRAM_RX_FIFO_LEN); in ale_attach()
1483 reg = CSR_READ_4(sc, ALE_PCIE_PHYMISC); in ale_setwol()
1505 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_setwol()
1516 reg = CSR_READ_4(sc, ALE_PCIE_PHYMISC); in ale_setwol()
2064 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_mac_config()
2095 CSR_READ_4(sc, ALE_RX_MIB_BASE + i); in ale_stats_clear()
2100 CSR_READ_4(sc, ALE_TX_MIB_BASE + i); in ale_stats_clear()
2122 *reg = CSR_READ_4(sc, ALE_RX_MIB_BASE + i); in ale_stats_update()
2127 *reg = CSR_READ_4(sc, ALE_TX_MIB_BASE + i); in ale_stats_update()
2211 status = CSR_READ_4(sc, ALE_INTR_STATUS); in ale_intr()
2231 status = CSR_READ_4(sc, ALE_INTR_STATUS); in ale_int_task()
2272 (CSR_READ_4(sc, ALE_INTR_STATUS) & ALE_INTRS) != 0) { in ale_int_task()
2576 CSR_WRITE_4(sc, 0x1008, CSR_READ_4(sc, 0x1008) | 0x8000); in ale_reset()
2581 if ((CSR_READ_4(sc, ALE_MASTER_CFG) & MASTER_RESET) == 0) in ale_reset()
2588 if ((reg = CSR_READ_4(sc, ALE_IDLE_STATUS)) == 0) in ale_reset()
2645 CSR_READ_4(sc, ALE_WOL_CFG); in ale_init_locked()
2697 reg = CSR_READ_4(sc, ALE_MASTER_CFG); in ale_init_locked()
2759 reg = CSR_READ_4(sc, ALE_SRAM_RX_FIFO_LEN); in ale_init_locked()
2861 reg = CSR_READ_4(sc, ALE_TXQ_CFG); in ale_stop()
2864 reg = CSR_READ_4(sc, ALE_RXQ_CFG); in ale_stop()
2867 reg = CSR_READ_4(sc, ALE_DMA_CFG); in ale_stop()
2900 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_stop_mac()
2907 reg = CSR_READ_4(sc, ALE_IDLE_STATUS); in ale_stop_mac()
2978 reg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_rxvlan()
3007 rxcfg = CSR_READ_4(sc, ALE_MAC_CFG); in ale_rxfilter()