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

Function emac_txeof

freebsd/arm/allwinner/if_emac.c:293–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static void
294emac_txeof(struct emac_softc *sc, uint32_t status)
295{
296 struct ifnet *ifp;
297
298 EMAC_ASSERT_LOCKED(sc);
299
300 ifp = sc->emac_ifp;
301 status &= (EMAC_TX_FIFO0 | EMAC_TX_FIFO1);
302 sc->emac_fifo_mask &= ~status;
303 if (status == (EMAC_TX_FIFO0 | EMAC_TX_FIFO1))
304 if_inc_counter(ifp, IFCOUNTER_OPACKETS, 2);
305 else
306 if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
307 ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
308
309 /* Unarm watchdog timer if no TX */
310 sc->emac_watchdog_timer = 0;
311}
312
313static void
314emac_rxeof(struct emac_softc *sc, int count)

Callers 1

emac_intrFunction · 0.85

Calls 1

if_inc_counterFunction · 0.85

Tested by

no test coverage detected