Home
last modified time | relevance | path

Searched refs:tx_buffer (Results 1 – 25 of 28) sorted by relevance

12

/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c667 struct atl1e_tx_buffer *tx_buffer = NULL; in atl1e_clean_tx_ring() local
671 if (tx_ring->desc == NULL || tx_ring->tx_buffer == NULL) in atl1e_clean_tx_ring()
677 tx_buffer = &tx_ring->tx_buffer[index]; in atl1e_clean_tx_ring()
678 if (tx_buffer->dma) { in atl1e_clean_tx_ring()
679 if (tx_buffer->flags & ATL1E_TX_PCIMAP_SINGLE) in atl1e_clean_tx_ring()
680 pci_unmap_single(pdev, tx_buffer->dma, in atl1e_clean_tx_ring()
681 tx_buffer->length, PCI_DMA_TODEVICE); in atl1e_clean_tx_ring()
682 else if (tx_buffer->flags & ATL1E_TX_PCIMAP_PAGE) in atl1e_clean_tx_ring()
683 pci_unmap_page(pdev, tx_buffer->dma, in atl1e_clean_tx_ring()
684 tx_buffer->length, PCI_DMA_TODEVICE); in atl1e_clean_tx_ring()
[all …]
Datl1e.h416 struct atl1e_tx_buffer *tx_buffer; member
/drivers/net/ethernet/dec/tulip/
Dxircom_cb.c80 __le32 *tx_buffer; member
241 private->tx_buffer = dma_alloc_coherent(d, 8192, in xircom_probe()
244 if (private->tx_buffer == NULL) in xircom_probe()
291 dma_free_coherent(d, 8192, private->tx_buffer, private->tx_dma_handle); in xircom_probe()
318 dma_free_coherent(d, 8192, card->tx_buffer, card->tx_dma_handle); in xircom_remove()
339 card->tx_buffer[0], card->tx_buffer[4]); in xircom_interrupt()
396 if (card->tx_buffer[4*desc]==0) { in xircom_start_xmit()
400 memset(&card->tx_buffer[bufferoffsets[desc]/4],0,1536); in xircom_start_xmit()
402 &(card->tx_buffer[bufferoffsets[desc] / 4]), in xircom_start_xmit()
407 card->tx_buffer[4*desc+1] = cpu_to_le32(skb->len); in xircom_start_xmit()
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c974 struct fm10k_tx_buffer *tx_buffer; in fm10k_tx_map() local
998 tx_buffer = first; in fm10k_tx_map()
1005 dma_unmap_len_set(tx_buffer, len, size); in fm10k_tx_map()
1006 dma_unmap_addr_set(tx_buffer, dma, dma); in fm10k_tx_map()
1034 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map()
1082 tx_buffer = &tx_ring->tx_buffer[i]; in fm10k_tx_map()
1083 fm10k_unmap_and_free_tx_resource(tx_ring, tx_buffer); in fm10k_tx_map()
1084 if (tx_buffer == first) in fm10k_tx_map()
1117 first = &tx_ring->tx_buffer[tx_ring->next_to_use]; in fm10k_xmit_frame_ring()
1208 struct fm10k_tx_buffer *tx_buffer; in fm10k_clean_tx_irq() local
[all …]
Dfm10k_netdev.c40 tx_ring->tx_buffer = vzalloc(size); in fm10k_setup_tx_resources()
41 if (!tx_ring->tx_buffer) in fm10k_setup_tx_resources()
58 vfree(tx_ring->tx_buffer); in fm10k_setup_tx_resources()
59 tx_ring->tx_buffer = NULL; in fm10k_setup_tx_resources()
163 struct fm10k_tx_buffer *tx_buffer) in fm10k_unmap_and_free_tx_resource() argument
165 if (tx_buffer->skb) { in fm10k_unmap_and_free_tx_resource()
166 dev_kfree_skb_any(tx_buffer->skb); in fm10k_unmap_and_free_tx_resource()
167 if (dma_unmap_len(tx_buffer, len)) in fm10k_unmap_and_free_tx_resource()
169 dma_unmap_addr(tx_buffer, dma), in fm10k_unmap_and_free_tx_resource()
170 dma_unmap_len(tx_buffer, len), in fm10k_unmap_and_free_tx_resource()
[all …]
/drivers/spi/
Dspidev.c84 u8 *tx_buffer; member
124 .tx_buf = spidev->tx_buffer, in spidev_sync_write()
197 missing = copy_from_user(spidev->tx_buffer, buf, count); in spidev_write()
227 tx_buf = spidev->tx_buffer; in spidev_message()
602 if (!spidev->tx_buffer) { in spidev_open()
603 spidev->tx_buffer = kmalloc(bufsiz, GFP_KERNEL); in spidev_open()
604 if (!spidev->tx_buffer) { in spidev_open()
628 kfree(spidev->tx_buffer); in spidev_open()
629 spidev->tx_buffer = NULL; in spidev_open()
653 kfree(spidev->tx_buffer); in spidev_release()
[all …]
/drivers/tty/serial/
Difx6x60.c445 unsigned char *tx_buffer; in ifx_spi_prepare_tx_buffer() local
447 tx_buffer = ifx_dev->tx_buffer; in ifx_spi_prepare_tx_buffer()
450 tx_buffer += IFX_SPI_HEADER_OVERHEAD; in ifx_spi_prepare_tx_buffer()
465 tx_buffer, temp_count, in ifx_spi_prepare_tx_buffer()
469 tx_buffer += temp_count; in ifx_spi_prepare_tx_buffer()
480 ifx_spi_setup_spi_header(ifx_dev->tx_buffer, in ifx_spi_prepare_tx_buffer()
484 ifx_dev->swap_buf((ifx_dev->tx_buffer), tx_count, in ifx_spi_prepare_tx_buffer()
485 &ifx_dev->tx_buffer[IFX_SPI_TRANSFER_SIZE]); in ifx_spi_prepare_tx_buffer()
766 ifx_dev->spi_xfer.tx_buf = ifx_dev->tx_buffer; in ifx_spi_io()
943 ifx_dev->tx_buffer, in ifx_spi_free_device()
[all …]
Difx6x60.h100 unsigned char *tx_buffer; member
/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c197 struct ixgbevf_tx_buffer *tx_buffer) in ixgbevf_unmap_and_free_tx_resource() argument
199 if (tx_buffer->skb) { in ixgbevf_unmap_and_free_tx_resource()
200 dev_kfree_skb_any(tx_buffer->skb); in ixgbevf_unmap_and_free_tx_resource()
201 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_unmap_and_free_tx_resource()
203 dma_unmap_addr(tx_buffer, dma), in ixgbevf_unmap_and_free_tx_resource()
204 dma_unmap_len(tx_buffer, len), in ixgbevf_unmap_and_free_tx_resource()
206 } else if (dma_unmap_len(tx_buffer, len)) { in ixgbevf_unmap_and_free_tx_resource()
208 dma_unmap_addr(tx_buffer, dma), in ixgbevf_unmap_and_free_tx_resource()
209 dma_unmap_len(tx_buffer, len), in ixgbevf_unmap_and_free_tx_resource()
212 tx_buffer->next_to_watch = NULL; in ixgbevf_unmap_and_free_tx_resource()
[all …]
/drivers/staging/vt6656/
Drxtx.c685 struct vnt_tx_buffer *tx_buffer, in vnt_generate_tx_parameter() argument
694 *mic_hdr = &tx_buffer-> in vnt_generate_tx_parameter()
697 return vnt_rxtx_rts(tx_context, &tx_buffer->tx_head, in vnt_generate_tx_parameter()
702 *mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; in vnt_generate_tx_parameter()
704 return vnt_rxtx_cts(tx_context, &tx_buffer->tx_head, need_mic); in vnt_generate_tx_parameter()
708 *mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; in vnt_generate_tx_parameter()
710 return vnt_rxtx_ab(tx_context, &tx_buffer->tx_head, need_rts, need_mic); in vnt_generate_tx_parameter()
790 struct vnt_tx_buffer *tx_buffer; in vnt_tx_packet() local
844 tx_buffer = (struct vnt_tx_buffer *)tx_context->data; in vnt_tx_packet()
845 tx_buffer_head = &tx_buffer->fifo_head; in vnt_tx_packet()
[all …]
/drivers/net/wireless/rsi/
Drsi_91x_usb.c71 u8 *seg = dev->tx_buffer; in rsi_write_multiple()
364 kfree(dev->tx_buffer); in rsi_deinit_usb_interface()
401 rsi_dev->tx_buffer = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface()
402 if (!rsi_dev->tx_buffer) { in rsi_init_usb_interface()
439 kfree(rsi_dev->tx_buffer); in rsi_init_usb_interface()
Drsi_usb.h44 u8 *tx_buffer; member
/drivers/s390/net/
Dlcs.c434 card->tx_buffer = NULL; in lcs_setup_card()
1512 *(__u16 *)(card->tx_buffer->data + card->tx_buffer->count) = 0; in __lcs_emit_txbuffer()
1513 card->tx_buffer->count += 2; in __lcs_emit_txbuffer()
1514 lcs_ready_buffer(&card->write, card->tx_buffer); in __lcs_emit_txbuffer()
1515 card->tx_buffer = NULL; in __lcs_emit_txbuffer()
1535 if (card->tx_emitted <= 0 && card->tx_buffer != NULL) in lcs_txbuffer_cb()
1573 if (card->tx_buffer != NULL && in __lcs_start_xmit()
1574 card->tx_buffer->count + sizeof(struct lcs_header) + in __lcs_start_xmit()
1578 if (card->tx_buffer == NULL) { in __lcs_start_xmit()
1580 card->tx_buffer = lcs_get_buffer(&card->write); in __lcs_start_xmit()
[all …]
Dlcs.h311 struct lcs_buffer *tx_buffer; member
/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c51 struct i40e_tx_buffer *tx_buffer) in i40e_unmap_and_free_tx_resource() argument
53 if (tx_buffer->skb) { in i40e_unmap_and_free_tx_resource()
54 dev_kfree_skb_any(tx_buffer->skb); in i40e_unmap_and_free_tx_resource()
55 if (dma_unmap_len(tx_buffer, len)) in i40e_unmap_and_free_tx_resource()
57 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource()
58 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource()
60 } else if (dma_unmap_len(tx_buffer, len)) { in i40e_unmap_and_free_tx_resource()
62 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource()
63 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource()
67 if (tx_buffer->tx_flags & I40E_TX_FLAGS_FD_SB) in i40e_unmap_and_free_tx_resource()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c569 struct ixgbe_tx_buffer *tx_buffer; in ixgbe_dump() local
611 tx_buffer = &tx_ring->tx_buffer_info[tx_ring->next_to_clean]; in ixgbe_dump()
614 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_dump()
615 dma_unmap_len(tx_buffer, len), in ixgbe_dump()
616 tx_buffer->next_to_watch, in ixgbe_dump()
617 (u64)tx_buffer->time_stamp); in ixgbe_dump()
673 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbe_dump()
675 if (dma_unmap_len(tx_buffer, len) > 0) { in ixgbe_dump()
680 (u64)dma_unmap_addr(tx_buffer, dma), in ixgbe_dump()
681 dma_unmap_len(tx_buffer, len), in ixgbe_dump()
[all …]
/drivers/net/ethernet/intel/igb/
Digb_main.c3752 struct igb_tx_buffer *tx_buffer) in igb_unmap_and_free_tx_resource() argument
3754 if (tx_buffer->skb) { in igb_unmap_and_free_tx_resource()
3755 dev_kfree_skb_any(tx_buffer->skb); in igb_unmap_and_free_tx_resource()
3756 if (dma_unmap_len(tx_buffer, len)) in igb_unmap_and_free_tx_resource()
3758 dma_unmap_addr(tx_buffer, dma), in igb_unmap_and_free_tx_resource()
3759 dma_unmap_len(tx_buffer, len), in igb_unmap_and_free_tx_resource()
3761 } else if (dma_unmap_len(tx_buffer, len)) { in igb_unmap_and_free_tx_resource()
3763 dma_unmap_addr(tx_buffer, dma), in igb_unmap_and_free_tx_resource()
3764 dma_unmap_len(tx_buffer, len), in igb_unmap_and_free_tx_resource()
3767 tx_buffer->next_to_watch = NULL; in igb_unmap_and_free_tx_resource()
[all …]
/drivers/net/wireless/
Dat76c50x-usb.c1771 struct at76_tx_buffer *tx_buffer = priv->bulk_out_buffer; in at76_mac80211_tx() local
1812 memset(tx_buffer, 0, sizeof(*tx_buffer)); in at76_mac80211_tx()
1813 tx_buffer->padding = padding; in at76_mac80211_tx()
1814 tx_buffer->wlength = cpu_to_le16(skb->len); in at76_mac80211_tx()
1815 tx_buffer->tx_rate = ieee80211_get_tx_rate(hw, info)->hw_value; in at76_mac80211_tx()
1816 memset(tx_buffer->reserved, 0, sizeof(tx_buffer->reserved)); in at76_mac80211_tx()
1817 memcpy(tx_buffer->packet, skb->data, skb->len); in at76_mac80211_tx()
1820 wiphy_name(priv->hw->wiphy), le16_to_cpu(tx_buffer->wlength), in at76_mac80211_tx()
1821 tx_buffer->padding, tx_buffer->tx_rate); in at76_mac80211_tx()
1824 at76_dbg_dump(DBG_TX_DATA_CONTENT, tx_buffer, submit_len, in at76_mac80211_tx()
[all …]
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c535 struct i40e_tx_buffer *tx_buffer) in i40e_unmap_and_free_tx_resource() argument
537 if (tx_buffer->skb) { in i40e_unmap_and_free_tx_resource()
538 dev_kfree_skb_any(tx_buffer->skb); in i40e_unmap_and_free_tx_resource()
539 if (dma_unmap_len(tx_buffer, len)) in i40e_unmap_and_free_tx_resource()
541 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource()
542 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource()
544 } else if (dma_unmap_len(tx_buffer, len)) { in i40e_unmap_and_free_tx_resource()
546 dma_unmap_addr(tx_buffer, dma), in i40e_unmap_and_free_tx_resource()
547 dma_unmap_len(tx_buffer, len), in i40e_unmap_and_free_tx_resource()
551 if (tx_buffer->tx_flags & I40E_TX_FLAGS_FD_SB) in i40e_unmap_and_free_tx_resource()
[all …]
/drivers/staging/wilc1000/
Dwilc_wlan.c56 u8 *tx_buffer; member
830 u8 *txb = p->tx_buffer; in wilc_wlan_handle_txq()
1697 kfree(p->tx_buffer); in wilc_wlan_cleanup()
1993 if (g_wlan.tx_buffer == NULL) in wilc_wlan_init()
1994 g_wlan.tx_buffer = kmalloc(LINUX_TX_SIZE, GFP_KERNEL); in wilc_wlan_init()
1995 PRINT_D(TX_DBG, "g_wlan.tx_buffer = %p\n", g_wlan.tx_buffer); in wilc_wlan_init()
1997 if (g_wlan.tx_buffer == NULL) { in wilc_wlan_init()
2034 kfree(g_wlan.tx_buffer); in wilc_wlan_init()
2035 g_wlan.tx_buffer = NULL; in wilc_wlan_init()
/drivers/media/rc/
Dene_ir.h229 unsigned *tx_buffer; /* input samples buffer*/ member
Dene_ir.c618 dev->tx_buffer = NULL; in ene_tx_disable()
629 if (!dev->tx_buffer) { in ene_tx_sample()
650 sample = dev->tx_buffer[dev->tx_pos++]; in ene_tx_sample()
976 dev->tx_buffer = buf; in ene_transmit()
/drivers/net/usb/
Dhso.c235 u8 *tx_buffer; member
1371 memcpy(serial->tx_buffer + serial->tx_buffer_count, buf, tx_bytes); in hso_serial_write()
1758 temp = serial->tx_buffer; in hso_kick_transmit()
1759 serial->tx_buffer = serial->tx_data; in hso_kick_transmit()
2267 kfree(serial->tx_buffer); in hso_serial_common_free()
2331 serial->tx_buffer = kzalloc(serial->tx_data_length, GFP_KERNEL); in hso_serial_common_create()
2332 if (!serial->tx_buffer) in hso_serial_common_create()
/drivers/net/ethernet/ti/
Dtlan.h188 u8 *tx_buffer; member
/drivers/net/ethernet/altera/
Daltera_tse_main.c611 priv->dmaops->tx_buffer(priv, buffer); in tse_start_xmit()
1588 .tx_buffer = sgdma_tx_buffer,
1607 .tx_buffer = msgdma_tx_buffer,

12