/freebsd-9.3-release/sys/dev/ida/ |
H A D | ida_eisa.c | 277 int rid; local 317 rid = 0; 319 ida->irq = bus_alloc_resource_any(dev, ida->irq_res_type, &rid,
|
H A D | ida_pci.c | 239 int error, rid; local 279 rid = 0; 281 ida->irq = bus_alloc_resource_any(dev, ida->irq_res_type, &rid,
|
/freebsd-9.3-release/sys/dev/joy/ |
H A D | joy.c | 101 joy->rid = 0; 102 joy->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &joy->rid, 120 bus_release_resource(dev, SYS_RES_IOPORT, joy->rid, joy->res);
|
/freebsd-9.3-release/sys/dev/puc/ |
H A D | puc.c | 74 puc_get_bar(struct puc_softc *sc, int rid) argument 83 while (i < PUC_PCI_BARS && sc->sc_bar[i].b_rid != rid) 89 if (rid == -1) 96 bar->b_rid = rid; 101 bar->b_rid = rid; 474 puc_bus_alloc_resource(device_t dev, device_t child, int type, int *rid, argument 492 if (rid == NULL || *rid != 0) 528 puc_bus_release_resource(device_t dev, device_t child, int type, int rid, argument 544 if (rid ! 567 puc_bus_get_resource(device_t dev, device_t child, int type, int rid, u_long *startp, u_long *countp) argument [all...] |
/freebsd-9.3-release/sys/dev/sound/isa/ |
H A D | ess.c | 320 int rid; local 322 rid = 0; 325 &rid, RF_ACTIVE); 326 rid = 0; 329 &rid, RF_ACTIVE); 330 rid = 0; 333 &rid, RF_ACTIVE); 334 rid = 1; 337 &rid, RF_ACTIVE); 973 int rid, local [all...] |
/freebsd-9.3-release/sys/isa/ |
H A D | isa_common.c | 480 int rid; local 484 rid = rle->rid; 485 resource_list_alloc(rl, dev, child, rle->type, &rid, 912 rle->rid, 930 isa_set_resource(device_t dev, device_t child, int type, int rid, argument 939 if (rid < 0) 941 if (type == SYS_RES_IOPORT && rid >= ISA_NPORT) 943 if (type == SYS_RES_MEMORY && rid >= ISA_NMEM) 945 if (type == SYS_RES_IRQ && rid > [all...] |
/freebsd-9.3-release/sys/mips/atheros/ |
H A D | ar71xx_spi.c | 94 int rid; local 97 rid = 0; 98 sc->sc_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
|
/freebsd-9.3-release/sys/mips/cavium/octe/ |
H A D | ethernet-rgmii.c | 216 int rid; local 231 rid = 0; 233 &rid, CVMX_IRQ_RML,
|
H A D | ethernet-spi.c | 262 int rid; local 267 rid = 0; 269 &rid, CVMX_IRQ_RML,
|
/freebsd-9.3-release/sys/mips/cavium/ |
H A D | octeon_wdog.c | 168 int rid, error; local 175 rid = 0; 176 csc->csc_intr = bus_alloc_resource(sc->sc_dev, SYS_RES_IRQ, &rid,
|
H A D | ciu.c | 122 int rid; local 126 rid = 0; 127 sc->ciu_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, CIU_IRQ_HARD, 173 ciu_alloc_resource(device_t bus, device_t child, int type, int *rid, argument 185 return (bus_alloc_resource(device_get_parent(bus), type, rid,
|
/freebsd-9.3-release/sys/mips/cavium/usb/ |
H A D | octusb_octeon.c | 96 int rid; local 110 rid = 0; 112 bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
|
/freebsd-9.3-release/sys/mips/sibyte/ |
H A D | sb_scd.c | 272 int rid; local 278 rid = 0; 279 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, SCD_PHYSADDR,
|
/freebsd-9.3-release/sys/powerpc/powermac/ |
H A D | ata_macio.c | 157 int rid, i; local 177 rid = 0; 178 sc->sc_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
|
/freebsd-9.3-release/sys/sparc64/pci/ |
H A D | apb.c | 235 apb_alloc_resource(device_t dev, device_t child, int type, int *rid, argument 243 * If this is a "default" allocation against this rid, we can't work 249 "%s, bypassing\n", *rid, device_get_nameunit(child)); 290 return (bus_generic_alloc_resource(dev, child, type, rid, start, end,
|
H A D | sbbc.c | 325 int error, rid; local 341 rid = SBBC_PCI_BAR; 342 sc->sc_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 365 bus_release_resource(dev, SYS_RES_MEMORY, rid, 400 int *rid, u_long start, u_long end, u_long count, u_int flags) 407 return (bus_generic_alloc_resource(dev, dev, type, rid, start, 417 sbbc_bus_activate_resource(device_t bus, device_t child, int type, int rid, argument 423 return (bus_generic_activate_resource(bus, child, type, rid, res)); 427 sbbc_bus_deactivate_resource(device_t bus, device_t child, int type, int rid, argument 433 return (bus_generic_deactivate_resource(bus, child, type, rid, re 399 sbbc_bus_alloc_resource(device_t dev, device_t child __unused, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument 446 sbbc_bus_release_resource(device_t dev, device_t child __unused, int type, int rid, struct resource *res) argument [all...] |
/freebsd-9.3-release/sys/arm/at91/ |
H A D | at91_spi.c | 188 int err, i, rid; local 193 rid = 0; 194 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 199 rid = 0; 200 sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
|
/freebsd-9.3-release/sys/dev/amdsbwd/ |
H A D | amdsbwd.c | 384 int rid; local 397 rid = 0; 398 res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul, 412 bus_release_resource(dev, SYS_RES_IOPORT, rid, res); 413 bus_delete_resource(dev, SYS_RES_IOPORT, rid);
|
/freebsd-9.3-release/sys/dev/amr/ |
H A D | amr_pci.c | 186 int rid, rtype, error; local 222 rid = PCIR_BAR(0); 224 sc->amr_reg = bus_alloc_resource_any(dev, rtype, &rid, RF_ACTIVE); 235 rid = 0; 236 sc->amr_irq = bus_alloc_resource_any(sc->amr_dev, SYS_RES_IRQ, &rid,
|
/freebsd-9.3-release/sys/dev/en/ |
H A D | if_en_pci.c | 193 int rid, error = 0; local 216 rid = PCI_CBMA; 217 scp->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, 232 rid = 0; 233 scp->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
|
/freebsd-9.3-release/sys/dev/hpt27xx/ |
H A D | hpt27xx_os_bsd.c | 158 hba->pcibar[index].rid = 0x10 + index * 4; 159 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4); 164 hba->pcibar[index].type, &hba->pcibar[index].rid, 0, ~0, length, RF_ACTIVE); 169 hba->pcibar[index].type, &hba->pcibar[index].rid, 0, ~0, length, RF_ACTIVE); 184 hba->pcibar[index].rid, hba->pcibar[index].res);
|
/freebsd-9.3-release/sys/dev/iir/ |
H A D | iir_pci.c | 187 int retries, rid, error = 0; local 192 rid = PCI_DPMEM; 193 io = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); 201 rid = 0; 202 irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 360 bus_release_resource( dev, SYS_RES_MEMORY, rid, io );
|
/freebsd-9.3-release/sys/dev/usb/controller/ |
H A D | ehci_pci.c | 261 int rid; local 296 rid = PCI_CBMEM; 297 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, 307 rid = 0; 308 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
|
/freebsd-9.3-release/sys/powerpc/aim/ |
H A D | nexus.c | 396 nexus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument 422 rman_set_rid(rv, *rid); 428 nexus_activate_resource(device_t bus, device_t child, int type, int rid, argument 437 nexus_deactivate_resource(device_t bus, device_t child, int type, int rid, argument 446 nexus_release_resource(device_t bus, device_t child, int type, int rid, argument
|
/freebsd-9.3-release/sys/sparc64/sbus/ |
H A D | sbus.c | 712 sbus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument 733 return (resource_list_alloc(rl, bus, child, type, rid, start, 737 rle = resource_list_find(rl, type, *rid); 774 rman_set_rid(rv, *rid); 777 type, *rid, rv)) { 790 sbus_activate_resource(device_t bus, device_t child, int type, int rid, argument 799 return (bus_generic_activate_resource(bus, child, type, rid, 843 sbus_release_resource(device_t bus, device_t child, int type, int rid, argument 854 error = bus_deactivate_resource(child, type, rid, r); 862 rle = resource_list_find(rl, type, rid); [all...] |