Lines Matching refs:sbus_readl
86 if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) { in qec_global_reset()
138 while ((sbus_readl(bregs + BMAC_TXCFG) & ~(BIGMAC_TXCFG_FIFO)) != 0 && in bigmac_tx_reset()
145 sbus_readl(bregs + BMAC_TXCFG)); in bigmac_tx_reset()
154 while (sbus_readl(bregs + BMAC_RXCFG) && --tries) in bigmac_rx_reset()
160 sbus_readl(bregs + BMAC_RXCFG)); in bigmac_rx_reset()
175 stats->rx_crc_errors += sbus_readl(bregs + BMAC_RCRCECTR); in bigmac_get_counters()
178 stats->rx_frame_errors += sbus_readl(bregs + BMAC_UNALECTR); in bigmac_get_counters()
181 stats->rx_length_errors += sbus_readl(bregs + BMAC_GLECTR); in bigmac_get_counters()
184 stats->tx_aborted_errors += sbus_readl(bregs + BMAC_EXCTR); in bigmac_get_counters()
187 (sbus_readl(bregs + BMAC_EXCTR) + in bigmac_get_counters()
188 sbus_readl(bregs + BMAC_LTCTR)); in bigmac_get_counters()
264 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
266 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
276 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
279 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
284 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
287 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
299 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
302 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
303 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit()
306 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
308 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
309 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit()
322 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
323 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit2()
325 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
328 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
329 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit2()
331 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
464 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
470 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
473 mpal = sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
478 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
484 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
489 sbus_readl(tregs + TCVR_MPAL), in bigmac_tcvr_init()
490 sbus_readl(tregs + TCVR_TPAL)); in bigmac_tcvr_init()
685 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
687 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
707 sbus_writel(sbus_readl(bregs + BMAC_TXCFG) | BIGMAC_TXCFG_ENABLE, in bigmac_init_hw()
709 sbus_writel(sbus_readl(bregs + BMAC_RXCFG) | BIGMAC_RXCFG_ENABLE, in bigmac_init_hw()
900 bmac_status = sbus_readl(bp->creg + CREG_STAT); in bigmac_interrupt()
901 qec_status = sbus_readl(bp->gregs + GLOB_STAT); in bigmac_interrupt()
1008 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1011 while ((sbus_readl(bregs + BMAC_RXCFG) & BIGMAC_RXCFG_ENABLE) != 0) in bigmac_set_multicast()
1020 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1046 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1124 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()