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

Function emac_resume

freebsd/arm/allwinner/if_emac.c:867–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867static int
868emac_resume(device_t dev)
869{
870 struct emac_softc *sc;
871 struct ifnet *ifp;
872
873 sc = device_get_softc(dev);
874
875 EMAC_LOCK(sc);
876 ifp = sc->emac_ifp;
877 if ((ifp->if_flags & IFF_UP) != 0) {
878 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
879 emac_init_locked(sc);
880 }
881 EMAC_UNLOCK(sc);
882
883 return (0);
884}
885
886static int
887emac_attach(device_t dev)

Callers

nothing calls this directly

Calls 2

device_get_softcFunction · 0.85
emac_init_lockedFunction · 0.85

Tested by

no test coverage detected