Lines Matching refs:sc_dev
151 device_printf(sc->sc_dev, "flags=0x%x\n", sc->sc_flags); in gem_attach()
157 if_initname(ifp, device_get_name(sc->sc_dev), in gem_attach()
158 device_get_unit(sc->sc_dev)); in gem_attach()
174 error = bus_dma_tag_create(bus_get_dma_tag(sc->sc_dev), 1, 0, in gem_attach()
210 device_printf(sc->sc_dev, in gem_attach()
219 device_printf(sc->sc_dev, in gem_attach()
241 device_printf(sc->sc_dev, in gem_attach()
255 device_printf(sc->sc_dev, in gem_attach()
283 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach()
310 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach()
332 error = mii_attach(sc->sc_dev, &sc->sc_miibus, ifp, in gem_attach()
337 device_printf(sc->sc_dev, "attaching PHYs failed\n"); in gem_attach()
354 device_printf(sc->sc_dev, "%ukB RX FIFO, %ukB TX FIFO\n", in gem_attach()
416 device_delete_child(sc->sc_dev, sc->sc_miibus); in gem_detach()
601 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_reset()
611 device_printf(sc->sc_dev, "cannot reset device\n"); in gem_reset()
639 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_stop()
691 device_printf(sc->sc_dev, "cannot disable RX DMA\n"); in gem_reset_rx()
701 device_printf(sc->sc_dev, "cannot reset receiver\n"); in gem_reset_rx()
710 device_printf(sc->sc_dev, "cannot reset RX MAC\n"); in gem_reset_rx()
779 device_printf(sc->sc_dev, "cannot disable TX DMA\n"); in gem_reset_tx()
789 device_printf(sc->sc_dev, "cannot reset transmitter\n"); in gem_reset_tx()
805 device_printf(sc->sc_dev, "cannot disable RX MAC\n"); in gem_disable_rx()
819 device_printf(sc->sc_dev, "cannot disable TX MAC\n"); in gem_disable_tx()
850 device_printf(sc->sc_dev, in gem_meminit()
925 CTR2(KTR_GEM, "%s: %s: calling stop", device_get_name(sc->sc_dev), in gem_init_locked()
939 CTR2(KTR_GEM, "%s: %s: restarting", device_get_name(sc->sc_dev), in gem_init_locked()
1307 device_get_name(sc->sc_dev), __func__, sc->sc_txnext); in gem_txkick()
1328 device_get_name(sc->sc_dev), __func__, sc->sc_txfree, in gem_start_locked()
1358 device_get_name(sc->sc_dev), sc->sc_txnext); in gem_start_locked()
1365 device_get_name(sc->sc_dev), __func__, in gem_start_locked()
1383 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_tint()
1480 device_get_name(sc->sc_dev), __func__, sc->sc_wdog_timer); in gem_tint()
1510 CTR2(KTR_GEM, "%s: %s", device_get_name(sc->sc_dev), __func__); in gem_rint()
1546 device_printf(sc->sc_dev, "receive error: CRC error\n"); in gem_rint()
1648 device_printf(sc->sc_dev, in gem_add_rxbuf()
1677 device_printf(sc->sc_dev, "%s: status 0x%x", __func__, status); in gem_eint()
1696 device_get_name(sc->sc_dev), __func__, in gem_intr()
1707 device_printf(sc->sc_dev, in gem_intr()
1713 device_printf(sc->sc_dev, in gem_intr()
1717 device_printf(sc->sc_dev, in gem_intr()
1720 device_printf(sc->sc_dev, in gem_intr()
1724 device_printf(sc->sc_dev, "%s: MIF interrupt\n", __func__); in gem_intr()
1742 device_printf(sc->sc_dev, in gem_intr()
1764 device_printf(sc->sc_dev, in gem_intr()
1794 device_printf(sc->sc_dev, "device timeout\n"); in gem_watchdog()
1796 device_printf(sc->sc_dev, "device timeout (no link)\n"); in gem_watchdog()
1863 device_printf(sc->sc_dev, in gem_mii_readreg()
1885 device_printf(sc->sc_dev, "%s: timed out\n", __func__); in gem_mii_readreg()
1915 device_printf(sc->sc_dev, in gem_mii_writereg()
1938 device_printf(sc->sc_dev, in gem_mii_writereg()
1964 device_printf(sc->sc_dev, "%s: timed out\n", __func__); in gem_mii_writereg()
1981 device_printf(sc->sc_dev, "%s: status change\n", __func__); in gem_mii_statchg()
2196 device_printf(sc->sc_dev, in gem_setladrf()