Lines Matching refs:n_outbuf
86 int n_outbuf; member
786 wait_event_timeout(hp->emptyq, (hp->n_outbuf <= 0), HVSI_TIMEOUT); in hvsi_flush_output()
796 hp->n_outbuf = 0; in hvsi_flush_output()
861 hp->n_outbuf = 0; in hvsi_hangup()
872 if (hp->n_outbuf <= 0) in hvsi_push()
875 n = hvsi_put_chars(hp, hp->outbuf, hp->n_outbuf); in hvsi_push()
879 hp->n_outbuf = 0; in hvsi_push()
901 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf); in hvsi_write_worker()
915 if (hp->n_outbuf > 0) in hvsi_write_worker()
935 return N_OUTBUF - hp->n_outbuf; in hvsi_write_room()
942 return hp->n_outbuf; in hvsi_chars_in_buffer()
956 pr_debug("%s: %i chars in buffer\n", __func__, hp->n_outbuf); in hvsi_write()
972 BUG_ON(hp->n_outbuf < 0); in hvsi_write()
973 memcpy(hp->outbuf + hp->n_outbuf, source, chunksize); in hvsi_write()
974 hp->n_outbuf += chunksize; in hvsi_write()
982 if (hp->n_outbuf > 0) { in hvsi_write()