/freebsd/sys/dev/usb/controller/ |
H A D | generic_xhci.c | 81 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in generic_xhci_attach() 83 if (sc->sc_io_res == NULL) { in generic_xhci_attach() 89 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in generic_xhci_attach() 90 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in generic_xhci_attach() 91 sc->sc_io_size = rman_get_size(sc->sc_io_res); in generic_xhci_attach() 172 if (sc->sc_io_res != NULL) { in generic_xhci_detach() 174 rman_get_rid(sc->sc_io_res), sc->sc_io_res); in generic_xhci_detach() 175 sc->sc_io_res = NULL; in generic_xhci_detach()
|
H A D | generic_ehci.c | 84 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in generic_ehci_attach() 86 if (!sc->sc_io_res) { in generic_ehci_attach() 91 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in generic_ehci_attach() 92 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in generic_ehci_attach() 93 sc->sc_io_size = rman_get_size(sc->sc_io_res); in generic_ehci_attach() 164 if (sc->sc_io_res) { in generic_ehci_detach() 166 sc->sc_io_res); in generic_ehci_detach() 167 sc->sc_io_res = NULL; in generic_ehci_detach()
|
H A D | xhci_pci.c | 294 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in xhci_pci_attach() 296 if (!sc->sc_io_res) { in xhci_pci_attach() 300 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in xhci_pci_attach() 301 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in xhci_pci_attach() 302 sc->sc_io_size = rman_get_size(sc->sc_io_res); in xhci_pci_attach() 339 sc->sc_io_res); in xhci_pci_attach() 350 sc->sc_msix_res = sc->sc_io_res; in xhci_pci_attach() 367 if (sc->sc_msix_res != sc->sc_io_res) { in xhci_pci_attach() 490 if (sc->sc_msix_res != NULL && sc->sc_msix_res != sc->sc_io_res) { in xhci_pci_detach() 495 if (sc->sc_io_res) { in xhci_pci_detach() [all …]
|
H A D | uhci_pci.c | 305 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, in uhci_pci_attach() 307 if (!sc->sc_io_res) { in uhci_pci_attach() 311 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in uhci_pci_attach() 312 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in uhci_pci_attach() 313 sc->sc_io_size = rman_get_size(sc->sc_io_res); in uhci_pci_attach() 427 if (sc->sc_io_res) { in uhci_pci_detach() 451 if (sc->sc_io_res) { in uhci_pci_detach() 453 sc->sc_io_res); in uhci_pci_detach() 454 sc->sc_io_res = NULL; in uhci_pci_detach()
|
H A D | ehci_mv.c | 171 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); in mv_ehci_attach() 172 if (!sc->sc_io_res) { in mv_ehci_attach() 176 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in mv_ehci_attach() 177 bsh = rman_get_bushandle(sc->sc_io_res); in mv_ehci_attach() 178 sc->sc_io_size = rman_get_size(sc->sc_io_res) - MV_USB_HOST_OFST; in mv_ehci_attach() 292 if (sc->sc_io_res) { in mv_ehci_detach() 325 if (sc->sc_io_res) { in mv_ehci_detach() 327 sc->sc_io_res); in mv_ehci_detach() 328 sc->sc_io_res = NULL; in mv_ehci_detach()
|
H A D | ohci_pci.c | 225 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in ohci_pci_attach() 227 if (!sc->sc_io_res) { in ohci_pci_attach() 231 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ohci_pci_attach() 232 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_pci_attach() 233 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ohci_pci_attach() 350 if (sc->sc_io_res) { in ohci_pci_detach() 352 sc->sc_io_res); in ohci_pci_detach() 353 sc->sc_io_res = NULL; in ohci_pci_detach()
|
H A D | dwc_otg_acpi.c | 99 sc->sc_io_res = in dwc_otg_attach() 102 if (sc->sc_io_res == NULL) in dwc_otg_attach() 153 if (sc->sc_io_res) { in dwc_otg_detach() 155 sc->sc_io_res); in dwc_otg_detach() 156 sc->sc_io_res = NULL; in dwc_otg_detach()
|
H A D | generic_ohci.c | 126 sc->ohci_sc.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in generic_ohci_attach() 128 if (sc->ohci_sc.sc_io_res == 0) { in generic_ohci_attach() 133 sc->ohci_sc.sc_io_tag = rman_get_bustag(sc->ohci_sc.sc_io_res); in generic_ohci_attach() 134 sc->ohci_sc.sc_io_hdl = rman_get_bushandle(sc->ohci_sc.sc_io_res); in generic_ohci_attach() 135 sc->ohci_sc.sc_io_size = rman_get_size(sc->ohci_sc.sc_io_res); in generic_ohci_attach() 265 if (sc->ohci_sc.sc_io_res) { in generic_ohci_detach() 267 sc->ohci_sc.sc_io_res); in generic_ohci_detach() 268 sc->ohci_sc.sc_io_res = NULL; in generic_ohci_detach()
|
H A D | ehci_pci.c | 345 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in ehci_pci_attach() 347 if (!sc->sc_io_res) { in ehci_pci_attach() 351 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ehci_pci_attach() 352 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_pci_attach() 353 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ehci_pci_attach() 534 if (sc->sc_io_res) { in ehci_pci_detach() 536 sc->sc_io_res); in ehci_pci_detach() 537 sc->sc_io_res = NULL; in ehci_pci_detach()
|
H A D | dwc_otg_fdt.c | 121 sc->sc_otg.sc_io_res = in dwc_otg_attach() 124 if (!(sc->sc_otg.sc_io_res)) in dwc_otg_attach() 189 if (sc->sc_otg.sc_io_res) { in dwc_otg_detach() 191 sc->sc_otg.sc_io_res); in dwc_otg_detach() 192 sc->sc_otg.sc_io_res = NULL; in dwc_otg_detach()
|
H A D | ehci_fsl.c | 245 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in fsl_ehci_attach() 247 if (sc->sc_io_res == NULL) { in fsl_ehci_attach() 256 iot = rman_get_bustag(sc->sc_io_res); in fsl_ehci_attach() 262 ioh = rman_get_bushandle(sc->sc_io_res); in fsl_ehci_attach() 410 if (sc->sc_io_res) { in fsl_ehci_detach() 411 bus_release_resource(self, SYS_RES_MEMORY, 0, sc->sc_io_res); in fsl_ehci_detach() 412 sc->sc_io_res = NULL; in fsl_ehci_detach()
|
H A D | ehci_msm.c | 192 if (sc->sc_io_res) { in ehci_msm_detach() 194 sc->sc_io_res); in ehci_msm_detach() 195 sc->sc_io_res = NULL; in ehci_msm_detach()
|
H A D | uhci.h | 223 struct resource *sc_io_res; member
|
H A D | atmegadci.h | 265 struct resource *sc_io_res; member
|
H A D | dwc_otg.h | 170 struct resource *sc_io_res; member
|
H A D | ohci.h | 231 struct resource *sc_io_res; member
|
H A D | avr32dci.h | 233 struct resource *sc_io_res; member
|
H A D | uss820dci.h | 336 struct resource *sc_io_res; member
|
/freebsd/sys/arm/ti/usb/ |
H A D | omap_ehci.c | 152 return (bus_read_4(sc->base.sc_io_res, off)); in omap_ehci_read_4() 158 bus_write_4(sc->base.sc_io_res, off, val); in omap_ehci_write_4() 326 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in omap_ehci_attach() 327 if (!sc->sc_io_res) { in omap_ehci_attach() 357 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in omap_ehci_attach() 358 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in omap_ehci_attach() 359 sc->sc_io_size = rman_get_size(sc->sc_io_res); in omap_ehci_attach() 416 if (sc->sc_io_res) { in omap_ehci_detach() 437 if (sc->sc_io_res) { in omap_ehci_detach() 438 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_io_res); in omap_ehci_detach() [all …]
|
/freebsd/sys/powerpc/ps3/ |
H A D | ohci_ps3.c | 94 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ohci_ps3_attach() 97 if (!sc->sc_io_res) { in ohci_ps3_attach() 102 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ohci_ps3_attach() 103 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_ps3_attach() 104 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ohci_ps3_attach()
|
H A D | ehci_ps3.c | 104 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ehci_ps3_attach() 107 if (!sc->sc_io_res) { in ehci_ps3_attach() 112 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ehci_ps3_attach() 113 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_ps3_attach() 114 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ehci_ps3_attach()
|
/freebsd/sys/dev/rccgpio/ |
H A D | rccgpio.c | 71 struct resource *sc_io_res; member 285 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in rcc_gpio_attach() 287 if (sc->sc_io_res == NULL) { in rcc_gpio_attach() 291 sc->sc_bst = rman_get_bustag(sc->sc_io_res); in rcc_gpio_attach() 292 sc->sc_bsh = rman_get_bushandle(sc->sc_io_res); in rcc_gpio_attach() 314 sc->sc_io_res); in rcc_gpio_attach() 335 if (sc->sc_io_res != NULL) in rcc_gpio_detach() 337 sc->sc_io_res); in rcc_gpio_detach()
|
/freebsd/sys/arm/xilinx/ |
H A D | zy7_ehci.c | 233 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in zy7_ehci_attach() 235 if (sc->sc_io_res == NULL) { in zy7_ehci_attach() 241 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in zy7_ehci_attach() 242 bsh = rman_get_bushandle(sc->sc_io_res); in zy7_ehci_attach() 338 if (sc->sc_io_res) in zy7_ehci_detach() 340 rman_get_rid(sc->sc_io_res), sc->sc_io_res); in zy7_ehci_detach()
|
/freebsd/sys/arm/nvidia/ |
H A D | tegra_xhci.c | 864 base_addr = rman_get_start(sc->xhci_softc.sc_io_res); in init_hw() 943 if (xsc->sc_io_res != NULL) { in tegra_xhci_detach() 945 rman_get_rid(xsc->sc_io_res), xsc->sc_io_res); in tegra_xhci_detach() 946 xsc->sc_io_res = NULL; in tegra_xhci_detach() 987 xsc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in tegra_xhci_attach() 989 if (xsc->sc_io_res == NULL) { in tegra_xhci_attach() 1049 xsc->sc_io_tag = rman_get_bustag(xsc->sc_io_res); in tegra_xhci_attach() 1050 xsc->sc_io_hdl = rman_get_bushandle(xsc->sc_io_res); in tegra_xhci_attach() 1051 xsc->sc_io_size = rman_get_size(xsc->sc_io_res); in tegra_xhci_attach()
|
/freebsd/sys/arm/ti/am335x/ |
H A D | am335x_musb.c | 322 sc->sc_otg.sc_io_res = sc->sc_mem_res[RES_USBCORE]; in musbotg_attach() 324 rman_get_bustag(sc->sc_otg.sc_io_res); in musbotg_attach() 326 rman_get_bushandle(sc->sc_otg.sc_io_res); in musbotg_attach() 328 rman_get_size(sc->sc_otg.sc_io_res); in musbotg_attach()
|