Lines Matching refs:n_outbuf
463 hp->n_outbuf = 0; in hvc_hangup()
477 n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf); in hvc_push()
485 hp->n_outbuf = 0; in hvc_push()
487 hp->n_outbuf -= n; in hvc_push()
488 if (hp->n_outbuf > 0) in hvc_push()
489 memmove(hp->outbuf, hp->outbuf + n, hp->n_outbuf); in hvc_push()
513 if (hp->n_outbuf > 0) in hvc_write()
516 while (count > 0 && (rsize = hp->outbuf_size - hp->n_outbuf) > 0) { in hvc_write()
519 memcpy(hp->outbuf + hp->n_outbuf, buf, rsize); in hvc_write()
522 hp->n_outbuf += rsize; in hvc_write()
531 if (hp->n_outbuf) in hvc_write()
579 return hp->outbuf_size - hp->n_outbuf; in hvc_write_room()
588 return hp->n_outbuf; in hvc_chars_in_buffer()
618 if (hp->n_outbuf > 0) in hvc_poll()
622 if (hp->n_outbuf > 0) { in hvc_poll()