Lines Matching refs:tbuf
277 struct n_hdlc_buf *tbuf;
291 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list);
292 while (tbuf) {
293 pr_debug("sending frame %p, count=%d\n", tbuf, tbuf->count);
297 actual = tty->ops->write(tty, tbuf->buf, tbuf->count);
301 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf);
307 actual = tbuf->count;
309 if (actual == tbuf->count) {
310 pr_debug("frame %p completed\n", tbuf);
313 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf);
319 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list);
321 pr_debug("frame %p pending\n", tbuf);
327 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf);
332 if (!tbuf)
539 struct n_hdlc_buf *tbuf;
558 tbuf = n_hdlc_buf_get(&n_hdlc->tx_free_buf_list);
559 if (tbuf)
579 memcpy(tbuf->buf, data, count);
582 tbuf->count = error = count;
583 n_hdlc_buf_put(&n_hdlc->tx_buf_list, tbuf);