bregs 129 drivers/net/ethernet/sun/sunbmac.c static void bigmac_tx_reset(void __iomem *bregs) bregs 133 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_TXCFG); bregs 138 drivers/net/ethernet/sun/sunbmac.c while ((sbus_readl(bregs + BMAC_TXCFG) & ~(BIGMAC_TXCFG_FIFO)) != 0 && bregs 145 drivers/net/ethernet/sun/sunbmac.c sbus_readl(bregs + BMAC_TXCFG)); bregs 149 drivers/net/ethernet/sun/sunbmac.c static void bigmac_rx_reset(void __iomem *bregs) bregs 153 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_RXCFG); bregs 154 drivers/net/ethernet/sun/sunbmac.c while (sbus_readl(bregs + BMAC_RXCFG) && --tries) bregs 160 drivers/net/ethernet/sun/sunbmac.c sbus_readl(bregs + BMAC_RXCFG)); bregs 167 drivers/net/ethernet/sun/sunbmac.c bigmac_tx_reset(bp->bregs); bregs 168 drivers/net/ethernet/sun/sunbmac.c bigmac_rx_reset(bp->bregs); bregs 171 drivers/net/ethernet/sun/sunbmac.c static void bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) bregs 175 drivers/net/ethernet/sun/sunbmac.c stats->rx_crc_errors += sbus_readl(bregs + BMAC_RCRCECTR); bregs 176 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_RCRCECTR); bregs 178 drivers/net/ethernet/sun/sunbmac.c stats->rx_frame_errors += sbus_readl(bregs + BMAC_UNALECTR); bregs 179 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_UNALECTR); bregs 181 drivers/net/ethernet/sun/sunbmac.c stats->rx_length_errors += sbus_readl(bregs + BMAC_GLECTR); bregs 182 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_GLECTR); bregs 184 drivers/net/ethernet/sun/sunbmac.c stats->tx_aborted_errors += sbus_readl(bregs + BMAC_EXCTR); bregs 187 drivers/net/ethernet/sun/sunbmac.c (sbus_readl(bregs + BMAC_EXCTR) + bregs 188 drivers/net/ethernet/sun/sunbmac.c sbus_readl(bregs + BMAC_LTCTR)); bregs 189 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_EXCTR); bregs 190 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_LTCTR); bregs 624 drivers/net/ethernet/sun/sunbmac.c void __iomem *bregs = bp->bregs; bregs 629 drivers/net/ethernet/sun/sunbmac.c bigmac_get_counters(bp, bregs); bregs 647 drivers/net/ethernet/sun/sunbmac.c sbus_writel(((e[4] << 8) | e[5]), bregs + BMAC_MACADDR2); bregs 648 drivers/net/ethernet/sun/sunbmac.c sbus_writel(((e[2] << 8) | e[3]), bregs + BMAC_MACADDR1); bregs 649 drivers/net/ethernet/sun/sunbmac.c sbus_writel(((e[0] << 8) | e[1]), bregs + BMAC_MACADDR0); bregs 652 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_HTABLE3); bregs 653 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_HTABLE2); bregs 654 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_HTABLE1); bregs 655 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0, bregs + BMAC_HTABLE0); bregs 659 drivers/net/ethernet/sun/sunbmac.c bregs + BMAC_RXCFG); bregs 663 drivers/net/ethernet/sun/sunbmac.c sbus_writel(BIGMAC_TXCFG_FIFO, bregs + BMAC_TXCFG); bregs 667 drivers/net/ethernet/sun/sunbmac.c bregs + BMAC_RSEED); bregs 671 drivers/net/ethernet/sun/sunbmac.c bregs + BMAC_XIFCFG); bregs 689 drivers/net/ethernet/sun/sunbmac.c bregs + BMAC_IMASK); bregs 698 drivers/net/ethernet/sun/sunbmac.c sbus_writel(DEFAULT_JAMSIZE, bregs + BMAC_JSIZE); bregs 704 drivers/net/ethernet/sun/sunbmac.c sbus_writel(sbus_readl(bregs + BMAC_TXCFG) | BIGMAC_TXCFG_ENABLE, bregs 705 drivers/net/ethernet/sun/sunbmac.c bregs + BMAC_TXCFG); bregs 706 drivers/net/ethernet/sun/sunbmac.c sbus_writel(sbus_readl(bregs + BMAC_RXCFG) | BIGMAC_RXCFG_ENABLE, bregs 707 drivers/net/ethernet/sun/sunbmac.c bregs + BMAC_RXCFG); bregs 989 drivers/net/ethernet/sun/sunbmac.c bigmac_get_counters(bp, bp->bregs); bregs 996 drivers/net/ethernet/sun/sunbmac.c void __iomem *bregs = bp->bregs; bregs 1003 drivers/net/ethernet/sun/sunbmac.c tmp = sbus_readl(bregs + BMAC_RXCFG); bregs 1005 drivers/net/ethernet/sun/sunbmac.c sbus_writel(tmp, bregs + BMAC_RXCFG); bregs 1006 drivers/net/ethernet/sun/sunbmac.c while ((sbus_readl(bregs + BMAC_RXCFG) & BIGMAC_RXCFG_ENABLE) != 0) bregs 1010 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0xffff, bregs + BMAC_HTABLE0); bregs 1011 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0xffff, bregs + BMAC_HTABLE1); bregs 1012 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0xffff, bregs + BMAC_HTABLE2); bregs 1013 drivers/net/ethernet/sun/sunbmac.c sbus_writel(0xffff, bregs + BMAC_HTABLE3); bregs 1015 drivers/net/ethernet/sun/sunbmac.c tmp = sbus_readl(bregs + BMAC_RXCFG); bregs 1017 drivers/net/ethernet/sun/sunbmac.c sbus_writel(tmp, bregs + BMAC_RXCFG); bregs 1026 drivers/net/ethernet/sun/sunbmac.c sbus_writel(hash_table[0], bregs + BMAC_HTABLE0); bregs 1027 drivers/net/ethernet/sun/sunbmac.c sbus_writel(hash_table[1], bregs + BMAC_HTABLE1); bregs 1028 drivers/net/ethernet/sun/sunbmac.c sbus_writel(hash_table[2], bregs + BMAC_HTABLE2); bregs 1029 drivers/net/ethernet/sun/sunbmac.c sbus_writel(hash_table[3], bregs + BMAC_HTABLE3); bregs 1033 drivers/net/ethernet/sun/sunbmac.c tmp = sbus_readl(bregs + BMAC_RXCFG); bregs 1035 drivers/net/ethernet/sun/sunbmac.c sbus_writel(tmp, bregs + BMAC_RXCFG); bregs 1143 drivers/net/ethernet/sun/sunbmac.c bp->bregs = of_ioremap(&op->resource[1], 0, bregs 1145 drivers/net/ethernet/sun/sunbmac.c if (!bp->bregs) { bregs 1210 drivers/net/ethernet/sun/sunbmac.c if (bp->bregs) bregs 1211 drivers/net/ethernet/sun/sunbmac.c of_iounmap(&op->resource[1], bp->bregs, BMAC_REG_SIZE); bregs 1252 drivers/net/ethernet/sun/sunbmac.c of_iounmap(&op->resource[1], bp->bregs, BMAC_REG_SIZE); bregs 292 drivers/net/ethernet/sun/sunbmac.h void __iomem *bregs; /* BigMAC Registers */ bregs 873 drivers/net/ethernet/sun/sunhme.c static void happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) bregs 880 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_TXSWRESET, 0); bregs 881 drivers/net/ethernet/sun/sunhme.c while ((hme_read32(hp, bregs + BMAC_TXSWRESET) & 1) && --tries) bregs 893 drivers/net/ethernet/sun/sunhme.c static void happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) bregs 900 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RXSWRESET, 0); bregs 901 drivers/net/ethernet/sun/sunhme.c while ((hme_read32(hp, bregs + BMAC_RXSWRESET) & 1) && --tries) bregs 935 drivers/net/ethernet/sun/sunhme.c static void happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) bregs 939 drivers/net/ethernet/sun/sunhme.c stats->rx_crc_errors += hme_read32(hp, bregs + BMAC_RCRCECTR); bregs 940 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RCRCECTR, 0); bregs 942 drivers/net/ethernet/sun/sunhme.c stats->rx_frame_errors += hme_read32(hp, bregs + BMAC_UNALECTR); bregs 943 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_UNALECTR, 0); bregs 945 drivers/net/ethernet/sun/sunhme.c stats->rx_length_errors += hme_read32(hp, bregs + BMAC_GLECTR); bregs 946 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_GLECTR, 0); bregs 948 drivers/net/ethernet/sun/sunhme.c stats->tx_aborted_errors += hme_read32(hp, bregs + BMAC_EXCTR); bregs 951 drivers/net/ethernet/sun/sunhme.c (hme_read32(hp, bregs + BMAC_EXCTR) + bregs 952 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_LTCTR)); bregs 953 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_EXCTR, 0); bregs 954 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_LTCTR, 0); bregs 1426 drivers/net/ethernet/sun/sunhme.c void __iomem *bregs = hp->bigmacregs; bregs 1439 drivers/net/ethernet/sun/sunhme.c happy_meal_get_counters(hp, bregs); bregs 1487 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_XIFCFG, 0); bregs 1493 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_XIFCFG, BIGMAC_XCFG_MIIDISAB); bregs 1502 drivers/net/ethernet/sun/sunhme.c happy_meal_tx_reset(hp, bregs); bregs 1503 drivers/net/ethernet/sun/sunhme.c happy_meal_rx_reset(hp, bregs); bregs 1507 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_JSIZE, DEFAULT_JAMSIZE); bregs 1508 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_IGAP1, DEFAULT_IPG1); bregs 1509 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_IGAP2, DEFAULT_IPG2); bregs 1515 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RSEED, ((e[5] | e[4]<<8)&0x3ff)); bregs 1517 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_MACADDR2, ((e[4] << 8) | e[5])); bregs 1518 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_MACADDR1, ((e[2] << 8) | e[3])); bregs 1519 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_MACADDR0, ((e[0] << 8) | e[1])); bregs 1524 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE0, 0xffff); bregs 1525 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE1, 0xffff); bregs 1526 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE2, 0xffff); bregs 1527 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE3, 0xffff); bregs 1539 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE0, hash_table[0]); bregs 1540 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE1, hash_table[1]); bregs 1541 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE2, hash_table[2]); bregs 1542 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE3, hash_table[3]); bregs 1544 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE3, 0); bregs 1545 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE2, 0); bregs 1546 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE1, 0); bregs 1547 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE0, 0); bregs 1651 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_RXCFG))); bregs 1655 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RXCFG, rxcfg); bregs 1669 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_TXCFG, regtmp /*| BIGMAC_TXCFG_DGIVEUP*/); bregs 1672 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_ALIMIT, 16); bregs 1686 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_XIFCFG))); bregs 1687 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_XIFCFG, regtmp); bregs 1691 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_TXCFG), bregs 1692 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_RXCFG))); bregs 1695 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_TXMAX, ETH_FRAME_LEN + 8); bregs 1696 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RXMAX, ETH_FRAME_LEN + 8); bregs 1698 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_TXCFG, bregs 1699 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_TXCFG) | BIGMAC_TXCFG_ENABLE); bregs 1700 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RXCFG, bregs 1701 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_RXCFG) | BIGMAC_RXCFG_ENABLE); bregs 1714 drivers/net/ethernet/sun/sunhme.c void __iomem *bregs = hp->bigmacregs; bregs 1730 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_XIFCFG, 0); bregs 1733 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_XIFCFG, BIGMAC_XCFG_MIIDISAB); bregs 2404 drivers/net/ethernet/sun/sunhme.c void __iomem *bregs = hp->bigmacregs; bregs 2411 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE0, 0xffff); bregs 2412 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE1, 0xffff); bregs 2413 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE2, 0xffff); bregs 2414 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE3, 0xffff); bregs 2416 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_RXCFG, bregs 2417 drivers/net/ethernet/sun/sunhme.c hme_read32(hp, bregs + BMAC_RXCFG) | BIGMAC_RXCFG_PMISC); bregs 2427 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE0, hash_table[0]); bregs 2428 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE1, hash_table[1]); bregs 2429 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE2, hash_table[2]); bregs 2430 drivers/net/ethernet/sun/sunhme.c hme_write32(hp, bregs + BMAC_HTABLE3, hash_table[3]);