asix_devices.c (0898782247ae533d1f4e47a06bc5d4870931b284) | asix_devices.c (323955a0498ccaa1263e369b91efd8f4310768b6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * ASIX AX8817X based USB 2.0 Ethernet Devices 4 * Copyright (C) 2003-2006 David Hollis <dhollis@davehollis.com> 5 * Copyright (C) 2005 Phil Chang <pchang23@sbcglobal.net> 6 * Copyright (C) 2006 James Painter <jamie.painter@iname.com> 7 * Copyright (c) 2002-2003 TiVo Inc. 8 */ --- 180 unchanged lines hidden (view full) --- 189} 190 191static const struct net_device_ops ax88172_netdev_ops = { 192 .ndo_open = usbnet_open, 193 .ndo_stop = usbnet_stop, 194 .ndo_start_xmit = usbnet_start_xmit, 195 .ndo_tx_timeout = usbnet_tx_timeout, 196 .ndo_change_mtu = usbnet_change_mtu, | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * ASIX AX8817X based USB 2.0 Ethernet Devices 4 * Copyright (C) 2003-2006 David Hollis <dhollis@davehollis.com> 5 * Copyright (C) 2005 Phil Chang <pchang23@sbcglobal.net> 6 * Copyright (C) 2006 James Painter <jamie.painter@iname.com> 7 * Copyright (c) 2002-2003 TiVo Inc. 8 */ --- 180 unchanged lines hidden (view full) --- 189} 190 191static const struct net_device_ops ax88172_netdev_ops = { 192 .ndo_open = usbnet_open, 193 .ndo_stop = usbnet_stop, 194 .ndo_start_xmit = usbnet_start_xmit, 195 .ndo_tx_timeout = usbnet_tx_timeout, 196 .ndo_change_mtu = usbnet_change_mtu, |
197 .ndo_get_stats64 = usbnet_get_stats64, | 197 .ndo_get_stats64 = dev_get_tstats64, |
198 .ndo_set_mac_address = eth_mac_addr, 199 .ndo_validate_addr = eth_validate_addr, 200 .ndo_do_ioctl = asix_ioctl, 201 .ndo_set_rx_mode = ax88172_set_multicast, 202}; 203 204static void asix_phy_reset(struct usbnet *dev, unsigned int reset_bits) 205{ --- 369 unchanged lines hidden (view full) --- 575} 576 577static const struct net_device_ops ax88772_netdev_ops = { 578 .ndo_open = usbnet_open, 579 .ndo_stop = usbnet_stop, 580 .ndo_start_xmit = usbnet_start_xmit, 581 .ndo_tx_timeout = usbnet_tx_timeout, 582 .ndo_change_mtu = usbnet_change_mtu, | 198 .ndo_set_mac_address = eth_mac_addr, 199 .ndo_validate_addr = eth_validate_addr, 200 .ndo_do_ioctl = asix_ioctl, 201 .ndo_set_rx_mode = ax88172_set_multicast, 202}; 203 204static void asix_phy_reset(struct usbnet *dev, unsigned int reset_bits) 205{ --- 369 unchanged lines hidden (view full) --- 575} 576 577static const struct net_device_ops ax88772_netdev_ops = { 578 .ndo_open = usbnet_open, 579 .ndo_stop = usbnet_stop, 580 .ndo_start_xmit = usbnet_start_xmit, 581 .ndo_tx_timeout = usbnet_tx_timeout, 582 .ndo_change_mtu = usbnet_change_mtu, |
583 .ndo_get_stats64 = usbnet_get_stats64, | 583 .ndo_get_stats64 = dev_get_tstats64, |
584 .ndo_set_mac_address = asix_set_mac_address, 585 .ndo_validate_addr = eth_validate_addr, 586 .ndo_do_ioctl = asix_ioctl, 587 .ndo_set_rx_mode = asix_set_multicast, 588}; 589 590static void ax88772_suspend(struct usbnet *dev) 591{ --- 453 unchanged lines hidden (view full) --- 1045 return 0; 1046} 1047 1048static const struct net_device_ops ax88178_netdev_ops = { 1049 .ndo_open = usbnet_open, 1050 .ndo_stop = usbnet_stop, 1051 .ndo_start_xmit = usbnet_start_xmit, 1052 .ndo_tx_timeout = usbnet_tx_timeout, | 584 .ndo_set_mac_address = asix_set_mac_address, 585 .ndo_validate_addr = eth_validate_addr, 586 .ndo_do_ioctl = asix_ioctl, 587 .ndo_set_rx_mode = asix_set_multicast, 588}; 589 590static void ax88772_suspend(struct usbnet *dev) 591{ --- 453 unchanged lines hidden (view full) --- 1045 return 0; 1046} 1047 1048static const struct net_device_ops ax88178_netdev_ops = { 1049 .ndo_open = usbnet_open, 1050 .ndo_stop = usbnet_stop, 1051 .ndo_start_xmit = usbnet_start_xmit, 1052 .ndo_tx_timeout = usbnet_tx_timeout, |
1053 .ndo_get_stats64 = usbnet_get_stats64, | 1053 .ndo_get_stats64 = dev_get_tstats64, |
1054 .ndo_set_mac_address = asix_set_mac_address, 1055 .ndo_validate_addr = eth_validate_addr, 1056 .ndo_set_rx_mode = asix_set_multicast, 1057 .ndo_do_ioctl = asix_ioctl, 1058 .ndo_change_mtu = ax88178_change_mtu, 1059}; 1060 1061static int ax88178_bind(struct usbnet *dev, struct usb_interface *intf) --- 328 unchanged lines hidden --- | 1054 .ndo_set_mac_address = asix_set_mac_address, 1055 .ndo_validate_addr = eth_validate_addr, 1056 .ndo_set_rx_mode = asix_set_multicast, 1057 .ndo_do_ioctl = asix_ioctl, 1058 .ndo_change_mtu = ax88178_change_mtu, 1059}; 1060 1061static int ax88178_bind(struct usbnet *dev, struct usb_interface *intf) --- 328 unchanged lines hidden --- |