Home
last modified time | relevance | path

Searched refs:bregs (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
H A Dsunbmac.c129 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()
171 bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) bigmac_get_counters() argument
624 void __iomem *bregs = bp->bregs; bigmac_init_hw() local
996 void __iomem *bregs = bp->bregs; bigmac_set_multicast() local
[all...]
H A Dsunhme.c872 static void happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) in happy_meal_tx_reset() argument
879 hme_write32(hp, bregs + BMAC_TXSWRESET, 0); in happy_meal_tx_reset()
880 while ((hme_read32(hp, bregs + BMAC_TXSWRESET) & 1) && --tries) in happy_meal_tx_reset()
892 static void happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) in happy_meal_rx_reset() argument
899 hme_write32(hp, bregs + BMAC_RXSWRESET, 0); in happy_meal_rx_reset()
900 while ((hme_read32(hp, bregs + BMAC_RXSWRESET) & 1) && --tries) in happy_meal_rx_reset()
934 static void happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) in happy_meal_get_counters() argument
938 stats->rx_crc_errors += hme_read32(hp, bregs + BMAC_RCRCECTR); in happy_meal_get_counters()
939 hme_write32(hp, bregs + BMAC_RCRCECTR, 0); in happy_meal_get_counters()
941 stats->rx_frame_errors += hme_read32(hp, bregs in happy_meal_get_counters()
1425 void __iomem *bregs = hp->bigmacregs; happy_meal_init() local
1713 void __iomem *bregs = hp->bigmacregs; happy_meal_set_initial_advertisement() local
2403 void __iomem *bregs = hp->bigmacregs; happy_meal_set_multicast() local
[all...]
H A Dsunbmac.h292 void __iomem *bregs; /* BigMAC Registers */ member
/kernel/linux/linux-6.6/drivers/net/ethernet/sun/
H A Dsunbmac.c129 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()
171 bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) bigmac_get_counters() argument
624 void __iomem *bregs = bp->bregs; bigmac_init_hw() local
996 void __iomem *bregs = bp->bregs; bigmac_set_multicast() local
[all...]
H A Dsunhme.c901 static void happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) in happy_meal_tx_reset() argument
908 hme_write32(hp, bregs + BMAC_TXSWRESET, 0); in happy_meal_tx_reset()
909 while ((hme_read32(hp, bregs + BMAC_TXSWRESET) & 1) && --tries) in happy_meal_tx_reset()
921 static void happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) in happy_meal_rx_reset() argument
928 hme_write32(hp, bregs + BMAC_RXSWRESET, 0); in happy_meal_rx_reset()
929 while ((hme_read32(hp, bregs + BMAC_RXSWRESET) & 1) && --tries) in happy_meal_rx_reset()
963 static void happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) in happy_meal_get_counters() argument
967 stats->rx_crc_errors += hme_read32(hp, bregs + BMAC_RCRCECTR); in happy_meal_get_counters()
968 hme_write32(hp, bregs + BMAC_RCRCECTR, 0); in happy_meal_get_counters()
970 stats->rx_frame_errors += hme_read32(hp, bregs in happy_meal_get_counters()
1262 void __iomem *bregs = hp->bigmacregs; happy_meal_init() local
1535 void __iomem *bregs = hp->bigmacregs; happy_meal_set_initial_advertisement() local
2088 void __iomem *bregs = hp->bigmacregs; happy_meal_set_multicast() local
[all...]
H A Dsunbmac.h292 void __iomem *bregs; /* BigMAC Registers */ member

Completed in 9 milliseconds