Lines Matching refs:net_dev
128 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port()
139 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port()
148 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port()
169 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port()
182 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port()
210 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate()
217 netif_dbg(other, probe, other->net_dev, in efx_associate()
220 efx->net_dev->name); in efx_associate()
231 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
234 other->net_dev->name); in efx_associate()
242 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
257 netif_dbg(other, probe, other->net_dev, in efx_dissociate()
268 netif_dbg(efx, probe, efx->net_dev, "creating NIC\n"); in efx_probe_nic()
277 netif_err(efx, drv, efx->net_dev, in efx_probe_nic()
327 netif_dbg(efx, drv, efx->net_dev, "destroying NIC\n"); in efx_remove_nic()
345 netif_err(efx, probe, efx->net_dev, "failed to create NIC\n"); in efx_probe_all()
351 netif_err(efx, probe, efx->net_dev, "failed to create port\n"); in efx_probe_all()
364 netif_warn(efx, probe, efx->net_dev, in efx_probe_all()
371 netif_err(efx, probe, efx->net_dev, in efx_probe_all()
450 netif_err(efx, drv, efx->net_dev, "Channels are shared. " in efx_init_irq_moderation()
498 static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) in efx_ioctl() argument
500 struct efx_nic *efx = netdev_priv(net_dev); in efx_ioctl()
523 int efx_net_open(struct net_device *net_dev) in efx_net_open() argument
525 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_open()
528 netif_dbg(efx, ifup, efx->net_dev, "opening device on CPU %d\n", in efx_net_open()
545 netif_device_detach(efx->net_dev); in efx_net_open()
554 int efx_net_stop(struct net_device *net_dev) in efx_net_stop() argument
556 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_stop()
558 netif_dbg(efx, ifdown, efx->net_dev, "closing on CPU %d\n", in efx_net_stop()
567 static int efx_vlan_rx_add_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_add_vid() argument
569 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_add_vid()
577 static int efx_vlan_rx_kill_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_kill_vid() argument
579 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_kill_vid()
624 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
629 if (prog && efx->net_dev->mtu > efx_xdp_max_mtu(efx)) { in efx_xdp_setup_prog()
630 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
632 efx->net_dev->mtu, efx_xdp_max_mtu(efx)); in efx_xdp_setup_prog()
671 strcpy(efx->name, efx->net_dev->name); in efx_update_name()
679 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr); in efx_netdev_event() local
681 if ((net_dev->netdev_ops == &efx_netdev_ops) && in efx_netdev_event()
683 efx_update_name(netdev_priv(net_dev)); in efx_netdev_event()
702 struct net_device *net_dev = efx->net_dev; in efx_register_netdev() local
706 net_dev->watchdog_timeo = 5 * HZ; in efx_register_netdev()
707 net_dev->irq = efx->pci_dev->irq; in efx_register_netdev()
708 net_dev->netdev_ops = &efx_netdev_ops; in efx_register_netdev()
710 net_dev->priv_flags |= IFF_UNICAST_FLT; in efx_register_netdev()
711 net_dev->ethtool_ops = &efx_ethtool_ops; in efx_register_netdev()
712 net_dev->gso_max_segs = EFX_TSO_MAX_SEGS; in efx_register_netdev()
713 net_dev->min_mtu = EFX_MIN_MTU; in efx_register_netdev()
714 net_dev->max_mtu = EFX_MAX_MTU; in efx_register_netdev()
730 rc = dev_alloc_name(net_dev, net_dev->name); in efx_register_netdev()
736 netif_carrier_off(net_dev); in efx_register_netdev()
738 rc = register_netdevice(net_dev); in efx_register_netdev()
754 netif_err(efx, drv, efx->net_dev, in efx_register_netdev()
766 unregister_netdevice(net_dev); in efx_register_netdev()
770 netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); in efx_register_netdev()
776 if (!efx->net_dev) in efx_unregister_netdev()
779 BUG_ON(netdev_priv(efx->net_dev) != efx); in efx_unregister_netdev()
785 unregister_netdev(efx->net_dev); in efx_unregister_netdev()
878 dev_close(efx->net_dev); in efx_pci_remove()
893 netif_dbg(efx, drv, efx->net_dev, "shutdown successful\n"); in efx_pci_remove()
896 free_netdev(efx->net_dev); in efx_pci_remove()
960 netif_err(efx, probe, efx->net_dev, in efx_pci_probe_main()
992 struct net_device *net_dev = efx->net_dev; in efx_pci_probe_post_io() local
1006 net_dev->features |= (efx->type->offload_features | NETIF_F_SG | in efx_pci_probe_post_io()
1009 net_dev->features |= NETIF_F_TSO6; in efx_pci_probe_post_io()
1012 net_dev->features &= ~NETIF_F_ALL_TSO; in efx_pci_probe_post_io()
1014 net_dev->vlan_features |= (NETIF_F_HW_CSUM | NETIF_F_SG | in efx_pci_probe_post_io()
1018 net_dev->hw_features |= net_dev->features & ~efx->fixed_features; in efx_pci_probe_post_io()
1021 net_dev->features &= ~NETIF_F_RXALL; in efx_pci_probe_post_io()
1027 net_dev->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in efx_pci_probe_post_io()
1028 net_dev->features |= efx->fixed_features; in efx_pci_probe_post_io()
1050 struct net_device *net_dev; in efx_pci_probe() local
1055 net_dev = alloc_etherdev_mqs(sizeof(*efx), EFX_MAX_CORE_TX_QUEUES, in efx_pci_probe()
1057 if (!net_dev) in efx_pci_probe()
1059 efx = netdev_priv(net_dev); in efx_pci_probe()
1064 SET_NETDEV_DEV(net_dev, &pci_dev->dev); in efx_pci_probe()
1065 rc = efx_init_struct(efx, pci_dev, net_dev); in efx_pci_probe()
1102 netif_dbg(efx, probe, efx->net_dev, "initialisation successful\n"); in efx_pci_probe()
1109 netif_warn(efx, probe, efx->net_dev, in efx_pci_probe()
1125 netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); in efx_pci_probe()
1126 free_netdev(net_dev); in efx_pci_probe()