MCPcopy Create free account
hub / github.com/F-Stack/f-stack / txgbe_disable_rx

Function txgbe_disable_rx

dpdk/drivers/net/txgbe/base/txgbe_hw.c:2214–2229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2212}
2213
2214void txgbe_disable_rx(struct txgbe_hw *hw)
2215{
2216 u32 pfdtxgswc;
2217
2218 pfdtxgswc = rd32(hw, TXGBE_PSRCTL);
2219 if (pfdtxgswc & TXGBE_PSRCTL_LBENA) {
2220 pfdtxgswc &= ~TXGBE_PSRCTL_LBENA;
2221 wr32(hw, TXGBE_PSRCTL, pfdtxgswc);
2222 hw->mac.set_lben = true;
2223 } else {
2224 hw->mac.set_lben = false;
2225 }
2226
2227 wr32m(hw, TXGBE_PBRXCTL, TXGBE_PBRXCTL_ENA, 0);
2228 wr32m(hw, TXGBE_MACRXCFG, TXGBE_MACRXCFG_ENA, 0);
2229}
2230
2231void txgbe_enable_rx(struct txgbe_hw *hw)
2232{

Callers 2

txgbe_stop_hwFunction · 0.85

Calls 3

rd32Function · 0.70
wr32Function · 0.70
wr32mFunction · 0.70

Tested by

no test coverage detected