Lines Matching refs:n_outbuf
72 int n_outbuf; member
749 wait_event_timeout(hp->emptyq, (hp->n_outbuf <= 0), HVSI_TIMEOUT); in hvsi_flush_output()
759 hp->n_outbuf = 0; in hvsi_flush_output()
825 hp->n_outbuf = 0; in hvsi_hangup()
834 if (hp->n_outbuf <= 0) in hvsi_push()
837 n = hvsi_put_chars(hp, hp->outbuf, hp->n_outbuf); in hvsi_push()
841 hp->n_outbuf = 0; in hvsi_push()
863 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf); in hvsi_write_worker()
877 if (hp->n_outbuf > 0) in hvsi_write_worker()
897 return N_OUTBUF - hp->n_outbuf; in hvsi_write_room()
904 return hp->n_outbuf; in hvsi_chars_in_buffer()
918 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf); in hvsi_write()
934 BUG_ON(hp->n_outbuf < 0); in hvsi_write()
935 memcpy(hp->outbuf + hp->n_outbuf, source, chunksize); in hvsi_write()
936 hp->n_outbuf += chunksize; in hvsi_write()
944 if (hp->n_outbuf > 0) { in hvsi_write()