Lines Matching refs:sbus_readl

85 		if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) {  in qec_global_reset()
137 while ((sbus_readl(bregs + BMAC_TXCFG) & ~(BIGMAC_TXCFG_FIFO)) != 0 && in bigmac_tx_reset()
144 sbus_readl(bregs + BMAC_TXCFG)); in bigmac_tx_reset()
153 while (sbus_readl(bregs + BMAC_RXCFG) && --tries) in bigmac_rx_reset()
159 sbus_readl(bregs + BMAC_RXCFG)); in bigmac_rx_reset()
174 stats->rx_crc_errors += sbus_readl(bregs + BMAC_RCRCECTR); in bigmac_get_counters()
177 stats->rx_frame_errors += sbus_readl(bregs + BMAC_UNALECTR); in bigmac_get_counters()
180 stats->rx_length_errors += sbus_readl(bregs + BMAC_GLECTR); in bigmac_get_counters()
183 stats->tx_aborted_errors += sbus_readl(bregs + BMAC_EXCTR); in bigmac_get_counters()
186 (sbus_readl(bregs + BMAC_EXCTR) + in bigmac_get_counters()
187 sbus_readl(bregs + BMAC_LTCTR)); in bigmac_get_counters()
261 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
263 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
273 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
276 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
281 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
284 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
296 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
299 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
300 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit()
303 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
305 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
306 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit()
319 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
320 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit2()
322 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
325 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
326 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit2()
328 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
461 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
467 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
470 mpal = sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
475 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
481 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
486 sbus_readl(tregs + TCVR_MPAL), in bigmac_tcvr_init()
487 sbus_readl(tregs + TCVR_TPAL)); in bigmac_tcvr_init()
682 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
684 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
704 sbus_writel(sbus_readl(bregs + BMAC_TXCFG) | BIGMAC_TXCFG_ENABLE, in bigmac_init_hw()
706 sbus_writel(sbus_readl(bregs + BMAC_RXCFG) | BIGMAC_RXCFG_ENABLE, in bigmac_init_hw()
896 bmac_status = sbus_readl(bp->creg + CREG_STAT); in bigmac_interrupt()
897 qec_status = sbus_readl(bp->gregs + GLOB_STAT); in bigmac_interrupt()
1002 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1005 while ((sbus_readl(bregs + BMAC_RXCFG) & BIGMAC_RXCFG_ENABLE) != 0) in bigmac_set_multicast()
1014 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1032 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1110 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()