/freebsd-12-stable/sys/dev/usb/controller/ |
H A D | generic_ehci.c | 87 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 89 if (!sc->sc_io_res) { 94 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 95 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 96 sc->sc_io_size = rman_get_size(sc->sc_io_res); 165 if (sc->sc_io_res) { 167 sc->sc_io_res); 168 sc->sc_io_res = NULL;
|
H A D | generic_xhci.c | 116 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 118 if (sc->sc_io_res == NULL) { 124 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 125 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 126 sc->sc_io_size = rman_get_size(sc->sc_io_res); 211 if (sc->sc_io_res != NULL) { 213 rman_get_rid(sc->sc_io_res), sc->sc_io_res); 214 sc->sc_io_res = NULL;
|
H A D | dwc_otg_fdt.c | 134 sc->sc_otg.sc_io_res = 137 if (!(sc->sc_otg.sc_io_res)) { 141 sc->sc_otg.sc_io_tag = rman_get_bustag(sc->sc_otg.sc_io_res); 142 sc->sc_otg.sc_io_hdl = rman_get_bushandle(sc->sc_otg.sc_io_res); 143 sc->sc_otg.sc_io_size = rman_get_size(sc->sc_otg.sc_io_res); 214 if (sc->sc_otg.sc_io_res) { 216 sc->sc_otg.sc_io_res); 217 sc->sc_otg.sc_io_res = NULL;
|
H A D | ohci_s3c24x0.c | 100 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 103 if (!(sc->sc_io_res)) { 107 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 108 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 109 sc->sc_io_size = rman_get_size(sc->sc_io_res); 183 if (sc->sc_io_res) { 185 sc->sc_io_res); 186 sc->sc_io_res = NULL;
|
H A D | saf1761_otg_fdt.c | 185 sc->sc_io_res = 188 if (sc->sc_io_res == NULL) 191 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 192 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 193 sc->sc_io_size = rman_get_size(sc->sc_io_res); 261 if (sc->sc_io_res) { 263 sc->sc_io_res); 264 sc->sc_io_res = NULL;
|
H A D | ehci_mv.c | 174 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); 175 if (!sc->sc_io_res) { 179 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 180 bsh = rman_get_bushandle(sc->sc_io_res); 181 sc->sc_io_size = rman_get_size(sc->sc_io_res) - MV_USB_HOST_OFST; 293 if (sc->sc_io_res) { 326 if (sc->sc_io_res) { 328 sc->sc_io_res); 329 sc->sc_io_res = NULL;
|
H A D | uhci_pci.c | 288 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, 290 if (!sc->sc_io_res) { 294 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 295 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 296 sc->sc_io_size = rman_get_size(sc->sc_io_res); 406 if (sc->sc_io_res) { 430 if (sc->sc_io_res) { 432 sc->sc_io_res); 433 sc->sc_io_res = NULL;
|
H A D | xhci_pci.c | 237 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 239 if (!sc->sc_io_res) { 243 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 244 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 245 sc->sc_io_size = rman_get_size(sc->sc_io_res); 276 sc->sc_io_res); 287 sc->sc_msix_res = sc->sc_io_res; 304 if (sc->sc_msix_res != sc->sc_io_res) { 404 if (sc->sc_msix_res != NULL && sc->sc_msix_res != sc->sc_io_res) { 409 if (sc->sc_io_res) { [all...] |
H A D | generic_ohci.c | 138 sc->ohci_sc.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 140 if (sc->ohci_sc.sc_io_res == 0) { 145 sc->ohci_sc.sc_io_tag = rman_get_bustag(sc->ohci_sc.sc_io_res); 146 sc->ohci_sc.sc_io_hdl = rman_get_bushandle(sc->ohci_sc.sc_io_res); 147 sc->ohci_sc.sc_io_size = rman_get_size(sc->ohci_sc.sc_io_res); 279 if (sc->ohci_sc.sc_io_res) { 281 sc->ohci_sc.sc_io_res); 282 sc->ohci_sc.sc_io_res = NULL;
|
H A D | ohci_pci.c | 239 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 241 if (!sc->sc_io_res) { 245 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 246 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 247 sc->sc_io_size = rman_get_size(sc->sc_io_res); 369 if (sc->sc_io_res) { 371 sc->sc_io_res); 372 sc->sc_io_res = NULL;
|
H A D | ehci_fsl.c | 251 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 253 if (sc->sc_io_res == NULL) { 262 iot = rman_get_bustag(sc->sc_io_res); 268 ioh = rman_get_bushandle(sc->sc_io_res); 420 if (sc->sc_io_res) { 421 bus_release_resource(self, SYS_RES_MEMORY, 0, sc->sc_io_res); 422 sc->sc_io_res = NULL;
|
/freebsd-12-stable/sys/dev/bhnd/cores/usb/ |
H A D | bhnd_ehci.c | 136 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 138 if (!sc->sc_io_res) { 142 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 143 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 144 sc->sc_io_size = rman_get_size(sc->sc_io_res); 207 if (sc->sc_io_res) { 230 if (sc->sc_io_res) { 231 bus_release_resource(self, SYS_RES_MEMORY, 0, sc->sc_io_res); 232 sc->sc_io_res = NULL;
|
H A D | bhnd_ohci.c | 115 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 117 if (!sc->sc_io_res) { 121 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 122 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 123 sc->sc_io_size = rman_get_size(sc->sc_io_res); 193 if (sc->sc_io_res) { 195 sc->sc_io_res); 196 sc->sc_io_res = NULL;
|
/freebsd-12-stable/sys/arm/ti/usb/ |
H A D | omap_ehci.c | 155 return (bus_read_4(sc->base.sc_io_res, off)); 161 bus_write_4(sc->base.sc_io_res, off, val); 331 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 332 if (!sc->sc_io_res) { 362 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 363 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 364 sc->sc_io_size = rman_get_size(sc->sc_io_res); 419 if (sc->sc_io_res) { 440 if (sc->sc_io_res) { 441 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_io_res); [all...] |
/freebsd-12-stable/sys/mips/atheros/ |
H A D | ar71xx_ohci.c | 105 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 107 if (sc->sc_ohci.sc_io_res == NULL) { 111 sc->sc_ohci.sc_io_tag = rman_get_bustag(sc->sc_ohci.sc_io_res); 112 sc->sc_ohci.sc_io_hdl = rman_get_bushandle(sc->sc_ohci.sc_io_res); 113 sc->sc_ohci.sc_io_size = rman_get_size(sc->sc_ohci.sc_io_res); 191 if (sc->sc_ohci.sc_io_res) { 192 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_ohci.sc_io_res); 193 sc->sc_ohci.sc_io_res = NULL;
|
H A D | ar71xx_ehci.c | 135 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); 136 if (!sc->sc_io_res) { 146 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 147 sc->sc_io_size = rman_get_size(sc->sc_io_res); 260 if (sc->sc_io_res) { 262 sc->sc_io_res); 263 sc->sc_io_res = NULL;
|
/freebsd-12-stable/sys/mips/mediatek/ |
H A D | mtk_dotg.c | 110 sc->sc_io_res = 112 if (!(sc->sc_io_res)) { 116 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 117 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 118 sc->sc_io_size = rman_get_size(sc->sc_io_res); 184 if (sc->sc_io_res) { 186 sc->sc_io_res); 187 sc->sc_io_res = NULL;
|
H A D | mtk_ehci.c | 110 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 112 if (!sc->sc_io_res) { 116 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 117 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 118 sc->sc_io_size = rman_get_size(sc->sc_io_res); 187 if (sc->sc_io_res) { 189 sc->sc_io_res); 190 sc->sc_io_res = NULL;
|
H A D | mtk_ohci.c | 110 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 112 if (!sc->sc_io_res) { 116 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 117 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 118 sc->sc_io_size = rman_get_size(sc->sc_io_res); 187 if (sc->sc_io_res) { 189 sc->sc_io_res); 190 sc->sc_io_res = NULL;
|
H A D | mtk_xhci.c | 104 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 106 if (!sc->sc_io_res) { 110 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 111 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 112 sc->sc_io_size = rman_get_size(sc->sc_io_res); 186 if (sc->sc_io_res) { 188 sc->sc_io_res); 189 sc->sc_io_res = NULL; 251 #define RD4(_sc, _reg) bus_read_4((_sc)->sc_io_res, (_reg)) 252 #define WR4(_sc, _reg, _val) bus_write_4((_sc)->sc_io_res, (_re [all...] |
/freebsd-12-stable/sys/powerpc/ps3/ |
H A D | ehci_ps3.c | 113 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 116 if (!sc->sc_io_res) { 121 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 122 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 123 sc->sc_io_size = rman_get_size(sc->sc_io_res);
|
H A D | ohci_ps3.c | 98 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, 101 if (!sc->sc_io_res) { 106 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 107 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 108 sc->sc_io_size = rman_get_size(sc->sc_io_res);
|
/freebsd-12-stable/sys/mips/ingenic/ |
H A D | jz4780_ohci.c | 185 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 187 if (sc->sc_ohci.sc_io_res == NULL) { 191 sc->sc_ohci.sc_io_tag = rman_get_bustag(sc->sc_ohci.sc_io_res); 192 sc->sc_ohci.sc_io_hdl = rman_get_bushandle(sc->sc_ohci.sc_io_res); 193 sc->sc_ohci.sc_io_size = rman_get_size(sc->sc_ohci.sc_io_res); 264 if (sc->sc_ohci.sc_io_res != NULL) { 283 if (sc->sc_ohci.sc_io_res) { 284 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_ohci.sc_io_res); 285 sc->sc_ohci.sc_io_res = NULL;
|
H A D | jz4780_ehci.c | 200 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 201 if (!sc->sc_io_res) { 210 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); 211 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); 212 sc->sc_io_size = rman_get_size(sc->sc_io_res); 309 if (sc->sc_io_res) { 311 sc->sc_io_res); 312 sc->sc_io_res = NULL;
|
/freebsd-12-stable/sys/dev/rccgpio/ |
H A D | rccgpio.c | 73 struct resource *sc_io_res; member in struct:rcc_gpio_softc 287 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, 289 if (sc->sc_io_res == NULL) { 293 sc->sc_bst = rman_get_bustag(sc->sc_io_res); 294 sc->sc_bsh = rman_get_bushandle(sc->sc_io_res); 316 sc->sc_io_res); 337 if (sc->sc_io_res != NULL) 339 sc->sc_io_res);
|