Lines Matching refs:tbuf
267 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local
282 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
283 while (tbuf) { in n_hdlc_send_frames()
284 pr_debug("sending frame %p, count=%zu\n", tbuf, tbuf->count); in n_hdlc_send_frames()
288 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
292 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames()
298 actual = tbuf->count; in n_hdlc_send_frames()
300 if (actual == tbuf->count) { in n_hdlc_send_frames()
301 pr_debug("frame %p completed\n", tbuf); in n_hdlc_send_frames()
304 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames()
310 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
312 pr_debug("frame %p pending\n", tbuf); in n_hdlc_send_frames()
318 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames()
323 if (!tbuf) in n_hdlc_send_frames()
525 struct n_hdlc_buf *tbuf; in n_hdlc_tty_write() local
542 tbuf = n_hdlc_buf_get(&n_hdlc->tx_free_buf_list); in n_hdlc_tty_write()
543 if (tbuf) in n_hdlc_tty_write()
563 memcpy(tbuf->buf, data, count); in n_hdlc_tty_write()
566 tbuf->count = error = count; in n_hdlc_tty_write()
567 n_hdlc_buf_put(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_tty_write()