Searched refs:rid (Results 251 - 275 of 683) sorted by relevance

<<11121314151617181920>>

/freebsd-11-stable/sys/dev/ath/
H A Dif_ath_pci.c240 int rid; local
267 rid = BS_BAR;
268 psc->sc_sr = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
291 rid = 0;
292 psc->sc_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
/freebsd-11-stable/sys/mips/nlm/
H A Dxlp_simplebus.c167 xlp_simplebus_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
188 rle = resource_list_find(&di->rl, type, *rid);
253 rman_set_rid(rv, *rid);
258 if (bus_activate_resource(child, type, *rid, rv)) {
270 xlp_simplebus_activate_resource(device_t bus, device_t child, int type, int rid, argument
/freebsd-11-stable/sys/dev/hpt27xx/
H A Dhpt27xx_os_bsd.c118 hba->pcibar[index].rid = 0x10 + index * 4;
119 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4);
124 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
129 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
144 hba->pcibar[index].rid, hba->pcibar[index].res);
/freebsd-11-stable/sys/dev/hptnr/
H A Dhptnr_os_bsd.c104 hba->pcibar[index].rid = 0x10 + index * 4;
105 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4);
110 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
115 hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE);
130 hba->pcibar[index].rid, hba->pcibar[index].res);
/freebsd-11-stable/sys/isa/
H A Dvga_isa.c191 int rid; local
197 rid = 0;
198 bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
200 rid = 0;
201 bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
/freebsd-11-stable/sys/mips/mediatek/
H A Dmtk_xhci.c96 int rid; local
103 rid = 0;
104 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid,
116 rid = 0;
117 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
/freebsd-11-stable/sys/dev/usb/controller/
H A Dgeneric_ohci.c106 int err, rid; local
124 rid = 0;
126 &rid, RF_ACTIVE);
136 rid = 0;
137 sc->ohci_sc.sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
H A Dat91dci_atmelarm.c144 int rid; local
192 rid = MEM_RID;
194 bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
204 rid = 0;
206 bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
H A Dehci_ixp4xx.c117 int rid; local
133 rid = 0;
134 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
162 rid = 0;
163 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
H A Dat91dci_fdt.c150 int rid; local
198 rid = MEM_RID;
200 bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
210 rid = 0;
212 bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
H A Duhci_pci.c267 int rid; local
285 rid = PCI_UHCI_BASE_REG;
286 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid,
299 rid = 0;
300 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
H A Dohci_pci.c211 int rid; local
236 rid = PCI_CBMEM;
237 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid,
247 rid = 0;
248 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
/freebsd-11-stable/sys/arm/nvidia/
H A Dtegra_ehci.c149 int rv, rid; local
159 rid = 0;
160 sc->ehci_mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
168 rid = 0;
169 sc->ehci_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
/freebsd-11-stable/sys/dev/sdhci/
H A Dsdhci_fdt.c214 int err, slots, rid, i; local
219 rid = 0;
220 sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
234 rid = 0;
236 &rid, RF_ACTIVE);
/freebsd-11-stable/sys/arm/allwinner/
H A Da10_ehci.c143 int rid; local
162 rid = 0;
163 sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid, RF_ACTIVE);
180 rid = 0;
181 sc->sc_irq_res = bus_alloc_resource_any(self, SYS_RES_IRQ, &rid,
/freebsd-11-stable/sys/arm/ti/usb/
H A Domap_ehci.c294 int rid; local
314 rid = 0;
315 sc->sc_io_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
321 rid = 0;
322 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
/freebsd-11-stable/sys/arm/xilinx/
H A Dzy7_ehci.c225 int err, rid; local
239 rid = 0;
241 &rid, RF_ACTIVE);
258 rid = 0;
259 sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid,
/freebsd-11-stable/sys/arm64/cavium/
H A Dthunder_pcie_pem.c252 thunder_pem_activate_resource(device_t dev, device_t child, int type, int rid, argument
293 thunder_pem_deactivate_resource(device_t bus, device_t child, int type, int rid, argument
630 thunder_pem_alloc_resource(device_t dev, device_t child, int type, int *rid, argument
640 return (pci_domain_alloc_bus(sc->id, child, rid, start, end,
647 return (BUS_ALLOC_RESOURCE(parent_dev, dev, type, rid, start,
674 rman_set_rid(res, *rid);
677 if (bus_activate_resource(child, type, *rid, res)) {
686 device_printf(dev, "%s FAIL: type=%d, rid=%d, "
688 __func__, type, *rid, start, end, count, flags);
695 thunder_pem_release_resource(device_t dev, device_t child, int type, int rid, argument
756 int rid; local
[all...]
/freebsd-11-stable/sys/dev/sound/isa/
H A Dsbc.c82 static struct resource *sbc_alloc_resource(device_t bus, device_t child, int type, int *rid,
84 static int sbc_release_resource(device_t bus, device_t child, int type, int rid,
297 int rid = 0, ver; local
301 io = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
304 io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid,
337 bad2: bus_release_resource(dev, SYS_RES_IOPORT, rid, io);
575 sbc_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
615 if (*rid > rid_max || alloced[*rid] == alloced_max)
618 alloced[*rid]
623 sbc_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
[all...]
/freebsd-11-stable/sys/arm64/arm64/
H A Dgic_v3.c217 int rid; local
240 for (i = 0, rid = 0; i < (sc->gic_redists.nregions + 1); i++, rid++) {
241 sc->gic_res[rid] = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
242 &rid, RF_ACTIVE);
243 if (sc->gic_res[rid] == NULL)
261 for (i = 0, rid = 1; i < sc->gic_redists.nregions; i++, rid++)
262 sc->gic_redists.regions[i] = sc->gic_res[rid];
321 int rid; local
[all...]
/freebsd-11-stable/sys/dev/virtio/pci/
H A Dvirtio_pci.c263 int rid; local
270 rid = PCIR_BAR(0);
271 sc->vtpci_res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid,
282 rid = PCIR_BAR(1);
284 SYS_RES_MEMORY, &rid, RF_ACTIVE);
886 vtpci_alloc_interrupt(struct vtpci_softc *sc, int rid, int flags, argument
891 irq = bus_alloc_resource_any(sc->vtpci_dev, SYS_RES_IRQ, &rid, flags);
896 intr->vti_rid = rid;
905 int i, rid, flags, nvq_intrs, error; local
907 rid
[all...]
/freebsd-11-stable/sys/x86/iommu/
H A Dintel_ctx.c116 PCI_RID2BUS(ctx->rid), DMAR_PGF_NOALLOC | DMAR_PGF_WAITOK, sfp);
117 ctxp += ctx->rid & 0xff;
250 * tree. Get rid of the failed entry, but do not stop
335 dmar_ctx_alloc(struct dmar_domain *domain, uint16_t rid) argument
341 ctx->rid = rid;
406 dmar_get_ctx_for_dev(struct dmar_unit *dmar, device_t dev, uint16_t rid, argument
422 ctx = dmar_find_ctx_locked(dmar, rid);
430 dmar_ensure_ctx_page(dmar, PCI_RID2BUS(rid));
444 ctx1 = dmar_ctx_alloc(domain1, rid);
663 dmar_find_ctx_locked(struct dmar_unit *dmar, uint16_t rid) argument
[all...]
/freebsd-11-stable/sys/pc98/cbus/
H A Dpckbd.c104 int error, rid; local
112 rid = 0;
113 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, pckbd_iat, 2,
124 bus_release_resource(dev, SYS_RES_IOPORT, rid, res);
135 int error, rid; local
137 rid = 0;
138 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, pckbd_iat, 2,
149 rid = 0;
150 res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
/freebsd-11-stable/sys/sparc64/sparc64/
H A Dupa.c194 int i, imr, j, rid; local
204 rid = i;
211 &rid, ((i == UPA_IMR1 || i == UPA_IMR2) ? RF_SHAREABLE :
263 &rid, sstart, sstart + scount - 1, scount,
267 SYS_RES_MEMORY, &rid, RF_ACTIVE);
405 upa_alloc_resource(device_t dev, device_t child, int type, int *rid, argument
422 return (resource_list_alloc(rl, dev, child, type, rid, start,
426 rle = resource_list_find(rl, type, *rid);
446 rv = bus_generic_alloc_resource(dev, child, type, rid,
/freebsd-11-stable/sys/dev/tdfx/
H A Dtdfx_pci.c148 /* rid value tells bus_alloc_resource where to find the addresses of ports or
150 int rid = PCIR_BAR(0); local
175 &rid, RF_ACTIVE | RF_SHAREABLE);
183 tdfx_info->memrid = rid;
193 rid = 0x14; /* 2nd mem map */
199 SYS_RES_MEMORY, &rid, RF_ACTIVE | RF_SHAREABLE);
207 tdfx_info->memrid2 = rid;
210 rid = PCIR_IOBASE0_2;
214 SYS_RES_IOPORT, &rid, RF_ACTIVE | RF_SHAREABLE);
222 tdfx_info->piorid = rid;
[all...]

Completed in 314 milliseconds

<<11121314151617181920>>