Lines Matching defs:pmrq
561 usba_pm_req_t *pmrq = (usba_pm_req_t *)arg;
569 (void) pm_busy_component(pmrq->dip, pmrq->comp);
570 rval = pm_raise_power(pmrq->dip, pmrq->comp, pmrq->level);
571 (void) pm_idle_component(pmrq->dip, pmrq->comp);
572 pmrq->cb(pmrq->arg, rval);
574 /* We are done with pmrq. Free it now */
575 kmem_free(pmrq, sizeof (usba_pm_req_t));
584 usba_pm_req_t *pmrq;
591 if ((pmrq = kmem_alloc(sizeof (usba_pm_req_t), KM_NOSLEEP)) ==
597 pmrq->dip = dip;
598 pmrq->comp = comp;
599 pmrq->level = level;
600 pmrq->cb = callback;
601 pmrq->arg = arg;
602 pmrq->flags = flags;
605 (void *)pmrq, USB_FLAGS_NOSLEEP | USB_FLAGS_NOQUEUE) !=
607 kmem_free(pmrq, sizeof (usba_pm_req_t));
619 usba_pm_req_t *pmrq = (usba_pm_req_t *)arg;
627 (void) pm_idle_component(pmrq->dip, pmrq->comp);
628 rval = pm_lower_power(pmrq->dip, pmrq->comp, pmrq->level);
629 pmrq->cb(pmrq->arg, rval);
638 usba_pm_req_t *pmrq;
645 if ((pmrq = kmem_alloc(sizeof (usba_pm_req_t), KM_NOSLEEP)) ==
651 pmrq->dip = dip;
652 pmrq->comp = comp;
653 pmrq->level = level;
654 pmrq->cb = callback;
655 pmrq->arg = arg;
656 pmrq->flags = flags;
659 (void *)pmrq, USB_FLAGS_NOSLEEP | USB_FLAGS_NOQUEUE) !=
661 kmem_free(pmrq, sizeof (usba_pm_req_t));