• Home
  • Raw
  • Download

Lines Matching refs:tx_buff

364 	if (unlikely(len > dev->tx_buff.truesize))  in sirdev_raw_write()
368 while (dev->tx_buff.len > 0) { /* wait until tx idle */ in sirdev_raw_write()
374 dev->tx_buff.data = dev->tx_buff.head; in sirdev_raw_write()
375 memcpy(dev->tx_buff.data, buf, len); in sirdev_raw_write()
376 dev->tx_buff.len = len; in sirdev_raw_write()
378 ret = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_raw_write()
382 dev->tx_buff.data += ret; in sirdev_raw_write()
383 dev->tx_buff.len -= ret; in sirdev_raw_write()
441 __func__, dev->tx_buff.len); in sirdev_write_complete()
443 if (likely(dev->tx_buff.len > 0)) { in sirdev_write_complete()
445 actual = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_write_complete()
448 dev->tx_buff.data += actual; in sirdev_write_complete()
449 dev->tx_buff.len -= actual; in sirdev_write_complete()
461 dev->tx_buff.len = 0; in sirdev_write_complete()
463 if (dev->tx_buff.len > 0) in sirdev_write_complete()
630 dev->tx_buff.data = dev->tx_buff.head; in sirdev_hard_xmit()
641 dev->tx_buff.len = async_wrap_skb(skb, dev->tx_buff.data, dev->tx_buff.truesize); in sirdev_hard_xmit()
652 actual = dev->drv->do_write(dev, dev->tx_buff.data, dev->tx_buff.len); in sirdev_hard_xmit()
657 dev->tx_buff.data += actual; in sirdev_hard_xmit()
658 dev->tx_buff.len -= actual; in sirdev_hard_xmit()
752 dev->tx_buff.truesize = SIRBUF_ALLOCSIZE; in sirdev_alloc_buffers()
762 dev->tx_buff.head = kmalloc(dev->tx_buff.truesize, GFP_KERNEL); in sirdev_alloc_buffers()
763 if (dev->tx_buff.head == NULL) { in sirdev_alloc_buffers()
770 dev->tx_buff.data = dev->tx_buff.head; in sirdev_alloc_buffers()
772 dev->tx_buff.len = 0; in sirdev_alloc_buffers()
784 kfree(dev->tx_buff.head); in sirdev_free_buffers()
785 dev->rx_buff.head = dev->tx_buff.head = NULL; in sirdev_free_buffers()