Lines Matching refs:fn_dest
441 fifonode_t *fn_dest = fnp->fn_dest;
486 if (--fnp->fn_wcnt == 0 && fn_dest->fn_rcnt > 0) {
487 if ((fn_dest->fn_flag & (FIFOFAST | FIFOWANTR)) ==
494 fn_dest->fn_flag &= ~(FIFOWANTR | FIFOWANTW);
495 cv_broadcast(&fn_dest->fn_wait_cv);
521 if (fnp->fn_rcnt == 0 && fn_dest->fn_wcnt > 0) {
522 if ((fn_dest->fn_flag & (FIFOFAST | FIFOWANTW)) ==
527 fn_dest->fn_flag &= ~FIFOWANTW;
528 cv_broadcast(&fn_dest->fn_wait_cv);
560 if (fn_dest->fn_open && senthang == 0)
580 fn_dest->fn_flag |= FIFOCLOSE;
588 cv_broadcast(&fn_dest->fn_wait_cv);
596 fn_dest_vp = FTOV(fn_dest);
622 fn_dest_vp = FTOV(fn_dest);
633 cv_broadcast(&fn_dest->fn_wait_cv);
662 fifonode_t *fn_dest;
678 fn_dest = fnp->fn_dest;
687 if (fn_dest->fn_wcnt == 0 || fn_dest->fn_rcnt == 0) {
755 while (fnp->fn_mp == NULL && fn_dest->fn_wwaitcnt > 0) {
768 fifo_wakewriter(fn_dest, fn_lock);
792 if (fn_dest->fn_flag & (FIFOWANTW | FIFOHIWATW) &&
794 fifo_wakewriter(fn_dest, fn_lock);
819 fnp->fn_dest->fn_atime = now;
847 struct fifonode *fnp, *fn_dest;
877 fn_dest = fnp->fn_dest;
887 if (fn_dest->fn_rcnt == 0 || fn_dest->fn_wcnt == 0) {
906 while (fn_dest->fn_count >= Fifohiwat) {
938 fifo_wakereader(fn_dest, fn_lock);
955 if (fn_dest->fn_rcnt == 0 || fn_dest->fn_wcnt == 0) {
964 if (uiop->uio_resid + fn_dest->fn_count > Fifohiwat)
980 hotread = fn_dest->fn_count > 0;
1021 if (fn_dest->fn_rcnt == 0 || fn_dest->fn_wcnt == 0) {
1042 if (fn_dest->fn_rcnt == 0 || fn_dest->fn_wcnt == 0) {
1053 fn_dest->fn_count += size;
1054 if (fn_dest->fn_mp != NULL) {
1055 fn_dest->fn_tail->b_cont = bp;
1056 fn_dest->fn_tail = bp;
1058 fn_dest->fn_mp = fn_dest->fn_tail = bp;
1064 fifo_wakereader(fn_dest, fn_lock);
1094 fn_dest->fn_mtime = fn_dest->fn_ctime = now;
1097 } else if (fn_dest->fn_rcnt == 0 || fn_dest->fn_wcnt == 0) {
1134 fifonode_t *fn_dest;
1200 *rvalp = (fnp->fn_dest->fn_count < Fifohiwat) ? 1 : 0;
1322 fn_dest = fnp->fn_dest;
1324 fifo_fastflush(fn_dest);
1332 if (fn_dest->fn_flag & (FIFOWANTW | FIFOWANTR)) {
1333 fn_dest->fn_flag &= ~(FIFOWANTW | FIFOWANTR);
1334 cv_broadcast(&fn_dest->fn_wait_cv);
1425 cv_broadcast(&fnp->fn_dest->fn_wait_cv);
1666 ASSERT(fnp->fn_dest->fn_open == 0);
1677 fifonode_t *fn_dest = fnp->fn_dest;
1679 vp = FTOV(fn_dest);
1680 if (fn_dest->fn_mp) {
1681 freemsg(fn_dest->fn_mp);
1682 fn_dest->fn_mp = NULL;
1683 fn_dest->fn_count = 0;
1685 if (fn_dest->fn_pcredp != NULL) {
1686 crfree(fn_dest->fn_pcredp);
1687 fn_dest->fn_pcredp = NULL;
1765 fifonode_t *fnp, *fn_dest;
1775 fn_dest = fnp->fn_dest;
1811 if ((fnp->fn_flag & ISPIPE) && (fn_dest->fn_open == 0)) {
1814 (fn_dest->fn_wcnt == 0)) {
1822 if (fn_dest->fn_count < Fifohiwat)
2016 fifonode_t *fn_dest = fnp->fn_dest;
2025 if ((fnp->fn_flag & ISPIPE) && (fn_dest->fn_flag & FIFOWAITMODE))
2026 cv_broadcast(&fn_dest->fn_wait_cv);