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

Function arge_poll

freebsd/mips/atheros/if_arge.c:2400–2414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2398
2399#ifdef DEVICE_POLLING
2400static int
2401arge_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
2402{
2403 struct arge_softc *sc = ifp->if_softc;
2404 int rx_npkts = 0;
2405
2406 if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
2407 ARGE_LOCK(sc);
2408 arge_tx_locked(sc);
2409 rx_npkts = arge_rx_locked(sc);
2410 ARGE_UNLOCK(sc);
2411 }
2412
2413 return (rx_npkts);
2414}
2415#endif /* DEVICE_POLLING */
2416
2417static void

Callers

nothing calls this directly

Calls 2

arge_tx_lockedFunction · 0.85
arge_rx_lockedFunction · 0.85

Tested by

no test coverage detected