HomeSort by: relevance | last modified time | path
    Searched refs:usbnet (Results 1 - 22 of 22) sorted by relevancy

  /src/sys/modules/usbnet/
Makefile 7 KMOD= usbnet
8 SRCS= usbnet.c
  /src/sys/dev/usb/
usbnet.h 1 /* $NetBSD: usbnet.h,v 1.35 2022/08/22 08:37:16 riastradh Exp $ */
46 * - replace most softc members with "struct usbnet" usage, in particular
47 * use usbnet pointer for ifp->if_softc, and device_private (real softc
60 * - start uses usbnet transmit prepare callback (uno_tx_prepare)
62 * - for rx, usbnet will enable the receive pipes and
66 * - for tx, usbnet will pull entries out of the
69 * the transmit completion function (internal to usbnet)
105 struct usbnet;
107 struct usbnet *unc_un;
133 typedef int (*usbnet_mii_read_reg_cb)(struct usbnet *, int reg
232 struct usbnet { struct
    [all...]
if_udav.c 56 #include <dev/usb/usbnet.h>
63 CFATTACH_DECL_NEW(udav, sizeof(struct usbnet), udav_match, udav_attach,
66 static void udav_chip_init(struct usbnet *);
68 static unsigned udav_uno_tx_prepare(struct usbnet *, struct mbuf *,
70 static void udav_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
73 static int udav_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
74 static int udav_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
77 static void udav_reset(struct usbnet *);
79 static int udav_csr_read(struct usbnet *, int, void *, int);
80 static int udav_csr_write(struct usbnet *, int, void *, int)
    [all...]
if_mos.c 79 #include <dev/usb/usbnet.h>
142 CFATTACH_DECL_NEW(mos, sizeof(struct usbnet),
145 static void mos_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
146 static unsigned mos_uno_tx_prepare(struct usbnet *, struct mbuf *,
150 static void mos_chip_init(struct usbnet *);
152 static int mos_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
153 static int mos_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
155 static void mos_reset(struct usbnet *);
157 static int mos_reg_read_1(struct usbnet *, int);
158 static int mos_reg_read_2(struct usbnet *, int)
    [all...]
usbnet.c 1 /* $NetBSD: usbnet.c,v 1.121 2024/11/10 11:53:04 mlelstv Exp $ */
34 __KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.121 2024/11/10 11:53:04 mlelstv Exp $");
42 #include <dev/usb/usbnet.h>
103 static void usbnet_isowned_rx(struct usbnet *);
104 static void usbnet_isowned_tx(struct usbnet *);
107 usbnet_isowned_mii(struct usbnet *un)
120 SYSCTL_SETUP(sysctl_hw_usbnet_setup, "sysctl hw.usbnet setup")
127 CTLFLAG_PERMANENT, CTLTYPE_NODE, "usbnet",
128 SYSCTL_DESCR("usbnet global controls"),
162 uno_stop(struct usbnet *un, struct ifnet *ifp, int disable
    [all...]
if_url.c 64 #include <dev/usb/usbnet.h>
72 CFATTACH_DECL_NEW(url, sizeof(struct usbnet), url_match, url_attach,
75 static unsigned url_uno_tx_prepare(struct usbnet *, struct mbuf *,
77 static void url_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
78 static int url_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
79 static int url_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
84 static void url_reset(struct usbnet *);
86 static int url_csr_read_1(struct usbnet *, int);
87 static int url_csr_read_2(struct usbnet *, int);
88 static int url_csr_write_1(struct usbnet *, int, int)
    [all...]
if_upl.c 47 #include <dev/usb/usbnet.h>
104 CFATTACH_DECL_NEW(upl, sizeof(struct usbnet), upl_match, upl_attach,
108 static void upl_uno_intr(struct usbnet *, usbd_status);
110 static void upl_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
111 static unsigned upl_uno_tx_prepare(struct usbnet *, struct mbuf *,
143 struct usbnet * const un = device_private(self);
226 upl_uno_rx_loop(struct usbnet * un, struct usbnet_chain *c, uint32_t total_len)
236 upl_uno_tx_prepare(struct usbnet *un, struct mbuf *m, struct usbnet_chain *c)
268 struct usbnet * const un __unused = ifp->if_softc;
if_mue.c 32 #include <dev/usb/usbnet.h>
82 static uint32_t mue_csr_read(struct usbnet *, uint32_t);
83 static int mue_csr_write(struct usbnet *, uint32_t, uint32_t);
84 static int mue_wait_for_bits(struct usbnet *, uint32_t, uint32_t,
86 static uint8_t mue_eeprom_getbyte(struct usbnet *, int, uint8_t *);
87 static bool mue_eeprom_present(struct usbnet *);
88 static void mue_dataport_write(struct usbnet *, uint32_t, uint32_t,
90 static void mue_init_ltm(struct usbnet *);
91 static int mue_chip_init(struct usbnet *);
92 static void mue_set_macaddr(struct usbnet *);
    [all...]
if_cue.c 69 #include <dev/usb/usbnet.h>
120 struct usbnet cue_un;
141 static unsigned cue_uno_tx_prepare(struct usbnet *, struct mbuf *,
143 static void cue_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
147 static void cue_uno_tick(struct usbnet *);
160 cue_csr_read_1(struct usbnet *un, int reg)
191 cue_csr_read_2(struct usbnet *un, int reg)
221 cue_csr_write_1(struct usbnet *un, int reg, int val)
254 cue_csr_write_2(struct usbnet *un, int reg, int aval)
287 cue_mem(struct usbnet *un, int cmd, int addr, void *buf, int len
    [all...]
if_cdce.c 53 #include <dev/usb/usbnet.h>
84 CFATTACH_DECL_NEW(cdce, sizeof(struct usbnet), cdce_match, cdce_attach,
87 static void cdce_uno_rx_loop(struct usbnet *, struct usbnet_chain *,
89 static unsigned cdce_uno_tx_prepare(struct usbnet *, struct mbuf *,
115 struct usbnet * const un = device_private(self);
266 cdce_uno_rx_loop(struct usbnet * un, struct usbnet_chain *c, uint32_t total_len)
283 cdce_uno_tx_prepare(struct usbnet *un, struct mbuf *m, struct usbnet_chain *c)
if_smsc.c 72 #include <dev/usb/usbnet.h>
80 struct usbnet smsc_un;
173 static int smsc_chip_init(struct usbnet *);
174 static int smsc_setmacaddress(struct usbnet *, const uint8_t *);
182 static int smsc_readreg(struct usbnet *, uint32_t, uint32_t *);
183 static int smsc_writereg(struct usbnet *, uint32_t, uint32_t);
184 static int smsc_wait_for_bits(struct usbnet *, uint32_t, uint32_t);
185 static int smsc_uno_miibus_readreg(struct usbnet *, int, int, uint16_t *);
186 static int smsc_uno_miibus_writereg(struct usbnet *, int, int, uint16_t);
190 static unsigned smsc_uno_tx_prepare(struct usbnet *, struct mbuf *
    [all...]
if_ure.c 45 #include <dev/usb/usbnet.h>
81 static void ure_reset(struct usbnet *);
84 static void ure_rtl8152_init(struct usbnet *);
85 static void ure_rtl8153_init(struct usbnet *);
86 static void ure_disable_teredo(struct usbnet *);
87 static void ure_init_fifo(struct usbnet *);
91 static int ure_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
92 static int ure_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
94 static unsigned ure_uno_tx_prepare(struct usbnet *, struct mbuf *,
96 static void ure_uno_rx_loop(struct usbnet *, struct usbnet_chain *
    [all...]
if_urndis.c 33 #include <dev/usb/usbnet.h>
44 struct usbnet sc_un;
70 static void urndis_uno_rx_loop(struct usbnet *, struct usbnet_chain *,
72 static unsigned urndis_uno_tx_prepare(struct usbnet *, struct mbuf *,
75 static uint32_t urndis_ctrl_handle_init(struct usbnet *,
77 static uint32_t urndis_ctrl_handle_query(struct usbnet *,
79 static uint32_t urndis_ctrl_handle_reset(struct usbnet *,
81 static uint32_t urndis_ctrl_handle_status(struct usbnet *,
84 static uint32_t urndis_ctrl_set(struct usbnet *, uint32_t, void *,
110 urndis_ctrl_msg(struct usbnet *un, uint8_t rt, uint8_t r
    [all...]
if_kue.c 84 #include <dev/usb/usbnet.h>
109 struct usbnet kue_un;
174 static void kue_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
175 static unsigned kue_uno_tx_prepare(struct usbnet *, struct mbuf *,
187 static void kue_reset(struct usbnet *);
189 static usbd_status kue_ctl(struct usbnet *, int, uint8_t,
191 static int kue_load_fw(struct usbnet *);
194 kue_setword(struct usbnet *un, uint8_t breq, uint16_t word)
210 kue_ctl(struct usbnet *un, int rw, uint8_t breq, uint16_t val,
232 kue_load_fw(struct usbnet *un
    [all...]
if_axen.c 37 #include <dev/usb/usbnet.h>
74 CFATTACH_DECL_NEW(axen, sizeof(struct usbnet),
77 static int axen_cmd(struct usbnet *, int, int, int, void *);
78 static void axen_reset(struct usbnet *);
79 static int axen_get_eaddr(struct usbnet *, void *);
80 static void axen_ax88179_init(struct usbnet *);
85 static int axen_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
86 static int axen_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
88 static void axen_uno_rx_loop(struct usbnet *, struct usbnet_chain *,
90 static unsigned axen_uno_tx_prepare(struct usbnet *, struct mbuf *
    [all...]
if_aue.c 88 #include <dev/usb/usbnet.h>
146 struct usbnet aue_un;
244 static int aue_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
245 static int aue_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
247 static unsigned aue_uno_tx_prepare(struct usbnet *, struct mbuf *,
249 static void aue_uno_rx_loop(struct usbnet *, struct usbnet_chain *, uint32_t);
251 static void aue_uno_intr(struct usbnet *, usbd_status);
282 struct usbnet * const un = &sc->aue_un;
311 struct usbnet * const un = &sc->aue_un;
340 struct usbnet * const un = &sc->aue_un
    [all...]
if_ncm.c 50 #include <dev/usb/usbnet.h>
56 struct usbnet ncm_un;
66 static void ncm_uno_rx_loop(struct usbnet *, struct usbnet_chain *,
68 static unsigned ncm_uno_tx_prepare(struct usbnet *, struct mbuf *,
92 struct usbnet * const un = &sc->ncm_un;
255 ncm_uno_rx_loop(struct usbnet *un, struct usbnet_chain *c, uint32_t total_len)
324 ncm_uno_tx_prepare(struct usbnet *un, struct mbuf *m, struct usbnet_chain *c)
if_axe.c 99 #include <dev/usb/usbnet.h>
109 struct usbnet axe_un;
111 /* usbnet:un_flags values */
264 static int axe_uno_mii_read_reg(struct usbnet *, int, int, uint16_t *);
265 static int axe_uno_mii_write_reg(struct usbnet *, int, int, uint16_t);
267 static void axe_uno_rx_loop(struct usbnet *, struct usbnet_chain *,
269 static unsigned axe_uno_tx_prepare(struct usbnet *, struct mbuf *,
292 struct usbnet * const un = &sc->axe_un;
318 axe_uno_mii_read_reg(struct usbnet *un, int phy, int reg, uint16_t *val)
360 axe_uno_mii_write_reg(struct usbnet *un, int phy, int reg, uint16_t val
    [all...]
  /src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/freescale/
imx8mm-kontron-n801x-s.dts 15 ethernet1 = &usbnet;
185 usbnet: usbether@1 { label
  /src/sys/modules/
Makefile 202 SUBDIR+= usbnet
  /src/share/man/man4/
Makefile 96 usb.4 usbnet.4 uslsa.4 usmsc.4 usscanner.4 \
  /src/share/man/man9/
Makefile 72 usbd_status.9 usbdi.9 usbnet.9 \

Completed in 43 milliseconds