/linux-4.1.27/include/linux/usb/ |
H A D | usbnet.h | 25 /* interface from usbnet core to each USB networking link we handle */ 26 struct usbnet { struct 114 * Indicates to usbnet, that USB driver accumulates multiple IP packets. 122 int (*bind)(struct usbnet *, struct usb_interface *); 125 void (*unbind)(struct usbnet *, struct usb_interface *); 128 int (*reset)(struct usbnet *); 131 int (*stop)(struct usbnet *); 134 int (*check_connect)(struct usbnet *); 137 int (*manage_power)(struct usbnet *, int); 140 void (*status)(struct usbnet *, struct urb *); 143 int (*link_reset)(struct usbnet *); 146 int (*rx_fixup)(struct usbnet *dev, struct sk_buff *skb); 149 struct sk_buff *(*tx_fixup)(struct usbnet *dev, 153 void (*recover)(struct usbnet *dev); 158 int (*early_init)(struct usbnet *dev); 161 void (*indication)(struct usbnet *dev, void *ind, int indlen); 164 void (*set_rx_mode)(struct usbnet *dev); 173 /* Minidrivers are just drivers using the "usbnet" core as a powerful 181 extern void usbnet_device_suggests_idle(struct usbnet *dev); 183 extern int usbnet_read_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, 185 extern int usbnet_write_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, 187 extern int usbnet_read_cmd_nopm(struct usbnet *dev, u8 cmd, u8 reqtype, 189 extern int usbnet_write_cmd_nopm(struct usbnet *dev, u8 cmd, u8 reqtype, 191 extern int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype, 206 extern int usbnet_generic_cdc_bind(struct usbnet *, struct usb_interface *); 207 extern int usbnet_cdc_bind(struct usbnet *, struct usb_interface *); 208 extern void usbnet_cdc_unbind(struct usbnet *, struct usb_interface *); 209 extern void usbnet_cdc_status(struct usbnet *, struct urb *); 228 struct usbnet *dev; 254 extern int usbnet_get_endpoints(struct usbnet *, struct usb_interface *); 255 extern int usbnet_get_ethernet_addr(struct usbnet *, int); 256 extern void usbnet_defer_kevent(struct usbnet *, int); 257 extern void usbnet_skb_return(struct usbnet *, struct sk_buff *); 258 extern void usbnet_unlink_rx_urbs(struct usbnet *); 260 extern void usbnet_pause_rx(struct usbnet *); 261 extern void usbnet_resume_rx(struct usbnet *); 262 extern void usbnet_purge_paused_rxq(struct usbnet *); 274 extern int usbnet_manage_power(struct usbnet *, int); 275 extern void usbnet_link_change(struct usbnet *, bool, bool); 277 extern int usbnet_status_start(struct usbnet *dev, gfp_t mem_flags); 278 extern void usbnet_status_stop(struct usbnet *dev); 280 extern void usbnet_update_max_qlen(struct usbnet *dev);
|
H A D | rndis_host.h | 200 extern void rndis_status(struct usbnet *dev, struct urb *urb); 202 rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen); 204 generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf, int flags); 205 extern void rndis_unbind(struct usbnet *dev, struct usb_interface *intf); 206 extern int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb); 208 rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags);
|
H A D | cdc_ncm.h | 137 int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_altsetting); 138 void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf); 139 struct sk_buff *cdc_ncm_fill_tx_frame(struct usbnet *dev, struct sk_buff *skb, __le32 sign); 143 cdc_ncm_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags); 144 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in);
|
/linux-4.1.27/drivers/net/usb/ |
H A D | mcs7830.c | 4 * based on usbnet.c, asix.c and the vendor provided mcs7830 driver 22 * - switch PHY on/off on ifup/ifdown (perhaps in usbnet.c, via MII) 50 #include <linux/usb/usbnet.h> 122 static int mcs7830_get_reg(struct usbnet *dev, u16 index, u16 size, void *data) mcs7830_get_reg() 128 static int mcs7830_set_reg(struct usbnet *dev, u16 index, u16 size, const void *data) mcs7830_set_reg() 134 static void mcs7830_set_reg_async(struct usbnet *dev, u16 index, u16 size, void *data) mcs7830_set_reg_async() 140 static int mcs7830_hif_get_mac_address(struct usbnet *dev, unsigned char *addr) mcs7830_hif_get_mac_address() 148 static int mcs7830_hif_set_mac_address(struct usbnet *dev, unsigned char *addr) mcs7830_hif_set_mac_address() 160 struct usbnet *dev = netdev_priv(netdev); mcs7830_set_mac_address() 180 static int mcs7830_read_phy(struct usbnet *dev, u8 index) mcs7830_read_phy() 220 static int mcs7830_write_phy(struct usbnet *dev, u8 index, u16 val) mcs7830_write_phy() 267 static int mcs7830_set_autoneg(struct usbnet *dev, int ptrUserPhyMode) mcs7830_set_autoneg() 290 static int mcs7830_get_rev(struct usbnet *dev) mcs7830_get_rev() 303 static void mcs7830_rev_C_fixup(struct usbnet *dev) mcs7830_rev_C_fixup() 321 struct usbnet *dev = netdev_priv(netdev); mcs7830_mdio_read() 328 struct usbnet *dev = netdev_priv(netdev); mcs7830_mdio_write() 334 struct usbnet *dev = netdev_priv(net); mcs7830_ioctl() 338 static inline struct mcs7830_data *mcs7830_get_data(struct usbnet *dev) mcs7830_get_data() 343 static void mcs7830_hif_update_multicast_hash(struct usbnet *dev) mcs7830_hif_update_multicast_hash() 351 static void mcs7830_hif_update_config(struct usbnet *dev) mcs7830_hif_update_config() 361 struct usbnet *dev = netdev_priv(net); mcs7830_data_set_multicast() 394 static int mcs7830_apply_base_config(struct usbnet *dev) mcs7830_apply_base_config() 424 struct usbnet *dev = netdev_priv(net); mcs7830_set_multicast() 434 struct usbnet *dev = netdev_priv(net); mcs7830_get_regs_len() 453 struct usbnet *dev = netdev_priv(net); mcs7830_get_regs() 464 /* common usbnet calls */ 485 static int mcs7830_bind(struct usbnet *dev, struct usb_interface *udev) mcs7830_bind() 525 static int mcs7830_rx_fixup(struct usbnet *dev, struct sk_buff *skb) mcs7830_rx_fixup() 529 /* This check is no longer done by usbnet */ mcs7830_rx_fixup() 541 /* hmm, perhaps usbnet.c already sees a globally visible mcs7830_rx_fixup() 558 static void mcs7830_status(struct usbnet *dev, struct urb *urb) mcs7830_status() 620 struct usbnet *dev = usb_get_intfdata(intf); mcs7830_reset_resume()
|
H A D | asix.h | 37 #include <linux/usb/usbnet.h> 184 int asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, 187 int asix_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, 190 void asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, 193 int asix_rx_fixup_internal(struct usbnet *dev, struct sk_buff *skb, 195 int asix_rx_fixup_common(struct usbnet *dev, struct sk_buff *skb); 197 struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb, 200 int asix_set_sw_mii(struct usbnet *dev); 201 int asix_set_hw_mii(struct usbnet *dev); 203 int asix_read_phy_addr(struct usbnet *dev, int internal); 204 int asix_get_phy_addr(struct usbnet *dev); 206 int asix_sw_reset(struct usbnet *dev, u8 flags); 208 u16 asix_read_rx_ctl(struct usbnet *dev); 209 int asix_write_rx_ctl(struct usbnet *dev, u16 mode); 211 u16 asix_read_medium_status(struct usbnet *dev); 212 int asix_write_medium_mode(struct usbnet *dev, u16 mode); 214 int asix_write_gpio(struct usbnet *dev, u16 value, int sleep);
|
H A D | asix_common.c | 24 int asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, asix_read_cmd() 37 int asix_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, asix_write_cmd() 45 void asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, asix_write_cmd_async() 53 int asix_rx_fixup_internal(struct usbnet *dev, struct sk_buff *skb, asix_rx_fixup_internal() 131 int asix_rx_fixup_common(struct usbnet *dev, struct sk_buff *skb) asix_rx_fixup_common() 139 struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb, asix_tx_fixup() 196 int asix_set_sw_mii(struct usbnet *dev) asix_set_sw_mii() 205 int asix_set_hw_mii(struct usbnet *dev) asix_set_hw_mii() 214 int asix_read_phy_addr(struct usbnet *dev, int internal) asix_read_phy_addr() 234 int asix_get_phy_addr(struct usbnet *dev) asix_get_phy_addr() 241 int asix_sw_reset(struct usbnet *dev, u8 flags) asix_sw_reset() 252 u16 asix_read_rx_ctl(struct usbnet *dev) asix_read_rx_ctl() 266 int asix_write_rx_ctl(struct usbnet *dev, u16 mode) asix_write_rx_ctl() 279 u16 asix_read_medium_status(struct usbnet *dev) asix_read_medium_status() 294 int asix_write_medium_mode(struct usbnet *dev, u16 mode) asix_write_medium_mode() 307 int asix_write_gpio(struct usbnet *dev, u16 value, int sleep) asix_write_gpio() 328 struct usbnet *dev = netdev_priv(net); asix_set_multicast() 367 struct usbnet *dev = netdev_priv(netdev); asix_mdio_read() 385 struct usbnet *dev = netdev_priv(netdev); asix_mdio_write() 399 struct usbnet *dev = netdev_priv(net); asix_get_wol() 417 struct usbnet *dev = netdev_priv(net); asix_set_wol() 440 struct usbnet *dev = netdev_priv(net); asix_get_eeprom() 475 struct usbnet *dev = netdev_priv(net); asix_set_eeprom() 564 struct usbnet *dev = netdev_priv(net); asix_set_mac_address()
|
H A D | sr9700.c | 22 #include <linux/usb/usbnet.h> 26 static int sr_read(struct usbnet *dev, u8 reg, u16 length, void *data) sr_read() 37 static int sr_write(struct usbnet *dev, u8 reg, u16 length, void *data) sr_write() 48 static int sr_read_reg(struct usbnet *dev, u8 reg, u8 *value) sr_read_reg() 53 static int sr_write_reg(struct usbnet *dev, u8 reg, u8 value) sr_write_reg() 59 static void sr_write_async(struct usbnet *dev, u8 reg, u16 length, void *data) sr_write_async() 65 static void sr_write_reg_async(struct usbnet *dev, u8 reg, u8 value) sr_write_reg_async() 71 static int wait_phy_eeprom_ready(struct usbnet *dev, int phy) wait_phy_eeprom_ready() 94 static int sr_share_read_word(struct usbnet *dev, int phy, u8 reg, sr_share_read_word() 119 static int sr_share_write_word(struct usbnet *dev, int phy, u8 reg, sr_share_write_word() 145 static int sr_read_eeprom_word(struct usbnet *dev, u8 offset, void *value) sr_read_eeprom_word() 158 struct usbnet *dev = netdev_priv(netdev); sr9700_get_eeprom() 178 struct usbnet *dev = netdev_priv(netdev); sr_mdio_read() 210 struct usbnet *dev = netdev_priv(netdev); sr_mdio_write() 226 struct usbnet *dev = netdev_priv(netdev); sr9700_get_link() 240 struct usbnet *dev = netdev_priv(netdev); sr9700_ioctl() 259 struct usbnet *dev = netdev_priv(netdev); sr9700_set_multicast() 290 struct usbnet *dev = netdev_priv(netdev); sr9700_set_mac_address() 317 static int sr9700_bind(struct usbnet *dev, struct usb_interface *intf) sr9700_bind() 377 static int sr9700_rx_fixup(struct usbnet *dev, struct sk_buff *skb) sr9700_rx_fixup() 441 static struct sk_buff *sr9700_tx_fixup(struct usbnet *dev, struct sk_buff *skb, sr9700_tx_fixup() 471 /* usbnet adds padding if length is a multiple of packet size sr9700_tx_fixup() 483 static void sr9700_status(struct usbnet *dev, struct urb *urb) sr9700_status() 511 static int sr9700_link_reset(struct usbnet *dev) sr9700_link_reset()
|
H A D | sr9800.c | 22 #include <linux/usb/usbnet.h> 28 static int sr_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, sr_read_cmd() 41 static int sr_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, sr_write_cmd() 55 sr_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, sr_write_cmd_async() 62 static int sr_rx_fixup(struct usbnet *dev, struct sk_buff *skb) sr_rx_fixup() 66 /* This check is no longer done by usbnet */ sr_rx_fixup() 110 static struct sk_buff *sr_tx_fixup(struct usbnet *dev, struct sk_buff *skb, sr_tx_fixup() 151 static void sr_status(struct usbnet *dev, struct urb *urb) sr_status() 169 static inline int sr_set_sw_mii(struct usbnet *dev) sr_set_sw_mii() 179 static inline int sr_set_hw_mii(struct usbnet *dev) sr_set_hw_mii() 189 static inline int sr_get_phy_addr(struct usbnet *dev) sr_get_phy_addr() 209 static int sr_sw_reset(struct usbnet *dev, u8 flags) sr_sw_reset() 221 static u16 sr_read_rx_ctl(struct usbnet *dev) sr_read_rx_ctl() 238 static int sr_write_rx_ctl(struct usbnet *dev, u16 mode) sr_write_rx_ctl() 252 static u16 sr_read_medium_status(struct usbnet *dev) sr_read_medium_status() 267 static int sr_write_medium_mode(struct usbnet *dev, u16 mode) sr_write_medium_mode() 280 static int sr_write_gpio(struct usbnet *dev, u16 value, int sleep) sr_write_gpio() 298 struct usbnet *dev = netdev_priv(net); sr_set_multicast() 338 struct usbnet *dev = netdev_priv(net); sr_mdio_read() 357 struct usbnet *dev = netdev_priv(net); sr_mdio_write() 371 static u32 sr_get_phyid(struct usbnet *dev) sr_get_phyid() 402 struct usbnet *dev = netdev_priv(net); sr_get_wol() 421 struct usbnet *dev = netdev_priv(net); sr_set_wol() 438 struct usbnet *dev = netdev_priv(net); sr_get_eeprom_len() 447 struct usbnet *dev = netdev_priv(net); sr_get_eeprom() 473 struct usbnet *dev = netdev_priv(net); sr_get_drvinfo() 485 struct usbnet *dev = netdev_priv(net); sr_get_link() 492 struct usbnet *dev = netdev_priv(net); sr_ioctl() 499 struct usbnet *dev = netdev_priv(net); sr_set_mac_address() 536 static int sr9800_link_reset(struct usbnet *dev) sr9800_link_reset() 560 static int sr9800_set_default_mode(struct usbnet *dev) sr9800_set_default_mode() 600 static int sr9800_reset(struct usbnet *dev) sr9800_reset() 692 static int sr9800_phy_powerup(struct usbnet *dev) sr9800_phy_powerup() 730 static int sr9800_bind(struct usbnet *dev, struct usb_interface *intf) sr9800_bind()
|
H A D | dm9601.c | 22 #include <linux/usb/usbnet.h> 61 static int dm_read(struct usbnet *dev, u8 reg, u16 length, void *data) dm_read() 72 static int dm_read_reg(struct usbnet *dev, u8 reg, u8 *value) dm_read_reg() 77 static int dm_write(struct usbnet *dev, u8 reg, u16 length, void *data) dm_write() 89 static int dm_write_reg(struct usbnet *dev, u8 reg, u8 value) dm_write_reg() 96 static void dm_write_async(struct usbnet *dev, u8 reg, u16 length, void *data) dm_write_async() 103 static void dm_write_reg_async(struct usbnet *dev, u8 reg, u8 value) dm_write_reg_async() 110 static int dm_read_shared_word(struct usbnet *dev, int phy, u8 reg, __le16 *value) dm_read_shared_word() 149 static int dm_write_shared_word(struct usbnet *dev, int phy, u8 reg, __le16 value) dm_write_shared_word() 188 static int dm_read_eeprom_word(struct usbnet *dev, u8 offset, void *value) dm_read_eeprom_word() 203 struct usbnet *dev = netdev_priv(net); dm9601_get_eeprom() 221 struct usbnet *dev = netdev_priv(netdev); dm9601_mdio_read() 242 struct usbnet *dev = netdev_priv(netdev); dm9601_mdio_write() 266 struct usbnet *dev = netdev_priv(net); dm9601_get_link() 273 struct usbnet *dev = netdev_priv(net); dm9601_ioctl() 292 struct usbnet *dev = netdev_priv(net); dm9601_set_multicast() 319 static void __dm9601_set_mac_address(struct usbnet *dev) __dm9601_set_mac_address() 327 struct usbnet *dev = netdev_priv(net); dm9601_set_mac_address() 353 static int dm9601_bind(struct usbnet *dev, struct usb_interface *intf) dm9601_bind() 436 static int dm9601_rx_fixup(struct usbnet *dev, struct sk_buff *skb) dm9601_rx_fixup() 472 static struct sk_buff *dm9601_tx_fixup(struct usbnet *dev, struct sk_buff *skb, dm9601_tx_fixup() 519 static void dm9601_status(struct usbnet *dev, struct urb *urb) dm9601_status() 547 static int dm9601_link_reset(struct usbnet *dev) dm9601_link_reset()
|
H A D | huawei_cdc_ncm.c | 28 #include <linux/usb/usbnet.h> 41 static int huawei_cdc_ncm_manage_power(struct usbnet *usbnet_dev, int on) huawei_cdc_ncm_manage_power() 59 struct usbnet *usbnet_dev = usb_get_intfdata(intf); huawei_cdc_ncm_wdm_manage_power() 69 static int huawei_cdc_ncm_bind(struct usbnet *usbnet_dev, huawei_cdc_ncm_bind() 101 /* Prevent usbnet from using the status descriptor */ huawei_cdc_ncm_bind() 110 static void huawei_cdc_ncm_unbind(struct usbnet *usbnet_dev, huawei_cdc_ncm_unbind() 127 struct usbnet *usbnet_dev = usb_get_intfdata(intf); huawei_cdc_ncm_suspend() 154 struct usbnet *usbnet_dev = usb_get_intfdata(intf); huawei_cdc_ncm_resume()
|
H A D | ax88179_178a.c | 25 #include <linux/usb/usbnet.h> 199 static int __ax88179_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, __ax88179_read_cmd() 203 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); __ax88179_read_cmd() 222 static int __ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, __ax88179_write_cmd() 226 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); __ax88179_write_cmd() 245 static void ax88179_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, ax88179_write_cmd_async() 263 static int ax88179_read_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, ax88179_read_cmd_nopm() 285 static int ax88179_write_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, ax88179_write_cmd_nopm() 304 static int ax88179_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, ax88179_read_cmd() 326 static int ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, ax88179_write_cmd() 345 static void ax88179_status(struct usbnet *dev, struct urb *urb) ax88179_status() 366 struct usbnet *dev = netdev_priv(netdev); ax88179_mdio_read() 376 struct usbnet *dev = netdev_priv(netdev); ax88179_mdio_write() 382 static inline int ax88179_phy_mmd_indirect(struct usbnet *dev, u16 prtad, ax88179_phy_mmd_indirect() 404 ax88179_phy_read_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad) ax88179_phy_read_mmd_indirect() 420 ax88179_phy_write_mmd_indirect(struct usbnet *dev, u16 prtad, u16 devad, ax88179_phy_write_mmd_indirect() 438 struct usbnet *dev = usb_get_intfdata(intf); ax88179_suspend() 472 static int ax88179_auto_detach(struct usbnet *dev, int in_pm) ax88179_auto_detach() 476 int (*fnr)(struct usbnet *, u8, u16, u16, u16, void *); ax88179_auto_detach() 477 int (*fnw)(struct usbnet *, u8, u16, u16, u16, void *); ax88179_auto_detach() 508 struct usbnet *dev = usb_get_intfdata(intf); ax88179_resume() 545 struct usbnet *dev = netdev_priv(net); ax88179_get_wol() 566 struct usbnet *dev = netdev_priv(net); ax88179_set_wol() 590 struct usbnet *dev = netdev_priv(net); ax88179_get_eeprom() 625 struct usbnet *dev = netdev_priv(net); ax88179_get_settings() 631 struct usbnet *dev = netdev_priv(net); ax88179_set_settings() 636 ax88179_ethtool_get_eee(struct usbnet *dev, struct ethtool_eee *data) ax88179_ethtool_get_eee() 665 ax88179_ethtool_set_eee(struct usbnet *dev, struct ethtool_eee *data) ax88179_ethtool_set_eee() 673 static int ax88179_chk_eee(struct usbnet *dev) ax88179_chk_eee() 734 static void ax88179_disable_eee(struct usbnet *dev) ax88179_disable_eee() 751 static void ax88179_enable_eee(struct usbnet *dev) ax88179_enable_eee() 778 struct usbnet *dev = netdev_priv(net); ax88179_get_eee() 789 struct usbnet *dev = netdev_priv(net); ax88179_set_eee() 817 struct usbnet *dev = netdev_priv(net); ax88179_ioctl() 838 struct usbnet *dev = netdev_priv(net); ax88179_set_multicast() 880 struct usbnet *dev = netdev_priv(net); ax88179_set_features() 907 struct usbnet *dev = netdev_priv(net); ax88179_change_mtu() 938 struct usbnet *dev = netdev_priv(net); ax88179_set_mac_addr() 971 static int ax88179_check_eeprom(struct usbnet *dev) ax88179_check_eeprom() 1014 static int ax88179_check_efuse(struct usbnet *dev, u16 *ledmode) ax88179_check_efuse() 1040 static int ax88179_convert_old_led(struct usbnet *dev, u16 *ledvalue) ax88179_convert_old_led() 1078 static int ax88179_led_setting(struct usbnet *dev) ax88179_led_setting() 1223 static int ax88179_bind(struct usbnet *dev, struct usb_interface *intf) ax88179_bind() 1329 static void ax88179_unbind(struct usbnet *dev, struct usb_interface *intf) ax88179_unbind() 1361 static int ax88179_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ax88179_rx_fixup() 1369 /* This check is no longer done by usbnet */ ax88179_rx_fixup() 1424 ax88179_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) ax88179_tx_fixup() 1455 static int ax88179_link_reset(struct usbnet *dev) ax88179_link_reset() 1527 static int ax88179_reset(struct usbnet *dev) ax88179_reset() 1620 static int ax88179_stop(struct usbnet *dev) ax88179_stop()
|
H A D | smsc95xx.c | 30 #include <linux/usb/usbnet.h> 77 static int __must_check __smsc95xx_read_reg(struct usbnet *dev, u32 index, __smsc95xx_read_reg() 82 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); __smsc95xx_read_reg() 104 static int __must_check __smsc95xx_write_reg(struct usbnet *dev, u32 index, __smsc95xx_write_reg() 109 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); __smsc95xx_write_reg() 131 static int __must_check smsc95xx_read_reg_nopm(struct usbnet *dev, u32 index, smsc95xx_read_reg_nopm() 137 static int __must_check smsc95xx_write_reg_nopm(struct usbnet *dev, u32 index, smsc95xx_write_reg_nopm() 143 static int __must_check smsc95xx_read_reg(struct usbnet *dev, u32 index, smsc95xx_read_reg() 149 static int __must_check smsc95xx_write_reg(struct usbnet *dev, u32 index, smsc95xx_write_reg() 157 static int __must_check __smsc95xx_phy_wait_not_busy(struct usbnet *dev, __smsc95xx_phy_wait_not_busy() 181 struct usbnet *dev = netdev_priv(netdev); __smsc95xx_mdio_read() 226 struct usbnet *dev = netdev_priv(netdev); __smsc95xx_mdio_write() 289 static int __must_check smsc95xx_wait_eeprom(struct usbnet *dev) smsc95xx_wait_eeprom() 315 static int __must_check smsc95xx_eeprom_confirm_not_busy(struct usbnet *dev) smsc95xx_eeprom_confirm_not_busy() 338 static int smsc95xx_read_eeprom(struct usbnet *dev, u32 offset, u32 length, smsc95xx_read_eeprom() 376 static int smsc95xx_write_eeprom(struct usbnet *dev, u32 offset, u32 length, smsc95xx_write_eeprom() 429 static int __must_check smsc95xx_write_reg_async(struct usbnet *dev, u16 index, smsc95xx_write_reg_async() 459 struct usbnet *dev = netdev_priv(netdev); smsc95xx_set_multicast() 516 static int smsc95xx_phy_update_flowcontrol(struct usbnet *dev, u8 duplex, smsc95xx_phy_update_flowcontrol() 554 static int smsc95xx_link_reset(struct usbnet *dev) smsc95xx_link_reset() 602 static void smsc95xx_status(struct usbnet *dev, struct urb *urb) smsc95xx_status() 628 struct usbnet *dev = netdev_priv(netdev); smsc95xx_set_features() 662 struct usbnet *dev = netdev_priv(netdev); smsc95xx_ethtool_get_eeprom() 672 struct usbnet *dev = netdev_priv(netdev); smsc95xx_ethtool_set_eeprom() 693 struct usbnet *dev = netdev_priv(netdev); smsc95xx_ethtool_getregs() 716 struct usbnet *dev = netdev_priv(net); smsc95xx_ethtool_get_wol() 726 struct usbnet *dev = netdev_priv(net); smsc95xx_ethtool_set_wol() 758 struct usbnet *dev = netdev_priv(netdev); smsc95xx_ioctl() 766 static void smsc95xx_init_mac_address(struct usbnet *dev) smsc95xx_init_mac_address() 783 static int smsc95xx_set_mac_address(struct usbnet *dev) smsc95xx_set_mac_address() 798 static int smsc95xx_start_tx_path(struct usbnet *dev) smsc95xx_start_tx_path() 818 static int smsc95xx_start_rx_path(struct usbnet *dev, int in_pm) smsc95xx_start_rx_path() 830 static int smsc95xx_phy_initialize(struct usbnet *dev) smsc95xx_phy_initialize() 875 static int smsc95xx_reset(struct usbnet *dev) smsc95xx_reset() 1102 static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf) smsc95xx_bind() 1159 static void smsc95xx_unbind(struct usbnet *dev, struct usb_interface *intf) smsc95xx_unbind() 1176 static int smsc95xx_enable_phy_wakeup_interrupts(struct usbnet *dev, u16 mask) smsc95xx_enable_phy_wakeup_interrupts() 1200 static int smsc95xx_link_ok_nopm(struct usbnet *dev) smsc95xx_link_ok_nopm() 1217 static int smsc95xx_enter_suspend0(struct usbnet *dev) smsc95xx_enter_suspend0() 1256 static int smsc95xx_enter_suspend1(struct usbnet *dev) smsc95xx_enter_suspend1() 1304 static int smsc95xx_enter_suspend2(struct usbnet *dev) smsc95xx_enter_suspend2() 1326 static int smsc95xx_enter_suspend3(struct usbnet *dev) smsc95xx_enter_suspend3() 1365 static int smsc95xx_autosuspend(struct usbnet *dev, u32 link_up) smsc95xx_autosuspend() 1414 struct usbnet *dev = usb_get_intfdata(intf); smsc95xx_suspend() 1672 struct usbnet *dev = usb_get_intfdata(intf); smsc95xx_resume() 1721 struct usbnet *dev = usb_get_intfdata(intf); smsc95xx_reset_resume() 1738 static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb) smsc95xx_rx_fixup() 1740 /* This check is no longer done by usbnet */ smsc95xx_rx_fixup() 1833 static struct sk_buff *smsc95xx_tx_fixup(struct usbnet *dev, smsc95xx_tx_fixup() 1887 static int smsc95xx_manage_power(struct usbnet *dev, int on) smsc95xx_manage_power()
|
H A D | int51x1.c | 34 #include <linux/usb/usbnet.h> 49 static int int51x1_rx_fixup(struct usbnet *dev, struct sk_buff *skb) int51x1_rx_fixup() 65 static struct sk_buff *int51x1_tx_fixup(struct usbnet *dev, int51x1_tx_fixup() 79 * usbnet would send a ZLP if packetlength mod urbsize == 0 for us, int51x1_tx_fixup() 120 struct usbnet *dev = netdev_priv(netdev); int51x1_set_multicast() 152 static int int51x1_bind(struct usbnet *dev, struct usb_interface *intf) int51x1_bind()
|
H A D | ax88172a.c | 43 return asix_mdio_read(((struct usbnet *)bus->priv)->net, phy_id, asix_mdio_bus_read() 50 asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val); asix_mdio_bus_write() 69 struct usbnet *dev = netdev_priv(netdev); ax88172a_adjust_link() 92 static void ax88172a_status(struct usbnet *dev, struct urb *urb) ax88172a_status() 98 static int ax88172a_init_mdio(struct usbnet *dev) ax88172a_init_mdio() 141 static void ax88172a_remove_mdio(struct usbnet *dev) ax88172a_remove_mdio() 204 static int ax88172a_reset_phy(struct usbnet *dev, int embd_phy) ax88172a_reset_phy() 230 static int ax88172a_bind(struct usbnet *dev, struct usb_interface *intf) ax88172a_bind() 301 static int ax88172a_stop(struct usbnet *dev) ax88172a_stop() 317 static void ax88172a_unbind(struct usbnet *dev, struct usb_interface *intf) ax88172a_unbind() 325 static int ax88172a_reset(struct usbnet *dev) ax88172a_reset() 403 static int ax88172a_rx_fixup(struct usbnet *dev, struct sk_buff *skb) ax88172a_rx_fixup()
|
H A D | Makefile | 28 obj-$(CONFIG_USB_USBNET) += usbnet.o
|
H A D | net1080.c | 29 #include <linux/usb/usbnet.h> 108 nc_vendor_read(struct usbnet *dev, u8 req, u8 regnum, u16 *retval_ptr) nc_vendor_read() 123 nc_register_read(struct usbnet *dev, u8 regnum, u16 *retval_ptr) nc_register_read() 130 nc_vendor_write(struct usbnet *dev, u8 req, u8 regnum, u16 value) nc_vendor_write() 138 nc_register_write(struct usbnet *dev, u8 regnum, u16 value) nc_register_write() 145 static void nc_dump_registers(struct usbnet *dev) 194 static inline void nc_dump_usbctl(struct usbnet *dev, u16 usbctl) nc_dump_usbctl() 237 static inline void nc_dump_status(struct usbnet *dev, u16 status) nc_dump_status() 271 static inline void nc_dump_ttl(struct usbnet *dev, u16 ttl) nc_dump_ttl() 280 static int net1080_reset(struct usbnet *dev) net1080_reset() 326 static int net1080_check_connect(struct usbnet *dev) net1080_check_connect() 343 static void nc_ensure_sync(struct usbnet *dev) nc_ensure_sync() 361 static int net1080_rx_fixup(struct usbnet *dev, struct sk_buff *skb) net1080_rx_fixup() 367 /* This check is no longer done by usbnet */ net1080_rx_fixup() 436 net1080_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) net1080_tx_fixup() 496 static int net1080_bind(struct usbnet *dev, struct usb_interface *intf) net1080_bind()
|
H A D | usbnet.c | 44 #include <linux/usb/usbnet.h> 85 static const char driver_name [] = "usbnet"; 95 int usbnet_get_endpoints(struct usbnet *dev, struct usb_interface *intf) usbnet_get_endpoints() 161 int usbnet_get_ethernet_addr(struct usbnet *dev, int iMACAddress) usbnet_get_ethernet_addr() 182 struct usbnet *dev = urb->context; intr_complete() 212 static int init_status (struct usbnet *dev, struct usb_interface *intf) init_status() 250 int usbnet_status_start(struct usbnet *dev, gfp_t mem_flags) usbnet_status_start() 270 static int __usbnet_status_start_force(struct usbnet *dev, gfp_t mem_flags) __usbnet_status_start_force() 285 void usbnet_status_stop(struct usbnet *dev) usbnet_status_stop() 303 static void __usbnet_status_stop_force(struct usbnet *dev) __usbnet_status_stop_force() 317 void usbnet_skb_return (struct usbnet *dev, struct sk_buff *skb) usbnet_skb_return() 345 void usbnet_update_max_qlen(struct usbnet *dev) usbnet_update_max_qlen() 379 struct usbnet *dev = netdev_priv(net); usbnet_change_mtu() 421 static enum skb_state defer_bh(struct usbnet *dev, struct sk_buff *skb, defer_bh() 446 void usbnet_defer_kevent (struct usbnet *dev, int work) usbnet_defer_kevent() 462 static int rx_submit (struct usbnet *dev, struct urb *urb, gfp_t flags) rx_submit() 535 static inline void rx_process (struct usbnet *dev, struct sk_buff *skb) rx_process() 569 struct usbnet *dev = entry->dev; rx_complete() 657 void usbnet_pause_rx(struct usbnet *dev) usbnet_pause_rx() 665 void usbnet_resume_rx(struct usbnet *dev) usbnet_resume_rx() 684 void usbnet_purge_paused_rxq(struct usbnet *dev) usbnet_purge_paused_rxq() 694 static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q) unlink_urbs() 742 void usbnet_unlink_rx_urbs(struct usbnet *dev) usbnet_unlink_rx_urbs() 754 static void usbnet_terminate_urbs(struct usbnet *dev) usbnet_terminate_urbs() 780 struct usbnet *dev = netdev_priv(net); usbnet_stop() 800 "stop fail (%d) usbnet usb-%s-%s, %s\n", usbnet_stop() 842 struct usbnet *dev = netdev_priv(net); usbnet_open() 848 "resumption fail (%d) usbnet usb-%s-%s, %s\n", usbnet_open() 859 "open reset fail (%d) usbnet usb-%s-%s, %s\n", usbnet_open() 931 struct usbnet *dev = netdev_priv(net); usbnet_get_settings() 942 struct usbnet *dev = netdev_priv(net); usbnet_set_settings() 964 struct usbnet *dev = netdev_priv(net); usbnet_get_link() 981 struct usbnet *dev = netdev_priv(net); usbnet_nway_reset() 992 struct usbnet *dev = netdev_priv(net); usbnet_get_drvinfo() 1004 struct usbnet *dev = netdev_priv(net); usbnet_get_msglevel() 1012 struct usbnet *dev = netdev_priv(net); usbnet_set_msglevel() 1032 static void __handle_link_change(struct usbnet *dev) __handle_link_change() 1058 struct usbnet *dev = netdev_priv(net); usbnet_set_rx_mode() 1063 static void __handle_set_rx_mode(struct usbnet *dev) __handle_set_rx_mode() 1079 struct usbnet *dev = usbnet_deferred_kevent() 1080 container_of(work, struct usbnet, kevent); usbnet_deferred_kevent() 1160 netdev_info(dev->net, "link reset failed (%d) usbnet usb-%s-%s, %s\n", usbnet_deferred_kevent() 1190 struct usbnet *dev = entry->dev; tx_complete() 1238 struct usbnet *dev = netdev_priv(net); usbnet_tx_timeout() 1289 struct usbnet *dev = netdev_priv(net); usbnet_start_xmit() 1426 static int rx_alloc_submit(struct usbnet *dev, gfp_t flags) rx_alloc_submit() 1454 struct usbnet *dev = (struct usbnet *) param; usbnet_bh() 1520 struct usbnet *dev; usbnet_disconnect() 1580 struct usbnet *dev; usbnet_probe() 1589 /* usbnet already took usb runtime pm, so have to enable the feature usbnet_probe() 1773 struct usbnet *dev = usb_get_intfdata(intf); usbnet_suspend() 1806 struct usbnet *dev = usb_get_intfdata(intf); usbnet_resume() 1862 void usbnet_device_suggests_idle(struct usbnet *dev) usbnet_device_suggests_idle() 1874 int usbnet_manage_power(struct usbnet *dev, int on) usbnet_manage_power() 1881 void usbnet_link_change(struct usbnet *dev, bool link, bool need_reset) usbnet_link_change() 1897 static int __usbnet_read_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, __usbnet_read_cmd() 1923 static int __usbnet_write_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, __usbnet_write_cmd() 1953 int usbnet_read_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, usbnet_read_cmd() 1971 int usbnet_write_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, usbnet_write_cmd() 1989 int usbnet_read_cmd_nopm(struct usbnet *dev, u8 cmd, u8 reqtype, usbnet_read_cmd_nopm() 2001 int usbnet_write_cmd_nopm(struct usbnet *dev, u8 cmd, u8 reqtype, usbnet_write_cmd_nopm() 2027 int usbnet_write_cmd_async(struct usbnet *dev, u8 cmd, u8 reqtype, usbnet_write_cmd_async()
|
H A D | sierra_net.c | 46 #include <linux/usb/usbnet.h> 70 /* Overriding the default usbnet rx_urb_size */ 85 struct usbnet *usbnet; member in struct:sierra_net_data 181 /* get private data associated with passed in usbnet device */ sierra_net_get_private() 182 static inline struct sierra_net_data *sierra_net_get_private(struct usbnet *dev) sierra_net_get_private() 187 /* set private data associated with passed in usbnet device */ sierra_net_set_private() 188 static inline void sierra_net_set_private(struct usbnet *dev, sierra_net_set_private() 205 static int check_ethip_packet(struct sk_buff *skb, struct usbnet *dev) check_ethip_packet() 307 static int sierra_net_send_cmd(struct usbnet *dev, sierra_net_send_cmd() 323 static int sierra_net_send_sync(struct usbnet *dev) sierra_net_send_sync() 338 dev_dbg(&(priv->usbnet->udev->dev), "%s %d", __func__, ctx_ix); sierra_net_set_ctx_index() 350 static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen) sierra_net_parse_lsi() 400 static void sierra_net_handle_lsi(struct usbnet *dev, char *data, sierra_net_handle_lsi() 421 static void sierra_net_dosync(struct usbnet *dev) sierra_net_dosync() 456 struct usbnet *dev = priv->usbnet; sierra_net_kevent() 545 sierra_net_dosync(priv->usbnet); sierra_net_kevent() 553 static void sierra_net_defer_kevent(struct usbnet *dev, int work) sierra_net_defer_kevent() 566 struct usbnet *dev = (struct usbnet *)syncdata; sierra_sync_timer() 573 static void sierra_net_status(struct usbnet *dev, struct urb *urb) sierra_net_status() 610 struct usbnet *dev = netdev_priv(net); sierra_net_get_link() 634 static int sierra_net_get_fw_attr(struct usbnet *dev, u16 *datap) sierra_net_get_fw_attr() 659 static int sierra_net_bind(struct usbnet *dev, struct usb_interface *intf) sierra_net_bind() 695 priv->usbnet = dev; sierra_net_bind() 755 static void sierra_net_unbind(struct usbnet *dev, struct usb_interface *intf) sierra_net_unbind() 779 static struct sk_buff *sierra_net_skb_clone(struct usbnet *dev, sierra_net_skb_clone() 803 static int sierra_net_rx_fixup(struct usbnet *dev, struct sk_buff *skb) sierra_net_rx_fixup() 840 /* Last packet in batch handled by usbnet */ sierra_net_rx_fixup() 854 static struct sk_buff *sierra_net_tx_fixup(struct usbnet *dev, sierra_net_tx_fixup() 861 BUILD_BUG_ON(FIELD_SIZEOF(struct usbnet, data) sierra_net_tx_fixup() 899 /* tx_dropped incremented by usbnet */ sierra_net_tx_fixup() 923 struct usbnet *dev = usb_get_intfdata(udev); sierra_net_probe() 952 /* We are based on usbnet, so let it handle the USB driver specifics */
|
H A D | cdc_ncm.c | 52 #include <linux/usb/usbnet.h> 106 struct usbnet *dev = netdev_priv(netdev); cdc_ncm_get_ethtool_stats() 131 static void cdc_ncm_update_rxtx_max(struct usbnet *dev, u32 new_rx, u32 new_tx); 147 static u32 cdc_ncm_check_rx_max(struct usbnet *dev, u32 new_rx) cdc_ncm_check_rx_max() 170 static u32 cdc_ncm_check_tx_max(struct usbnet *dev, u32 new_tx) cdc_ncm_check_tx_max() 191 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_show_min_tx_pkt() 199 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_show_rx_max() 207 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_show_tx_max() 215 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_show_tx_timer_usecs() 223 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_store_min_tx_pkt() 237 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_store_rx_max() 250 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_store_tx_max() 263 struct usbnet *dev = netdev_priv(to_net_dev(d)); cdc_ncm_store_tx_timer_usecs() 290 struct usbnet *dev = netdev_priv(to_net_dev(d)); \ 331 static void cdc_ncm_update_rxtx_max(struct usbnet *dev, u32 new_rx, u32 new_tx) cdc_ncm_update_rxtx_max() 355 /* usbnet use these values for sizing rx queues */ cdc_ncm_update_rxtx_max() 371 * .bind which is called before usbnet sets up dev->maxpacket cdc_ncm_update_rxtx_max() 403 static u8 cdc_ncm_flags(struct usbnet *dev) cdc_ncm_flags() 414 static int cdc_ncm_eth_hlen(struct usbnet *dev) cdc_ncm_eth_hlen() 421 static u32 cdc_ncm_min_dgram_size(struct usbnet *dev) cdc_ncm_min_dgram_size() 428 static u32 cdc_ncm_max_dgram_size(struct usbnet *dev) cdc_ncm_max_dgram_size() 442 static int cdc_ncm_init(struct usbnet *dev) cdc_ncm_init() 516 static void cdc_ncm_set_dgram_size(struct usbnet *dev, int new_size) cdc_ncm_set_dgram_size() 564 static void cdc_ncm_fix_modulus(struct usbnet *dev) cdc_ncm_fix_modulus() 608 static int cdc_ncm_setup(struct usbnet *dev) cdc_ncm_setup() 633 cdc_ncm_find_endpoints(struct usbnet *dev, struct usb_interface *intf) cdc_ncm_find_endpoints() 691 /* we need to override the usbnet change_mtu ndo for two reasons: 697 struct usbnet *dev = netdev_priv(net); cdc_ncm_change_mtu() 718 int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_altsetting) cdc_ncm_bind_common() 910 void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf) cdc_ncm_unbind() 980 static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf) cdc_ncm_bind() 1049 cdc_ncm_fill_tx_frame(struct usbnet *dev, struct sk_buff *skb, __le32 sign) cdc_ncm_fill_tx_frame() 1211 /* usbnet will count all the framing overhead by default. cdc_ncm_fill_tx_frame() 1249 struct usbnet *dev = (struct usbnet *)param; cdc_ncm_txpath_bh() 1269 cdc_ncm_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) cdc_ncm_tx_fixup() 1300 struct usbnet *dev = netdev_priv(skb_in->dev); cdc_ncm_rx_verify_nth16() 1349 struct usbnet *dev = netdev_priv(skb_in->dev); cdc_ncm_rx_verify_ndp16() 1382 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) cdc_ncm_rx_fixup() 1466 cdc_ncm_speed_change(struct usbnet *dev, cdc_ncm_speed_change() 1489 static void cdc_ncm_status(struct usbnet *dev, struct urb *urb) cdc_ncm_status()
|
H A D | plusb.c | 29 #include <linux/usb/usbnet.h> 70 pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index) pl_vendor_req() 79 pl_clear_QuickLink_features(struct usbnet *dev, int val) pl_clear_QuickLink_features() 85 pl_set_QuickLink_features(struct usbnet *dev, int val) pl_set_QuickLink_features() 90 static int pl_reset(struct usbnet *dev) pl_reset()
|
H A D | smsc75xx.c | 30 #include <linux/usb/usbnet.h> 65 struct usbnet *dev; 77 struct usbnet *dev; 84 static int __must_check __smsc75xx_read_reg(struct usbnet *dev, u32 index, __smsc75xx_read_reg() 89 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); __smsc75xx_read_reg() 111 static int __must_check __smsc75xx_write_reg(struct usbnet *dev, u32 index, __smsc75xx_write_reg() 116 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); __smsc75xx_write_reg() 138 static int __must_check smsc75xx_read_reg_nopm(struct usbnet *dev, u32 index, smsc75xx_read_reg_nopm() 144 static int __must_check smsc75xx_write_reg_nopm(struct usbnet *dev, u32 index, smsc75xx_write_reg_nopm() 150 static int __must_check smsc75xx_read_reg(struct usbnet *dev, u32 index, smsc75xx_read_reg() 156 static int __must_check smsc75xx_write_reg(struct usbnet *dev, u32 index, smsc75xx_write_reg() 164 static __must_check int __smsc75xx_phy_wait_not_busy(struct usbnet *dev, __smsc75xx_phy_wait_not_busy() 188 struct usbnet *dev = netdev_priv(netdev); __smsc75xx_mdio_read() 235 struct usbnet *dev = netdev_priv(netdev); __smsc75xx_mdio_write() 300 static int smsc75xx_wait_eeprom(struct usbnet *dev) smsc75xx_wait_eeprom() 326 static int smsc75xx_eeprom_confirm_not_busy(struct usbnet *dev) smsc75xx_eeprom_confirm_not_busy() 349 static int smsc75xx_read_eeprom(struct usbnet *dev, u32 offset, u32 length, smsc75xx_read_eeprom() 387 static int smsc75xx_write_eeprom(struct usbnet *dev, u32 offset, u32 length, smsc75xx_write_eeprom() 440 static int smsc75xx_dataport_wait_not_busy(struct usbnet *dev) smsc75xx_dataport_wait_not_busy() 463 static int smsc75xx_dataport_write(struct usbnet *dev, u32 ram_select, u32 addr, smsc75xx_dataport_write() 533 struct usbnet *dev = pdata->dev; smsc75xx_deferred_multicast_write() 549 struct usbnet *dev = netdev_priv(netdev); smsc75xx_set_multicast() 592 static int smsc75xx_update_flowcontrol(struct usbnet *dev, u8 duplex, smsc75xx_update_flowcontrol() 632 static int smsc75xx_link_reset(struct usbnet *dev) smsc75xx_link_reset() 660 static void smsc75xx_status(struct usbnet *dev, struct urb *urb) smsc75xx_status() 690 struct usbnet *dev = netdev_priv(netdev); smsc75xx_ethtool_get_eeprom() 700 struct usbnet *dev = netdev_priv(netdev); smsc75xx_ethtool_set_eeprom() 714 struct usbnet *dev = netdev_priv(net); smsc75xx_ethtool_get_wol() 724 struct usbnet *dev = netdev_priv(net); smsc75xx_ethtool_set_wol() 754 struct usbnet *dev = netdev_priv(netdev); smsc75xx_ioctl() 762 static void smsc75xx_init_mac_address(struct usbnet *dev) smsc75xx_init_mac_address() 780 static int smsc75xx_set_mac_address(struct usbnet *dev) smsc75xx_set_mac_address() 812 static int smsc75xx_phy_initialize(struct usbnet *dev) smsc75xx_phy_initialize() 866 static int smsc75xx_set_rx_max_frame_length(struct usbnet *dev, int size) smsc75xx_set_rx_max_frame_length() 913 struct usbnet *dev = netdev_priv(netdev); smsc75xx_change_mtu() 932 struct usbnet *dev = netdev_priv(netdev); smsc75xx_set_features() 954 static int smsc75xx_wait_ready(struct usbnet *dev, int in_pm) smsc75xx_wait_ready() 980 static int smsc75xx_reset(struct usbnet *dev) smsc75xx_reset() 1383 static int smsc75xx_bind(struct usbnet *dev, struct usb_interface *intf) smsc75xx_bind() 1442 static void smsc75xx_unbind(struct usbnet *dev, struct usb_interface *intf) smsc75xx_unbind() 1458 static int smsc75xx_write_wuff(struct usbnet *dev, int filter, u32 wuf_cfg, smsc75xx_write_wuff() 1498 static int smsc75xx_enter_suspend0(struct usbnet *dev) smsc75xx_enter_suspend0() 1524 static int smsc75xx_enter_suspend1(struct usbnet *dev) smsc75xx_enter_suspend1() 1560 static int smsc75xx_enter_suspend2(struct usbnet *dev) smsc75xx_enter_suspend2() 1586 static int smsc75xx_enter_suspend3(struct usbnet *dev) smsc75xx_enter_suspend3() 1633 static int smsc75xx_enable_phy_wakeup_interrupts(struct usbnet *dev, u16 mask) smsc75xx_enable_phy_wakeup_interrupts() 1661 static int smsc75xx_link_ok_nopm(struct usbnet *dev) smsc75xx_link_ok_nopm() 1682 static int smsc75xx_autosuspend(struct usbnet *dev, u32 link_up) smsc75xx_autosuspend() 1722 struct usbnet *dev = usb_get_intfdata(intf); smsc75xx_suspend() 2023 struct usbnet *dev = usb_get_intfdata(intf); smsc75xx_resume() 2095 static void smsc75xx_rx_csum_offload(struct usbnet *dev, struct sk_buff *skb, smsc75xx_rx_csum_offload() 2107 static int smsc75xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb) smsc75xx_rx_fixup() 2109 /* This check is no longer done by usbnet */ smsc75xx_rx_fixup() 2196 static struct sk_buff *smsc75xx_tx_fixup(struct usbnet *dev, smsc75xx_tx_fixup() 2235 static int smsc75xx_manage_power(struct usbnet *dev, int on) smsc75xx_manage_power()
|
H A D | cx82310_eth.c | 27 #include <linux/usb/usbnet.h> 61 static int cx82310_cmd(struct usbnet *dev, enum cx82310_cmd cmd, bool reply, cx82310_cmd() 134 static int cx82310_bind(struct usbnet *dev, struct usb_interface *intf) cx82310_bind() 208 static void cx82310_unbind(struct usbnet *dev, struct usb_interface *intf) cx82310_unbind() 221 static int cx82310_rx_fixup(struct usbnet *dev, struct sk_buff *skb) cx82310_rx_fixup() 253 /* if last packet in the skb, let usbnet to process it */ cx82310_rx_fixup() 286 /* let usbnet process the last packet */ cx82310_rx_fixup() 291 static struct sk_buff *cx82310_tx_fixup(struct usbnet *dev, struct sk_buff *skb, cx82310_tx_fixup()
|
H A D | gl620a.c | 30 #include <linux/usb/usbnet.h> 50 * and merged into "usbnet" by Stanislav Brabec <utx@penguin.cz>. 79 static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb) genelink_rx_fixup() 87 /* This check is no longer done by usbnet */ genelink_rx_fixup() 149 genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) genelink_tx_fixup() 191 static int genelink_bind(struct usbnet *dev, struct usb_interface *intf) genelink_bind()
|
H A D | cdc_mbim.c | 21 #include <linux/usb/usbnet.h> 45 static int cdc_mbim_manage_power(struct usbnet *dev, int on) cdc_mbim_manage_power() 64 struct usbnet *dev = usb_get_intfdata(intf); cdc_mbim_wdm_manage_power() 75 struct usbnet *dev = netdev_priv(netdev); cdc_mbim_rx_add_vid() 89 struct usbnet *dev = netdev_priv(netdev); cdc_mbim_rx_kill_vid() 114 static int cdc_mbim_set_ctrlalt(struct usbnet *dev, struct usb_interface *intf, u8 alt) cdc_mbim_set_ctrlalt() 140 static int cdc_mbim_bind(struct usbnet *dev, struct usb_interface *intf) cdc_mbim_bind() 179 /* can't let usbnet use the interrupt endpoint */ cdc_mbim_bind() 195 static void cdc_mbim_unbind(struct usbnet *dev, struct usb_interface *intf) cdc_mbim_unbind() 220 static struct sk_buff *cdc_mbim_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) cdc_mbim_tx_fixup() 308 static void do_neigh_solicit(struct usbnet *dev, u8 *buf, u16 tci) do_neigh_solicit() 366 static struct sk_buff *cdc_mbim_process_dgram(struct usbnet *dev, u8 *buf, size_t len, u16 tci) cdc_mbim_process_dgram() 410 static int cdc_mbim_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in) cdc_mbim_rx_fixup() 507 struct usbnet *dev = usb_get_intfdata(intf); cdc_mbim_suspend() 535 struct usbnet *dev = usb_get_intfdata(intf); cdc_mbim_resume()
|
H A D | kalmia.c | 27 #include <linux/usb/usbnet.h> 60 kalmia_send_init_packet(struct usbnet *dev, u8 *init_msg, u8 init_msg_len, kalmia_send_init_packet() 100 kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr) kalmia_init_and_get_ethernet_addr() 135 kalmia_bind(struct usbnet *dev, struct usb_interface *intf) kalmia_bind() 166 kalmia_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) kalmia_tx_fixup() 231 kalmia_rx_fixup(struct usbnet *dev, struct sk_buff *skb) kalmia_rx_fixup() 235 * data frame for the usbnet framework code to process. kalmia_rx_fixup()
|
H A D | asix_devices.c | 46 static void asix_status(struct usbnet *dev, struct urb *urb) asix_status() 62 static void asix_set_netdev_dev_addr(struct usbnet *dev, u8 *addr) asix_set_netdev_dev_addr() 73 static u32 asix_get_phyid(struct usbnet *dev) asix_get_phyid() 103 struct usbnet *dev = netdev_priv(net); asix_get_link() 110 struct usbnet *dev = netdev_priv(net); asix_ioctl() 116 own structure so we don't interfere with other usbnet 135 struct usbnet *dev = netdev_priv(net); ax88172_set_multicast() 172 static int ax88172_link_reset(struct usbnet *dev) ax88172_link_reset() 204 static int ax88172_bind(struct usbnet *dev, struct usb_interface *intf) ax88172_bind() 275 static int ax88772_link_reset(struct usbnet *dev) ax88772_link_reset() 298 static int ax88772_reset(struct usbnet *dev) ax88772_reset() 418 static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf) ax88772_bind() 488 static void ax88772_unbind(struct usbnet *dev, struct usb_interface *intf) ax88772_unbind() 508 static int marvell_phy_init(struct usbnet *dev) marvell_phy_init() 540 static int rtl8211cl_phy_init(struct usbnet *dev) rtl8211cl_phy_init() 561 static int marvell_led_status(struct usbnet *dev, u16 speed) marvell_led_status() 587 static int ax88178_reset(struct usbnet *dev) ax88178_reset() 676 static int ax88178_link_reset(struct usbnet *dev) ax88178_link_reset() 715 static void ax88178_set_mfb(struct usbnet *dev) ax88178_set_mfb() 752 struct usbnet *dev = netdev_priv(net); ax88178_change_mtu() 785 static int ax88178_bind(struct usbnet *dev, struct usb_interface *intf) ax88178_bind()
|
H A D | cdc_eem.c | 30 #include <linux/usb/usbnet.h> 59 static void eem_linkcmd(struct usbnet *dev, struct sk_buff *skb) eem_linkcmd() 81 static int eem_bind(struct usbnet *dev, struct usb_interface *intf) eem_bind() 104 static struct sk_buff *eem_tx_fixup(struct usbnet *dev, struct sk_buff *skb, eem_tx_fixup() 169 static int eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) eem_rx_fixup() 173 * data frame for the usbnet framework code to process. But we eem_rx_fixup()
|
H A D | rndis_host.c | 27 #include <linux/usb/usbnet.h> 57 void rndis_status(struct usbnet *dev, struct urb *urb) rndis_status() 69 static void rndis_msg_indicate(struct usbnet *dev, struct rndis_indicate *msg, rndis_msg_indicate() 103 int rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen) rndis_command() 239 static int rndis_query(struct usbnet *dev, struct usb_interface *intf, rndis_query() 299 generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf, int flags) generic_rndis_bind() 468 static int rndis_bind(struct usbnet *dev, struct usb_interface *intf) rndis_bind() 473 void rndis_unbind(struct usbnet *dev, struct usb_interface *intf) rndis_unbind() 493 int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb) rndis_rx_fixup() 495 /* This check is no longer done by usbnet */ rndis_rx_fixup() 542 rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) rndis_tx_fixup()
|
H A D | lg-vl600.c | 25 #include <linux/usb/usbnet.h> 68 static int vl600_bind(struct usbnet *dev, struct usb_interface *intf) vl600_bind() 98 static void vl600_unbind(struct usbnet *dev, struct usb_interface *intf) vl600_unbind() 110 static int vl600_rx_fixup(struct usbnet *dev, struct sk_buff *skb) vl600_rx_fixup() 248 static struct sk_buff *vl600_tx_fixup(struct usbnet *dev, vl600_tx_fixup()
|
H A D | zaurus.c | 30 #include <linux/usb/usbnet.h> 57 zaurus_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) zaurus_tx_fixup() 85 static int zaurus_bind(struct usbnet *dev, struct usb_interface *intf) zaurus_bind() 96 static int always_connected (struct usbnet *dev) always_connected() 148 static int blan_mdlm_bind(struct usbnet *dev, struct usb_interface *intf) blan_mdlm_bind()
|
H A D | qmi_wwan.c | 20 #include <linux/usb/usbnet.h> 81 static int qmi_wwan_rx_fixup(struct usbnet *dev, struct sk_buff *skb) qmi_wwan_rx_fixup() 85 /* This check is no longer done by usbnet */ qmi_wwan_rx_fixup() 151 static int qmi_wwan_manage_power(struct usbnet *dev, int on) qmi_wwan_manage_power() 174 struct usbnet *dev = usb_get_intfdata(intf); qmi_wwan_cdc_wdm_manage_power() 183 static int qmi_wwan_register_subdriver(struct usbnet *dev) qmi_wwan_register_subdriver() 216 /* prevent usbnet from using status endpoint */ qmi_wwan_register_subdriver() 226 static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) qmi_wwan_bind() 238 BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data) < qmi_wwan_bind() 355 static void qmi_wwan_unbind(struct usbnet *dev, struct usb_interface *intf) qmi_wwan_unbind() 381 /* suspend/resume wrappers calling both usbnet and the cdc-wdm 385 * wrappers for those without adding usbnet reset support first. 389 struct usbnet *dev = usb_get_intfdata(intf); qmi_wwan_suspend() 412 struct usbnet *dev = usb_get_intfdata(intf); qmi_wwan_resume() 860 /* Workaround to enable dynamic IDs. This disables usbnet qmi_wwan_probe()
|
H A D | cdc_ether.c | 31 #include <linux/usb/usbnet.h> 70 static void usbnet_cdc_update_filter(struct usbnet *dev) usbnet_cdc_update_filter() 105 int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) usbnet_generic_cdc_bind() 390 void usbnet_cdc_unbind(struct usbnet *dev, struct usb_interface *intf) usbnet_cdc_unbind() 427 static void dumpspeed(struct usbnet *dev, __le32 *speeds) dumpspeed() 435 void usbnet_cdc_status(struct usbnet *dev, struct urb *urb) usbnet_cdc_status() 474 int usbnet_cdc_bind(struct usbnet *dev, struct usb_interface *intf) usbnet_cdc_bind() 479 BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data) usbnet_cdc_bind()
|
H A D | cdc_subset.c | 27 #include <linux/usb/usbnet.h> 66 static int always_connected (struct usbnet *dev) always_connected() 88 static void m5632_recover(struct usbnet *dev) m5632_recover()
|
/linux-4.1.27/drivers/net/wireless/ |
H A D | rndis_wlan.c | 43 #include <linux/usb/usbnet.h> 425 struct usbnet *usbdev; 565 static struct rndis_wlan_private *get_rndis_wlan_priv(struct usbnet *dev) get_rndis_wlan_priv() 706 static int rndis_query_oid(struct usbnet *dev, u32 oid, void *data, int *len) rndis_query_oid() 790 static int rndis_set_oid(struct usbnet *dev, u32 oid, const void *data, rndis_set_oid() 849 static int rndis_reset(struct usbnet *usbdev) rndis_reset() 876 static int rndis_set_config_parameter(struct usbnet *dev, char *param, rndis_set_config_parameter() 955 static int rndis_set_config_parameter_str(struct usbnet *dev, rndis_set_config_parameter_str() 973 static int set_infra_mode(struct usbnet *usbdev, int mode); 974 static void restore_keys(struct usbnet *usbdev); 975 static int rndis_check_bssid_list(struct usbnet *usbdev, u8 *match_bssid, 978 static int rndis_start_bssid_list_scan(struct usbnet *usbdev) rndis_start_bssid_list_scan() 988 static int set_essid(struct usbnet *usbdev, struct ndis_80211_ssid *ssid) set_essid() 1007 static int set_bssid(struct usbnet *usbdev, const u8 *bssid) set_bssid() 1022 static int clear_bssid(struct usbnet *usbdev) clear_bssid() 1031 static int get_bssid(struct usbnet *usbdev, u8 bssid[ETH_ALEN]) get_bssid() 1045 static int get_association_info(struct usbnet *usbdev, get_association_info() 1053 static bool is_associated(struct usbnet *usbdev) is_associated() 1067 static int disassociate(struct usbnet *usbdev, bool reset_ssid) disassociate() 1106 static int set_auth_mode(struct usbnet *usbdev, u32 wpa_version, set_auth_mode() 1152 static int set_priv_filter(struct usbnet *usbdev) set_priv_filter() 1171 static int set_encr_mode(struct usbnet *usbdev, int pairwise, int groupwise) set_encr_mode() 1205 static int set_infra_mode(struct usbnet *usbdev, int mode) set_infra_mode() 1233 static int set_rts_threshold(struct usbnet *usbdev, u32 rts_threshold) set_rts_threshold() 1248 static int set_frag_threshold(struct usbnet *usbdev, u32 frag_threshold) set_frag_threshold() 1263 static void set_default_iw_params(struct usbnet *usbdev) set_default_iw_params() 1272 static int deauthenticate(struct usbnet *usbdev) deauthenticate() 1281 static int set_channel(struct usbnet *usbdev, int channel) set_channel() 1316 static struct ieee80211_channel *get_current_channel(struct usbnet *usbdev, get_current_channel() 1345 static int add_wep_key(struct usbnet *usbdev, const u8 *key, int key_len, add_wep_key() 1399 static int add_wpa_key(struct usbnet *usbdev, const u8 *key, int key_len, add_wpa_key() 1497 static int restore_key(struct usbnet *usbdev, u8 key_idx) restore_key() 1515 static void restore_keys(struct usbnet *usbdev) restore_keys() 1529 static int remove_key(struct usbnet *usbdev, u8 index, const u8 *bssid) remove_key() 1590 static void set_multicast_list(struct usbnet *usbdev) set_multicast_list() 1665 static void debug_print_pmkids(struct usbnet *usbdev, debug_print_pmkids() 1695 static void debug_print_pmkids(struct usbnet *usbdev, debug_print_pmkids() 1703 static struct ndis_80211_pmkid *get_device_pmkids(struct usbnet *usbdev) get_device_pmkids() 1737 static int set_device_pmkids(struct usbnet *usbdev, set_device_pmkids() 1759 static struct ndis_80211_pmkid *remove_pmkid(struct usbnet *usbdev, remove_pmkid() 1800 static struct ndis_80211_pmkid *update_pmkid(struct usbnet *usbdev, update_pmkid() 1864 struct usbnet *usbdev = priv->usbdev; rndis_change_virtual_intf() 1886 struct usbnet *usbdev = priv->usbdev; rndis_set_wiphy_params() 1910 struct usbnet *usbdev = priv->usbdev; rndis_set_tx_power() 1938 struct usbnet *usbdev = priv->usbdev; rndis_get_tx_power() 1952 struct usbnet *usbdev = netdev_priv(dev); rndis_scan() 1981 static bool rndis_bss_info_update(struct usbnet *usbdev, rndis_bss_info_update() 2067 static int rndis_check_bssid_list(struct usbnet *usbdev, u8 *match_bssid, rndis_check_bssid_list() 2136 struct usbnet *usbdev = priv->usbdev; rndis_get_scan_results() 2155 struct usbnet *usbdev = priv->usbdev; rndis_connect() 2278 struct usbnet *usbdev = priv->usbdev; rndis_disconnect() 2292 struct usbnet *usbdev = priv->usbdev; rndis_join_ibss() 2390 struct usbnet *usbdev = priv->usbdev; rndis_leave_ibss() 2405 struct usbnet *usbdev = priv->usbdev; rndis_add_key() 2440 struct usbnet *usbdev = priv->usbdev; rndis_del_key() 2451 struct usbnet *usbdev = priv->usbdev; rndis_set_default_key() 2469 static void rndis_fill_station_info(struct usbnet *usbdev, rndis_fill_station_info() 2497 struct usbnet *usbdev = priv->usbdev; rndis_get_station() 2511 struct usbnet *usbdev = priv->usbdev; rndis_dump_station() 2527 struct usbnet *usbdev = priv->usbdev; rndis_set_pmksa() 2555 struct usbnet *usbdev = priv->usbdev; rndis_del_pmksa() 2582 struct usbnet *usbdev = priv->usbdev; rndis_flush_pmksa() 2600 struct usbnet *usbdev = priv->usbdev; rndis_set_power_mgmt() 2645 static void rndis_wlan_craft_connected_bss(struct usbnet *usbdev, u8 *bssid, rndis_wlan_craft_connected_bss() 2725 static void rndis_wlan_do_link_up_work(struct usbnet *usbdev) rndis_wlan_do_link_up_work() 2854 static void rndis_wlan_do_link_down_work(struct usbnet *usbdev) rndis_wlan_do_link_down_work() 2874 struct usbnet *usbdev = priv->usbdev; rndis_wlan_worker() 2888 struct usbnet *usbdev = netdev_priv(dev); rndis_wlan_set_multicast_list() 2898 static void rndis_wlan_auth_indication(struct usbnet *usbdev, rndis_wlan_auth_indication() 2968 static void rndis_wlan_pmkid_cand_list_indication(struct usbnet *usbdev, rndis_wlan_pmkid_cand_list_indication() 3015 static void rndis_wlan_media_specific_indication(struct usbnet *usbdev, rndis_wlan_media_specific_indication() 3064 static void rndis_wlan_indication(struct usbnet *usbdev, void *ind, int buflen) rndis_wlan_indication() 3109 static int rndis_wlan_get_caps(struct usbnet *usbdev, struct wiphy *wiphy) rndis_wlan_get_caps() 3165 static void rndis_do_cqm(struct usbnet *usbdev, s32 rssi) rndis_do_cqm() 3197 struct usbnet *usbdev = priv->usbdev; rndis_device_poller() 3284 static void rndis_copy_module_params(struct usbnet *usbdev, int device_type) rndis_copy_module_params() 3332 static int unknown_early_init(struct usbnet *usbdev) unknown_early_init() 3345 static int bcm4320a_early_init(struct usbnet *usbdev) bcm4320a_early_init() 3359 static int bcm4320b_early_init(struct usbnet *usbdev) bcm4320b_early_init() 3398 static int rndis_wlan_bind(struct usbnet *usbdev, struct usb_interface *intf) rndis_wlan_bind() 3520 static void rndis_wlan_unbind(struct usbnet *usbdev, struct usb_interface *intf) rndis_wlan_unbind() 3539 static int rndis_wlan_reset(struct usbnet *usbdev) rndis_wlan_reset() 3560 static int rndis_wlan_stop(struct usbnet *usbdev) rndis_wlan_stop()
|
/linux-4.1.27/net/caif/ |
H A D | caif_usb.c | 16 #include <linux/usb/usbnet.h> 129 struct usbnet *usbnet; cfusbl_device_notify() local 137 usbnet = netdev_priv(dev); cfusbl_device_notify() 138 usbdev = usbnet->udev; cfusbl_device_notify()
|
/linux-4.1.27/drivers/usb/class/ |
H A D | cdc-acm.h | 5 * Mainly take from usbnet's cdc-ether part
|
/linux-4.1.27/drivers/usb/musb/ |
H A D | musb_host.c | 76 * mostly works, except that with "usbnet" it's easy to trigger cases
|
/linux-4.1.27/drivers/usb/core/ |
H A D | hub.c | 5509 * storage interface or usbnet interface(iSCSI case) usb_reset_device()
|