Lines Matching refs:sbm_base
250 void __iomem *sbm_base; /* MAC's base address */
589 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_BYTES);
590 __raw_writeq(0, s->sbm_base + R_MAC_RMON_COLLISIONS);
591 __raw_writeq(0, s->sbm_base + R_MAC_RMON_LATE_COL);
592 __raw_writeq(0, s->sbm_base + R_MAC_RMON_EX_COL);
593 __raw_writeq(0, s->sbm_base + R_MAC_RMON_FCS_ERROR);
594 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_ABORT);
595 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_BAD);
596 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_GOOD);
597 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_RUNT);
598 __raw_writeq(0, s->sbm_base + R_MAC_RMON_TX_OVERSIZE);
599 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_BYTES);
600 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_MCAST);
601 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_BCAST);
602 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_BAD);
603 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_GOOD);
604 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_RUNT);
605 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_OVERSIZE);
606 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_FCS_ERROR);
607 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_LENGTH_ERROR);
608 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_CODE_ERROR);
609 __raw_writeq(0, s->sbm_base + R_MAC_RMON_RX_ALIGN_ERROR);
616 s->sbm_base + R_MAC_DMA_REGISTER(txrx,chan,R_MAC_DMA_CONFIG0);
618 s->sbm_base + R_MAC_DMA_REGISTER(txrx,chan,R_MAC_DMA_CONFIG1);
620 s->sbm_base + R_MAC_DMA_REGISTER(txrx,chan,R_MAC_DMA_DSCR_BASE);
622 s->sbm_base + R_MAC_DMA_REGISTER(txrx,chan,R_MAC_DMA_DSCR_CNT);
624 s->sbm_base + R_MAC_DMA_REGISTER(txrx,chan,R_MAC_DMA_CUR_DSCRADDR);
629 s->sbm_base + R_MAC_DMA_REGISTER(txrx,chan,R_MAC_DMA_OODPKTLOST_RX);
1343 s->sbm_macenable = s->sbm_base + R_MAC_ENABLE;
1344 s->sbm_maccfg = s->sbm_base + R_MAC_CFG;
1345 s->sbm_fifocfg = s->sbm_base + R_MAC_THRSH_CFG;
1346 s->sbm_framecfg = s->sbm_base + R_MAC_FRAMECFG;
1347 s->sbm_rxfilter = s->sbm_base + R_MAC_ADFILTER_CFG;
1348 s->sbm_isr = s->sbm_base + R_MAC_STATUS;
1349 s->sbm_imr = s->sbm_base + R_MAC_INT_MASK;
1350 s->sbm_mdio = s->sbm_base + R_MAC_MDIO;
1468 port = s->sbm_base + R_MAC_HASH_BASE;
1478 port = s->sbm_base + R_MAC_ADDR_BASE;
1488 port = s->sbm_base + R_MAC_CHUP0_BASE;
1495 port = s->sbm_base + R_MAC_CHLO0_BASE;
1508 port = s->sbm_base + R_MAC_ADDR_BASE;
1510 port = s->sbm_base + R_MAC_ETHERNET_ADDR;
2099 port = sc->sbm_base + R_MAC_ADDR_BASE+(idx*sizeof(uint64_t));
2104 port = sc->sbm_base + R_MAC_HASH_BASE+(idx*sizeof(uint64_t));
2140 port = sc->sbm_base + R_MAC_ADDR_BASE+(idx * sizeof(uint64_t));
2213 ea_reg = __raw_readq(sc->sbm_base + R_MAC_ETHERNET_ADDR);
2214 __raw_writeq(0, sc->sbm_base + R_MAC_ETHERNET_ADDR);
2584 void __iomem *sbm_base;
2591 sbm_base = ioremap_nocache(res->start, res->end - res->start + 1);
2592 if (!sbm_base) {
2604 sbmac_orig_hwaddr = __raw_readq(sbm_base + R_MAC_ETHERNET_ADDR);
2627 sc->sbm_base = sbm_base;
2637 __raw_writeq(sbmac_orig_hwaddr, sbm_base + R_MAC_ETHERNET_ADDR);
2640 iounmap(sbm_base);
2655 iounmap(sc->sbm_base);