Lines Matching refs:netdev

42 static int atlx_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)  in atlx_ioctl()  argument
48 return atlx_mii_ioctl(netdev, ifr, cmd); in atlx_ioctl()
61 static int atlx_set_mac(struct net_device *netdev, void *p) in atlx_set_mac() argument
63 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_set_mac()
66 if (netif_running(netdev)) in atlx_set_mac()
72 eth_hw_addr_set(netdev, addr->sa_data); in atlx_set_mac()
73 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
81 struct net_device *netdev = adapter->netdev; in atlx_check_for_link() local
93 if (netif_carrier_ok(netdev)) { in atlx_check_for_link()
96 netdev->name); in atlx_check_for_link()
98 netif_carrier_off(netdev); in atlx_check_for_link()
113 static void atlx_set_multi(struct net_device *netdev) in atlx_set_multi() argument
115 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_set_multi()
123 if (netdev->flags & IFF_PROMISC) in atlx_set_multi()
125 else if (netdev->flags & IFF_ALLMULTI) { in atlx_set_multi()
138 netdev_for_each_mc_addr(ha, netdev) { in atlx_set_multi()
186 static void atlx_tx_timeout(struct net_device *netdev, unsigned int txqueue) in atlx_tx_timeout() argument
188 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_tx_timeout()
219 static void atlx_vlan_mode(struct net_device *netdev, in atlx_vlan_mode() argument
222 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_vlan_mode()
237 atlx_vlan_mode(adapter->netdev, adapter->netdev->features); in atlx_restore_vlan()
240 static netdev_features_t atlx_fix_features(struct net_device *netdev, in atlx_fix_features() argument
255 static int atlx_set_features(struct net_device *netdev, in atlx_set_features() argument
258 netdev_features_t changed = netdev->features ^ features; in atlx_set_features()
261 atlx_vlan_mode(netdev, features); in atlx_set_features()