Lines Matching refs:stp
495 struct stdata *stp = STREAM(q); in canputnext() local
501 if (stp->sd_ciputctrl != NULL) { in canputnext()
502 int ix = CPU->cpu_seqid & stp->sd_nciputctrl; in canputnext()
503 sdlock = &stp->sd_ciputctrl[ix].ciputctrl_lock; in canputnext()
506 mutex_enter(sdlock = &stp->sd_reflock); in canputnext()
522 if (sdlock != &stp->sd_reflock) { in canputnext()
524 mutex_enter(&stp->sd_reflock); in canputnext()
528 stp->sd_refcnt++; in canputnext()
529 ASSERT(stp->sd_refcnt != 0); /* Wraparound */ in canputnext()
530 mutex_exit(&stp->sd_reflock); in canputnext()
628 struct stdata *stp = STREAM(q); in freezestr() local
637 ASSERT(stp->sd_freezer == NULL); in freezestr()
638 stp->sd_freezer = curthread; in freezestr()
639 for (q = stp->sd_wrq; q != NULL; q = SAMESTR(q) ? q->q_next : NULL) { in freezestr()
653 struct stdata *stp = STREAM(q); in unfreezestr() local
656 for (q1 = stp->sd_wrq; q1 != NULL; in unfreezestr()
661 ASSERT(stp->sd_freezer == curthread); in unfreezestr()
662 stp->sd_freezer = NULL; in unfreezestr()