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

Function cpswp_start

freebsd/arm/ti/cpsw/if_cpsw.c:1822–1836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820}
1821
1822static void
1823cpswp_start(struct ifnet *ifp)
1824{
1825 struct cpswp_softc *sc;
1826
1827 sc = ifp->if_softc;
1828 if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0 ||
1829 sc->swsc->tx.running == 0) {
1830 return;
1831 }
1832 CPSW_TX_LOCK(sc->swsc);
1833 cpswp_tx_enqueue(sc);
1834 cpsw_tx_dequeue(sc->swsc);
1835 CPSW_TX_UNLOCK(sc->swsc);
1836}
1837
1838static void
1839cpsw_intr_tx(void *arg)

Callers

nothing calls this directly

Calls 2

cpswp_tx_enqueueFunction · 0.85
cpsw_tx_dequeueFunction · 0.85

Tested by

no test coverage detected