Lines Matching refs:rp

5059 pm_record_thresh(pm_thresh_rec_t *rp)
5063 ASSERT(*rp->ptr_physpath);
5067 if (strcmp(rp->ptr_physpath, ptr->ptr_physpath) == 0) {
5069 rp->ptr_next = ptr->ptr_next;
5071 pptr->ptr_next = rp;
5073 pm_thresh_head = rp;
5085 rp->ptr_next = pm_thresh_head;
5086 pm_thresh_head = rp;
5088 rp->ptr_next = NULL;
5089 pm_thresh_head = rp;
5182 pm_thresh_rec_t *rp;
5187 for (rp = pm_thresh_head; rp; rp = rp->ptr_next) {
5188 if (strcmp(rp->ptr_physpath, path) != 0)
5190 pm_apply_recorded_thresh(dip, rp);
6032 pm_pdr_t *rp;
6036 for (rp = pm_dep_head; rp; rp = rp->pdr_next) {
6038 (void *)rp, (rp->pdr_isprop ? "property" : "device"),
6039 rp->pdr_keeper, rp->pdr_kept, rp->pdr_kept_count,
6040 (void *)rp->pdr_next);
6041 if (rp->pdr_kept_count != 0) {
6044 while (i < rp->pdr_kept_count) {
6045 pm_log("%s ", rp->pdr_kept_paths[i]);
6068 * Attempt to apply the thresholds indicated by rp to the node specified by
6072 pm_apply_recorded_thresh(dev_info_t *dip, pm_thresh_rec_t *rp)
6081 PMD(PMD_THRESH, ("%s: part: %s@%s(%s#%d), rp %p, %s\n", pmf,
6082 PM_DEVICE(dip), (void *)rp, rp->ptr_physpath))
6084 if (!PM_GET_PM_INFO(dip) || PM_ISBC(dip) || !pm_valid_thresh(dip, rp)) {
6090 pmf, PM_DEVICE(dip), pm_valid_thresh(dip, rp)))
6095 ep = rp->ptr_entries;
6099 if (rp->ptr_numcomps == 0) { /* PM_SET_DEVICE_THRESHOLD product */
6128 * Returns true if the threshold specified by rp could be applied to dip
6132 pm_valid_thresh(dev_info_t *dip, pm_thresh_rec_t *rp)
6141 rp->ptr_physpath))
6150 if (rp->ptr_numcomps == 0) {
6151 ASSERT(rp->ptr_entries && rp->ptr_entries->pte_numthresh == 1);
6154 if (rp->ptr_numcomps != (comps = PM_NUMCMPTS(dip))) {
6156 pmf, PM_NUMCMPTS(dip), rp->ptr_numcomps, rp->ptr_physpath))
6159 ep = rp->ptr_entries;
6165 pmf, rp->ptr_physpath, i,
6206 pm_thresh_rec_t *rp;
6209 rp = pm_thresh_head;
6210 pm_thresh_head = rp->ptr_next;
6211 kmem_free(rp, rp->ptr_size);
6222 pm_pdr_t *rp;
6237 rp = pm_dep_head;
6238 if (!rp->pdr_isprop) {
6239 ASSERT(rp->pdr_satisfied == 0);
6246 pm_dep_head = rp->pdr_next;
6247 if (rp->pdr_kept_count) {
6248 for (i = 0; i < rp->pdr_kept_count; i++) {
6249 length = strlen(rp->pdr_kept_paths[i]) + 1;
6250 kmem_free(rp->pdr_kept_paths[i], length);
6252 kmem_free(rp->pdr_kept_paths,
6253 rp->pdr_kept_count * sizeof (char **));
6255 kmem_free(rp, rp->pdr_size);