Lines Matching refs:net_dev

132 	netif_dbg(efx, probe, efx->net_dev, "create port\n");  in efx_probe_port()
143 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port()
152 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port()
173 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port()
186 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port()
214 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate()
221 netif_dbg(other, probe, other->net_dev, in efx_associate()
224 efx->net_dev->name); in efx_associate()
235 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
238 other->net_dev->name); in efx_associate()
246 netif_dbg(efx, probe, efx->net_dev, in efx_associate()
261 netif_dbg(other, probe, other->net_dev, in efx_dissociate()
272 netif_dbg(efx, probe, efx->net_dev, "creating NIC\n"); in efx_probe_nic()
281 netif_err(efx, drv, efx->net_dev, in efx_probe_nic()
331 netif_dbg(efx, drv, efx->net_dev, "destroying NIC\n"); in efx_remove_nic()
349 netif_err(efx, probe, efx->net_dev, "failed to create NIC\n"); in efx_probe_all()
355 netif_err(efx, probe, efx->net_dev, "failed to create port\n"); in efx_probe_all()
368 netif_warn(efx, probe, efx->net_dev, in efx_probe_all()
375 netif_err(efx, probe, efx->net_dev, in efx_probe_all()
446 netif_err(efx, drv, efx->net_dev, "Channels are shared. " in efx_siena_init_irq_moderation()
494 static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) in efx_ioctl() argument
496 struct efx_nic *efx = netdev_priv(net_dev); in efx_ioctl()
519 static int efx_net_open(struct net_device *net_dev) in efx_net_open() argument
521 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_open()
524 netif_dbg(efx, ifup, efx->net_dev, "opening device on CPU %d\n", in efx_net_open()
541 netif_device_detach(efx->net_dev); in efx_net_open()
550 static int efx_net_stop(struct net_device *net_dev) in efx_net_stop() argument
552 struct efx_nic *efx = netdev_priv(net_dev); in efx_net_stop()
554 netif_dbg(efx, ifdown, efx->net_dev, "closing on CPU %d\n", in efx_net_stop()
563 static int efx_vlan_rx_add_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_add_vid() argument
565 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_add_vid()
573 static int efx_vlan_rx_kill_vid(struct net_device *net_dev, __be16 proto, u16 vid) in efx_vlan_rx_kill_vid() argument
575 struct efx_nic *efx = netdev_priv(net_dev); in efx_vlan_rx_kill_vid()
620 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
625 if (prog && efx->net_dev->mtu > efx_siena_xdp_max_mtu(efx)) { in efx_xdp_setup_prog()
626 netif_err(efx, drv, efx->net_dev, in efx_xdp_setup_prog()
628 efx->net_dev->mtu, efx_siena_xdp_max_mtu(efx)); in efx_xdp_setup_prog()
667 strcpy(efx->name, efx->net_dev->name); in efx_update_name()
675 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr); in efx_netdev_event() local
677 if ((net_dev->netdev_ops == &efx_netdev_ops) && in efx_netdev_event()
679 efx_update_name(netdev_priv(net_dev)); in efx_netdev_event()
698 struct net_device *net_dev = efx->net_dev; in efx_register_netdev() local
702 net_dev->watchdog_timeo = 5 * HZ; in efx_register_netdev()
703 net_dev->irq = efx->pci_dev->irq; in efx_register_netdev()
704 net_dev->netdev_ops = &efx_netdev_ops; in efx_register_netdev()
706 net_dev->priv_flags |= IFF_UNICAST_FLT; in efx_register_netdev()
707 net_dev->ethtool_ops = &efx_siena_ethtool_ops; in efx_register_netdev()
708 netif_set_tso_max_segs(net_dev, EFX_TSO_MAX_SEGS); in efx_register_netdev()
709 net_dev->min_mtu = EFX_MIN_MTU; in efx_register_netdev()
710 net_dev->max_mtu = EFX_MAX_MTU; in efx_register_netdev()
726 rc = dev_alloc_name(net_dev, net_dev->name); in efx_register_netdev()
732 netif_carrier_off(net_dev); in efx_register_netdev()
734 rc = register_netdevice(net_dev); in efx_register_netdev()
750 netif_err(efx, drv, efx->net_dev, in efx_register_netdev()
762 unregister_netdevice(net_dev); in efx_register_netdev()
766 netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); in efx_register_netdev()
772 if (!efx->net_dev) in efx_unregister_netdev()
775 BUG_ON(netdev_priv(efx->net_dev) != efx); in efx_unregister_netdev()
781 unregister_netdev(efx->net_dev); in efx_unregister_netdev()
858 dev_close(efx->net_dev); in efx_pci_remove()
873 netif_dbg(efx, drv, efx->net_dev, "shutdown successful\n"); in efx_pci_remove()
876 free_netdev(efx->net_dev); in efx_pci_remove()
940 netif_err(efx, probe, efx->net_dev, in efx_pci_probe_main()
972 struct net_device *net_dev = efx->net_dev; in efx_pci_probe_post_io() local
986 net_dev->features |= (efx->type->offload_features | NETIF_F_SG | in efx_pci_probe_post_io()
989 net_dev->features |= NETIF_F_TSO6; in efx_pci_probe_post_io()
992 net_dev->features &= ~NETIF_F_ALL_TSO; in efx_pci_probe_post_io()
994 net_dev->vlan_features |= (NETIF_F_HW_CSUM | NETIF_F_SG | in efx_pci_probe_post_io()
998 net_dev->hw_features |= net_dev->features & ~efx->fixed_features; in efx_pci_probe_post_io()
1001 net_dev->features &= ~NETIF_F_RXALL; in efx_pci_probe_post_io()
1007 net_dev->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in efx_pci_probe_post_io()
1008 net_dev->features |= efx->fixed_features; in efx_pci_probe_post_io()
1010 net_dev->xdp_features = NETDEV_XDP_ACT_BASIC | in efx_pci_probe_post_io()
1034 struct net_device *net_dev; in efx_pci_probe() local
1039 net_dev = alloc_etherdev_mqs(sizeof(*efx), EFX_MAX_CORE_TX_QUEUES, in efx_pci_probe()
1041 if (!net_dev) in efx_pci_probe()
1043 efx = netdev_priv(net_dev); in efx_pci_probe()
1048 SET_NETDEV_DEV(net_dev, &pci_dev->dev); in efx_pci_probe()
1049 rc = efx_siena_init_struct(efx, pci_dev, net_dev); in efx_pci_probe()
1087 netif_dbg(efx, probe, efx->net_dev, "initialisation successful\n"); in efx_pci_probe()
1094 netif_warn(efx, probe, efx->net_dev, in efx_pci_probe()
1110 netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); in efx_pci_probe()
1111 free_netdev(net_dev); in efx_pci_probe()