Searched refs:bregs (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/drivers/net/ethernet/sun/ |
D | sunbmac.c | 129 static void bigmac_tx_reset(void __iomem *bregs) in bigmac_tx_reset() argument 133 sbus_writel(0, bregs + BMAC_TXCFG); in bigmac_tx_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() 149 static void bigmac_rx_reset(void __iomem *bregs) in bigmac_rx_reset() argument 153 sbus_writel(0, bregs + BMAC_RXCFG); in bigmac_rx_reset() 154 while (sbus_readl(bregs + BMAC_RXCFG) && --tries) in bigmac_rx_reset() 160 sbus_readl(bregs + BMAC_RXCFG)); in bigmac_rx_reset() 167 bigmac_tx_reset(bp->bregs); in bigmac_stop() 168 bigmac_rx_reset(bp->bregs); in bigmac_stop() [all …]
|
D | sunhme.c | 829 static void happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) in happy_meal_tx_reset() argument 836 hme_write32(hp, bregs + BMAC_TXSWRESET, 0); in happy_meal_tx_reset() 837 while ((hme_read32(hp, bregs + BMAC_TXSWRESET) & 1) && --tries) in happy_meal_tx_reset() 849 static void happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) in happy_meal_rx_reset() argument 856 hme_write32(hp, bregs + BMAC_RXSWRESET, 0); in happy_meal_rx_reset() 857 while ((hme_read32(hp, bregs + BMAC_RXSWRESET) & 1) && --tries) in happy_meal_rx_reset() 891 static void happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) in happy_meal_get_counters() argument 895 stats->rx_crc_errors += hme_read32(hp, bregs + BMAC_RCRCECTR); in happy_meal_get_counters() 896 hme_write32(hp, bregs + BMAC_RCRCECTR, 0); in happy_meal_get_counters() 898 stats->rx_frame_errors += hme_read32(hp, bregs + BMAC_UNALECTR); in happy_meal_get_counters() [all …]
|
D | sunbmac.h | 292 void __iomem *bregs; /* BigMAC Registers */ member
|