Lines Matching refs:netdev
114 if (netif_running(wx->netdev)) in txgbe_intr()
129 if (netif_running(wx->netdev)) in txgbe_intr()
143 struct net_device *netdev = wx->netdev; in txgbe_request_msix_irqs() local
152 "%s-TxRx-%d", netdev->name, entry->entry); in txgbe_request_msix_irqs()
187 struct net_device *netdev = wx->netdev; in txgbe_request_irq() local
195 netdev->name, wx); in txgbe_request_irq()
198 netdev->name, wx); in txgbe_request_irq()
208 struct net_device *netdev = wx->netdev; in txgbe_up_complete() local
218 txgbe = netdev_to_txgbe(netdev); in txgbe_up_complete()
228 netif_tx_start_all_queues(netdev); in txgbe_up_complete()
233 struct net_device *netdev = wx->netdev; in txgbe_reset() local
243 memcpy(old_addr, &wx->mac_table[0].addr, netdev->addr_len); in txgbe_reset()
250 struct net_device *netdev = wx->netdev; in txgbe_disable_device() local
262 netif_tx_stop_all_queues(netdev); in txgbe_disable_device()
263 netif_tx_disable(netdev); in txgbe_disable_device()
293 struct txgbe *txgbe = netdev_to_txgbe(wx->netdev); in txgbe_down()
403 static int txgbe_open(struct net_device *netdev) in txgbe_open() argument
405 struct wx *wx = netdev_priv(netdev); in txgbe_open()
419 err = netif_set_real_num_tx_queues(netdev, wx->num_tx_queues); in txgbe_open()
423 err = netif_set_real_num_rx_queues(netdev, wx->num_rx_queues); in txgbe_open()
465 static int txgbe_close(struct net_device *netdev) in txgbe_close() argument
467 struct wx *wx = netdev_priv(netdev); in txgbe_close()
480 struct net_device *netdev; in txgbe_dev_shutdown() local
482 netdev = wx->netdev; in txgbe_dev_shutdown()
483 netif_device_detach(netdev); in txgbe_dev_shutdown()
486 if (netif_running(netdev)) in txgbe_dev_shutdown()
533 struct net_device *netdev; in txgbe_probe() local
566 netdev = devm_alloc_etherdev_mqs(&pdev->dev, in txgbe_probe()
570 if (!netdev) { in txgbe_probe()
575 SET_NETDEV_DEV(netdev, &pdev->dev); in txgbe_probe()
577 wx = netdev_priv(netdev); in txgbe_probe()
578 wx->netdev = netdev; in txgbe_probe()
592 txgbe_set_ethtool_ops(netdev); in txgbe_probe()
593 netdev->netdev_ops = &txgbe_netdev_ops; in txgbe_probe()
620 netdev->features = NETIF_F_SG | in txgbe_probe()
627 netdev->gso_partial_features = NETIF_F_GSO_ENCAP_ALL; in txgbe_probe()
628 netdev->features |= netdev->gso_partial_features; in txgbe_probe()
629 netdev->features |= NETIF_F_SCTP_CRC; in txgbe_probe()
630 netdev->vlan_features |= netdev->features | NETIF_F_TSO_MANGLEID; in txgbe_probe()
631 netdev->hw_enc_features |= netdev->vlan_features; in txgbe_probe()
632 netdev->features |= NETIF_F_VLAN_FEATURES; in txgbe_probe()
634 netdev->hw_features |= netdev->features | NETIF_F_RXALL; in txgbe_probe()
635 netdev->hw_features |= NETIF_F_NTUPLE | NETIF_F_HW_TC; in txgbe_probe()
636 netdev->features |= NETIF_F_HIGHDMA; in txgbe_probe()
637 netdev->hw_features |= NETIF_F_GRO; in txgbe_probe()
638 netdev->features |= NETIF_F_GRO; in txgbe_probe()
640 netdev->priv_flags |= IFF_UNICAST_FLT; in txgbe_probe()
641 netdev->priv_flags |= IFF_SUPP_NOFCS; in txgbe_probe()
643 netdev->min_mtu = ETH_MIN_MTU; in txgbe_probe()
644 netdev->max_mtu = WX_MAX_JUMBO_FRAME_SIZE - in txgbe_probe()
656 eth_hw_addr_set(netdev, wx->mac.perm_addr); in txgbe_probe()
717 err = register_netdev(netdev); in txgbe_probe()
723 netif_tx_stop_all_queues(netdev); in txgbe_probe()
744 netif_info(wx, probe, netdev, "%pM\n", netdev->dev_addr); in txgbe_probe()
776 struct net_device *netdev; in txgbe_remove() local
778 netdev = wx->netdev; in txgbe_remove()
779 unregister_netdev(netdev); in txgbe_remove()