Lines Matching refs:n_outbuf
85 int n_outbuf;
850 wait_event_timeout(hp->emptyq, (hp->n_outbuf <= 0), HVSI_TIMEOUT);
852 /* 'writer' could still be pending if it didn't see n_outbuf = 0 yet */
860 hp->n_outbuf = 0;
925 hp->n_outbuf = 0;
936 if (hp->n_outbuf <= 0)
939 n = hvsi_put_chars(hp, hp->outbuf, hp->n_outbuf);
943 hp->n_outbuf = 0;
965 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf);
979 if (hp->n_outbuf > 0)
999 return N_OUTBUF - hp->n_outbuf;
1006 return hp->n_outbuf;
1020 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf);
1036 BUG_ON(hp->n_outbuf < 0);
1037 memcpy(hp->outbuf + hp->n_outbuf, source, chunksize);
1038 hp->n_outbuf += chunksize;
1046 if (hp->n_outbuf > 0) {