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