Lines Matching refs:pmreq
614 pm_req_t pmreq; in dev_dep_common() local
616 bzero(&pmreq, sizeof (pmreq)); in dev_dep_common()
621 pmreq.pmreq_kept = src; in dev_dep_common()
626 pmreq.pmreq_kept = first; in dev_dep_common()
628 destp = &pmreq.pmreq_keeper; in dev_dep_common()
639 if ((upval = ioctl(pm_fd, cmd, &pmreq)) == -1) { in dev_dep_common()
642 cmd, errno, pmreq.pmreq_kept, pmreq.pmreq_keeper); in dev_dep_common()
644 "for \"%s\", %s\n", pmreq.pmreq_keeper, in dev_dep_common()
645 pmreq.pmreq_kept, strerror(errno)); in dev_dep_common()
783 pm_req_t pmreq; in devthr() local
785 bzero(&pmreq, sizeof (pmreq)); in devthr()
786 if (devpath(&pmreq.physpath, LINEARG(1), &upval)) in devthr()
791 pmreq.value = INT_MAX; in devthr()
796 pmreq.value = *vlist; in devthr()
799 pmreq.data = vlist; in devthr()
800 pmreq.datasize = (nthresh * sizeof (*vlist)); in devthr()
804 if (upval != NOUP && (upval = ioctl(pm_fd, cmd, &pmreq)) == -1) in devthr()
805 mesg(MERR, set_thresh_fmt, pmreq.physpath, strerror(errno)); in devthr()
808 free(pmreq.physpath); in devthr()