Lines Matching refs:sc_dev

159 		device_printf(sc->sc_dev, "flags=0x%x\n", sc->sc_flags);  in gem_attach()
167 if_initname(ifp, device_get_name(sc->sc_dev), in gem_attach()
168 device_get_unit(sc->sc_dev)); in gem_attach()
185 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0, in gem_attach()
221 device_printf(sc->sc_dev, in gem_attach()
230 device_printf(sc->sc_dev, in gem_attach()
252 device_printf(sc->sc_dev, in gem_attach()
266 device_printf(sc->sc_dev, in gem_attach()
306 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach()
334 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach()
356 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach()
361 device_printf(sc->sc_dev, "attaching PHYs failed\n"); in gem_attach()
378 device_printf(sc->sc_dev, "%ukB RX FIFO, %ukB TX FIFO\n", in gem_attach()
440 device_delete_child(sc->sc_dev, sc->sc_miibus); in gem_detach()
626 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_reset()
638 device_printf(sc->sc_dev, "cannot reset device\n"); in gem_reset()
666 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_stop()
718 device_printf(sc->sc_dev, "cannot disable RX DMA\n"); in gem_reset_rx()
730 device_printf(sc->sc_dev, "cannot reset receiver\n"); in gem_reset_rx()
739 device_printf(sc->sc_dev, "cannot reset RX MAC\n"); in gem_reset_rx()
809 device_printf(sc->sc_dev, "cannot disable TX DMA\n"); in gem_reset_tx()
821 device_printf(sc->sc_dev, "cannot reset transmitter\n"); in gem_reset_tx()
837 device_printf(sc->sc_dev, "cannot disable RX MAC\n"); in gem_disable_rx()
851 device_printf(sc->sc_dev, "cannot disable TX MAC\n"); in gem_disable_tx()
882 device_printf(sc->sc_dev, in gem_meminit()
957 CTR2(KTR_GEM, "%s: %s: calling stop", device_get_name(sc->sc_dev), in gem_init_locked()
971 CTR2(KTR_GEM, "%s: %s: restarting", device_get_name(sc->sc_dev), in gem_init_locked()
1346 device_get_name(sc->sc_dev), __func__, sc->sc_txnext); in gem_txkick()
1367 device_get_name(sc->sc_dev), __func__, sc->sc_txfree, in gem_start_locked()
1397 device_get_name(sc->sc_dev), sc->sc_txnext); in gem_start_locked()
1404 device_get_name(sc->sc_dev), __func__, in gem_start_locked()
1422 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_tint()
1519 device_get_name(sc->sc_dev), __func__, sc->sc_wdog_timer); in gem_tint()
1549 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_rint()
1586 device_printf(sc->sc_dev, "receive error: CRC error\n"); in gem_rint()
1688 device_printf(sc->sc_dev, in gem_add_rxbuf()
1717 device_printf(sc->sc_dev, "%s: status 0x%x", __func__, status); in gem_eint()
1739 device_get_name(sc->sc_dev), __func__, in gem_intr()
1750 device_printf(sc->sc_dev, in gem_intr()
1756 device_printf(sc->sc_dev, in gem_intr()
1760 device_printf(sc->sc_dev, in gem_intr()
1763 device_printf(sc->sc_dev, in gem_intr()
1767 device_printf(sc->sc_dev, "%s: MIF interrupt\n", __func__); in gem_intr()
1785 device_printf(sc->sc_dev, in gem_intr()
1807 device_printf(sc->sc_dev, in gem_intr()
1837 device_printf(sc->sc_dev, "device timeout\n"); in gem_watchdog()
1839 device_printf(sc->sc_dev, "device timeout (no link)\n"); in gem_watchdog()
1906 device_printf(sc->sc_dev, in gem_mii_readreg()
1928 device_printf(sc->sc_dev, "%s: timed out\n", __func__); in gem_mii_readreg()
1958 device_printf(sc->sc_dev, in gem_mii_writereg()
1981 device_printf(sc->sc_dev, in gem_mii_writereg()
2007 device_printf(sc->sc_dev, "%s: timed out\n", __func__); in gem_mii_writereg()
2024 device_printf(sc->sc_dev, "%s: status change\n", __func__); in gem_mii_statchg()
2226 device_printf(sc->sc_dev, in gem_setladrf()