Lines Matching refs:sbus_writel
84 sbus_writel(GLOB_CTRL_RESET, gregs + GLOB_CTRL); in qec_global_reset()
112 sbus_writel(regval | GLOB_CTRL_BMODE, gregs + GLOB_CTRL); in qec_init()
113 sbus_writel(GLOB_PSIZE_2048, gregs + GLOB_PSIZE); in qec_init()
116 sbus_writel(resource_size(&qec_op->resource[1]), in qec_init()
120 sbus_writel(resource_size(&qec_op->resource[1]) >> 1, in qec_init()
122 sbus_writel(resource_size(&qec_op->resource[1]) >> 1, in qec_init()
133 sbus_writel(0, bregs + BMAC_TXCFG); in bigmac_tx_reset()
153 sbus_writel(0, bregs + BMAC_RXCFG); in bigmac_rx_reset()
176 sbus_writel(0, bregs + BMAC_RCRCECTR); in bigmac_get_counters()
179 sbus_writel(0, bregs + BMAC_UNALECTR); in bigmac_get_counters()
182 sbus_writel(0, bregs + BMAC_GLECTR); in bigmac_get_counters()
189 sbus_writel(0, bregs + BMAC_EXCTR); in bigmac_get_counters()
190 sbus_writel(0, bregs + BMAC_LTCTR); in bigmac_get_counters()
263 sbus_writel(MGMT_CLKOFF, tregs + TCVR_MPAL); in idle_transceiver()
265 sbus_writel(MGMT_CLKON, tregs + TCVR_MPAL); in idle_transceiver()
274 sbus_writel(bit | (MGMT_PAL_OENAB | MGMT_PAL_EXT_MDIO), in write_tcvr_bit()
277 sbus_writel(bit | MGMT_PAL_OENAB | MGMT_PAL_EXT_MDIO | MGMT_PAL_DCLOCK, in write_tcvr_bit()
282 sbus_writel(bit | MGMT_PAL_INT_MDIO | MGMT_PAL_OENAB, in write_tcvr_bit()
285 sbus_writel(bit | MGMT_PAL_INT_MDIO | MGMT_PAL_OENAB | MGMT_PAL_DCLOCK, in write_tcvr_bit()
298 sbus_writel(MGMT_PAL_EXT_MDIO, tregs + TCVR_MPAL); in read_tcvr_bit()
300 sbus_writel(MGMT_PAL_EXT_MDIO | MGMT_PAL_DCLOCK, in read_tcvr_bit()
305 sbus_writel(MGMT_PAL_INT_MDIO, tregs + TCVR_MPAL); in read_tcvr_bit()
307 sbus_writel(MGMT_PAL_INT_MDIO | MGMT_PAL_DCLOCK, tregs + TCVR_MPAL); in read_tcvr_bit()
321 sbus_writel(MGMT_PAL_EXT_MDIO, tregs + TCVR_MPAL); in read_tcvr_bit2()
324 sbus_writel(MGMT_PAL_EXT_MDIO | MGMT_PAL_DCLOCK, tregs + TCVR_MPAL); in read_tcvr_bit2()
327 sbus_writel(MGMT_PAL_INT_MDIO, tregs + TCVR_MPAL); in read_tcvr_bit2()
330 sbus_writel(MGMT_PAL_INT_MDIO | MGMT_PAL_DCLOCK, tregs + TCVR_MPAL); in read_tcvr_bit2()
462 sbus_writel(MGMT_PAL_INT_MDIO | MGMT_PAL_EXT_MDIO | MGMT_PAL_DCLOCK, in bigmac_tcvr_init()
469 sbus_writel(MGMT_PAL_INT_MDIO | MGMT_PAL_EXT_MDIO, tregs + TCVR_MPAL); in bigmac_tcvr_init()
476 sbus_writel(~(TCVR_PAL_EXTLBACK | TCVR_PAL_MSENSE | TCVR_PAL_LTENABLE), in bigmac_tcvr_init()
481 sbus_writel(~(TCVR_PAL_SERIAL | TCVR_PAL_EXTLBACK | in bigmac_tcvr_init()
650 sbus_writel(((e[4] << 8) | e[5]), bregs + BMAC_MACADDR2); in bigmac_init_hw()
651 sbus_writel(((e[2] << 8) | e[3]), bregs + BMAC_MACADDR1); in bigmac_init_hw()
652 sbus_writel(((e[0] << 8) | e[1]), bregs + BMAC_MACADDR0); in bigmac_init_hw()
655 sbus_writel(0, bregs + BMAC_HTABLE3); in bigmac_init_hw()
656 sbus_writel(0, bregs + BMAC_HTABLE2); in bigmac_init_hw()
657 sbus_writel(0, bregs + BMAC_HTABLE1); in bigmac_init_hw()
658 sbus_writel(0, bregs + BMAC_HTABLE0); in bigmac_init_hw()
661 sbus_writel(BIGMAC_RXCFG_HENABLE | BIGMAC_RXCFG_FIFO, in bigmac_init_hw()
666 sbus_writel(BIGMAC_TXCFG_FIFO, bregs + BMAC_TXCFG); in bigmac_init_hw()
669 sbus_writel(((e[5] | e[4] << 8) & 0x3ff), in bigmac_init_hw()
673 sbus_writel(BIGMAC_XCFG_ODENABLE | BIGMAC_XCFG_RESV, in bigmac_init_hw()
677 sbus_writel(bp->bblock_dvma + bib_offset(be_rxd, 0), in bigmac_init_hw()
679 sbus_writel(bp->bblock_dvma + bib_offset(be_txd, 0), in bigmac_init_hw()
683 sbus_writel(0, cregs + CREG_RXRBUFPTR); in bigmac_init_hw()
684 sbus_writel(0, cregs + CREG_RXWBUFPTR); in bigmac_init_hw()
685 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
687 sbus_writel(sbus_readl(gregs + GLOB_RSIZE), in bigmac_init_hw()
691 sbus_writel(BIGMAC_IMASK_GOTFRAME | BIGMAC_IMASK_SENTFRAME, in bigmac_init_hw()
695 sbus_writel(0, cregs + CREG_RIMASK); in bigmac_init_hw()
696 sbus_writel(0, cregs + CREG_TIMASK); in bigmac_init_hw()
697 sbus_writel(0, cregs + CREG_QMASK); in bigmac_init_hw()
698 sbus_writel(0, cregs + CREG_BMASK); in bigmac_init_hw()
701 sbus_writel(DEFAULT_JAMSIZE, bregs + BMAC_JSIZE); in bigmac_init_hw()
704 sbus_writel(0, cregs + CREG_CCNT); 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()
982 sbus_writel(CREG_CTRL_TWAKEUP, bp->creg + CREG_CTRL); in bigmac_start_xmit()
1010 sbus_writel(tmp, bregs + BMAC_RXCFG); in bigmac_set_multicast()
1015 sbus_writel(0xffff, bregs + BMAC_HTABLE0); in bigmac_set_multicast()
1016 sbus_writel(0xffff, bregs + BMAC_HTABLE1); in bigmac_set_multicast()
1017 sbus_writel(0xffff, bregs + BMAC_HTABLE2); in bigmac_set_multicast()
1018 sbus_writel(0xffff, bregs + BMAC_HTABLE3); in bigmac_set_multicast()
1022 sbus_writel(tmp, bregs + BMAC_RXCFG); in bigmac_set_multicast()
1039 sbus_writel(hash_table[0], bregs + BMAC_HTABLE0); in bigmac_set_multicast()
1040 sbus_writel(hash_table[1], bregs + BMAC_HTABLE1); in bigmac_set_multicast()
1041 sbus_writel(hash_table[2], bregs + BMAC_HTABLE2); in bigmac_set_multicast()
1042 sbus_writel(hash_table[3], bregs + BMAC_HTABLE3); in bigmac_set_multicast()
1048 sbus_writel(tmp, bregs + BMAC_RXCFG); in bigmac_set_multicast()