Lines Matching refs:lmc_device
253 if (copy_to_user(ifr->ifr_data, &sc->lmc_device->stats, in lmc_ioctl()
254 sizeof(sc->lmc_device->stats)) || in lmc_ioctl()
255 copy_to_user(ifr->ifr_data + sizeof(sc->lmc_device->stats), in lmc_ioctl()
269 memset(&sc->lmc_device->stats, 0, sizeof(sc->lmc_device->stats)); in lmc_ioctl()
273 sizeof(sc->lmc_device->stats) + sizeof(sc->extra_stats); in lmc_ioctl()
635 struct net_device *dev = sc->lmc_device; in lmc_watchdog()
668 sc->lmc_device->stats.tx_packets > sc->lasttx_packets && in lmc_watchdog()
676 sc->lmc_device->stats.tx_packets > sc->lasttx_packets && in lmc_watchdog()
703 sc->lasttx_packets = sc->lmc_device->stats.tx_packets; in lmc_watchdog()
707 sc->lasttx_packets = sc->lmc_device->stats.tx_packets; in lmc_watchdog()
853 sc->lmc_device = dev; in lmc_init_one()
955 sizeof(sc->lmc_device->stats) + sizeof(sc->extra_stats); in lmc_init_one()
1172 sc->lmc_device->stats.rx_missed_errors += in lmc_ifdown()
1308 sc->lmc_device->stats.tx_errors++; in lmc_interrupt()
1310 sc->lmc_device->stats.tx_aborted_errors++; in lmc_interrupt()
1312 sc->lmc_device->stats.tx_carrier_errors++; in lmc_interrupt()
1314 sc->lmc_device->stats.tx_window_errors++; in lmc_interrupt()
1316 sc->lmc_device->stats.tx_fifo_errors++; in lmc_interrupt()
1318 sc->lmc_device->stats.tx_bytes += sc->lmc_txring[i].length & 0x7ff; in lmc_interrupt()
1320 sc->lmc_device->stats.tx_packets++; in lmc_interrupt()
1515 sc->lmc_device->stats.rx_length_errors++; in lmc_rx()
1521 sc->lmc_device->stats.rx_errors++; in lmc_rx()
1522 sc->lmc_device->stats.rx_frame_errors++; in lmc_rx()
1528 sc->lmc_device->stats.rx_errors++; in lmc_rx()
1529 sc->lmc_device->stats.rx_crc_errors++; in lmc_rx()
1534 sc->lmc_device->stats.rx_length_errors++; in lmc_rx()
1540 sc->lmc_device->stats.rx_length_errors++; in lmc_rx()
1570 sc->lmc_device->stats.rx_packets++; in lmc_rx()
1571 sc->lmc_device->stats.rx_bytes += len; in lmc_rx()
1695 sc->lmc_device->stats.rx_missed_errors += LMC_CSR_READ(sc, csr_missed_frames) & 0xffff; in lmc_get_stats()
1701 return &sc->lmc_device->stats; in lmc_get_stats()
1719 lmc_trace(sc->lmc_device, "lmc_mii_readreg in"); in lmc_mii_readreg()
1723 lmc_trace(sc->lmc_device, "lmc_mii_readreg: done sync"); in lmc_mii_readreg()
1737 lmc_trace(sc->lmc_device, "lmc_mii_readreg: done1"); in lmc_mii_readreg()
1750 lmc_trace(sc->lmc_device, "lmc_mii_readreg out"); in lmc_mii_readreg()
1760 lmc_trace(sc->lmc_device, "lmc_mii_writereg in"); in lmc_mii_writereg()
1795 lmc_trace(sc->lmc_device, "lmc_mii_writereg out"); in lmc_mii_writereg()
1802 lmc_trace(sc->lmc_device, "lmc_softreset in"); in lmc_softreset()
1838 skb->dev = sc->lmc_device; in lmc_softreset()
1870 sc->lmc_device->stats.tx_dropped++; /* We just dropped a packet */ in lmc_softreset()
1879 lmc_trace(sc->lmc_device, "lmc_softreset out"); in lmc_softreset()
1884 lmc_trace(sc->lmc_device, "lmc_gpio_mkinput in"); in lmc_gpio_mkinput()
1887 lmc_trace(sc->lmc_device, "lmc_gpio_mkinput out"); in lmc_gpio_mkinput()
1892 lmc_trace(sc->lmc_device, "lmc_gpio_mkoutput in"); in lmc_gpio_mkoutput()
1895 lmc_trace(sc->lmc_device, "lmc_gpio_mkoutput out"); in lmc_gpio_mkoutput()
1900 lmc_trace(sc->lmc_device, "lmc_led_on in"); in lmc_led_on()
1902 lmc_trace(sc->lmc_device, "lmc_led_on aon out"); in lmc_led_on()
1908 lmc_trace(sc->lmc_device, "lmc_led_on out"); in lmc_led_on()
1913 lmc_trace(sc->lmc_device, "lmc_led_off in"); in lmc_led_off()
1915 lmc_trace(sc->lmc_device, "lmc_led_off aoff out"); in lmc_led_off()
1921 lmc_trace(sc->lmc_device, "lmc_led_off out"); in lmc_led_off()
1926 lmc_trace(sc->lmc_device, "lmc_reset in"); in lmc_reset()
1962 lmc_trace(sc->lmc_device, "lmc_reset out"); in lmc_reset()
1968 lmc_trace(sc->lmc_device, "lmc_dec_reset in"); in lmc_dec_reset()
2025 lmc_trace(sc->lmc_device, "lmc_dec_reset out"); in lmc_dec_reset()
2031 lmc_trace(sc->lmc_device, "lmc_initcsrs in"); in lmc_initcsrs()
2048 lmc_trace(sc->lmc_device, "lmc_initcsrs out"); in lmc_initcsrs()
2093 sc->lmc_device->stats.tx_errors++; in lmc_driver_timeout()