Lines Matching refs:tx_buff
367 if (unlikely(len > dev->tx_buff.truesize)) in sirdev_raw_write()
371 while (dev->tx_buff.len > 0) { /* wait until tx idle */ in sirdev_raw_write()
377 dev->tx_buff.data = dev->tx_buff.head; in sirdev_raw_write()
378 memcpy(dev->tx_buff.data, buf, len); in sirdev_raw_write()
379 dev->tx_buff.len = len; in sirdev_raw_write()
381 ret = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_raw_write()
385 dev->tx_buff.data += ret; in sirdev_raw_write()
386 dev->tx_buff.len -= ret; in sirdev_raw_write()
444 __func__, dev->tx_buff.len); in sirdev_write_complete()
446 if (likely(dev->tx_buff.len > 0)) { in sirdev_write_complete()
448 actual = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_write_complete()
451 dev->tx_buff.data += actual; in sirdev_write_complete()
452 dev->tx_buff.len -= actual; in sirdev_write_complete()
464 dev->tx_buff.len = 0; in sirdev_write_complete()
466 if (dev->tx_buff.len > 0) in sirdev_write_complete()
634 dev->tx_buff.data = dev->tx_buff.head; in sirdev_hard_xmit()
645 dev->tx_buff.len = async_wrap_skb(skb, dev->tx_buff.data, dev->tx_buff.truesize); in sirdev_hard_xmit()
656 actual = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_hard_xmit()
660 dev->tx_buff.data += actual; in sirdev_hard_xmit()
661 dev->tx_buff.len -= actual; in sirdev_hard_xmit()
755 dev->tx_buff.truesize = SIRBUF_ALLOCSIZE; in sirdev_alloc_buffers()
766 dev->tx_buff.head = kmalloc(dev->tx_buff.truesize, GFP_KERNEL); in sirdev_alloc_buffers()
767 if (dev->tx_buff.head == NULL) { in sirdev_alloc_buffers()
774 dev->tx_buff.data = dev->tx_buff.head; in sirdev_alloc_buffers()
776 dev->tx_buff.len = 0; in sirdev_alloc_buffers()
787 kfree(dev->tx_buff.head); in sirdev_free_buffers()
788 dev->rx_buff.head = dev->tx_buff.head = NULL; in sirdev_free_buffers()