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()
518 static int efx_net_open(struct net_device *net_dev) in efx_net_open() argument
520 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_open()
523 netif_dbg(efx, ifup, efx->net_dev, "opening device on CPU %d\n", in efx_net_open()
540 netif_device_detach(efx->net_dev); in efx_net_open()
549 static int efx_net_stop(struct net_device *net_dev) in efx_net_stop() argument
551 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_stop()
553 netif_dbg(efx, ifdown, efx->net_dev, "closing on CPU %d\n", in efx_net_stop()
562 static int efx_vlan_rx_add_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_add_vid() argument
564 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_add_vid()
572 static int efx_vlan_rx_kill_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_kill_vid() argument
574 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_kill_vid()
619 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
624 if (prog && efx->net_dev->mtu > efx_siena_xdp_max_mtu(efx)) { in efx_xdp_setup_prog()
625 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
627 efx->net_dev->mtu, efx_siena_xdp_max_mtu(efx)); in efx_xdp_setup_prog()
666 strcpy(efx->name, efx->net_dev->name); in efx_update_name()
674 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr); in efx_netdev_event() local
676 if ((net_dev->netdev_ops == &efx_netdev_ops) && in efx_netdev_event()
678 efx_update_name(netdev_priv(net_dev)); in efx_netdev_event()
697 struct net_device *net_dev = efx->net_dev; in efx_register_netdev() local
701 net_dev->watchdog_timeo = 5 * HZ; in efx_register_netdev()
702 net_dev->irq = efx->pci_dev->irq; in efx_register_netdev()
703 net_dev->netdev_ops = &efx_netdev_ops; in efx_register_netdev()
705 net_dev->priv_flags |= IFF_UNICAST_FLT; in efx_register_netdev()
706 net_dev->ethtool_ops = &efx_siena_ethtool_ops; in efx_register_netdev()
707 netif_set_tso_max_segs(net_dev, EFX_TSO_MAX_SEGS); in efx_register_netdev()
708 net_dev->min_mtu = EFX_MIN_MTU; in efx_register_netdev()
709 net_dev->max_mtu = EFX_MAX_MTU; in efx_register_netdev()
725 rc = dev_alloc_name(net_dev, net_dev->name); in efx_register_netdev()
731 netif_carrier_off(net_dev); in efx_register_netdev()
733 rc = register_netdevice(net_dev); in efx_register_netdev()
749 netif_err(efx, drv, efx->net_dev, in efx_register_netdev()
761 unregister_netdevice(net_dev); in efx_register_netdev()
765 netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); in efx_register_netdev()
771 if (!efx->net_dev) in efx_unregister_netdev()
774 BUG_ON(netdev_priv(efx->net_dev) != efx); in efx_unregister_netdev()
780 unregister_netdev(efx->net_dev); in efx_unregister_netdev()
857 dev_close(efx->net_dev); in efx_pci_remove()
872 netif_dbg(efx, drv, efx->net_dev, "shutdown successful\n"); in efx_pci_remove()
875 free_netdev(efx->net_dev); in efx_pci_remove()
937 netif_err(efx, probe, efx->net_dev, in efx_pci_probe_main()
969 struct net_device *net_dev = efx->net_dev; in efx_pci_probe_post_io() local
983 net_dev->features |= (efx->type->offload_features | NETIF_F_SG | in efx_pci_probe_post_io()
986 net_dev->features |= NETIF_F_TSO6; in efx_pci_probe_post_io()
989 net_dev->features &= ~NETIF_F_ALL_TSO; in efx_pci_probe_post_io()
991 net_dev->vlan_features |= (NETIF_F_HW_CSUM | NETIF_F_SG | in efx_pci_probe_post_io()
995 net_dev->hw_features |= net_dev->features & ~efx->fixed_features; in efx_pci_probe_post_io()
998 net_dev->features &= ~NETIF_F_RXALL; in efx_pci_probe_post_io()
1004 net_dev->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in efx_pci_probe_post_io()
1005 net_dev->features |= efx->fixed_features; in efx_pci_probe_post_io()
1007 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
1031 struct net_device *net_dev; in efx_pci_probe() local
1036 net_dev = alloc_etherdev_mqs(sizeof(*efx), EFX_MAX_CORE_TX_QUEUES, in efx_pci_probe()
1038 if (!net_dev) in efx_pci_probe()
1040 efx = netdev_priv(net_dev); in efx_pci_probe()
1045 SET_NETDEV_DEV(net_dev, &pci_dev->dev); in efx_pci_probe()
1046 rc = efx_siena_init_struct(efx, pci_dev, net_dev); in efx_pci_probe()
1084 netif_dbg(efx, probe, efx->net_dev, "initialisation successful\n"); in efx_pci_probe()
1091 netif_warn(efx, probe, efx->net_dev, in efx_pci_probe()
1105 netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); in efx_pci_probe()
1106 free_netdev(net_dev); in efx_pci_probe()