Lines Matching refs:psce
2607 psce_t *psce;
2613 psce = p->pscc_entries;
2614 mutex_enter(&psce->psce_lock);
2615 ASSERT(psce);
2617 return (psce);
2627 * later) in the given psce.
2634 psc_entry(ushort_t event, psce_t *psce, dev_info_t *dip, int comp, int new,
2643 ASSERT(MUTEX_HELD(&psce->psce_lock));
2646 p = psce->psce_in;
2661 ASSERT(psce->psce_out == p);
2662 if (p == psce->psce_last) {
2663 psce->psce_first->flags |= PSC_EVENT_LOST;
2664 psce->psce_out = psce->psce_first;
2667 psce->psce_out = (p + 1);
2692 if (p == psce->psce_last)
2693 psce->psce_in = psce->psce_first;
2695 psce->psce_in = ++p;
2696 mutex_exit(&psce->psce_lock);
2733 psce_t *psce;
2742 psce = pm_psc_dip_to_direct(dip, &pscc);
2743 ASSERT(psce);
2747 overrun = psc_entry(cmd, psce, dip, comp, newlevel, oldlevel,
2761 psce = pm_psc_dip_to_direct(dip, &pscc);
2765 overrun = psc_entry(cmd, psce, dip, comp, newlevel,
2777 while ((psce = psc_interest(&cookie, &pscc)) != NULL) {
2778 (void) psc_entry(cmd, psce, dip, comp, newlevel,
5589 psce_t *psce;
5616 psce = kmem_zalloc(sizeof (psce_t), KM_SLEEP);
5617 mutex_init(&psce->psce_lock, NULL, MUTEX_DEFAULT, NULL);
5618 psce->psce_first =
5621 psce->psce_in = psce->psce_out = psce->psce_first;
5622 psce->psce_last = &psce->psce_first[PSCCOUNT - 1];
5623 psce->psce_references = 1;
5624 pscc->pscc_entries = psce;
5639 psce = kmem_zalloc(sizeof (psce_t), KM_SLEEP);
5640 psce->psce_first = kmem_zalloc(sizeof (pm_state_change_t) *
5642 psce->psce_in = psce->psce_out = psce->psce_first;
5643 psce->psce_last = &psce->psce_first[PSCCOUNT - 1];
5644 psce->psce_references = 1;
5645 pscc->pscc_entries = psce;
5720 psce_t *psce;
5729 psce = p->pscc_entries;
5730 ASSERT(psce->psce_references == 1);
5731 mutex_destroy(&psce->psce_lock);
5732 kmem_free(psce->psce_first,
5734 kmem_free(psce, sizeof (*psce));
5757 psce = p->pscc_entries;
5758 ASSERT(psce);
5759 if (psce->psce_references == 1) {
5760 kmem_free(psce->psce_first,
5762 kmem_free(psce, sizeof (*psce));
5764 psce->psce_references--;
5783 psce_t *psce;
5787 psce = p->pscc_entries;
5788 mutex_enter(&psce->psce_lock);
5789 if (psce->psce_out->size) {
5791 return (psce);
5793 mutex_exit(&psce->psce_lock);