| 2398 | |
| 2399 | #ifdef DEVICE_POLLING |
| 2400 | static int |
| 2401 | arge_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 | |
| 2417 | static void |
nothing calls this directly
no test coverage detected