Lines Matching refs:netdev

55 static int atlx_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)  in atlx_ioctl()  argument
61 return atlx_mii_ioctl(netdev, ifr, cmd); in atlx_ioctl()
74 static int atlx_set_mac(struct net_device *netdev, void *p) in atlx_set_mac() argument
76 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_set_mac()
79 if (netif_running(netdev)) in atlx_set_mac()
85 memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
86 memcpy(adapter->hw.mac_addr, addr->sa_data, netdev->addr_len); in atlx_set_mac()
94 struct net_device *netdev = adapter->netdev; in atlx_check_for_link() local
106 if (netif_carrier_ok(netdev)) { in atlx_check_for_link()
109 netdev->name); in atlx_check_for_link()
111 netif_carrier_off(netdev); in atlx_check_for_link()
126 static void atlx_set_multi(struct net_device *netdev) in atlx_set_multi() argument
128 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_set_multi()
136 if (netdev->flags & IFF_PROMISC) in atlx_set_multi()
138 else if (netdev->flags & IFF_ALLMULTI) { in atlx_set_multi()
151 netdev_for_each_mc_addr(ha, netdev) { in atlx_set_multi()
199 static void atlx_tx_timeout(struct net_device *netdev) in atlx_tx_timeout() argument
201 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_tx_timeout()
232 static void atlx_vlan_mode(struct net_device *netdev, in atlx_vlan_mode() argument
235 struct atlx_adapter *adapter = netdev_priv(netdev); in atlx_vlan_mode()
250 atlx_vlan_mode(adapter->netdev, adapter->netdev->features); in atlx_restore_vlan()
253 static netdev_features_t atlx_fix_features(struct net_device *netdev, in atlx_fix_features() argument
268 static int atlx_set_features(struct net_device *netdev, in atlx_set_features() argument
271 netdev_features_t changed = netdev->features ^ features; in atlx_set_features()
274 atlx_vlan_mode(netdev, features); in atlx_set_features()