Lines Matching refs:tbuf
379 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local
395 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
396 while (tbuf) { in n_hdlc_send_frames()
399 __FILE__,__LINE__,tbuf,tbuf->count); in n_hdlc_send_frames()
403 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
407 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames()
413 actual = tbuf->count; in n_hdlc_send_frames()
415 if (actual == tbuf->count) { in n_hdlc_send_frames()
418 __FILE__,__LINE__,tbuf); in n_hdlc_send_frames()
421 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames()
427 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
431 __FILE__,__LINE__,tbuf); in n_hdlc_send_frames()
437 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames()
442 if (!tbuf) in n_hdlc_send_frames()
651 struct n_hdlc_buf *tbuf; in n_hdlc_tty_write() local
679 tbuf = n_hdlc_buf_get(&n_hdlc->tx_free_buf_list); in n_hdlc_tty_write()
680 if (tbuf) in n_hdlc_tty_write()
708 memcpy(tbuf->buf, data, count); in n_hdlc_tty_write()
711 tbuf->count = error = count; in n_hdlc_tty_write()
712 n_hdlc_buf_put(&n_hdlc->tx_buf_list,tbuf); in n_hdlc_tty_write()