Home
last modified time | relevance | path

Searched refs:sc_nrange (Results 1 – 8 of 8) sorted by relevance

/NextBSD/sys/powerpc/ofw/
HDofw_pci.c154 sc->sc_nrange = 0; in ofw_pci_init()
158 sc->sc_nrange += n; in ofw_pci_init()
160 if (sc->sc_nrange == 0) in ofw_pci_init()
162 sc->sc_range = malloc(sc->sc_nrange * sizeof(sc->sc_range[0]), in ofw_pci_init()
170 KASSERT(i == sc->sc_nrange, ("range count mismatch")); in ofw_pci_init()
172 sc->sc_nrange = ofw_pci_nranges(node); in ofw_pci_init()
173 if (sc->sc_nrange <= 0) { in ofw_pci_init()
177 sc->sc_range = malloc(sc->sc_nrange * sizeof(sc->sc_range[0]), in ofw_pci_init()
198 for (rp = sc->sc_range; rp < sc->sc_range + sc->sc_nrange && in ofw_pci_init()
399 for (rp = sc->sc_range; rp < sc->sc_range + sc->sc_nrange && in ofw_pci_activate_resource()
HDofw_pci.h62 int sc_nrange; member
/NextBSD/sys/sparc64/ebus/
HDebus.c122 int sc_nrange; member
293 sc->sc_nrange = OF_getprop_alloc(node, "ranges", in ebus_nexus_attach()
295 if (sc->sc_nrange == -1) { in ebus_nexus_attach()
322 sc->sc_nrange = OF_getprop_alloc(node, "ranges", in ebus_pci_attach()
324 if (sc->sc_nrange == -1) { in ebus_pci_attach()
329 sc->sc_rinfo = malloc(sizeof(*sc->sc_rinfo) * sc->sc_nrange, M_DEVBUF, in ebus_pci_attach()
333 for (rnum = 0; rnum < sc->sc_nrange; rnum++) { in ebus_pci_attach()
468 type = ofw_isa_range_map(sc->sc_range, sc->sc_nrange, in ebus_alloc_resource()
483 for (i = 0; i < sc->sc_nrange; i++) { in ebus_alloc_resource()
524 for (i = 0; i < sc->sc_nrange; i++) { in ebus_activate_resource()
/NextBSD/sys/sparc64/central/
HDcentral.c54 int sc_nrange; member
141 sc->sc_nrange = OF_getprop_alloc(node, "ranges", in central_attach()
143 if (sc->sc_nrange == -1) { in central_attach()
254 for (i = 0; i < sc->sc_nrange; i++) { in central_alloc_resource()
/NextBSD/sys/sparc64/sbus/
HDsbus.c112 int sc_nrange; member
300 if ((sc->sc_nrange = OF_getprop_alloc(node, "ranges", in sbus_attach()
304 sc->sc_rd = malloc(sizeof(*sc->sc_rd) * sc->sc_nrange, M_DEVBUF, in sbus_attach()
313 for (i = 0; i < sc->sc_nrange; i++) { in sbus_attach()
753 for (i = 0; i < sc->sc_nrange; i++) { in sbus_alloc_resource()
803 for (i = 0; i < sc->sc_nrange; i++) { in sbus_activate_resource()
831 for (i = 0; i < sc->sc_nrange; i++) in sbus_adjust_resource()
/NextBSD/sys/sparc64/fhc/
HDfhc.c60 int sc_nrange; member
228 sc->sc_nrange = OF_getprop_alloc(node, "ranges", in fhc_attach()
230 if (sc->sc_nrange == -1) { in fhc_attach()
459 for (i = 0; i < sc->sc_nrange; i++) { in fhc_alloc_resource()
/NextBSD/sys/sparc64/sparc64/
HDupa.c91 int sc_nrange; member
286 sc->sc_nrange = OF_getprop_alloc(node, "ranges", sizeof(*sc->sc_ranges), in upa_attach()
288 if (sc->sc_nrange == -1) { in upa_attach()
437 for (i = 0; i < sc->sc_nrange; i++) { in upa_alloc_resource()
/NextBSD/sys/powerpc/mpc85xx/
HDpci_mpc85xx.c776 for (i = 0; i < sc->pci_sc.sc_nrange; i++) { in fsl_pcib_decode_win()