Lines Matching full:tuple
94 int flags, rid, tuple; in pci_host_generic_core_attach() local
178 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in pci_host_generic_core_attach()
179 phys_base = sc->ranges[tuple].phys_base; in pci_host_generic_core_attach()
180 pci_base = sc->ranges[tuple].pci_base; in pci_host_generic_core_attach()
181 size = sc->ranges[tuple].size; in pci_host_generic_core_attach()
182 rid = RANGE_RID(tuple); in pci_host_generic_core_attach()
185 switch (FLAG_TYPE(sc->ranges[tuple].flags)) { in pci_host_generic_core_attach()
213 "failed to set resource for range %d: %d\n", tuple, in pci_host_generic_core_attach()
217 sc->ranges[tuple].rid = rid; in pci_host_generic_core_attach()
218 sc->ranges[tuple].res = bus_alloc_resource_any(dev, in pci_host_generic_core_attach()
220 if (sc->ranges[tuple].res == NULL) { in pci_host_generic_core_attach()
222 "failed to allocate resource for range %d\n", tuple); in pci_host_generic_core_attach()
254 int error, rid, tuple; in pci_host_generic_core_detach() local
262 for (tuple = 0; tuple < MAX_RANGES_TUPLES; tuple++) { in pci_host_generic_core_detach()
263 rid = sc->ranges[tuple].rid; in pci_host_generic_core_detach()
264 if (sc->ranges[tuple].size == 0) { in pci_host_generic_core_detach()
265 MPASS(sc->ranges[tuple].res == NULL); in pci_host_generic_core_detach()
270 switch (FLAG_TYPE(sc->ranges[tuple].flags)) { in pci_host_generic_core_detach()
278 if (sc->ranges[tuple].res != NULL) in pci_host_generic_core_detach()
280 sc->ranges[tuple].res); in pci_host_generic_core_detach()