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()
262 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
264 sbus_readl(tregs + TCVR_MPAL); in idle_transceiver()
274 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
277 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
282 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
285 sbus_readl(tregs + TCVR_MPAL); in write_tcvr_bit()
297 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
300 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
301 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit()
304 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
306 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit()
307 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit()
320 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
321 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_INT_MDIO) >> 3; in read_tcvr_bit2()
323 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
326 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
327 retval = (sbus_readl(tregs + TCVR_MPAL) & MGMT_PAL_EXT_MDIO) >> 2; in read_tcvr_bit2()
329 sbus_readl(tregs + TCVR_MPAL); in read_tcvr_bit2()
462 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
468 sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
471 mpal = sbus_readl(tregs + TCVR_MPAL); in bigmac_tcvr_init()
476 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
482 sbus_readl(tregs + TCVR_TPAL); in bigmac_tcvr_init()
487 sbus_readl(tregs + TCVR_MPAL), in bigmac_tcvr_init()
488 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()
1003 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1006 while ((sbus_readl(bregs + BMAC_RXCFG) & BIGMAC_RXCFG_ENABLE) != 0) in bigmac_set_multicast()
1015 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1033 tmp = sbus_readl(bregs + BMAC_RXCFG); in bigmac_set_multicast()
1108 if ((sbus_readl(bp->gregs + GLOB_CTRL) & 0xf0000000) != GLOB_CTRL_BMODE) { in bigmac_ether_init()