Lines Matching refs:rng_p
324 #define SET_RNGS(rng_p, used_p, ctyp, ptyp) do { \
325 (rng_p)->child_high = (ctyp); \
326 (rng_p)->child_low = (rng_p)->parent_low = (used_p)->base; \
327 (rng_p)->parent_high = (ptyp); \
328 (rng_p)->parent_mid = 0; \
329 (rng_p)->size = (used_p)->len; \
335 pib_ranges_t *rng_p = ranges;
342 SET_RNGS(rng_p, used_p, ctype, ptype);
345 if (rng_p->child_low + rng_p->size == used_p->base)
346 rng_p->size += used_p->len;
348 rng_p++;
349 SET_RNGS(rng_p, used_p, ctype, ptype);
352 return (rng_p - ranges + 1);
422 pib_ranges_t *ranges, *rng_p;
432 rng_p = ranges;
433 for (i = 0; i < nrange; i++, rng_p++) {
435 if (isa_reg_p->regspec_bustype != rng_p->child_high)
439 if (isa_reg_p->regspec_addr < rng_p->child_low)
442 (rng_p->child_low + rng_p->size - 1))
445 offset = isa_reg_p->regspec_addr - rng_p->child_low;
447 pci_reg_p->pci_phys_hi = rng_p->parent_high;
449 pci_reg_p->pci_phys_low = rng_p->parent_low + offset;