Lines Matching refs:newregs
1323 pci_regspec_t *regs, *newregs; in pci_get_available_prop() local
1352 newregs = kmem_alloc(rlen + sizeof (pci_regspec_t), KM_SLEEP); in pci_get_available_prop()
1386 newregs[j].pci_phys_hi = regs[i].pci_phys_hi; in pci_get_available_prop()
1387 newregs[j].pci_phys_mid = in pci_get_available_prop()
1389 newregs[j].pci_phys_low = in pci_get_available_prop()
1391 newregs[j].pci_size_hi = (uint32_t)(dlen >> 32); in pci_get_available_prop()
1392 newregs[j].pci_size_low = (uint32_t)dlen; in pci_get_available_prop()
1398 newregs[j].pci_phys_hi = regs[i].pci_phys_hi; in pci_get_available_prop()
1399 newregs[j].pci_phys_mid = in pci_get_available_prop()
1401 newregs[j].pci_phys_low = in pci_get_available_prop()
1403 newregs[j].pci_size_hi = (uint32_t)(dlen >> 32); in pci_get_available_prop()
1404 newregs[j].pci_size_low = (uint32_t)dlen; in pci_get_available_prop()
1415 newregs[j] = regs[k]; in pci_get_available_prop()
1423 newregs[j] = regs[i]; in pci_get_available_prop()
1438 kmem_free(newregs, rlen + sizeof (pci_regspec_t)); in pci_get_available_prop()
1457 "available", (int *)newregs, in pci_get_available_prop()
1461 kmem_free(newregs, rlen + sizeof (pci_regspec_t)); in pci_get_available_prop()
1474 pci_regspec_t *regs, *newregs; in pci_put_available_prop() local
1514 newregs = kmem_alloc(rlen + sizeof (pci_regspec_t), KM_SLEEP); in pci_put_available_prop()
1600 newregs[j].pci_phys_hi = regs[i].pci_phys_hi; in pci_put_available_prop()
1601 newregs[j].pci_phys_mid = in pci_put_available_prop()
1603 newregs[j].pci_phys_low = (uint32_t)(base); in pci_put_available_prop()
1604 newregs[j].pci_size_hi = (uint32_t)(len >> 32); in pci_put_available_prop()
1605 newregs[j].pci_size_low = (uint32_t)len; in pci_put_available_prop()
1614 newregs[k].pci_phys_hi = regs[i].pci_phys_hi; in pci_put_available_prop()
1615 newregs[k].pci_phys_mid = in pci_put_available_prop()
1617 newregs[k].pci_phys_low = (uint32_t)(base); in pci_put_available_prop()
1618 newregs[k].pci_size_hi = (uint32_t)(len >> 32); in pci_put_available_prop()
1619 newregs[k].pci_size_low = (uint32_t)len; in pci_put_available_prop()
1625 newregs[j] = regs[i]; in pci_put_available_prop()
1638 newregs[j].pci_phys_hi = type; in pci_put_available_prop()
1639 newregs[j].pci_phys_hi |= PCI_REG_REL_M; in pci_put_available_prop()
1641 newregs[j].pci_phys_mid = (uint32_t)(base >> 32); in pci_put_available_prop()
1642 newregs[j].pci_phys_low = (uint32_t)base; in pci_put_available_prop()
1643 newregs[j].pci_size_hi = (uint32_t)(len >> 32); in pci_put_available_prop()
1644 newregs[j].pci_size_low = (uint32_t)len; in pci_put_available_prop()
1650 "available", (int *)newregs, in pci_put_available_prop()
1653 kmem_free(newregs, rlen + sizeof (pci_regspec_t)); in pci_put_available_prop()
1661 newregs = kmem_alloc(sizeof (pci_regspec_t), KM_SLEEP); in pci_put_available_prop()
1667 newregs[0].pci_phys_hi = type; in pci_put_available_prop()
1668 newregs[0].pci_phys_hi |= PCI_REG_REL_M; in pci_put_available_prop()
1670 newregs[0].pci_phys_mid = (uint32_t)(base >> 32); in pci_put_available_prop()
1671 newregs[0].pci_phys_low = (uint32_t)base; in pci_put_available_prop()
1672 newregs[0].pci_size_hi = (uint32_t)(len >> 32); in pci_put_available_prop()
1673 newregs[0].pci_size_low = (uint32_t)len; in pci_put_available_prop()
1676 "available", (int *)newregs, in pci_put_available_prop()
1678 kmem_free(newregs, sizeof (pci_regspec_t)); in pci_put_available_prop()
1682 kmem_free(newregs, rlen + sizeof (pci_regspec_t)); in pci_put_available_prop()