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()
401 static int txgbe_open(struct net_device *netdev) in txgbe_open() argument
403 struct wx *wx = netdev_priv(netdev); in txgbe_open()
417 err = netif_set_real_num_tx_queues(netdev, wx->num_tx_queues); in txgbe_open()
421 err = netif_set_real_num_rx_queues(netdev, wx->num_rx_queues); in txgbe_open()
463 static int txgbe_close(struct net_device *netdev) in txgbe_close() argument
465 struct wx *wx = netdev_priv(netdev); in txgbe_close()
478 struct net_device *netdev; in txgbe_dev_shutdown() local
480 netdev = wx->netdev; in txgbe_dev_shutdown()
481 netif_device_detach(netdev); in txgbe_dev_shutdown()
484 if (netif_running(netdev)) in txgbe_dev_shutdown()
531 struct net_device *netdev; in txgbe_probe() local
564 netdev = devm_alloc_etherdev_mqs(&pdev->dev, in txgbe_probe()
568 if (!netdev) { in txgbe_probe()
573 SET_NETDEV_DEV(netdev, &pdev->dev); in txgbe_probe()
575 wx = netdev_priv(netdev); in txgbe_probe()
576 wx->netdev = netdev; in txgbe_probe()
590 txgbe_set_ethtool_ops(netdev); in txgbe_probe()
591 netdev->netdev_ops = &txgbe_netdev_ops; in txgbe_probe()
618 netdev->features = NETIF_F_SG | in txgbe_probe()
625 netdev->gso_partial_features = NETIF_F_GSO_ENCAP_ALL; in txgbe_probe()
626 netdev->features |= netdev->gso_partial_features; in txgbe_probe()
627 netdev->features |= NETIF_F_SCTP_CRC; in txgbe_probe()
628 netdev->vlan_features |= netdev->features | NETIF_F_TSO_MANGLEID; in txgbe_probe()
629 netdev->hw_enc_features |= netdev->vlan_features; in txgbe_probe()
630 netdev->features |= NETIF_F_VLAN_FEATURES; in txgbe_probe()
632 netdev->hw_features |= netdev->features | NETIF_F_RXALL; in txgbe_probe()
633 netdev->hw_features |= NETIF_F_NTUPLE | NETIF_F_HW_TC; in txgbe_probe()
634 netdev->features |= NETIF_F_HIGHDMA; in txgbe_probe()
635 netdev->hw_features |= NETIF_F_GRO; in txgbe_probe()
636 netdev->features |= NETIF_F_GRO; in txgbe_probe()
638 netdev->priv_flags |= IFF_UNICAST_FLT; in txgbe_probe()
639 netdev->priv_flags |= IFF_SUPP_NOFCS; in txgbe_probe()
641 netdev->min_mtu = ETH_MIN_MTU; in txgbe_probe()
642 netdev->max_mtu = WX_MAX_JUMBO_FRAME_SIZE - in txgbe_probe()
654 eth_hw_addr_set(netdev, wx->mac.perm_addr); in txgbe_probe()
715 err = register_netdev(netdev); in txgbe_probe()
721 netif_tx_stop_all_queues(netdev); in txgbe_probe()
742 netif_info(wx, probe, netdev, "%pM\n", netdev->dev_addr); in txgbe_probe()
774 struct net_device *netdev; in txgbe_remove() local
776 netdev = wx->netdev; in txgbe_remove()
777 unregister_netdev(netdev); in txgbe_remove()