Lines Matching refs:netdev
19 netif_device_detach(wx->netdev); in wxvf_suspend()
40 netif_device_attach(wx->netdev); in wxvf_resume()
49 struct net_device *netdev; in wxvf_remove() local
52 netdev = wx->netdev; in wxvf_remove()
53 unregister_netdev(netdev); in wxvf_remove()
70 if (netif_running(wx->netdev)) in wx_msix_misc_vf()
78 struct net_device *netdev = wx->netdev; in wx_request_msix_irqs_vf() local
87 "%s-TxRx-%d", netdev->name, entry->entry); in wx_request_msix_irqs_vf()
102 NULL, IRQF_ONESHOT, netdev->name, wx); in wx_request_msix_irqs_vf()
141 struct net_device *netdev = wx->netdev; in wx_reset_vf() local
149 eth_hw_addr_set(netdev, wx->mac.addr); in wx_reset_vf()
150 ether_addr_copy(netdev->perm_addr, wx->mac.addr); in wx_reset_vf()
155 void wx_set_rx_mode_vf(struct net_device *netdev) in wx_set_rx_mode_vf() argument
157 struct wx *wx = netdev_priv(netdev); in wx_set_rx_mode_vf()
158 unsigned int flags = netdev->flags; in wx_set_rx_mode_vf()
176 wx_update_mc_addr_list_vf(wx, netdev); in wx_set_rx_mode_vf()
177 wx_write_uc_addr_list_vf(netdev); in wx_set_rx_mode_vf()
190 struct net_device *netdev = wx->netdev; in wx_configure_rx_vf() local
198 netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); in wx_configure_rx_vf()
201 wx_dbg(wx, "Failed to set MTU at %d\n", netdev->mtu); in wx_configure_rx_vf()
217 wx_set_rx_mode_vf(wx->netdev); in wx_configure_vf()
223 int wx_set_mac_vf(struct net_device *netdev, void *p) in wx_set_mac_vf() argument
225 struct wx *wx = netdev_priv(netdev); in wx_set_mac_vf()
229 ret = eth_prepare_mac_addr_change(netdev, addr); in wx_set_mac_vf()
240 memcpy(wx->mac.addr, addr->sa_data, netdev->addr_len); in wx_set_mac_vf()
241 memcpy(wx->mac.perm_addr, addr->sa_data, netdev->addr_len); in wx_set_mac_vf()
242 eth_hw_addr_set(netdev, addr->sa_data); in wx_set_mac_vf()
274 netif_carrier_off(wx->netdev); in wxvf_up_complete()
286 netif_tx_start_all_queues(wx->netdev); in wxvf_up_complete()
289 int wxvf_open(struct net_device *netdev) in wxvf_open() argument
291 struct wx *wx = netdev_priv(netdev); in wxvf_open()
304 err = netif_set_real_num_tx_queues(netdev, wx->num_tx_queues); in wxvf_open()
308 err = netif_set_real_num_rx_queues(netdev, wx->num_rx_queues); in wxvf_open()
327 struct net_device *netdev = wx->netdev; in wxvf_down() local
330 netif_tx_stop_all_queues(netdev); in wxvf_down()
331 netif_tx_disable(netdev); in wxvf_down()
332 netif_carrier_off(netdev); in wxvf_down()
360 !(netif_running(wx->netdev))) { in wxvf_reset_subtask()
368 int wxvf_close(struct net_device *netdev) in wxvf_close() argument
370 struct wx *wx = netdev_priv(netdev); in wxvf_close()
382 struct net_device *netdev = wx->netdev; in wxvf_link_config_subtask() local
386 if (netif_carrier_ok(netdev)) in wxvf_link_config_subtask()
388 netif_carrier_on(netdev); in wxvf_link_config_subtask()
389 netdev_info(netdev, "Link is Up - %s\n", in wxvf_link_config_subtask()
392 if (!netif_carrier_ok(netdev)) in wxvf_link_config_subtask()
394 netif_carrier_off(netdev); in wxvf_link_config_subtask()
395 netdev_info(netdev, "Link is Down\n"); in wxvf_link_config_subtask()