Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/net/ibm_emac/
Dibm_ocp_mal.c56 mal_register_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac) in mal_register_commac() argument
63 if ( (mal->tx_chan_mask & commac->tx_chan_mask) || in mal_register_commac()
64 (mal->rx_chan_mask & commac->rx_chan_mask) ) { in mal_register_commac()
69 mal->tx_chan_mask |= commac->tx_chan_mask; in mal_register_commac()
70 mal->rx_chan_mask |= commac->rx_chan_mask; in mal_register_commac()
72 list_add(&commac->list, &mal->commac); in mal_register_commac()
82 mal_unregister_commac(struct ibm_ocp_mal *mal, struct mal_commac *commac) in mal_unregister_commac() argument
88 mal->tx_chan_mask &= ~commac->tx_chan_mask; in mal_unregister_commac()
89 mal->rx_chan_mask &= ~commac->rx_chan_mask; in mal_unregister_commac()
100 int mal_set_rcbs(struct ibm_ocp_mal *mal, int channel, unsigned long size) in mal_set_rcbs() argument
[all …]
Dibm_ocp_debug.c108 struct ibm_ocp_mal* mal = ((struct ocp_enet_private*)dev->priv)->mal; in emac_mal_dump() local
112 (unsigned int) get_mal_dcrn(mal, DCRN_MALCR)); in emac_mal_dump()
114 (unsigned int) get_mal_dcrn(mal, DCRN_MALESR)); in emac_mal_dump()
116 (unsigned int) get_mal_dcrn(mal, DCRN_MALIER)); in emac_mal_dump()
119 (unsigned int) get_mal_dcrn(mal, DCRN_MALDBR)); in emac_mal_dump()
122 (unsigned int) get_mal_dcrn(mal, DCRN_MALTXCASR)); in emac_mal_dump()
124 (unsigned int) get_mal_dcrn(mal, DCRN_MALTXCARR)); in emac_mal_dump()
126 (unsigned int) get_mal_dcrn(mal, DCRN_MALTXEOBISR)); in emac_mal_dump()
128 (unsigned int) get_mal_dcrn(mal, DCRN_MALTXDEIR)); in emac_mal_dump()
130 (unsigned int) get_mal_dcrn(mal, DCRN_MALRXCASR)); in emac_mal_dump()
[all …]
Dibm_ocp_mal.h101 #define get_mal_dcrn(mal, dcrn) ({ \ argument
103 switch ((mal)->dcrbase) { \
111 #define set_mal_dcrn(mal, dcrn, val) do { \ argument
112 switch ((mal)->dcrbase) { \
120 static inline void mal_enable_tx_channels(struct ibm_ocp_mal *mal, u32 chanmask) in mal_enable_tx_channels() argument
122 set_mal_dcrn(mal, DCRN_MALTXCASR, in mal_enable_tx_channels()
123 get_mal_dcrn(mal, DCRN_MALTXCASR) | chanmask); in mal_enable_tx_channels()
126 static inline void mal_disable_tx_channels(struct ibm_ocp_mal *mal, u32 chanmask) in mal_disable_tx_channels() argument
128 set_mal_dcrn(mal, DCRN_MALTXCARR, chanmask); in mal_disable_tx_channels()
131 static inline void mal_enable_rx_channels(struct ibm_ocp_mal *mal, u32 chanmask) in mal_enable_rx_channels() argument
[all …]
Dibm_ocp_enet.c550 mal_enable_tx_channels(fep->mal, fep->commac.tx_chan_mask); in emac_txde_dev()
577 mal_disable_rx_channels(fep->mal, fep->commac.rx_chan_mask); in emac_rxde_dev()
592 set_mal_dcrn(fep->mal, DCRN_MALRXEOBISR, fep->commac.rx_chan_mask); in emac_rxde_dev()
593 set_mal_dcrn(fep->mal, DCRN_MALRXDEIR, fep->commac.rx_chan_mask); in emac_rxde_dev()
596 mal_enable_rx_channels(fep->mal, fep->commac.rx_chan_mask); in emac_rxde_dev()
615 mal_enable_tx_channels(fep->mal, fep->commac.tx_chan_mask); in emac_mac_irq()
792 ep->tx_desc = (struct mal_descriptor *) ((char *) ep->mal->tx_virt_addr + in emac_init_rings()
794 ep->rx_desc = (struct mal_descriptor *) ((char *) ep->mal->rx_virt_addr + in emac_init_rings()
832 mal_disable_tx_channels(fep->mal, fep->commac.tx_chan_mask); in emac_reset_configure()
833 mal_disable_rx_channels(fep->mal, fep->commac.rx_chan_mask); in emac_reset_configure()
[all …]
Dibm_ocp_enet.h146 struct ibm_ocp_mal *mal; member