Lines Matching refs:netdev
163 struct net_device *netdev; member
258 skb->dev = catc->netdev; in catc_rx_done()
262 skb->protocol = eth_type_trans(skb, catc->netdev); in catc_rx_done()
275 catc->netdev->last_rx = jiffies; in catc_rx_done()
319 netif_carrier_on(catc->netdev); in catc_irq_done()
324 netif_carrier_off(catc->netdev); in catc_irq_done()
362 catc->netdev->trans_start = jiffies; in catc_tx_run()
374 catc->netdev->trans_start = jiffies; in catc_tx_done()
377 netif_wake_queue(catc->netdev); in catc_tx_done()
393 netif_wake_queue(catc->netdev); in catc_tx_done()
398 static int catc_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev) in catc_hard_start_xmit() argument
400 struct catc *catc = netdev->priv; in catc_hard_start_xmit()
418 netif_stop_queue(netdev); in catc_hard_start_xmit()
430 static void catc_tx_timeout(struct net_device *netdev) in catc_tx_timeout() argument
432 struct catc *catc = netdev->priv; in catc_tx_timeout()
592 static struct net_device_stats *catc_get_stats(struct net_device *netdev) in catc_get_stats() argument
594 struct catc *catc = netdev->priv; in catc_get_stats()
608 static void catc_set_multicast_list(struct net_device *netdev) in catc_set_multicast_list() argument
610 struct catc *catc = netdev->priv; in catc_set_multicast_list()
620 catc_multicast(netdev->dev_addr, catc->multicast); in catc_set_multicast_list()
622 if (netdev->flags & IFF_PROMISC) { in catc_set_multicast_list()
627 if (netdev->flags & IFF_ALLMULTI) { in catc_set_multicast_list()
630 for (i = 0, mc = netdev->mc_list; mc && i < netdev->mc_count; i++, mc = mc->next) { in catc_set_multicast_list()
729 static int catc_open(struct net_device *netdev) in catc_open() argument
731 struct catc *catc = netdev->priv; in catc_open()
740 netif_start_queue(netdev); in catc_open()
748 static int catc_stop(struct net_device *netdev) in catc_stop() argument
750 struct catc *catc = netdev->priv; in catc_stop()
752 netif_stop_queue(netdev); in catc_stop()
771 struct net_device *netdev; in catc_probe() local
787 netdev = init_etherdev(0, 0); in catc_probe()
788 if (!netdev) { in catc_probe()
793 netdev->open = catc_open; in catc_probe()
794 netdev->hard_start_xmit = catc_hard_start_xmit; in catc_probe()
795 netdev->stop = catc_stop; in catc_probe()
796 netdev->get_stats = catc_get_stats; in catc_probe()
797 netdev->tx_timeout = catc_tx_timeout; in catc_probe()
798 netdev->watchdog_timeo = TX_TIMEOUT; in catc_probe()
799 netdev->set_multicast_list = catc_set_multicast_list; in catc_probe()
800 netdev->do_ioctl = catc_ioctl; in catc_probe()
801 netdev->priv = catc; in catc_probe()
804 catc->netdev = netdev; in catc_probe()
865 catc_get_mac(catc, netdev->dev_addr); in catc_probe()
870 catc_set_reg(catc, StationAddr0 - i, netdev->dev_addr[i]); in catc_probe()
876 catc_multicast(netdev->dev_addr, catc->multicast); in catc_probe()
894 catc_get_mac(catc, netdev->dev_addr); in catc_probe()
903 netdev->name, (catc->is_f5u011) ? "Belkin F5U011" : "CATC EL1210A NetMate", in catc_probe()
905 for (i = 0; i < 5; i++) printk("%2.2x:", netdev->dev_addr[i]); in catc_probe()
906 printk("%2.2x.\n", netdev->dev_addr[i]); in catc_probe()
913 unregister_netdev(catc->netdev); in catc_disconnect()
914 kfree(catc->netdev); in catc_disconnect()