Lines Matching refs:net_dev

131 	netif_dbg(efx, probe, efx->net_dev, "create port\n");  in efx_probe_port()
142 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port()
151 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port()
172 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port()
185 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port()
213 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate()
220 netif_dbg(other, probe, other->net_dev, in efx_associate()
223 efx->net_dev->name); in efx_associate()
234 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
237 other->net_dev->name); in efx_associate()
245 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
260 netif_dbg(other, probe, other->net_dev, in efx_dissociate()
271 netif_dbg(efx, probe, efx->net_dev, "creating NIC\n"); in efx_probe_nic()
280 netif_err(efx, drv, efx->net_dev, in efx_probe_nic()
330 netif_dbg(efx, drv, efx->net_dev, "destroying NIC\n"); in efx_remove_nic()
348 netif_err(efx, probe, efx->net_dev, "failed to create NIC\n"); in efx_probe_all()
354 netif_err(efx, probe, efx->net_dev, "failed to create port\n"); in efx_probe_all()
367 netif_warn(efx, probe, efx->net_dev, in efx_probe_all()
374 netif_err(efx, probe, efx->net_dev, in efx_probe_all()
445 netif_err(efx, drv, efx->net_dev, "Channels are shared. " in efx_siena_init_irq_moderation()
493 static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) in efx_ioctl() argument
495 struct efx_nic *efx = netdev_priv(net_dev); in efx_ioctl()
513 static int efx_net_open(struct net_device *net_dev) in efx_net_open() argument
515 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_open()
518 netif_dbg(efx, ifup, efx->net_dev, "opening device on CPU %d\n", in efx_net_open()
535 netif_device_detach(efx->net_dev); in efx_net_open()
544 static int efx_net_stop(struct net_device *net_dev) in efx_net_stop() argument
546 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_stop()
548 netif_dbg(efx, ifdown, efx->net_dev, "closing on CPU %d\n", in efx_net_stop()
557 static int efx_vlan_rx_add_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_add_vid() argument
559 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_add_vid()
567 static int efx_vlan_rx_kill_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_kill_vid() argument
569 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_kill_vid()
577 static int efx_siena_hwtstamp_set(struct net_device *net_dev, in efx_siena_hwtstamp_set() argument
581 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_hwtstamp_set()
586 static int efx_siena_hwtstamp_get(struct net_device *net_dev, in efx_siena_hwtstamp_get() argument
589 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_hwtstamp_get()
633 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
638 if (prog && efx->net_dev->mtu > efx_siena_xdp_max_mtu(efx)) { in efx_xdp_setup_prog()
639 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
641 efx->net_dev->mtu, efx_siena_xdp_max_mtu(efx)); in efx_xdp_setup_prog()
680 strcpy(efx->name, efx->net_dev->name); in efx_update_name()
688 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr); in efx_netdev_event() local
690 if ((net_dev->netdev_ops == &efx_netdev_ops) && in efx_netdev_event()
692 efx_update_name(netdev_priv(net_dev)); in efx_netdev_event()
711 struct net_device *net_dev = efx->net_dev; in efx_register_netdev() local
715 net_dev->watchdog_timeo = 5 * HZ; in efx_register_netdev()
716 net_dev->irq = efx->pci_dev->irq; in efx_register_netdev()
717 net_dev->netdev_ops = &efx_netdev_ops; in efx_register_netdev()
719 net_dev->priv_flags |= IFF_UNICAST_FLT; in efx_register_netdev()
720 net_dev->ethtool_ops = &efx_siena_ethtool_ops; in efx_register_netdev()
721 netif_set_tso_max_segs(net_dev, EFX_TSO_MAX_SEGS); in efx_register_netdev()
722 net_dev->min_mtu = EFX_MIN_MTU; in efx_register_netdev()
723 net_dev->max_mtu = EFX_MAX_MTU; in efx_register_netdev()
739 rc = dev_alloc_name(net_dev, net_dev->name); in efx_register_netdev()
745 netif_carrier_off(net_dev); in efx_register_netdev()
747 rc = register_netdevice(net_dev); in efx_register_netdev()
763 netif_err(efx, drv, efx->net_dev, in efx_register_netdev()
775 unregister_netdevice(net_dev); in efx_register_netdev()
779 netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); in efx_register_netdev()
785 if (!efx->net_dev) in efx_unregister_netdev()
788 BUG_ON(netdev_priv(efx->net_dev) != efx); in efx_unregister_netdev()
794 unregister_netdev(efx->net_dev); in efx_unregister_netdev()
871 dev_close(efx->net_dev); in efx_pci_remove()
886 netif_dbg(efx, drv, efx->net_dev, "shutdown successful\n"); in efx_pci_remove()
889 free_netdev(efx->net_dev); in efx_pci_remove()
951 netif_err(efx, probe, efx->net_dev, in efx_pci_probe_main()
983 struct net_device *net_dev = efx->net_dev; in efx_pci_probe_post_io() local
997 net_dev->features |= (efx->type->offload_features | NETIF_F_SG | in efx_pci_probe_post_io()
1000 net_dev->features |= NETIF_F_TSO6; in efx_pci_probe_post_io()
1003 net_dev->features &= ~NETIF_F_ALL_TSO; in efx_pci_probe_post_io()
1005 net_dev->vlan_features |= (NETIF_F_HW_CSUM | NETIF_F_SG | in efx_pci_probe_post_io()
1009 net_dev->hw_features |= net_dev->features & ~efx->fixed_features; in efx_pci_probe_post_io()
1012 net_dev->features &= ~NETIF_F_RXALL; in efx_pci_probe_post_io()
1018 net_dev->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in efx_pci_probe_post_io()
1019 net_dev->features |= efx->fixed_features; in efx_pci_probe_post_io()
1021 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
1045 struct net_device *net_dev; in efx_pci_probe() local
1050 net_dev = alloc_etherdev_mqs(sizeof(*efx), EFX_MAX_CORE_TX_QUEUES, in efx_pci_probe()
1052 if (!net_dev) in efx_pci_probe()
1054 efx = netdev_priv(net_dev); in efx_pci_probe()
1059 SET_NETDEV_DEV(net_dev, &pci_dev->dev); in efx_pci_probe()
1060 rc = efx_siena_init_struct(efx, pci_dev, net_dev); in efx_pci_probe()
1098 netif_dbg(efx, probe, efx->net_dev, "initialisation successful\n"); in efx_pci_probe()
1105 netif_warn(efx, probe, efx->net_dev, in efx_pci_probe()
1119 netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); in efx_pci_probe()
1120 free_netdev(net_dev); in efx_pci_probe()