opnsense-src/sys/dev/usb/controller
Oleksandr Tymoshenko 217d17bcd3 Clean up OF_getprop_alloc API
OF_getprop_alloc takes element size argument and returns number of
elements in the property. There are valid use cases for such behavior
but mostly API consumers pass 1 as element size to get string
properties. What API users would expect from OF_getprop_alloc is to be
a combination of malloc + OF_getprop with the same semantic of return
value. This patch modifies API signature to match these expectations.

For the valid use cases with element size != 1 and to reduce
modification scope new OF_getprop_alloc_multi function has been
introduced that behaves the same way OF_getprop_alloc behaved prior to
this patch.

Reviewed by:	ian, manu
Differential Revision:	https://reviews.freebsd.org/D14850
2018-04-08 22:59:34 +00:00
..
at91dci.c
at91dci.h
at91dci_atmelarm.c
at91dci_fdt.c
atmegadci.c
atmegadci.h
atmegadci_atmelarm.c
avr32dci.c
avr32dci.h
dwc_otg.c
dwc_otg.h
dwc_otg_fdt.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
dwc_otg_fdt.h
dwc_otg_hisi.c
dwc_otgreg.h
ehci.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
ehci.h
ehci_fsl.c Clean up OF_getprop_alloc API 2018-04-08 22:59:34 +00:00
ehci_imx.c Do not try to deallocate memory that wasn't allocated (you'd think that 2018-02-17 23:23:27 +00:00
ehci_ixp4xx.c
ehci_msm.c Add basic driver for Qualcomm USB 2.0 EHCI controller. 2018-01-25 16:58:23 +00:00
ehci_mv.c
ehci_pci.c
ehcireg.h
generic_ehci.c
generic_ohci.c Convert extres/phy to kobj model. 2018-01-20 17:02:17 +00:00
generic_usb_if.m
musb_otg.c If sc->sc_ep_max is already set use it to find the number of RX and TX 2018-03-23 11:08:59 +00:00
musb_otg.h Use a table to find the endpoint configuration 2018-03-21 15:17:54 +00:00
musb_otg_atmelarm.c
ohci.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
ohci.h
ohci_pci.c
ohci_s3c24x0.c
ohcireg.h
saf1761_otg.c
saf1761_otg.h
saf1761_otg_boot.c
saf1761_otg_fdt.c
saf1761_otg_reg.h
uhci.c
uhci.h
uhci_pci.c
uhcireg.h
usb_controller.c
uss820dci.c
uss820dci.h
uss820dci_atmelarm.c
xhci.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
xhci.h
xhci_mv.c
xhci_pci.c Add AHCI/XHCI device IDs found on AMD 1950X+X399 system 2017-12-29 22:24:41 +00:00
xhcireg.h