NetBSD/sys/dev/usb
mrg 97f70a3c6e in tx_prepare callback make sure to reject any mbuf that is larger
than can fit in the buffer.  done at the driver and not usbnet
layer because the driver knows how much beyond the mbuf data needs
to be sent (headers and trailers.)

axen(4) had a KASSERT() for this condition, but there's no
invariant here we can check so it's best as an error return.

XXX: only tested on these drivers, needs to be copied to udav, smsc
and urndis after testing as well as the not commited conversions.
2019-08-11 01:04:33 +00:00
..
aubtfwl.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
aubtfwlreg.h
auvitek_audio.c remove checks for failure after memory allocation calls that cannot fail: 2017-06-01 02:45:05 +00:00
auvitek_board.c
auvitek_dtv.c
auvitek_i2c.c
auvitek_video.c KNF 2019-01-22 06:46:21 +00:00
auvitek.c
auvitekreg.h
auvitekvar.h
ehci.c Random style in ehci, also KM_SLEEP does not fail. 2019-06-13 17:20:25 +00:00
ehcireg.h
ehcivar.h implement a gross hack to fix "boot -a" on systems with usb keyboards on 2018-09-18 02:00:06 +00:00
emdtv_board.c
emdtv_board.h
emdtv_dtv.c
emdtv_i2c.c
emdtv_ir.c
emdtv.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
emdtvreg.h
emdtvvar.h
ezload.c
ezload.h
FILES
files.usb switch urndis(4) to usbnet. thanks to maya@ for testing and helping 2019-08-09 06:38:39 +00:00
if_athn_usb.c Fix the detach path to prevent panic: 2019-06-03 09:58:31 +00:00
if_athn_usb.h
if_atu.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
if_atureg.h
if_aue.c Fix panic when setting multicast addresses. Write the hash table outside of 2019-08-07 06:31:03 +00:00
if_auereg.h remove unused code and use common ethernet media code where equivalent. 2019-08-01 00:10:22 +00:00
if_axe.c in tx_prepare callback make sure to reject any mbuf that is larger 2019-08-11 01:04:33 +00:00
if_axen.c in tx_prepare callback make sure to reject any mbuf that is larger 2019-08-11 01:04:33 +00:00
if_axenreg.h introduce a library of common code / backends to share code between 2019-07-31 09:13:16 +00:00
if_axereg.h move software parts out of the "reg" header. 2019-07-14 21:37:09 +00:00
if_bwfm_usb.c Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
if_cdce.c in tx_prepare callback make sure to reject any mbuf that is larger 2019-08-11 01:04:33 +00:00
if_cdcereg.h move the software-only parts of cdce(4) out of if_cdcereg.h. 2019-06-22 04:35:46 +00:00
if_cue.c Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*. 2019-05-28 07:41:46 +00:00
if_cuereg.h remove unused structure members. this brings most <foo>_chain and 2019-07-21 10:27:56 +00:00
if_kue.c remove unused code and use common ethernet media code where equivalent. 2019-08-01 00:10:22 +00:00
if_kuereg.h remove unused code and use common ethernet media code where equivalent. 2019-08-01 00:10:22 +00:00
if_mue.c remove unused code and use common ethernet media code where equivalent. 2019-08-01 00:10:22 +00:00
if_muereg.h Make size of transmit/receive queues variable. Restrict queue size again 2019-02-03 13:11:07 +00:00
if_muevar.h usbd_transfer may sleep, add a mutex to prevent a race in mue_start. 2019-05-26 04:52:07 +00:00
if_otus.c Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*. 2019-05-28 07:41:46 +00:00
if_otusreg.h
if_otusvar.h
if_rum.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
if_rumreg.h
if_rumvar.h
if_run.c KNF 2019-01-22 06:46:21 +00:00
if_runvar.h Use a #define instead of a magic number 2017-11-17 13:08:48 +00:00
if_smsc.c reduce the scope of struct usbnet: 2019-08-10 02:17:36 +00:00
if_smscreg.h
if_udav.c reduce the scope of struct usbnet: 2019-08-10 02:17:36 +00:00
if_udavreg.h add a blank line after rcsid(s) 2019-08-10 02:32:27 +00:00
if_umb.c Fix typos 2019-06-26 22:58:58 +00:00
if_umbreg.h Add a port of the umb(4) driver from OpenBSD 2018-07-31 16:44:28 +00:00
if_upgt.c Make m_devget()'s 3rd argument to 0 again. 2019-03-06 08:08:25 +00:00
if_upgtvar.h
if_upl.c remove unused structure members. this brings most <foo>_chain and 2019-07-21 10:27:56 +00:00
if_ural.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
if_uralreg.h Use unsigned (RAL_RF_BUSY). Found by KUBSan. 2019-07-25 11:10:38 +00:00
if_uralvar.h
if_ure.c in tx_prepare callback make sure to reject any mbuf that is larger 2019-08-11 01:04:33 +00:00
if_urereg.h Apply FreeBSD r346028 from ganbold@f.o: 2019-04-12 03:32:06 +00:00
if_urevar.h missed commit should be paired with if_ure.c 1.20. 2019-08-09 06:46:35 +00:00
if_url.c remove unused code and use common ethernet media code where equivalent. 2019-08-01 00:10:22 +00:00
if_urlreg.h remove unused structure members. this brings most <foo>_chain and 2019-07-21 10:27:56 +00:00
if_urndis.c reduce the scope of struct usbnet: 2019-08-10 02:17:36 +00:00
if_urtw.c Don't have modules depend on bpf; they will find the dependency dynamically 2018-09-12 21:57:18 +00:00
if_urtwn.c Avoid undefined behavior. Found by KUBSan. 2019-07-25 14:31:35 +00:00
if_urtwnreg.h - Unify the "rtwn" and "urtwn" register definitions and initialization 2018-06-29 04:02:10 +00:00
if_urtwnvar.h Add rnd(9) support. 2019-06-15 04:00:17 +00:00
if_urtwreg.h
if_zyd.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
if_zydreg.h Remove set but not used sc_flags. 2018-04-30 01:14:07 +00:00
irmce.c PR kern/52931 Kernel panics with Atheros usb wireless interface 2018-01-21 13:57:11 +00:00
kue_fw.h
Makefile Add a port of the umb(4) driver from OpenBSD 2018-07-31 16:44:28 +00:00
Makefile.usbdevs
mbim.h Add a port of the umb(4) driver from OpenBSD 2018-07-31 16:44:28 +00:00
motg.c Fix assertion failures triggered by usbdi.c,v 1.182, when devices 2019-02-17 04:17:52 +00:00
motgreg.h
motgvar.h Stop potential misuse of vendor names and USB vendor IDs in root hub 2018-04-09 16:21:09 +00:00
ohci.c adjust KASSERT() for sc_lock to handle polling case. 2019-03-22 07:25:15 +00:00
ohcireg.h
ohcivar.h pull across abort fixes from nick-nhusb. add more abort fixes, using 2018-08-09 06:26:47 +00:00
pseye.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
slurm.c KNF 2019-01-22 06:46:21 +00:00
stuirda.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
TODO switch urndis(4) to usbnet. thanks to maya@ for testing and helping 2019-08-09 06:38:39 +00:00
TODO.usbmp if_axe.c has been updated for modern times. 2019-07-31 11:02:49 +00:00
u3g.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ualea.c PR kern/52931 Kernel panics with Atheros usb wireless interface 2018-01-21 13:57:11 +00:00
uark.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
uatp.c KNF 2019-01-22 06:46:21 +00:00
uaudio.c Return correct properties. 2019-06-06 12:59:33 +00:00
uaudioreg.h
uberry.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
ubsa_common.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ubsa.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ubsavar.h clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ubt.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uchcom.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ucom.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ucomvar.h clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ucycom.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
udl.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
udl.h
udsbr.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
udsir.c KNF (from nhusb) 2019-07-22 06:24:57 +00:00
uep.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uftdi.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
uftdireg.h
ugen.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
ugensa.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ugraphire_rdesc.h Support some Wacom pen tablets: 2017-09-02 04:35:51 +00:00
uhci.c Fix assertion failures triggered by usbdi.c,v 1.182, when devices 2019-02-17 04:17:52 +00:00
uhcireg.h
uhcivar.h reorder some struct members to remove holes. 2018-09-17 08:27:41 +00:00
uhid.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uhidev.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uhidev.h use sc_lock not sc_access_lock to check UHIDEV_OPEN. 2019-03-23 02:19:31 +00:00
uhmodem.c Claim suspend support. 2019-05-27 03:08:13 +00:00
uhso.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uhub.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uipad.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uipaq.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
uirda.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uirdavar.h
ukbd.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
ukbdvar.h
ukyopon.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
ukyopon.h
ulpireg.h
ulpt.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
umass_isdata.c move the deallocation of the protocol-specific softc into its own detach hook, 2019-02-10 19:23:55 +00:00
umass_isdata.h Merge support for SATA NCQ (Native Command Queueing) from jdolecek-ncq branch 2017-10-07 16:05:31 +00:00
umass_quirks.c Update the kernhist(9) kernel history code to address issues identified 2017-10-28 00:37:11 +00:00
umass_quirks.h
umass_scsipi.c ATA passthrough commands, supported by many SPC-2 disks, require more 2019-05-30 21:44:49 +00:00
umass_scsipi.h move the deallocation of the protocol-specific softc into its own detach hook, 2019-02-10 19:23:55 +00:00
umass.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
umassvar.h Handle abort paths gracefully on detach. 2018-11-13 10:30:57 +00:00
umcs.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
umcs.h Fix typo (s/recevie/receive/). 2019-06-04 10:15:22 +00:00
umct.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
umct.h
umidi_quirks.c Merge isaki-audio2 branch, the overhaul of audio subsystem. 2019-05-08 13:40:13 +00:00
umidi_quirks.h
umidi.c Merge isaki-audio2 branch, the overhaul of audio subsystem. 2019-05-08 13:40:13 +00:00
umodem_common.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
umodem.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
umodemvar.h clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
umodeswitch.c - USB_VENDOR_QUALCOMM -> USB_VENDOR_LG 2018-07-24 08:15:57 +00:00
ums.c Initialize tcpalib for ums devices. 2019-08-10 06:30:26 +00:00
uplcom.c Fix USB_DEBUG build 2019-05-09 14:50:38 +00:00
urio.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
urio.h
usb_mem.c Update the kernhist(9) kernel history code to address issues identified 2017-10-28 00:37:11 +00:00
usb_mem.h
usb_quirks.c Remove extra white spaces. No functional change. 2019-05-23 04:44:49 +00:00
usb_quirks.h Workaround NBP PN533 USB toggle bit bugs 2018-11-15 02:35:23 +00:00
usb_subr.c Introduce USB_DESCRIPTOR_SIZE (3), and fix two bugs: 2019-08-07 08:47:09 +00:00
usb_verbose.c
usb_verbose.h
usb.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
usb.h Introduce USB_DESCRIPTOR_SIZE (3), and fix two bugs: 2019-08-07 08:47:09 +00:00
usbcdc.h
usbdevices.config Add ure(4) to kernel config files. Also add PHY drivers where necessary. 2019-02-06 11:58:30 +00:00
usbdevs Add HP LP2[24]75w hub ids. (ID strings are missing from device.) 2019-01-30 19:51:28 +00:00
usbdevs_data.h regen 2019-01-30 19:53:34 +00:00
usbdevs.h regen 2019-01-30 19:53:34 +00:00
usbdi_util.c 1) Make sure we have a complete endpoint descriptor header, otherwise 2019-07-31 19:40:59 +00:00
usbdi_util.h Remove (mostly useless) usb_detach_{broadcast,wait} and replace with 2019-02-07 13:20:41 +00:00
usbdi.c Fix system freeze when USB NICs with multiple outstanding transfers 2019-02-17 04:17:31 +00:00
usbdi.h Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
usbdivar.h Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
usbhid.h Side-load dev/hid/hid.h to restore the previous visibility of macros 2018-07-15 18:36:51 +00:00
usbhist.h
usbnet.c reduce the scope of struct usbnet: 2019-08-10 02:17:36 +00:00
usbnet.h reduce the scope of struct usbnet: 2019-08-10 02:17:36 +00:00
usbroothub.c Merge the [pgoyette-compat] branch 2019-01-27 02:08:33 +00:00
usbroothub.h Some USB3 support from nick-nhusb 2017-11-28 07:36:08 +00:00
uscanner.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uslsa.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
uslsareg.h
usscanner.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
ustir.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
ustirreg.h
uthum.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
utoppy.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
utoppy.h
uts.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uvideo.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uvideoreg.h
uvisor.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
uvscom.c clean up ucom parents some more: 2019-05-09 02:43:35 +00:00
uyap_firmware.h
uyap.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
uyurex.c remove explicit 'extern struct cfdriver <my>_cd;' and use ioconf.h 2019-05-05 03:17:54 +00:00
x1input_rdesc.h
xhci.c new comment explains this hack: 2019-05-08 06:31:02 +00:00
xhcireg.h HCSPARAMS2.SPR is bit 26, not 24 2019-06-19 15:10:17 +00:00
xhcivar.h Seperate xHCI and xhci(4) TRB structs so as to avoid some of them 2019-01-07 03:00:39 +00:00
xinput_rdesc.h