Lines Matching refs:n_outbuf
85 int n_outbuf; member
760 wait_event_timeout(hp->emptyq, (hp->n_outbuf <= 0), HVSI_TIMEOUT); in hvsi_flush_output()
770 hp->n_outbuf = 0; in hvsi_flush_output()
836 hp->n_outbuf = 0; in hvsi_hangup()
845 if (hp->n_outbuf <= 0) in hvsi_push()
848 n = hvsi_put_chars(hp, hp->outbuf, hp->n_outbuf); in hvsi_push()
852 hp->n_outbuf = 0; in hvsi_push()
874 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf); in hvsi_write_worker()
888 if (hp->n_outbuf > 0) in hvsi_write_worker()
908 return N_OUTBUF - hp->n_outbuf; in hvsi_write_room()
915 return hp->n_outbuf; in hvsi_chars_in_buffer()
929 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf); in hvsi_write()
945 BUG_ON(hp->n_outbuf < 0); in hvsi_write()
946 memcpy(hp->outbuf + hp->n_outbuf, source, chunksize); in hvsi_write()
947 hp->n_outbuf += chunksize; in hvsi_write()
955 if (hp->n_outbuf > 0) { in hvsi_write()