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

/linux-master/drivers/net/ethernet/broadcom/
H A Dbgmac-platform.c22 #include "bgmac.h"
36 static u32 platform_bgmac_read(struct bgmac *bgmac, u16 offset) argument
38 return readl(bgmac->plat.base + offset);
41 static void platform_bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) argument
43 writel(value, bgmac->plat.base + offset);
46 static u32 platform_bgmac_idm_read(struct bgmac *bgmac, u16 offset) argument
48 return readl(bgmac
51 platform_bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) argument
56 platform_bgmac_clk_enabled(struct bgmac *bgmac) argument
68 platform_bgmac_clk_enable(struct bgmac *bgmac, u32 flags) argument
96 platform_bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset, u32 mask, u32 set) argument
103 platform_bgmac_get_bus_clock(struct bgmac *bgmac) argument
111 platform_bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) argument
120 struct bgmac *bgmac = netdev_priv(net_dev); local
151 platform_phy_connect(struct bgmac *bgmac) argument
174 struct bgmac *bgmac; local
251 struct bgmac *bgmac = platform_get_drvdata(pdev); local
259 struct bgmac *bgmac = dev_get_drvdata(dev); local
266 struct bgmac *bgmac = dev_get_drvdata(dev); local
[all...]
H A Dbgmac-bcma.c16 #include "bgmac.h"
34 static u32 bcma_bgmac_read(struct bgmac *bgmac, u16 offset) argument
36 return bcma_read32(bgmac->bcma.core, offset);
39 static void bcma_bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) argument
41 bcma_write32(bgmac->bcma.core, offset, value);
44 static u32 bcma_bgmac_idm_read(struct bgmac *bgmac, u16 offset) argument
46 return bcma_aread32(bgmac
49 bcma_bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) argument
54 bcma_bgmac_clk_enabled(struct bgmac *bgmac) argument
59 bcma_bgmac_clk_enable(struct bgmac *bgmac, u32 flags) argument
64 bcma_bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset, u32 mask, u32 set) argument
72 bcma_bgmac_get_bus_clock(struct bgmac *bgmac) argument
79 bcma_bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) argument
85 bcma_phy_connect(struct bgmac *bgmac) argument
129 struct bgmac *bgmac; local
330 struct bgmac *bgmac = bcma_get_drvdata(core); local
[all...]
H A Dbgmac.c19 #include "bgmac.h"
21 static bool bgmac_wait_value(struct bgmac *bgmac, u16 reg, u32 mask, argument
28 val = bgmac_read(bgmac, reg);
33 dev_err(bgmac->dev, "Timeout waiting for reg 0x%X\n", reg);
41 static void bgmac_dma_tx_reset(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
53 bgmac_write(bgmac, ring->mmio_base + BGMAC_DMA_TX_CTL,
56 val = bgmac_read(bgmac, ring->mmio_base + BGMAC_DMA_TX_STATUS);
67 dev_err(bgmac
86 bgmac_dma_tx_enable(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
111 bgmac_dma_tx_add_buf(struct bgmac *bgmac, struct bgmac_dma_ring *ring, int i, int len, u32 ctl0) argument
131 bgmac_dma_tx_add(struct bgmac *bgmac, struct bgmac_dma_ring *ring, struct sk_buff *skb) argument
235 bgmac_dma_tx_free(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
292 bgmac_dma_rx_reset(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
306 bgmac_dma_rx_enable(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
333 bgmac_dma_rx_skb_for_slot(struct bgmac *bgmac, struct bgmac_slot_info *slot) argument
367 bgmac_dma_rx_update_index(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
377 bgmac_dma_rx_setup_desc(struct bgmac *bgmac, struct bgmac_dma_ring *ring, int desc_idx) argument
412 bgmac_dma_rx_read(struct bgmac *bgmac, struct bgmac_dma_ring *ring, int weight) argument
504 bgmac_dma_unaligned(struct bgmac *bgmac, struct bgmac_dma_ring *ring, enum bgmac_dma_ring_type ring_type) argument
525 bgmac_dma_tx_ring_free(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
552 bgmac_dma_rx_ring_free(struct bgmac *bgmac, struct bgmac_dma_ring *ring) argument
572 bgmac_dma_ring_desc_free(struct bgmac *bgmac, struct bgmac_dma_ring *ring, int num_slots) argument
588 bgmac_dma_cleanup(struct bgmac *bgmac) argument
599 bgmac_dma_free(struct bgmac *bgmac) argument
612 bgmac_dma_alloc(struct bgmac *bgmac) argument
686 bgmac_dma_init(struct bgmac *bgmac) argument
749 bgmac_umac_cmd_maskset(struct bgmac *bgmac, u32 mask, u32 set, bool force) argument
771 bgmac_write_mac_address(struct bgmac *bgmac, const u8 *addr) argument
783 struct bgmac *bgmac = netdev_priv(net_dev); local
811 bgmac_clear_mib(struct bgmac *bgmac) argument
826 bgmac_mac_speed(struct bgmac *bgmac) argument
855 bgmac_miiconfig(struct bgmac *bgmac) argument
879 bgmac_chip_reset_idm_config(struct bgmac *bgmac) argument
906 bgmac_chip_reset(struct bgmac *bgmac) argument
1033 bgmac_chip_intrs_on(struct bgmac *bgmac) argument
1038 bgmac_chip_intrs_off(struct bgmac *bgmac) argument
1045 bgmac_enable(struct bgmac *bgmac) argument
1099 bgmac_chip_init(struct bgmac *bgmac) argument
1128 struct bgmac *bgmac = netdev_priv(dev_id); local
1150 struct bgmac *bgmac = container_of(napi, struct bgmac, napi); local
1177 struct bgmac *bgmac = netdev_priv(net_dev); local
1207 struct bgmac *bgmac = netdev_priv(net_dev); local
1226 struct bgmac *bgmac = netdev_priv(net_dev); local
1236 struct bgmac *bgmac = netdev_priv(net_dev); local
1253 struct bgmac *bgmac = netdev_priv(net_dev); local
1377 struct bgmac *bgmac = netdev_priv(dev); local
1417 struct bgmac *bgmac = netdev_priv(net_dev); local
1440 bgmac_phy_connect_direct(struct bgmac *bgmac) argument
1470 struct bgmac *bgmac; local
1488 bgmac_enet_probe(struct bgmac *bgmac) argument
1569 bgmac_enet_remove(struct bgmac *bgmac) argument
1578 bgmac_enet_suspend(struct bgmac *bgmac) argument
1601 bgmac_enet_resume(struct bgmac *bgmac) argument
[all...]
H A Dbgmac.h440 struct bgmac { struct
486 u32 (*read)(struct bgmac *bgmac, u16 offset);
487 void (*write)(struct bgmac *bgmac, u16 offset, u32 value);
488 u32 (*idm_read)(struct bgmac *bgmac, u16 offset);
489 void (*idm_write)(struct bgmac *bgmac, u16 offset, u32 value);
490 bool (*clk_enabled)(struct bgmac *bgma
511 bgmac_read(struct bgmac *bgmac, u16 offset) argument
516 bgmac_write(struct bgmac *bgmac, u16 offset, u32 value) argument
521 bgmac_umac_read(struct bgmac *bgmac, u16 offset) argument
526 bgmac_umac_write(struct bgmac *bgmac, u16 offset, u32 value) argument
531 bgmac_idm_read(struct bgmac *bgmac, u16 offset) argument
536 bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) argument
541 bgmac_clk_enabled(struct bgmac *bgmac) argument
546 bgmac_clk_enable(struct bgmac *bgmac, u32 flags) argument
551 bgmac_cco_ctl_maskset(struct bgmac *bgmac, u32 offset, u32 mask, u32 set) argument
557 bgmac_get_bus_clock(struct bgmac *bgmac) argument
562 bgmac_cmn_maskset32(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) argument
568 bgmac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) argument
574 bgmac_mask(struct bgmac *bgmac, u16 offset, u32 mask) argument
579 bgmac_set(struct bgmac *bgmac, u16 offset, u32 set) argument
584 bgmac_umac_maskset(struct bgmac *bgmac, u16 offset, u32 mask, u32 set) argument
589 bgmac_phy_connect(struct bgmac *bgmac) argument
[all...]
H A Dbgmac-bcma-mdio.c14 #include "bgmac.h"
36 static u16 bcma_mdio_phy_read(struct bgmac *bgmac, u8 phyaddr, u8 reg) argument
55 if (bgmac->bcma.core->id.id == BCMA_CORE_4706_MAC_GBIT) {
56 core = bgmac->bcma.core->bus->drv_gmac_cmn.core;
60 core = bgmac->bcma.core;
86 static int bcma_mdio_phy_write(struct bgmac *bgmac, u8 phyaddr, u8 reg, argument
94 if (bgmac->bcma.core->id.id == BCMA_CORE_4706_MAC_GBIT) {
95 core = bgmac
131 bcma_mdio_phy_init(struct bgmac *bgmac) argument
181 struct bgmac *bgmac = bus->priv; local
211 bcma_mdio_mii_register(struct bgmac *bgmac) argument
[all...]
H A DMakefile15 obj-$(CONFIG_BGMAC) += bgmac.o
16 obj-$(CONFIG_BGMAC_BCMA) += bgmac-bcma.o bgmac-bcma-mdio.o
17 obj-$(CONFIG_BGMAC_PLATFORM) += bgmac-platform.o

Completed in 139 milliseconds