| /freebsd-10-stable/sys/dev/usb/controller/ |
| D | ohci_s3c24x0.c | 98 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in ohci_s3c24x0_attach() 101 if (!(sc->sc_io_res)) { in ohci_s3c24x0_attach() 105 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ohci_s3c24x0_attach() 106 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_s3c24x0_attach() 107 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ohci_s3c24x0_attach() 181 if (sc->sc_io_res) { in ohci_s3c24x0_detach() 183 sc->sc_io_res); in ohci_s3c24x0_detach() 184 sc->sc_io_res = NULL; in ohci_s3c24x0_detach()
|
| D | uss820dci_atmelarm.c | 118 sc->sc_io_res = in uss820_atmelarm_attach() 121 if (!sc->sc_io_res) { in uss820_atmelarm_attach() 124 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in uss820_atmelarm_attach() 125 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in uss820_atmelarm_attach() 126 sc->sc_io_size = rman_get_size(sc->sc_io_res); in uss820_atmelarm_attach() 192 if (sc->sc_io_res) { in uss820_atmelarm_detach() 194 sc->sc_io_res); in uss820_atmelarm_detach() 195 sc->sc_io_res = NULL; in uss820_atmelarm_detach()
|
| D | dwc_otg_atmelarm.c | 96 sc->sc_otg.sc_io_res = in dwc_otg_attach() 99 if (!(sc->sc_otg.sc_io_res)) { in dwc_otg_attach() 103 sc->sc_otg.sc_io_tag = rman_get_bustag(sc->sc_otg.sc_io_res); in dwc_otg_attach() 104 sc->sc_otg.sc_io_hdl = rman_get_bushandle(sc->sc_otg.sc_io_res); in dwc_otg_attach() 105 sc->sc_otg.sc_io_size = rman_get_size(sc->sc_otg.sc_io_res); in dwc_otg_attach() 170 if (sc->sc_otg.sc_io_res) { in dwc_otg_detach() 172 sc->sc_otg.sc_io_res); in dwc_otg_detach() 173 sc->sc_otg.sc_io_res = NULL; in dwc_otg_detach()
|
| D | dwc_otg_fdt.c | 105 sc->sc_otg.sc_io_res = in dwc_otg_attach() 108 if (!(sc->sc_otg.sc_io_res)) { in dwc_otg_attach() 112 sc->sc_otg.sc_io_tag = rman_get_bustag(sc->sc_otg.sc_io_res); in dwc_otg_attach() 113 sc->sc_otg.sc_io_hdl = rman_get_bushandle(sc->sc_otg.sc_io_res); in dwc_otg_attach() 114 sc->sc_otg.sc_io_size = rman_get_size(sc->sc_otg.sc_io_res); in dwc_otg_attach() 180 if (sc->sc_otg.sc_io_res) { in dwc_otg_detach() 182 sc->sc_otg.sc_io_res); in dwc_otg_detach() 183 sc->sc_otg.sc_io_res = NULL; in dwc_otg_detach()
|
| D | uhci_pci.c | 286 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, in uhci_pci_attach() 288 if (!sc->sc_io_res) { in uhci_pci_attach() 292 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in uhci_pci_attach() 293 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in uhci_pci_attach() 294 sc->sc_io_size = rman_get_size(sc->sc_io_res); in uhci_pci_attach() 404 if (sc->sc_io_res) { in uhci_pci_detach() 428 if (sc->sc_io_res) { in uhci_pci_detach() 430 sc->sc_io_res); in uhci_pci_detach() 431 sc->sc_io_res = NULL; in uhci_pci_detach()
|
| D | ohci_fdt.c | 116 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ohci_at91_fdt_attach() 119 if (!(sc->sc_ohci.sc_io_res)) { in ohci_at91_fdt_attach() 123 sc->sc_ohci.sc_io_tag = rman_get_bustag(sc->sc_ohci.sc_io_res); in ohci_at91_fdt_attach() 124 sc->sc_ohci.sc_io_hdl = rman_get_bushandle(sc->sc_ohci.sc_io_res); in ohci_at91_fdt_attach() 125 sc->sc_ohci.sc_io_size = rman_get_size(sc->sc_ohci.sc_io_res); in ohci_at91_fdt_attach() 185 if (sc->sc_ohci.sc_io_res != NULL) { in ohci_at91_fdt_detach() 219 if (sc->sc_ohci.sc_io_res) { in ohci_at91_fdt_detach() 221 sc->sc_ohci.sc_io_res); in ohci_at91_fdt_detach() 222 sc->sc_ohci.sc_io_res = NULL; in ohci_at91_fdt_detach()
|
| D | ehci_mv.c | 138 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); in mv_ehci_attach() 139 if (!sc->sc_io_res) { in mv_ehci_attach() 143 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in mv_ehci_attach() 144 bsh = rman_get_bushandle(sc->sc_io_res); in mv_ehci_attach() 145 sc->sc_io_size = rman_get_size(sc->sc_io_res) - MV_USB_HOST_OFST; in mv_ehci_attach() 253 if (sc->sc_io_res) { in mv_ehci_detach() 286 if (sc->sc_io_res) { in mv_ehci_detach() 288 sc->sc_io_res); in mv_ehci_detach() 289 sc->sc_io_res = NULL; in mv_ehci_detach()
|
| D | musb_otg_atmelarm.c | 148 sc->sc_otg.sc_io_res = in musbotg_attach() 151 if (!(sc->sc_otg.sc_io_res)) { in musbotg_attach() 155 sc->sc_otg.sc_io_tag = rman_get_bustag(sc->sc_otg.sc_io_res); in musbotg_attach() 156 sc->sc_otg.sc_io_hdl = rman_get_bushandle(sc->sc_otg.sc_io_res); in musbotg_attach() 157 sc->sc_otg.sc_io_size = rman_get_size(sc->sc_otg.sc_io_res); in musbotg_attach() 229 if (sc->sc_otg.sc_io_res) { in musbotg_detach() 231 sc->sc_otg.sc_io_res); in musbotg_detach() 232 sc->sc_otg.sc_io_res = NULL; in musbotg_detach()
|
| D | atmegadci_atmelarm.c | 112 sc->sc_otg.sc_io_res = in atmegadci_attach() 115 if (!(sc->sc_otg.sc_io_res)) { in atmegadci_attach() 119 sc->sc_otg.sc_io_tag = rman_get_bustag(sc->sc_otg.sc_io_res); in atmegadci_attach() 120 sc->sc_otg.sc_io_hdl = rman_get_bushandle(sc->sc_otg.sc_io_res); in atmegadci_attach() 180 if (sc->sc_otg.sc_io_res) { in atmegadci_detach() 182 sc->sc_otg.sc_io_res); in atmegadci_detach() 183 sc->sc_otg.sc_io_res = NULL; in atmegadci_detach()
|
| D | ohci_atmelarm.c | 110 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ohci_atmelarm_attach() 113 if (!(sc->sc_ohci.sc_io_res)) { in ohci_atmelarm_attach() 117 sc->sc_ohci.sc_io_tag = rman_get_bustag(sc->sc_ohci.sc_io_res); in ohci_atmelarm_attach() 118 sc->sc_ohci.sc_io_hdl = rman_get_bushandle(sc->sc_ohci.sc_io_res); in ohci_atmelarm_attach() 119 sc->sc_ohci.sc_io_size = rman_get_size(sc->sc_ohci.sc_io_res); in ohci_atmelarm_attach() 211 if (sc->sc_ohci.sc_io_res) { in ohci_atmelarm_detach() 213 sc->sc_ohci.sc_io_res); in ohci_atmelarm_detach() 214 sc->sc_ohci.sc_io_res = NULL; in ohci_atmelarm_detach()
|
| D | ohci_pci.c | 234 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in ohci_pci_attach() 236 if (!sc->sc_io_res) { in ohci_pci_attach() 240 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ohci_pci_attach() 241 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_pci_attach() 242 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ohci_pci_attach() 361 if (sc->sc_io_res) { in ohci_pci_detach() 363 sc->sc_io_res); in ohci_pci_detach() 364 sc->sc_io_res = NULL; in ohci_pci_detach()
|
| D | xhci_pci.c | 211 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in xhci_pci_attach() 213 if (!sc->sc_io_res) { in xhci_pci_attach() 217 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in xhci_pci_attach() 218 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in xhci_pci_attach() 219 sc->sc_io_size = rman_get_size(sc->sc_io_res); in xhci_pci_attach() 250 sc->sc_io_res); in xhci_pci_attach() 350 if (sc->sc_io_res) { in xhci_pci_detach() 352 sc->sc_io_res); in xhci_pci_detach() 353 sc->sc_io_res = NULL; in xhci_pci_detach()
|
| D | at91dci_atmelarm.c | 193 sc->sc_dci.sc_io_res = in at91_udp_attach() 196 if (!(sc->sc_dci.sc_io_res)) { in at91_udp_attach() 200 sc->sc_dci.sc_io_tag = rman_get_bustag(sc->sc_dci.sc_io_res); in at91_udp_attach() 201 sc->sc_dci.sc_io_hdl = rman_get_bushandle(sc->sc_dci.sc_io_res); in at91_udp_attach() 202 sc->sc_dci.sc_io_size = rman_get_size(sc->sc_dci.sc_io_res); in at91_udp_attach() 279 if (sc->sc_dci.sc_io_res) { in at91_udp_detach() 281 sc->sc_dci.sc_io_res); in at91_udp_detach() 282 sc->sc_dci.sc_io_res = NULL; in at91_udp_detach()
|
| D | at91dci_fdt.c | 199 sc->sc_dci.sc_io_res = in at91_udp_attach() 202 if (!(sc->sc_dci.sc_io_res)) { in at91_udp_attach() 206 sc->sc_dci.sc_io_tag = rman_get_bustag(sc->sc_dci.sc_io_res); in at91_udp_attach() 207 sc->sc_dci.sc_io_hdl = rman_get_bushandle(sc->sc_dci.sc_io_res); in at91_udp_attach() 208 sc->sc_dci.sc_io_size = rman_get_size(sc->sc_dci.sc_io_res); in at91_udp_attach() 285 if (sc->sc_dci.sc_io_res) { in at91_udp_detach() 287 sc->sc_dci.sc_io_res); in at91_udp_detach() 288 sc->sc_dci.sc_io_res = NULL; in at91_udp_detach()
|
| D | ehci_pci.c | 326 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in ehci_pci_attach() 328 if (!sc->sc_io_res) { in ehci_pci_attach() 332 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ehci_pci_attach() 333 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_pci_attach() 334 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ehci_pci_attach() 508 if (sc->sc_io_res) { in ehci_pci_detach() 510 sc->sc_io_res); in ehci_pci_detach() 511 sc->sc_io_res = NULL; in ehci_pci_detach()
|
| D | ehci_ixp4xx.c | 121 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); in ehci_ixp_attach() 122 if (!sc->sc_io_res) { in ehci_ixp_attach() 134 isc->iot = rman_get_bustag(sc->sc_io_res); in ehci_ixp_attach() 146 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_ixp_attach() 234 if (sc->sc_io_res) { in ehci_ixp_detach() 236 sc->sc_io_res); in ehci_ixp_detach() 237 sc->sc_io_res = NULL; in ehci_ixp_detach()
|
| /freebsd-10-stable/sys/arm/cavium/cns11xx/ |
| D | ehci_ebus.c | 116 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, in ehci_ebus_attach() 118 if (!sc->sc_io_res) { in ehci_ebus_attach() 122 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ehci_ebus_attach() 123 bsh = rman_get_bushandle(sc->sc_io_res); in ehci_ebus_attach() 196 if (sc->sc_io_res) { in ehci_ebus_detach() 217 if (sc->sc_io_res) { in ehci_ebus_detach() 219 sc->sc_io_res); in ehci_ebus_detach() 220 sc->sc_io_res = NULL; in ehci_ebus_detach()
|
| D | ohci_ec.c | 105 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ohci_ec_attach() 108 if (!(sc->sc_ohci.sc_io_res)) { in ohci_ec_attach() 112 sc->sc_ohci.sc_io_tag = rman_get_bustag(sc->sc_ohci.sc_io_res); in ohci_ec_attach() 113 bsh = rman_get_bushandle(sc->sc_ohci.sc_io_res); in ohci_ec_attach() 121 sc->sc_ohci.sc_io_size = rman_get_size(sc->sc_ohci.sc_io_res); in ohci_ec_attach() 203 if (sc->sc_ohci.sc_io_res) { in ohci_ec_detach() 205 sc->sc_ohci.sc_io_res); in ohci_ec_detach() 206 sc->sc_ohci.sc_io_res = NULL; in ohci_ec_detach()
|
| /freebsd-10-stable/sys/mips/atheros/ |
| D | ar71xx_ohci.c | 90 sc->sc_ohci.sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in ar71xx_ohci_attach() 92 if (sc->sc_ohci.sc_io_res == NULL) { in ar71xx_ohci_attach() 96 sc->sc_ohci.sc_io_tag = rman_get_bustag(sc->sc_ohci.sc_io_res); in ar71xx_ohci_attach() 97 sc->sc_ohci.sc_io_hdl = rman_get_bushandle(sc->sc_ohci.sc_io_res); in ar71xx_ohci_attach() 98 sc->sc_ohci.sc_io_size = rman_get_size(sc->sc_ohci.sc_io_res); in ar71xx_ohci_attach() 176 if (sc->sc_ohci.sc_io_res) { in ar71xx_ohci_detach() 177 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_ohci.sc_io_res); in ar71xx_ohci_detach() 178 sc->sc_ohci.sc_io_res = NULL; in ar71xx_ohci_detach()
|
| D | ar71xx_ehci.c | 106 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); in ar71xx_ehci_attach() 107 if (!sc->sc_io_res) { in ar71xx_ehci_attach() 117 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ar71xx_ehci_attach() 118 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ar71xx_ehci_attach() 223 if (sc->sc_io_res) { in ar71xx_ehci_detach() 225 sc->sc_io_res); in ar71xx_ehci_detach() 226 sc->sc_io_res = NULL; in ar71xx_ehci_detach()
|
| /freebsd-10-stable/sys/arm/allwinner/ |
| D | a10_ehci.c | 133 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE); in a10_ehci_attach() 134 if (!sc->sc_io_res) { in a10_ehci_attach() 139 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in a10_ehci_attach() 140 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in a10_ehci_attach() 141 bsh = rman_get_bushandle(sc->sc_io_res); in a10_ehci_attach() 143 sc->sc_io_size = rman_get_size(sc->sc_io_res); in a10_ehci_attach() 252 if (sc->sc_io_res) { in a10_ehci_detach() 254 sc->sc_io_res); in a10_ehci_detach() 255 sc->sc_io_res = NULL; in a10_ehci_detach()
|
| /freebsd-10-stable/sys/mips/rmi/ |
| D | xls_ehci.c | 105 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, in ehci_xls_attach() 107 if (!sc->sc_io_res) { in ehci_xls_attach() 111 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ehci_xls_attach() 112 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_xls_attach() 186 if (sc->sc_io_res) { in ehci_xls_detach() 188 sc->sc_io_res); in ehci_xls_detach() 189 sc->sc_io_res = NULL; in ehci_xls_detach()
|
| /freebsd-10-stable/sys/powerpc/ps3/ |
| D | ohci_ps3.c | 96 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ohci_ps3_attach() 99 if (!sc->sc_io_res) { in ohci_ps3_attach() 104 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ohci_ps3_attach() 105 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ohci_ps3_attach() 106 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ohci_ps3_attach()
|
| D | ehci_ps3.c | 100 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in ehci_ps3_attach() 103 if (!sc->sc_io_res) { in ehci_ps3_attach() 108 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in ehci_ps3_attach() 109 sc->sc_io_hdl = rman_get_bushandle(sc->sc_io_res); in ehci_ps3_attach() 110 sc->sc_io_size = rman_get_size(sc->sc_io_res); in ehci_ps3_attach()
|
| /freebsd-10-stable/sys/arm/xilinx/ |
| D | zy7_ehci.c | 228 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in zy7_ehci_attach() 230 if (sc->sc_io_res == NULL) { in zy7_ehci_attach() 236 sc->sc_io_tag = rman_get_bustag(sc->sc_io_res); in zy7_ehci_attach() 237 bsh = rman_get_bushandle(sc->sc_io_res); in zy7_ehci_attach() 332 if (sc->sc_io_res) in zy7_ehci_detach() 334 rman_get_rid(sc->sc_io_res), sc->sc_io_res); in zy7_ehci_detach()
|