Home
last modified time | relevance | path

Searched refs:usbnet (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.1.9/include/linux/usb/
Dusbnet.h19 struct usbnet { struct
119 int (*bind)(struct usbnet *, struct usb_interface *);
122 void (*unbind)(struct usbnet *, struct usb_interface *);
125 int (*reset)(struct usbnet *);
128 int (*stop)(struct usbnet *);
131 int (*check_connect)(struct usbnet *);
134 int (*manage_power)(struct usbnet *, int);
137 void (*status)(struct usbnet *, struct urb *);
140 int (*link_reset)(struct usbnet *);
143 int (*rx_fixup)(struct usbnet *dev, struct sk_buff *skb);
[all …]
Dcdc_ncm.h101 struct usbnet *dev;
157 int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_altsetting, int drv…
158 void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf);
159 struct sk_buff *cdc_ncm_fill_tx_frame(struct usbnet *dev, struct sk_buff *skb, __le32 sign);
165 cdc_ncm_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags);
166 int cdc_ncm_rx_fixup(struct usbnet *dev, struct sk_buff *skb_in);
Drndis_host.h188 extern void rndis_status(struct usbnet *dev, struct urb *urb);
190 rndis_command(struct usbnet *dev, struct rndis_msg_hdr *buf, int buflen);
192 generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf, int flags);
193 extern void rndis_unbind(struct usbnet *dev, struct usb_interface *intf);
194 extern int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb);
196 rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags);
/linux-6.1.9/drivers/net/usb/
Dasix.h180 void (*resume)(struct usbnet *dev);
181 void (*suspend)(struct usbnet *dev);
182 int (*reset)(struct usbnet *dev, int in_pm);
201 int __must_check asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
204 int asix_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
207 void asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value,
210 int asix_rx_fixup_internal(struct usbnet *dev, struct sk_buff *skb,
212 int asix_rx_fixup_common(struct usbnet *dev, struct sk_buff *skb);
215 struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb,
218 int asix_read_phy_addr(struct usbnet *dev, bool internal);
[all …]
Dmcs7830.c109 static int mcs7830_get_reg(struct usbnet *dev, u16 index, u16 size, void *data) in mcs7830_get_reg()
123 static int mcs7830_set_reg(struct usbnet *dev, u16 index, u16 size, const void *data) in mcs7830_set_reg()
129 static void mcs7830_set_reg_async(struct usbnet *dev, u16 index, u16 size, void *data) in mcs7830_set_reg_async()
135 static int mcs7830_hif_get_mac_address(struct usbnet *dev, unsigned char *addr) in mcs7830_hif_get_mac_address()
143 static int mcs7830_hif_set_mac_address(struct usbnet *dev, in mcs7830_hif_set_mac_address()
156 struct usbnet *dev = netdev_priv(netdev); in mcs7830_set_mac_address()
176 static int mcs7830_read_phy(struct usbnet *dev, u8 index) in mcs7830_read_phy()
216 static int mcs7830_write_phy(struct usbnet *dev, u8 index, u16 val) in mcs7830_write_phy()
263 static int mcs7830_set_autoneg(struct usbnet *dev, int ptrUserPhyMode) in mcs7830_set_autoneg()
286 static int mcs7830_get_rev(struct usbnet *dev) in mcs7830_get_rev()
[all …]
Dsr9700.c26 static int sr_read(struct usbnet *dev, u8 reg, u16 length, void *data) in sr_read()
37 static int sr_write(struct usbnet *dev, u8 reg, u16 length, void *data) in sr_write()
48 static int sr_read_reg(struct usbnet *dev, u8 reg, u8 *value) in sr_read_reg()
53 static int sr_write_reg(struct usbnet *dev, u8 reg, u8 value) in sr_write_reg()
59 static void sr_write_async(struct usbnet *dev, u8 reg, u16 length, in sr_write_async()
66 static void sr_write_reg_async(struct usbnet *dev, u8 reg, u8 value) in sr_write_reg_async()
72 static int wait_phy_eeprom_ready(struct usbnet *dev, int phy) in wait_phy_eeprom_ready()
95 static int sr_share_read_word(struct usbnet *dev, int phy, u8 reg, in sr_share_read_word()
120 static int sr_share_write_word(struct usbnet *dev, int phy, u8 reg, in sr_share_write_word()
146 static int sr_read_eeprom_word(struct usbnet *dev, u8 offset, void *value) in sr_read_eeprom_word()
[all …]
Dasix_common.c14 int __must_check asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in asix_read_cmd()
18 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); in asix_read_cmd()
40 int asix_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in asix_write_cmd()
44 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); in asix_write_cmd()
63 void asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, in asix_write_cmd_async()
71 static int asix_set_sw_mii(struct usbnet *dev, int in_pm) in asix_set_sw_mii()
82 static int asix_set_hw_mii(struct usbnet *dev, int in_pm) in asix_set_hw_mii()
92 static int asix_check_host_enable(struct usbnet *dev, int in_pm) in asix_check_host_enable()
136 int asix_rx_fixup_internal(struct usbnet *dev, struct sk_buff *skb, in asix_rx_fixup_internal()
242 int asix_rx_fixup_common(struct usbnet *dev, struct sk_buff *skb) in asix_rx_fixup_common()
[all …]
Dsr9800.c28 static int sr_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in sr_read_cmd()
41 static int sr_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in sr_write_cmd()
55 sr_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index, in sr_write_cmd_async()
62 static int sr_rx_fixup(struct usbnet *dev, struct sk_buff *skb) in sr_rx_fixup()
110 static struct sk_buff *sr_tx_fixup(struct usbnet *dev, struct sk_buff *skb, in sr_tx_fixup()
150 static void sr_status(struct usbnet *dev, struct urb *urb) in sr_status()
168 static inline int sr_set_sw_mii(struct usbnet *dev) in sr_set_sw_mii()
178 static inline int sr_set_hw_mii(struct usbnet *dev) in sr_set_hw_mii()
188 static inline int sr_get_phy_addr(struct usbnet *dev) in sr_get_phy_addr()
208 static int sr_sw_reset(struct usbnet *dev, u8 flags) in sr_sw_reset()
[all …]
Ddm9601.c61 static int dm_read(struct usbnet *dev, u8 reg, u16 length, void *data) in dm_read()
72 static int dm_read_reg(struct usbnet *dev, u8 reg, u8 *value) in dm_read_reg()
77 static int dm_write(struct usbnet *dev, u8 reg, u16 length, void *data) in dm_write()
89 static int dm_write_reg(struct usbnet *dev, u8 reg, u8 value) in dm_write_reg()
96 static void dm_write_async(struct usbnet *dev, u8 reg, u16 length, in dm_write_async()
104 static void dm_write_reg_async(struct usbnet *dev, u8 reg, u8 value) in dm_write_reg_async()
111 static int dm_read_shared_word(struct usbnet *dev, int phy, u8 reg, __le16 *value) in dm_read_shared_word()
150 static int dm_write_shared_word(struct usbnet *dev, int phy, u8 reg, __le16 value) in dm_write_shared_word()
189 static int dm_read_eeprom_word(struct usbnet *dev, u8 offset, void *value) in dm_read_eeprom_word()
204 struct usbnet *dev = netdev_priv(net); in dm9601_get_eeprom()
[all …]
Dsierra_net.c71 struct usbnet *usbnet; member
193 static inline struct sierra_net_data *sierra_net_get_private(struct usbnet *dev) in sierra_net_get_private()
199 static inline void sierra_net_set_private(struct usbnet *dev, in sierra_net_set_private()
217 static int check_ethip_packet(struct sk_buff *skb, struct usbnet *dev) in check_ethip_packet()
319 static int sierra_net_send_cmd(struct usbnet *dev, in sierra_net_send_cmd()
335 static int sierra_net_send_sync(struct usbnet *dev) in sierra_net_send_sync()
350 dev_dbg(&(priv->usbnet->udev->dev), "%s %d", __func__, ctx_ix); in sierra_net_set_ctx_index()
357 static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen) in sierra_net_parse_lsi()
412 static void sierra_net_handle_lsi(struct usbnet *dev, char *data, in sierra_net_handle_lsi()
433 static void sierra_net_dosync(struct usbnet *dev) in sierra_net_dosync()
[all …]
Dax88179_178a.c167 static int ax88179_reset(struct usbnet *dev);
192 static void ax88179_set_pm_mode(struct usbnet *dev, bool pm_mode) in ax88179_set_pm_mode()
199 static int ax88179_in_pm(struct usbnet *dev) in ax88179_in_pm()
206 static int __ax88179_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in __ax88179_read_cmd()
210 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); in __ax88179_read_cmd()
229 static int __ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in __ax88179_write_cmd()
233 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); in __ax88179_write_cmd()
252 static void ax88179_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, in ax88179_write_cmd_async()
270 static int ax88179_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in ax88179_read_cmd()
292 static int ax88179_write_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index, in ax88179_write_cmd()
[all …]
Dusbnet.c92 int usbnet_get_endpoints(struct usbnet *dev, struct usb_interface *intf) in usbnet_get_endpoints()
163 int usbnet_get_ethernet_addr(struct usbnet *dev, int iMACAddress) in usbnet_get_ethernet_addr()
186 struct usbnet *dev = urb->context; in intr_complete()
216 static int init_status (struct usbnet *dev, struct usb_interface *intf) in init_status()
254 int usbnet_status_start(struct usbnet *dev, gfp_t mem_flags) in usbnet_status_start()
274 static int __usbnet_status_start_force(struct usbnet *dev, gfp_t mem_flags) in __usbnet_status_start_force()
289 void usbnet_status_stop(struct usbnet *dev) in usbnet_status_stop()
307 static void __usbnet_status_stop_force(struct usbnet *dev) in __usbnet_status_stop_force()
321 void usbnet_skb_return (struct usbnet *dev, struct sk_buff *skb) in usbnet_skb_return()
356 void usbnet_update_max_qlen(struct usbnet *dev) in usbnet_update_max_qlen()
[all …]
Dsmsc95xx.c82 static int __must_check smsc95xx_read_reg(struct usbnet *dev, u32 index, in smsc95xx_read_reg()
88 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); in smsc95xx_read_reg()
111 static int __must_check smsc95xx_write_reg(struct usbnet *dev, u32 index, in smsc95xx_write_reg()
117 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); in smsc95xx_write_reg()
139 static int __must_check smsc95xx_phy_wait_not_busy(struct usbnet *dev) in smsc95xx_phy_wait_not_busy()
167 static int smsc95xx_mdio_read(struct usbnet *dev, int phy_id, int idx) in smsc95xx_mdio_read()
214 static void smsc95xx_mdio_write(struct usbnet *dev, int phy_id, int idx, in smsc95xx_mdio_write()
259 struct usbnet *dev; in smsc95xx_mdiobus_reset()
295 struct usbnet *dev = bus->priv; in smsc95xx_mdiobus_read()
303 struct usbnet *dev = bus->priv; in smsc95xx_mdiobus_write()
[all …]
Daqc111.c25 static int aqc111_read_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, in aqc111_read_cmd_nopm()
41 static int aqc111_read_cmd(struct usbnet *dev, u8 cmd, u16 value, in aqc111_read_cmd()
57 static int aqc111_read16_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, in aqc111_read16_cmd_nopm()
68 static int aqc111_read16_cmd(struct usbnet *dev, u8 cmd, u16 value, in aqc111_read16_cmd()
79 static int __aqc111_write_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, in __aqc111_write_cmd()
110 static int aqc111_write_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, in aqc111_write_cmd_nopm()
121 static int aqc111_write_cmd(struct usbnet *dev, u8 cmd, u16 value, in aqc111_write_cmd()
137 static int aqc111_write16_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, in aqc111_write16_cmd_nopm()
147 static int aqc111_write16_cmd(struct usbnet *dev, u8 cmd, u16 value, in aqc111_write16_cmd()
157 static int aqc111_write32_cmd_nopm(struct usbnet *dev, u8 cmd, u16 value, in aqc111_write32_cmd_nopm()
[all …]
Dasix_devices.c43 static void asix_status(struct usbnet *dev, struct urb *urb) in asix_status()
59 static void asix_set_netdev_dev_addr(struct usbnet *dev, u8 *addr) in asix_set_netdev_dev_addr()
70 static u32 asix_get_phyid(struct usbnet *dev) in asix_get_phyid()
102 struct usbnet *dev = netdev_priv(net); in asix_get_link()
109 struct usbnet *dev = netdev_priv(net); in asix_ioctl()
134 struct usbnet *dev = netdev_priv(net); in ax88172_set_multicast()
171 static int ax88172_link_reset(struct usbnet *dev) in ax88172_link_reset()
204 static void asix_phy_reset(struct usbnet *dev, unsigned int reset_bits) in asix_phy_reset()
226 static int ax88172_bind(struct usbnet *dev, struct usb_interface *intf) in ax88172_bind()
309 struct usbnet *dev = netdev_priv(ndev); in ax88772_ethtool_get_pauseparam()
[all …]
Dsmsc75xx.c54 struct usbnet *dev;
66 struct usbnet *dev;
73 static int smsc75xx_link_ok_nopm(struct usbnet *dev);
74 static int smsc75xx_phy_gig_workaround(struct usbnet *dev);
76 static int __must_check __smsc75xx_read_reg(struct usbnet *dev, u32 index, in __smsc75xx_read_reg()
81 int (*fn)(struct usbnet *, u8, u8, u16, u16, void *, u16); in __smsc75xx_read_reg()
105 static int __must_check __smsc75xx_write_reg(struct usbnet *dev, u32 index, in __smsc75xx_write_reg()
110 int (*fn)(struct usbnet *, u8, u8, u16, u16, const void *, u16); in __smsc75xx_write_reg()
132 static int __must_check smsc75xx_read_reg_nopm(struct usbnet *dev, u32 index, in smsc75xx_read_reg_nopm()
138 static int __must_check smsc75xx_write_reg_nopm(struct usbnet *dev, u32 index, in smsc75xx_write_reg_nopm()
[all …]
Dnet1080.c96 nc_vendor_read(struct usbnet *dev, u8 req, u8 regnum, u16 *retval_ptr) in nc_vendor_read()
111 nc_register_read(struct usbnet *dev, u8 regnum, u16 *retval_ptr) in nc_register_read()
117 nc_vendor_write(struct usbnet *dev, u8 req, u8 regnum, u16 value) in nc_vendor_write()
125 nc_register_write(struct usbnet *dev, u8 regnum, u16 value) in nc_register_write()
132 static void nc_dump_registers(struct usbnet *dev)
181 static inline void nc_dump_usbctl(struct usbnet *dev, u16 usbctl) in nc_dump_usbctl()
224 static inline void nc_dump_status(struct usbnet *dev, u16 status) in nc_dump_status()
259 static int net1080_reset(struct usbnet *dev) in net1080_reset()
304 static int net1080_check_connect(struct usbnet *dev) in net1080_check_connect()
321 static void nc_ensure_sync(struct usbnet *dev) in nc_ensure_sync()
[all …]
Dax88172a.c32 struct usbnet *dev = netdev_priv(netdev); in ax88172a_adjust_link()
55 static void ax88172a_status(struct usbnet *dev, struct urb *urb) in ax88172a_status()
61 static int ax88172a_init_mdio(struct usbnet *dev) in ax88172a_init_mdio()
94 static void ax88172a_remove_mdio(struct usbnet *dev) in ax88172a_remove_mdio()
131 static int ax88172a_reset_phy(struct usbnet *dev, int embd_phy) in ax88172a_reset_phy()
158 static int ax88172a_bind(struct usbnet *dev, struct usb_interface *intf) in ax88172a_bind()
235 static int ax88172a_stop(struct usbnet *dev) in ax88172a_stop()
251 static void ax88172a_unbind(struct usbnet *dev, struct usb_interface *intf) in ax88172a_unbind()
259 static int ax88172a_reset(struct usbnet *dev) in ax88172a_reset()
337 static int ax88172a_rx_fixup(struct usbnet *dev, struct sk_buff *skb) in ax88172a_rx_fixup()
Dch9200.c99 static int control_read(struct usbnet *dev, in control_read()
137 static int control_write(struct usbnet *dev, unsigned char request, in control_write()
179 struct usbnet *dev = netdev_priv(netdev); in ch9200_mdio_read()
197 struct usbnet *dev = netdev_priv(netdev); in ch9200_mdio_write()
213 static int ch9200_link_reset(struct usbnet *dev) in ch9200_link_reset()
226 static void ch9200_status(struct usbnet *dev, struct urb *urb) in ch9200_status()
245 static struct sk_buff *ch9200_tx_fixup(struct usbnet *dev, struct sk_buff *skb, in ch9200_tx_fixup()
286 static int ch9200_rx_fixup(struct usbnet *dev, struct sk_buff *skb) in ch9200_rx_fixup()
304 static int get_mac_address(struct usbnet *dev, unsigned char *data) in get_mac_address()
335 static int ch9200_bind(struct usbnet *dev, struct usb_interface *intf) in ch9200_bind()
Dplusb.c58 pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index) in pl_vendor_req()
67 pl_clear_QuickLink_features(struct usbnet *dev, int val) in pl_clear_QuickLink_features()
73 pl_set_QuickLink_features(struct usbnet *dev, int val) in pl_set_QuickLink_features()
78 static int pl_reset(struct usbnet *dev) in pl_reset()
Dhuawei_cdc_ncm.c37 static int huawei_cdc_ncm_manage_power(struct usbnet *usbnet_dev, int on) in huawei_cdc_ncm_manage_power()
55 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_wdm_manage_power()
65 static int huawei_cdc_ncm_bind(struct usbnet *usbnet_dev, in huawei_cdc_ncm_bind()
116 static void huawei_cdc_ncm_unbind(struct usbnet *usbnet_dev, in huawei_cdc_ncm_unbind()
133 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_suspend()
160 struct usbnet *usbnet_dev = usb_get_intfdata(intf); in huawei_cdc_ncm_resume()
Dcdc_mbim.c44 static int cdc_mbim_manage_power(struct usbnet *dev, int on) in cdc_mbim_manage_power()
63 struct usbnet *dev = usb_get_intfdata(intf); in cdc_mbim_wdm_manage_power()
74 struct usbnet *dev = netdev_priv(netdev); in cdc_mbim_rx_add_vid()
88 struct usbnet *dev = netdev_priv(netdev); in cdc_mbim_rx_kill_vid()
114 static int cdc_mbim_set_ctrlalt(struct usbnet *dev, struct usb_interface *intf, u8 alt) in cdc_mbim_set_ctrlalt()
140 static int cdc_mbim_bind(struct usbnet *dev, struct usb_interface *intf) in cdc_mbim_bind()
196 static void cdc_mbim_unbind(struct usbnet *dev, struct usb_interface *intf) in cdc_mbim_unbind()
221 static struct sk_buff *cdc_mbim_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) in cdc_mbim_tx_fixup()
309 static void do_neigh_solicit(struct usbnet *dev, u8 *buf, u16 tci) in do_neigh_solicit()
367 static struct sk_buff *cdc_mbim_process_dgram(struct usbnet *dev, u8 *buf, size_t len, u16 tci) in cdc_mbim_process_dgram()
[all …]
Dr8153_ecm.c12 static int pla_read_word(struct usbnet *dev, u16 index) in pla_read_word()
37 static int pla_write_word(struct usbnet *dev, u16 index, u32 data) in pla_write_word()
73 struct usbnet *dev = netdev_priv(netdev); in r8153_ecm_mdio_read()
88 struct usbnet *dev = netdev_priv(netdev); in r8153_ecm_mdio_write()
98 static int r8153_bind(struct usbnet *dev, struct usb_interface *intf) in r8153_bind()
Dcdc_ncm.c108 struct usbnet *dev = netdev_priv(netdev); in cdc_ncm_get_ethtool_stats()
133 static void cdc_ncm_update_rxtx_max(struct usbnet *dev, u32 new_rx, u32 new_tx);
149 static u32 cdc_ncm_check_rx_max(struct usbnet *dev, u32 new_rx) in cdc_ncm_check_rx_max()
172 static u32 cdc_ncm_check_tx_max(struct usbnet *dev, u32 new_tx) in cdc_ncm_check_tx_max()
200 struct usbnet *dev = netdev_priv(to_net_dev(d)); in min_tx_pkt_show()
209 struct usbnet *dev = netdev_priv(to_net_dev(d)); in rx_max_show()
218 struct usbnet *dev = netdev_priv(to_net_dev(d)); in tx_max_show()
227 struct usbnet *dev = netdev_priv(to_net_dev(d)); in tx_timer_usecs_show()
237 struct usbnet *dev = netdev_priv(to_net_dev(d)); in min_tx_pkt_store()
253 struct usbnet *dev = netdev_priv(to_net_dev(d)); in rx_max_store()
[all …]
/linux-6.1.9/drivers/net/wireless/
Drndis_wlan.c407 struct usbnet *usbdev;
549 static struct rndis_wlan_private *get_rndis_wlan_priv(struct usbnet *dev) in get_rndis_wlan_priv()
690 static int rndis_query_oid(struct usbnet *dev, u32 oid, void *data, int *len) in rndis_query_oid()
767 static int rndis_set_oid(struct usbnet *dev, u32 oid, const void *data, in rndis_set_oid()
826 static int rndis_reset(struct usbnet *usbdev) in rndis_reset()
853 static int rndis_set_config_parameter(struct usbnet *dev, char *param, in rndis_set_config_parameter()
932 static int rndis_set_config_parameter_str(struct usbnet *dev, in rndis_set_config_parameter_str()
950 static int set_infra_mode(struct usbnet *usbdev, int mode);
951 static void restore_keys(struct usbnet *usbdev);
952 static int rndis_check_bssid_list(struct usbnet *usbdev, u8 *match_bssid,
[all …]

12