Home
last modified time | relevance | path

Searched refs:maccr (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/drivers/net/ethernet/faraday/
Dftmac100.c123 unsigned int maccr; in ftmac100_reset() local
125 maccr = ioread32(priv->base + FTMAC100_OFFSET_MACCR); in ftmac100_reset()
126 if (!(maccr & FTMAC100_MACCR_SW_RST)) { in ftmac100_reset()
167 static void ftmac100_set_rx_bits(struct ftmac100 *priv, unsigned int *maccr) in ftmac100_set_rx_bits() argument
172 *maccr &= ~(FTMAC100_MACCR_RCV_ALL | FTMAC100_MACCR_RX_MULTIPKT | in ftmac100_set_rx_bits()
177 *maccr |= FTMAC100_MACCR_RCV_ALL; in ftmac100_set_rx_bits()
179 *maccr |= FTMAC100_MACCR_RX_MULTIPKT; in ftmac100_set_rx_bits()
181 *maccr |= FTMAC100_MACCR_HT_MULTI_EN; in ftmac100_set_rx_bits()
198 unsigned int maccr = MACCR_ENABLE_ALL; in ftmac100_start_hw() local
217 maccr |= FTMAC100_MACCR_RX_FTL; in ftmac100_start_hw()
[all …]
Dftgmac100.c114 static int ftgmac100_reset_mac(struct ftgmac100 *priv, u32 maccr) in ftgmac100_reset_mac() argument
120 iowrite32(maccr, priv->base + FTGMAC100_OFFSET_MACCR); in ftgmac100_reset_mac()
121 iowrite32(maccr | FTGMAC100_MACCR_SW_RST, in ftgmac100_reset_mac()
124 unsigned int maccr; in ftgmac100_reset_mac() local
126 maccr = ioread32(priv->base + FTGMAC100_OFFSET_MACCR); in ftgmac100_reset_mac()
127 if (!(maccr & FTGMAC100_MACCR_SW_RST)) in ftgmac100_reset_mac()
139 u32 maccr = 0; in ftgmac100_reset_and_config_mac() local
147 maccr |= FTGMAC100_MACCR_FAST_MODE; in ftgmac100_reset_and_config_mac()
151 maccr |= FTGMAC100_MACCR_GIGA_MODE; in ftgmac100_reset_and_config_mac()
165 if (ftgmac100_reset_mac(priv, maccr)) in ftgmac100_reset_and_config_mac()
[all …]
/Linux-v6.6/drivers/net/ethernet/asix/
Dax88796c_ioctl.c73 int maccr = 0; in ax88796c_set_pauseparam() local
76 maccr |= (ax_local->flowctrl & AX_FC_RX) ? MACCR_RXFC_ENABLE : 0; in ax88796c_set_pauseparam()
77 maccr |= (ax_local->flowctrl & AX_FC_TX) ? MACCR_TXFC_ENABLE : 0; in ax88796c_set_pauseparam()
81 maccr |= AX_READ(&ax_local->ax_spi, P0_MACCR) & in ax88796c_set_pauseparam()
83 AX_WRITE(&ax_local->ax_spi, maccr, P0_MACCR); in ax88796c_set_pauseparam()
Dax88796c_main.c691 u16 maccr; in ax88796c_set_mac() local
693 maccr = (ax_local->link) ? MACCR_RXEN : 0; in ax88796c_set_mac()
697 maccr |= MACCR_SPEED_100; in ax88796c_set_mac()
708 maccr |= MACCR_SPEED_100; in ax88796c_set_mac()
719 maccr |= ax_local->pause ? MACCR_RXFC_ENABLE : 0; in ax88796c_set_mac()
720 maccr |= !ax_local->pause != !ax_local->asym_pause ? in ax88796c_set_mac()
723 maccr |= (ax_local->flowctrl & AX_FC_RX) ? MACCR_RXFC_ENABLE : 0; in ax88796c_set_mac()
724 maccr |= (ax_local->flowctrl & AX_FC_TX) ? MACCR_TXFC_ENABLE : 0; in ax88796c_set_mac()
729 maccr |= AX_READ(&ax_local->ax_spi, P0_MACCR) & in ax88796c_set_mac()
732 AX_WRITE(&ax_local->ax_spi, maccr, P0_MACCR); in ax88796c_set_mac()