Lines Matching refs:netdev

82 		netif_err(interface, probe, interface->netdev,  in fm10k_setup_all_tx_resources()
149 netif_err(interface, probe, interface->netdev, in fm10k_setup_all_rx_resources()
525 int fm10k_open(struct net_device *netdev) in fm10k_open() argument
527 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_open()
549 err = netif_set_real_num_tx_queues(netdev, in fm10k_open()
554 err = netif_set_real_num_rx_queues(netdev, in fm10k_open()
561 vxlan_get_rx_port(netdev); in fm10k_open()
589 int fm10k_close(struct net_device *netdev) in fm10k_close() argument
591 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_close()
687 static void fm10k_tx_timeout(struct net_device *netdev) in fm10k_tx_timeout() argument
689 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_tx_timeout()
704 netif_info(interface, drv, netdev, in fm10k_tx_timeout()
706 netdev->watchdog_timeo/HZ); in fm10k_tx_timeout()
709 if (netdev->watchdog_timeo < TX_TIMEO_LIMIT) in fm10k_tx_timeout()
710 netdev->watchdog_timeo *= 2; in fm10k_tx_timeout()
714 static int fm10k_uc_vlan_unsync(struct net_device *netdev, in fm10k_uc_vlan_unsync() argument
717 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_uc_vlan_unsync()
735 static int fm10k_mc_vlan_unsync(struct net_device *netdev, in fm10k_mc_vlan_unsync() argument
738 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_mc_vlan_unsync()
756 static int fm10k_update_vid(struct net_device *netdev, u16 vid, bool set) in fm10k_update_vid() argument
758 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_update_vid()
785 if (!(netdev->flags & IFF_PROMISC)) { in fm10k_update_vid()
801 __dev_uc_unsync(netdev, fm10k_uc_vlan_unsync); in fm10k_update_vid()
802 __dev_mc_unsync(netdev, fm10k_mc_vlan_unsync); in fm10k_update_vid()
810 static int fm10k_vlan_rx_add_vid(struct net_device *netdev, in fm10k_vlan_rx_add_vid() argument
814 return fm10k_update_vid(netdev, vid, true); in fm10k_vlan_rx_add_vid()
817 static int fm10k_vlan_rx_kill_vid(struct net_device *netdev, in fm10k_vlan_rx_kill_vid() argument
821 return fm10k_update_vid(netdev, vid, false); in fm10k_vlan_rx_kill_vid()
1000 struct net_device *netdev = interface->netdev; in fm10k_restore_rx_state() local
1009 ether_addr_copy(netdev->perm_addr, hw->mac.perm_addr); in fm10k_restore_rx_state()
1010 ether_addr_copy(netdev->dev_addr, hw->mac.perm_addr); in fm10k_restore_rx_state()
1011 netdev->addr_assign_type &= ~NET_ADDR_RANDOM; in fm10k_restore_rx_state()
1015 netdev->features &= ~NETIF_F_HW_VLAN_CTAG_RX; in fm10k_restore_rx_state()
1017 netdev->features |= NETIF_F_HW_VLAN_CTAG_RX; in fm10k_restore_rx_state()
1024 if (netdev->flags & IFF_PROMISC) in fm10k_restore_rx_state()
1026 else if (netdev->flags & IFF_ALLMULTI) in fm10k_restore_rx_state()
1028 else if (netdev->flags & (IFF_BROADCAST | IFF_MULTICAST)) in fm10k_restore_rx_state()
1059 __dev_uc_sync(netdev, fm10k_uc_sync, fm10k_uc_unsync); in fm10k_restore_rx_state()
1061 __dev_mc_sync(netdev, fm10k_mc_sync, fm10k_mc_unsync); in fm10k_restore_rx_state()
1075 struct net_device *netdev = interface->netdev; in fm10k_reset_rx_state() local
1090 __dev_uc_unsync(netdev, NULL); in fm10k_reset_rx_state()
1091 __dev_mc_unsync(netdev, NULL); in fm10k_reset_rx_state()
1102 static struct rtnl_link_stats64 *fm10k_get_stats64(struct net_device *netdev, in fm10k_get_stats64() argument
1105 struct fm10k_intfc *interface = netdev_priv(netdev); in fm10k_get_stats64()
1147 stats->rx_missed_errors = netdev->stats.rx_missed_errors; in fm10k_get_stats64()
1192 static int fm10k_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) in fm10k_ioctl() argument
1196 return fm10k_get_ts_config(netdev, ifr); in fm10k_ioctl()
1198 return fm10k_set_ts_config(netdev, ifr); in fm10k_ioctl()