Lines Matching refs:dev_lec
126 static struct net_device *dev_lec[MAX_LEC_ITF]; variable
694 if (!dev_lec[ioc_data.dev_num]) in lec_vcc_attach()
703 lec_vcc_added(netdev_priv(dev_lec[ioc_data.dev_num]), in lec_vcc_attach()
705 vcc->proto_data = dev_lec[ioc_data.dev_num]; in lec_vcc_attach()
715 if (!dev_lec[arg]) in lec_mcast_attach()
717 vcc->proto_data = dev_lec[arg]; in lec_mcast_attach()
718 return lec_mcast_make(netdev_priv(dev_lec[arg]), vcc); in lec_mcast_attach()
732 if (!dev_lec[i]) { in lecd_attach()
736 dev_lec[i] = alloc_etherdev(size); in lecd_attach()
737 if (!dev_lec[i]) in lecd_attach()
739 dev_lec[i]->netdev_ops = &lec_netdev_ops; in lecd_attach()
740 dev_lec[i]->max_mtu = 18190; in lecd_attach()
741 snprintf(dev_lec[i]->name, IFNAMSIZ, "lec%d", i); in lecd_attach()
742 if (register_netdev(dev_lec[i])) { in lecd_attach()
743 free_netdev(dev_lec[i]); in lecd_attach()
747 priv = netdev_priv(dev_lec[i]); in lecd_attach()
749 priv = netdev_priv(dev_lec[i]); in lecd_attach()
759 vcc->proto_data = dev_lec[i]; in lecd_attach()
775 if (dev_lec[i]->flags & IFF_UP) in lecd_attach()
776 netif_start_queue(dev_lec[i]); in lecd_attach()
902 dev = state->dev ? state->dev : dev_lec[state->itf]; in lec_itf_walk()
1056 if (dev_lec[i] != NULL) { in lane_module_cleanup()
1057 unregister_netdev(dev_lec[i]); in lane_module_cleanup()
1058 free_netdev(dev_lec[i]); in lane_module_cleanup()
1059 dev_lec[i] = NULL; in lane_module_cleanup()