Lines Matching refs:tbuf
152 struct n_hdlc_buf *tbuf; member
217 if (n_hdlc->tbuf) { in flush_tx_queue()
218 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, n_hdlc->tbuf); in flush_tx_queue()
219 n_hdlc->tbuf = NULL; in flush_tx_queue()
287 kfree(n_hdlc->tbuf); in n_hdlc_release()
390 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local
409 tbuf = n_hdlc->tbuf; in n_hdlc_send_frames()
410 if (!tbuf) in n_hdlc_send_frames()
411 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
413 while (tbuf) { in n_hdlc_send_frames()
416 __FILE__,__LINE__,tbuf,tbuf->count); in n_hdlc_send_frames()
420 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
424 n_hdlc->tbuf = tbuf; in n_hdlc_send_frames()
430 actual = tbuf->count; in n_hdlc_send_frames()
432 if (actual == tbuf->count) { in n_hdlc_send_frames()
435 __FILE__,__LINE__,tbuf); in n_hdlc_send_frames()
438 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames()
441 n_hdlc->tbuf = NULL; in n_hdlc_send_frames()
447 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
451 __FILE__,__LINE__,tbuf); in n_hdlc_send_frames()
455 n_hdlc->tbuf = tbuf; in n_hdlc_send_frames()
460 if (!tbuf) in n_hdlc_send_frames()
668 struct n_hdlc_buf *tbuf; in n_hdlc_tty_write() local
696 tbuf = n_hdlc_buf_get(&n_hdlc->tx_free_buf_list); in n_hdlc_tty_write()
697 if (tbuf) in n_hdlc_tty_write()
725 memcpy(tbuf->buf, data, count); in n_hdlc_tty_write()
728 tbuf->count = error = count; in n_hdlc_tty_write()
729 n_hdlc_buf_put(&n_hdlc->tx_buf_list,tbuf); in n_hdlc_tty_write()