| 1820 | } |
| 1821 | |
| 1822 | static void |
| 1823 | cpswp_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 | |
| 1838 | static void |
| 1839 | cpsw_intr_tx(void *arg) |
nothing calls this directly
no test coverage detected