m_free(sc->sc_txd[n].sd_mbuf);
m_freem(sc->sc_txd[n].sd_mbuf);
hme_stop(sc)	struct hme_softc *sc;{	bus_space_tag_t t = sc->sc_bustag;	bus_space_handle_t seb = sc->sc_seb;	int n;	timeout_del(&sc->sc_tick_ch);	mii_down(&sc->sc_mii);	/* Reset transmitter and receiver */	bus_space_write_4(t, seb, HME_SEBI_RESET,	    (HME_SEB_RESET_ETX | HME_SEB_RESET_ERX));	for (n = 0; n < 20; n++) {		u_int32_t v = bus_space_read_4(t, seb, HME_SEBI_RESET);		if ((v & (HME_SEB_RESET_ETX | HME_SEB_RESET_ERX)) == 0)			return;		DELAY(20);	}	for (n = 0; n < HME_TX_RING_SIZE; n++) {		if (sc->sc_txd[n].sd_map != NULL) {			bus_dmamap_sync(sc->sc_dmatag, sc->sc_txd[n].sd_map,			    0, sc->sc_txd[n].sd_map->dm_mapsize,			    BUS_DMASYNC_POSTWRITE);			bus_dmamap_unload(sc->sc_dmatag, sc->sc_txd[n].sd_map);			bus_dmamap_destroy(sc->sc_dmatag, sc->sc_txd[n].sd_map);			sc->sc_txd[n].sd_map = NULL;		}		if (sc->sc_txd[n].sd_mbuf != NULL) {			m_free(sc->sc_txd[n].sd_mbuf);			sc->sc_txd[n].sd_mbuf = NULL;		}	}	printf("%s: hme_stop: reset failed\n", sc->sc_dev.dv_xname);}