Home
last modified time | relevance | path

Searched refs:mal (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/ibm/emac/
Dmal.c32 int mal_register_commac(struct mal_instance *mal, struct mal_commac *commac) in mal_register_commac() argument
36 spin_lock_irqsave(&mal->lock, flags); in mal_register_commac()
38 MAL_DBG(mal, "reg(%08x, %08x)" NL, in mal_register_commac()
42 if ((mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
43 (mal->rx_chan_mask & commac->rx_chan_mask)) { in mal_register_commac()
44 spin_unlock_irqrestore(&mal->lock, flags); in mal_register_commac()
46 mal->index); in mal_register_commac()
50 if (list_empty(&mal->list)) in mal_register_commac()
51 napi_enable(&mal->napi); in mal_register_commac()
52 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
[all …]
Dmal.h213 static inline u32 get_mal_dcrn(struct mal_instance *mal, int reg) in get_mal_dcrn() argument
215 return dcr_read(mal->dcr_host, reg); in get_mal_dcrn()
218 static inline void set_mal_dcrn(struct mal_instance *mal, int reg, u32 val) in set_mal_dcrn() argument
220 dcr_write(mal->dcr_host, reg, val); in set_mal_dcrn()
259 int mal_register_commac(struct mal_instance *mal,
261 void mal_unregister_commac(struct mal_instance *mal,
263 int mal_set_rcbs(struct mal_instance *mal, int channel, unsigned long size);
268 int mal_tx_bd_offset(struct mal_instance *mal, int channel);
269 int mal_rx_bd_offset(struct mal_instance *mal, int channel);
271 void mal_enable_tx_channel(struct mal_instance *mal, int channel);
[all …]
Dcore.c301 mal_poll_disable(dev->mal, &dev->commac); in emac_netif_stop()
322 mal_poll_enable(dev->mal, &dev->commac); in emac_netif_start()
754 mal_disable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
760 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_full_tx_reset()
1042 mal_disable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1104 mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(new_mtu)); in emac_resize_rx_ring()
1109 mal_enable_rx_channel(dev->mal, dev->mal_rx_chan); in emac_resize_rx_ring()
1209 skb = napi_alloc_skb(&dev->mal->napi, dev->rx_skb_size); in emac_alloc_rx_skb_napi()
1282 mal_poll_add(dev->mal, &dev->commac); in emac_open()
1283 mal_enable_tx_channel(dev->mal, dev->mal_tx_chan); in emac_open()
[all …]
DMakefile8 ibm_emac-y := mal.o core.o phy.o
Ddebug.h33 # define MAL_DBG(d,f,x...) EMAC_DBG(d, mal, f, ##x)
Dcore.h170 struct mal_instance *mal; member