Lines Matching refs:sbus_readl

79 		if (sbus_readl(gregs + GLOB_CTRL) & GLOB_CTRL_RESET) {  in qec_global_reset()
131 while ((sbus_readl(bregs + BMAC_TXCFG) & ~(BIGMAC_TXCFG_FIFO)) != 0 && in bigmac_tx_reset()
138 sbus_readl(bregs + BMAC_TXCFG)); in bigmac_tx_reset()
147 while (sbus_readl(bregs + BMAC_RXCFG) && --tries) in bigmac_rx_reset()
153 sbus_readl(bregs + BMAC_RXCFG)); in bigmac_rx_reset()
168 stats->rx_crc_errors += sbus_readl(bregs + BMAC_RCRCECTR); in bigmac_get_counters()
171 stats->rx_frame_errors += sbus_readl(bregs + BMAC_UNALECTR); in bigmac_get_counters()
174 stats->rx_length_errors += sbus_readl(bregs + BMAC_GLECTR); in bigmac_get_counters()
177 stats->tx_aborted_errors += sbus_readl(bregs + BMAC_EXCTR); in bigmac_get_counters()
180 (sbus_readl(bregs + BMAC_EXCTR) + in bigmac_get_counters()
181 sbus_readl(bregs + BMAC_LTCTR)); in bigmac_get_counters()
255 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
257 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
267 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
270 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
275 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
278 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
290 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
293 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
294 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit()
297 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_EXT_MDIO) >> 2; in read_tcvr_bit()
313 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
314 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit2()
316 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
319 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
320 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit2()
322 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
455 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
461 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
464 mpal = sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
469 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
475 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
480 sbus_readl(tregs + TCVR_MPAL), in bigmac_tcvr_init()
481 sbus_readl(tregs + TCVR_TPAL)); in bigmac_tcvr_init()
676 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init()
678 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init()
698 sbus_writel(sbus_readl(bregs + BMAC_TXCFG) | BIGMAC_TXCFG_ENABLE, in bigmac_init()
700 sbus_writel(sbus_readl(bregs + BMAC_RXCFG) | BIGMAC_RXCFG_ENABLE, in bigmac_init()
888 bmac_status = sbus_readl(bp->creg + CREG_STAT); in bigmac_interrupt()
889 qec_status = sbus_readl(bp->gregs + GLOB_STAT); in bigmac_interrupt()
995 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
998 while ((sbus_readl(bregs + BMAC_RXCFG) & BIGMAC_RXCFG_ENABLE) != 0) in bigmac_set_multicast()
1007 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1034 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1092 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()