Lines Matching refs:net_dev

122 	netif_dbg(efx, probe, efx->net_dev, "create port\n");  in efx_probe_port()
133 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port()
142 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port()
163 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port()
176 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port()
204 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate()
211 netif_dbg(other, probe, other->net_dev, in efx_associate()
214 efx->net_dev->name); in efx_associate()
225 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
228 other->net_dev->name); in efx_associate()
236 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
251 netif_dbg(other, probe, other->net_dev, in efx_dissociate()
262 netif_dbg(efx, probe, efx->net_dev, "creating NIC\n"); in efx_probe_nic()
271 netif_err(efx, drv, efx->net_dev, in efx_probe_nic()
321 netif_dbg(efx, drv, efx->net_dev, "destroying NIC\n"); in efx_remove_nic()
339 netif_err(efx, probe, efx->net_dev, "failed to create NIC\n"); in efx_probe_all()
345 netif_err(efx, probe, efx->net_dev, "failed to create port\n"); in efx_probe_all()
358 netif_warn(efx, probe, efx->net_dev, in efx_probe_all()
365 netif_err(efx, probe, efx->net_dev, in efx_probe_all()
438 netif_err(efx, drv, efx->net_dev, "Channels are shared. " in efx_init_irq_moderation()
484 int efx_net_open(struct net_device *net_dev) in efx_net_open() argument
486 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_net_open()
489 netif_dbg(efx, ifup, efx->net_dev, "opening device on CPU %d\n", in efx_net_open()
506 netif_device_detach(efx->net_dev); in efx_net_open()
517 int efx_net_stop(struct net_device *net_dev) in efx_net_stop() argument
519 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_net_stop()
521 netif_dbg(efx, ifdown, efx->net_dev, "closing on CPU %d\n", in efx_net_stop()
530 static int efx_vlan_rx_add_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_add_vid() argument
532 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_vlan_rx_add_vid()
540 static int efx_vlan_rx_kill_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_kill_vid() argument
542 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_vlan_rx_kill_vid()
550 static int efx_hwtstamp_set(struct net_device *net_dev, in efx_hwtstamp_set() argument
554 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_hwtstamp_set()
559 static int efx_hwtstamp_get(struct net_device *net_dev, in efx_hwtstamp_get() argument
562 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_hwtstamp_get()
599 static void efx_get_queue_stats_rx(struct net_device *net_dev, int idx, in efx_get_queue_stats_rx() argument
602 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_get_queue_stats_rx()
617 static void efx_get_queue_stats_tx(struct net_device *net_dev, int idx, in efx_get_queue_stats_tx() argument
620 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_get_queue_stats_tx()
645 static void efx_get_base_stats(struct net_device *net_dev, in efx_get_base_stats() argument
649 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_get_base_stats()
668 if (channel->channel >= net_dev->real_num_rx_queues) { in efx_get_base_stats()
682 net_dev->real_num_tx_queues) { in efx_get_base_stats()
711 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
716 if (prog && efx->net_dev->mtu > efx_xdp_max_mtu(efx)) { in efx_xdp_setup_prog()
717 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
719 efx->net_dev->mtu, efx_xdp_max_mtu(efx)); in efx_xdp_setup_prog()
758 strcpy(efx->name, efx->net_dev->name); in efx_update_name()
766 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr); in efx_netdev_event() local
768 if ((net_dev->netdev_ops == &efx_netdev_ops) && in efx_netdev_event()
770 efx_update_name(efx_netdev_priv(net_dev)); in efx_netdev_event()
789 struct net_device *net_dev = efx->net_dev; in efx_register_netdev() local
793 net_dev->watchdog_timeo = 5 * HZ; in efx_register_netdev()
794 net_dev->irq = efx->pci_dev->irq; in efx_register_netdev()
795 net_dev->netdev_ops = &efx_netdev_ops; in efx_register_netdev()
796 net_dev->stat_ops = &efx_stat_ops; in efx_register_netdev()
798 net_dev->priv_flags |= IFF_UNICAST_FLT; in efx_register_netdev()
799 net_dev->ethtool_ops = &efx_ethtool_ops; in efx_register_netdev()
800 netif_set_tso_max_segs(net_dev, EFX_TSO_MAX_SEGS); in efx_register_netdev()
801 net_dev->min_mtu = EFX_MIN_MTU; in efx_register_netdev()
802 net_dev->max_mtu = EFX_MAX_MTU; in efx_register_netdev()
816 rc = dev_alloc_name(net_dev, net_dev->name); in efx_register_netdev()
822 netif_carrier_off(net_dev); in efx_register_netdev()
824 rc = register_netdevice(net_dev); in efx_register_netdev()
842 netif_err(efx, drv, efx->net_dev, in efx_register_netdev()
854 unregister_netdevice(net_dev); in efx_register_netdev()
858 netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); in efx_register_netdev()
864 if (!efx->net_dev) in efx_unregister_netdev()
867 if (WARN_ON(efx_netdev_priv(efx->net_dev) != efx)) in efx_unregister_netdev()
874 unregister_netdev(efx->net_dev); in efx_unregister_netdev()
968 dev_close(efx->net_dev); in efx_pci_remove()
988 free_netdev(efx->net_dev); in efx_pci_remove()
1052 netif_err(efx, probe, efx->net_dev, in efx_pci_probe_main()
1084 struct net_device *net_dev = efx->net_dev; in efx_pci_probe_post_io() local
1098 net_dev->features |= efx->type->offload_features; in efx_pci_probe_post_io()
1102 net_dev->features |= NETIF_F_TSO | NETIF_F_TSO6; in efx_pci_probe_post_io()
1105 net_dev->vlan_features |= (NETIF_F_HW_CSUM | NETIF_F_SG | in efx_pci_probe_post_io()
1110 net_dev->hw_features |= net_dev->features & ~efx->fixed_features; in efx_pci_probe_post_io()
1113 net_dev->features &= ~NETIF_F_RXALL; in efx_pci_probe_post_io()
1119 net_dev->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in efx_pci_probe_post_io()
1120 net_dev->features |= efx->fixed_features; in efx_pci_probe_post_io()
1122 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
1153 struct net_device *net_dev; in efx_pci_probe() local
1165 net_dev = alloc_etherdev_mq(sizeof(probe_data), EFX_MAX_CORE_TX_QUEUES); in efx_pci_probe()
1166 if (!net_dev) { in efx_pci_probe()
1170 probe_ptr = netdev_priv(net_dev); in efx_pci_probe()
1172 efx->net_dev = net_dev; in efx_pci_probe()
1177 SET_NETDEV_DEV(net_dev, &pci_dev->dev); in efx_pci_probe()
1215 netif_dbg(efx, probe, efx->net_dev, "initialisation successful\n"); in efx_pci_probe()
1222 netif_warn(efx, probe, efx->net_dev, in efx_pci_probe()
1236 netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); in efx_pci_probe()
1237 free_netdev(net_dev); in efx_pci_probe()