Lines Matching refs:rp
1578 pm_thresh_rec_t *rp;
1593 rp = kmem_zalloc(size, KM_SLEEP);
1594 rp->ptr_size = size;
1595 rp->ptr_numcomps = 0; /* means device threshold */
1596 ep = (pm_pte_t *)((intptr_t)rp + sizeof (*rp));
1597 rp->ptr_entries = ep;
1604 rp->ptr_physpath = (char *)tp;
1606 (intptr_t)rp + rp->ptr_size);
1609 pm_record_thresh(rp);
1611 * Don't free rp, pm_record_thresh() keeps it.
1690 pm_thresh_rec_t *rp;
1739 rp = kmem_zalloc(size, KM_SLEEP);
1740 rp->ptr_size = size;
1741 rp->ptr_numcomps = comps;
1742 ep = (pm_pte_t *)((intptr_t)rp + sizeof (*rp));
1743 rp->ptr_entries = ep;
1754 rp->ptr_physpath = (char *)tp;
1757 (intptr_t)rp + rp->ptr_size);
1765 /* don't free rp, pm_record_thresh uses it */
1766 pm_record_thresh(rp);
1775 if (!pm_valid_thresh(dip, rp)) {
1779 kmem_free(rp, size);
1789 pm_record_thresh(rp);