Searched refs:bgmac (Results 1 – 3 of 3) sorted by relevance
/drivers/net/ethernet/broadcom/ |
D | bgmac.c | 48 static void bgmac_dma_tx_reset(struct bgmac *bgmac, struct bgmac_dma_ring *ring) in bgmac_dma_tx_reset() argument 60 bgmac_write(bgmac, ring->mmio_base + BGMAC_DMA_TX_CTL, in bgmac_dma_tx_reset() 63 val = bgmac_read(bgmac, ring->mmio_base + BGMAC_DMA_TX_STATUS); in bgmac_dma_tx_reset() 74 bgmac_err(bgmac, "Timeout suspending DMA TX ring 0x%X (BGMAC_DMA_TX_STAT: 0x%08X)\n", in bgmac_dma_tx_reset() 78 bgmac_write(bgmac, ring->mmio_base + BGMAC_DMA_TX_CTL, 0); in bgmac_dma_tx_reset() 79 if (!bgmac_wait_value(bgmac->core, in bgmac_dma_tx_reset() 83 bgmac_warn(bgmac, "DMA TX ring 0x%X wasn't disabled on time, waiting additional 300us\n", in bgmac_dma_tx_reset() 86 val = bgmac_read(bgmac, ring->mmio_base + BGMAC_DMA_TX_STATUS); in bgmac_dma_tx_reset() 88 bgmac_err(bgmac, "Reset of DMA TX ring 0x%X failed\n", in bgmac_dma_tx_reset() 93 static void bgmac_dma_tx_enable(struct bgmac *bgmac, in bgmac_dma_tx_enable() argument [all …]
|
D | bgmac.h | 6 #define bgmac_err(bgmac, fmt, ...) \ argument 7 dev_err(&(bgmac)->core->dev, fmt, ##__VA_ARGS__) 8 #define bgmac_warn(bgmac, fmt, ...) \ argument 9 dev_warn(&(bgmac)->core->dev, fmt, ##__VA_ARGS__) 10 #define bgmac_info(bgmac, fmt, ...) \ argument 11 dev_info(&(bgmac)->core->dev, fmt, ##__VA_ARGS__) 12 #define bgmac_dbg(bgmac, fmt, ...) \ argument 13 dev_dbg(&(bgmac)->core->dev, fmt, ##__VA_ARGS__) 431 struct bgmac { struct 462 static inline u32 bgmac_read(struct bgmac *bgmac, u16 offset) in bgmac_read() argument [all …]
|
D | Makefile | 13 obj-$(CONFIG_BGMAC) += bgmac.o
|