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